Skip to main content
POST
Submit a usage entry
The v2/usage REST API is designed to handle both setting a prorated gauge and incrementing a final value counter for a specific customer in Salesbricks.
To utilize this endpoint, ensure that you are using the v2/usage API endpoint:https://api.salesbricks.com/api/v2/usage

Request: POST /v2/usage

Parameters

Response

  • 201 Created - if the usage entry is successfully submitted.
  • 400 Bad Request - if validation fails or required fields are missing.

Example: Setting a Prorated Gauge

Example: Incrementing a Final Value Counter

DELETE /v2/usage - Deleting a Usage Entry

To delete a usage entry, provide the transaction_id in the request body.

Parameters

Response

  • 200 OK - if the usage entry is successfully deleted.
  • 404 Not Found - if the usage entry does not exist.

PATCH /v2/usage - Updating a Usage Entry

To update a usage entry, provide the transaction_id and the fields to be updated.

Parameters

Response

  • 200 OK - if the usage entry is successfully updated.
  • 400 Bad Request - if validation fails or required fields are missing.
  • 404 Not Found - if the usage entry does not exist.