Usage
Record usage event
Changed onRecords bill-in-arrears usage for a configured package usage metric on a customer order. The authenticated API key must own the order, and name must match a usage metric configured on the order's package.
post/meter-event
Request
- Base URLhttps://demo.onlinebillingform.com/api/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Usage event recorded
Example response
{
"data": {
"usage": {
"threshold": {
"level": "warning",
"message": "Free usage is below 10%."
}
},
"meter": {
"usage": {
"threshold": {
"level": "warning",
"message": "Free usage is below 10%."
}
}
}
}
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info