Authorizations
Body
application/json
Response
Successful response
curl --request POST \
--url https://app.flowglad.com/api/v1/usage-meters \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"usageMeter": {
"name": "<string>",
"pricingModelId": "<string>",
"slug": "<string>",
"aggregationType": "sum"
}
}'
{
"usageMeter": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"pricingModelId": "<string>",
"slug": "<string>",
"aggregationType": "sum"
}
}
curl --request POST \
--url https://app.flowglad.com/api/v1/usage-meters \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"usageMeter": {
"name": "<string>",
"pricingModelId": "<string>",
"slug": "<string>",
"aggregationType": "sum"
}
}'
{
"usageMeter": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"pricingModelId": "<string>",
"slug": "<string>",
"aggregationType": "sum"
}
}
Show child attributes
Successful response
Show child attributes
Was this page helpful?