Skip to main content
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 '{
  "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "label": "<string>",
  "value": 123,
  "timestamp": "2023-11-07T05:31:56Z",
  "metadata": {}
}'

Authorizations

nadles-provider-key
string
header
required

API key provided in the admin portal

Path Parameters

subscriptionId
string
required

The ID of the subscription.

Body

application/json
  • object
  • object[]
label
string
required
value
integer
required
request_id
string<uuid> | null
timestamp
string<date-time> | null
metadata
object | null

Response

OK