Publish credit usage
POST/v1/usage/credits/publish
Publishes prepaid credit usage (a credits product) per billing account × product × day, as a single record or a batch { records: [...] } of up to 100 items. The key (account, product, usage_date) is unique: publishing the same day again overwrites the record (overwritten: true), it never adds up. Batches with partial failures return 207 Multi-Status.
Request
Responses
- 200
- 207
- 400
- 401
- 403
- 404
- 429
- 500
Records processed (207 when part of the batch failed).
Records processed (207 when part of the batch failed).
Request body failed validation.
Missing or invalid bearer token.
Token is valid but lacks permission for this operation. With code insufficient_scope, details.required carries the one minimal set of scopes that, added to details.granted, would let the request through: the resource scope (billing/{resource}, or billing/all off the catalogue) then the bare verb — e.g. ["billing/customers", "delete"].
Resource not found in the current organization.
Rate limit exceeded.
Unexpected server error.