Create usage events for a subscription
curl --request POST \
--url https://provider.api.nadles.com/v0/subscriptions/{subscriptionId}/usage-events/ \
--header 'Content-Type: application/json' \
--header 'nadles-provider-key: <api-key>' \
--data '
{
"label": "<string>",
"value": 123,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"metadata": {}
}
'API Reference
Create usage events for a subscription
POST
/
subscriptions
/
{subscriptionId}
/
usage-events
Create usage events for a subscription
curl --request POST \
--url https://provider.api.nadles.com/v0/subscriptions/{subscriptionId}/usage-events/ \
--header 'Content-Type: application/json' \
--header 'nadles-provider-key: <api-key>' \
--data '
{
"label": "<string>",
"value": 123,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"metadata": {}
}
'Authorizations
API key provided in the admin portal
Path Parameters
The ID of the subscription.
Body
application/json
Response
OK
⌘I