Skip to main content
POST
/
v1
/
sdk
/
usages
/
bulk
Record bulk usage events
curl --request POST \
  --url https://api.example.com/v1/sdk/usages/bulk \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    {
      "customerRef": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "actionType": "api_call",
      "units": 1,
      "outcome": "success",
      "productRef": "<string>",
      "purchaseRef": "<string>",
      "description": "<string>",
      "errorMessage": "<string>",
      "metadata": {},
      "duration": 1,
      "idempotencyKey": "<string>"
    }
  ]
}
'

Body

application/json
events
object[]
required
Required array length: 1 - 1000 elements

Response

Bulk usage events processed