Credit unit
Configure the shop credit unit and immutable currency rates.
Endpoints
get/usage/credit_unitGet credit unitpost/usage/credit_unitSave credit unitget/usage/credit_unit/ratesList currency ratespost/usage/credit_unit/ratesPublish currency rateget/usage/credit_unit/rates/{rate_id}Get currency rate
Guides that use it
Send usage events POST
Sends a batch of 1 to 1,000 usage events from your server. Use a usage key, not a Comecero API token. The key sets the account and test or live mode. The whole JSON body is at most 1 MiB. Read every result: HTTP 200 can include rejected or conflicting events. Resend only retry results, or safely resend the same batch with the same operation ids. Billing uses the counted events; an event does not itself charge a customer. This route sends no CORS headers. See [Send usage](/docs/usage-billing/send-usage).
Get credit unit GET
Reads saved credit state. Missing projections return unavailable, never a zero estimate. Secret and trusted tokens require read permissions.