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>"
}
]
}
'Same persistence rules as POST /sdk/usages for each item: validate batch first, then one insert per event.
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>"
}
]
}
'1 - 1000 elementsShow child attributes
Bulk usage events processed