curl --request POST \
--url https://api.example.com/v1/sdk/usages \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "<string>",
"metadata": {},
"timestamp": "2023-11-07T05:31:56Z",
"actionType": "api_call",
"units": 1,
"outcome": "success",
"productRef": "<string>",
"purchaseRef": "<string>",
"description": "<string>",
"errorMessage": "<string>",
"duration": 1,
"idempotencyKey": "<string>"
}
'{
"success": true,
"reference": "usage_A1B2C3D4"
}Records a usage event into the Usage timeseries collection.
curl --request POST \
--url https://api.example.com/v1/sdk/usages \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "<string>",
"metadata": {},
"timestamp": "2023-11-07T05:31:56Z",
"actionType": "api_call",
"units": 1,
"outcome": "success",
"productRef": "<string>",
"purchaseRef": "<string>",
"description": "<string>",
"errorMessage": "<string>",
"duration": 1,
"idempotencyKey": "<string>"
}
'{
"success": true,
"reference": "usage_A1B2C3D4"
}1transaction, api_call, hour, email, storage, custom 0 < x < 100000success, paywall, fail x > 0256