Skip to main content

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​

Records processed (207 when part of the batch failed).