POST /v1/usage-events
POST
/v1/usage-eventsAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredQuery parameters
environmentstringAllowed:
sandboxproductionmerchantAccountIdstringmin length 1
Header parameters
Idempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
min length 1
Request body
requiredapplication/jsonenvironmentstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmerchantAccountIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcustomerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
meterIdstringrequiredmin length 1
eventNamestringrequiredmin length 1
quantitynumberrequiredoccurredAtstringrequiredmin length 1
usageEventIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullsubscriptionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullsubscriptionItemIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmetadataobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullidempotencyKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullResponses
201
Success
dataobjectrequiredShow propertiesHide properties
usageEventIdstringrequiredmin length 1
idempotencyKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcustomerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
meterIdstringrequiredmin length 1
eventNamestringrequiredmin length 1
quantitynumberrequiredoccurredAtstringrequiredmin length 1
ingestedAtstringrequiredmin length 1
metadataobjectrequiredsubscriptionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullsubscriptionItemIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrequestIdstringrequiredmin length 1