Record a usage event
Records a usage event into the Usage timeseries collection.
Request body
Response
Usage recorded successfully
Example response
{
"creditDebit": {
"amount": 100,
"autoRecharge": {
"triggered": true
},
"unitsRemaining": 99
},
"reference": "usage_A1B2C3D4",
"success": true
}Changes
Changed in 11 of the 27 revisions of this API.113739
- ○
the request property
metadatabecame optionalrequest-property-became-optional
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
the
customerRefrequest property's maxLength was set to20request-property-max-length-set
- ●
the
productRefrequest property's maxLength was set to20request-property-max-length-set
- ●
the
purchaseRefrequest property's maxLength was set to20request-property-max-length-set
- ●
- ○
the endpoint scheme security
SecretKeywas added to the APIapi-security-added
- ○
the endpoint scheme security
bearerwas removed from the APIapi-security-removed
- ○
added the optional property
creditDebitto the response with the200statusresponse-optional-property-added
- ○
the response property
referencebecame required for the status200response-property-became-required
- ○
the response property
successbecame required for the status200response-property-became-required
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
added the new required request property
customerRefnew-required-request-property
- ●
removed the request property
customerIdrequest-property-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the request property
productReferencerequest-property-removed
- ●
removed the request property
purchaseReferencerequest-property-removed
- ○
added the new optional request property
productRefnew-optional-request-property
- ○
added the new optional request property
purchaseRefnew-optional-request-property
- ●
- ▲
the request property
metadatabecame requiredrequest-property-became-required
- ▲
the request property
timestampbecame requiredrequest-property-became-required
- ▲
the
customerIdrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
unitsrequest property type/format changed fromnumber/tointeger/request-property-type-changed
- ●
the
unitsrequest property's exclusiveMaximum was set tofalserequest-property-exclusive-max-set
- ●
the
unitsrequest property's exclusiveMinimum was set tofalserequest-property-exclusive-min-set
- ●
the
idempotencyKeyrequest property's maxLength was set to256request-property-max-length-set
- ●
the
unitsrequest property's max was set to100000.00request-property-max-set
- ●
the
unitsrequest property's min was set to0.00request-property-min-set
- ○
added the new optional request property
descriptionnew-optional-request-property
- ○
added the new optional request property
durationnew-optional-request-property
- ○
added the new optional request property
errorMessagenew-optional-request-property
- ○
the
actionTyperequest property default valueapi_callwas addedrequest-property-default-value-added
- ○
the
outcomerequest property default valuesuccesswas addedrequest-property-default-value-added
- ○
the
unitsrequest property default value1was addedrequest-property-default-value-added
This revision also has 44 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added the new required request property
customerIdnew-required-request-property
- ●
removed the request property
actionrequest-property-removed
- ●
removed the request property
customActionKeyrequest-property-removed
- ●
removed the request property
customerRefrequest-property-removed
- ●
removed the request property
descriptionrequest-property-removed
- ●
removed the request property
productRefrequest-property-removed
- ●
removed the request property
toolNamerequest-property-removed
- ●
removed the optional property
outcomefrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
actionTypenew-optional-request-property
- ○
added the new optional request property
idempotencyKeynew-optional-request-property
- ○
added the new optional request property
outcomenew-optional-request-property
- ○
added the new optional request property
productReferencenew-optional-request-property
- ○
added the new optional request property
purchaseReferencenew-optional-request-property
- ○
added the new optional request property
timestampnew-optional-request-property
- ○
removed the non-success response with the status
404response-non-success-status-removed
- ○
added the optional property
referenceto the response with the200statusresponse-optional-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added the new required request property
customerRefnew-required-request-property
- ▲
added the new required request property
productRefnew-required-request-property
- ●
removed the request property
actionTyperequest-property-removed
- ●
removed the request property
customerIdrequest-property-removed
- ●
removed the request property
idempotencyKeyrequest-property-removed
- ●
removed the request property
outcomerequest-property-removed
- ●
removed the request property
productReferencerequest-property-removed
- ●
removed the request property
purchaseReferencerequest-property-removed
- ●
removed the request property
timestamprequest-property-removed
- ●
removed the optional property
referencefrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
actionnew-optional-request-property
- ○
added the new optional request property
customActionKeynew-optional-request-property
- ○
added the new optional request property
descriptionnew-optional-request-property
- ○
added the new optional request property
toolNamenew-optional-request-property
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the optional property
outcometo the response with the200statusresponse-optional-property-added
This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added the new required request property
customerIdnew-required-request-property
- ▲
the
timestamprequest property type/format changed fromstring/tostring/date-timerequest-property-type-changed
- ●
removed the request property
customerRefrequest-property-removed
- ●
removed the request property
meterNamerequest-property-removed
- ●
removed the request property
propertiesrequest-property-removed
- ●
removed the optional property
unitsfrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
actionTypenew-optional-request-property
- ○
added the new optional request property
idempotencyKeynew-optional-request-property
- ○
added the new optional request property
metadatanew-optional-request-property
- ○
added the new optional request property
outcomenew-optional-request-property
- ○
added the new optional request property
productReferencenew-optional-request-property
- ○
added the new optional request property
purchaseReferencenew-optional-request-property
- ○
added the optional property
referenceto the response with the200statusresponse-optional-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added the new required request property
meterNamenew-required-request-property
- ●
removed the request property
actionrequest-property-removed
- ●
removed the request property
customActionKeyrequest-property-removed
- ●
removed the request property
descriptionrequest-property-removed
- ●
removed the request property
metadatarequest-property-removed
- ●
removed the request property
productRefrequest-property-removed
- ●
removed the request property
toolNamerequest-property-removed
- ●
removed the optional property
outcomefrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
propertiesnew-optional-request-property
- ○
added the new optional request property
timestampnew-optional-request-property
- ○
removed the non-success response with the status
404response-non-success-status-removed
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲