Authorizations
Body
application/json
Response
Successful response
curl --request POST \
--url https://app.flowglad.com/api/v1/usage-events \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"usageEvent": {
"subscriptionId": "<string>",
"amount": 123,
"usageDate": 0,
"transactionId": "<string>",
"priceId": "<string>",
"properties": {}
}
}'{
"usageEvent": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"customerId": "<string>",
"subscriptionId": "<string>",
"usageMeterId": "<string>",
"billingPeriodId": "<string>",
"amount": 123,
"usageDate": 0,
"transactionId": "<string>",
"priceId": "<string>",
"properties": {}
}
}curl --request POST \
--url https://app.flowglad.com/api/v1/usage-events \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"usageEvent": {
"subscriptionId": "<string>",
"amount": 123,
"usageDate": 0,
"transactionId": "<string>",
"priceId": "<string>",
"properties": {}
}
}'{
"usageEvent": {
"id": "<string>",
"createdAt": 0,
"updatedAt": 0,
"livemode": true,
"customerId": "<string>",
"subscriptionId": "<string>",
"usageMeterId": "<string>",
"billingPeriodId": "<string>",
"amount": 123,
"usageDate": 0,
"transactionId": "<string>",
"priceId": "<string>",
"properties": {}
}
}Show child attributes
Successful response
Show child attributes
Was this page helpful?