Skip to main content
POST
cURL
Send one usage as an object under usage, or several as a list under usages. charge_item_id is the id of an order line whose item is charged as METERED, and charging_period names the billing period the usage falls in. For several usages the response lists each one under usages.success or usages.failed.
The SDK samples get their client from credentials your app registers once when it starts, as shown in Authentication. To try the call here, click Try it, set host to your Exsited API host name and paste an access token from Get an access token. To send a raw JSON body instead of filling in fields, copy the cURL sample and edit its -d payload.

Authorizations

Authorization
string
header
required

An access token from POST /api/v4/oauth2/token. The SDKs get and renew it for you.

Body

application/json

Send one usage as an object under usage, or several as a list under usages.

usage
object
usages
object[]

Response

The new usage under usage, or the outcome of each one under usages.

usage when one usage was sent, usages when several were.

usage
object
usages
object