Report usage events
Takes a batch of events. `202` means the batch is queued, not yet counted; a retry of the same batch under the same key answers the same id.
Authorization
bearer usage:writeA v1 API key; the scope named is the one the route needs.
In: header
Scope: usage:write
Header Parameters
Names the act so a retry under it lands on the stored answer (idempotency-key).
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/usage-events" \ -H "Content-Type: application/json" \ -d '{ "events": [ { "eventId": "string", "subscriptionId": "string", "eventName": "string", "timestamp": "2019-08-24T14:15:22Z" } ] }'{ "id": "string", "liveMode": true, "events": 1}Make a test purchase POST
Buys a published checkout in test mode with a test card, end to end: the order, its tax and its invoice, and the buyer’s receipt. Takes a test-mode key with `test-helpers:write`, a scope only a test-mode key can hold.
List usage events GET
Events one meter counted, a page at a time; `meterId` is required.