Usage
Submit a usage entry
Use this API to set either a prorated gauge or increment a final value counter for a customer.
To use this endpoint, ensure that you are using the v2/usage
API endpoint:
https://api.salesbricks.com/api/v2/usage
Authorizations
Use your Salesbricks API key to authenticate requests.
Body
application/json
The unique identifier for this usage entry transaction.
Example:
"12345"
The UUID of the Salesbricks subscription associated with the customer.
Example:
"00000000-0000-0000-0000-000000000000"
The UUID of the associated Usage Brick.
Example:
"00000000-0000-0000-0000-000000000000"
The value to set for the Brick.
Example:
1
Additional properties for the usage entry.
Example:
{
"source": "api",
"notes": "This is a test entry",
"region": "US"
}
The timestamp indicating when the operation occurs in ISO 8601 format.
Example:
"2024-09-16T10:15:30Z"
Response
201
application/json
Usage entry created successfully.
Example:
"Usage entry submitted successfully."