API Documentation
Invoice Line Items
Invoices
Catalogs
API Keys
Subscriptions
PaymentMethods
UsageEvents
ProductFeatures
UsageMeters
Create UsageMeter
POST
/
api
/
v1
/
usage-meters
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>",
"catalogId": "<string>",
"aggregationType": "sum"
}
}'
{
"usageMeter": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"catalogId": "<string>",
"aggregationType": "sum"
}
}
Authorizations
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
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>",
"catalogId": "<string>",
"aggregationType": "sum"
}
}'
{
"usageMeter": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"organizationId": "<string>",
"name": "<string>",
"catalogId": "<string>",
"aggregationType": "sum"
}
}
Assistant
Responses are generated using AI and may contain mistakes.