Node.js
Usage
Set Usage
Set absolute usage for the current period by recording an adjustment event.
POST
Node.js
Documentation Index
Fetch the complete documentation index at: https://docs.priceos.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
API key from your PriceOS dashboard.
Body
application/json
Internal customer ID.
Feature key to set usage for.
Absolute usage value to set for the current usage period.
Required range:
x >= 0Stable unique identifier for this event. Reuse it on retries and for deduplication.
Optional metadata for the adjustment event (string key/value pairs).
Response
Usage set
Usage set result.
Whether the usage event was applied.
Updated usage total, if applicable.
Adjustment amount applied to reach the requested usage value.
Usage event ID when available.
Reason the usage event was not applied.