X-SALESBRICKS-IDEMPOTENT-OPERATION-KEY
header in your requests to Salesbricks.
X-SALESBRICKS-IDEMPOTENT-OPERATION-KEY
.
400
error in response.
409
to indicate a conflict.
SalesbricksUsageReportingRequests
in your database, which could look something like:
DB column name | Description |
---|---|
salesbricks_idempotent_key (pk, uuid) | A UUID which is your idempotency key value, that you generate when you make the usage request to Salesbricks |
internal_usage_id (str) | The ID you use to identify usage internally in your system |
created_at (optional, timestamp) | Timestamp at which you make the request to Salesbricks, for debugging |
response_code (optional, int) | Response code you received from Salesbricks, for debugging |
response (optional, jsonb str) | Response payload you received from Salesbricks, for debugging |
SalesbricksUsageReportingRequests
storing the created_at
timestamp, internal_usage_id
and salesbricks_idempotent_key
.salesbricks_idempotent_key
in the X-SALESBRICKS-IDEMPOTENT-OPERATION-KEY
header.SalesbricksUsageReportingRequests
table.400
, in which you sent an invalid request where the usage was not successfully reported, you can adjust the sending code to send the correct payload.
Then, retry the steps above, generating a new salesbricks_idempotent_key
for the new request.