curl --request PATCH \
--url https://api.paygentic.io/v0/billableMetrics/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"unit": "<string>"
}'
{
"id": "<string>",
"object": "billableMetric",
"name": "<string>",
"description": "<string>",
"merchantId": "<string>",
"unit": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"aggregation": "SUM",
"productId": "<string>"
}
curl --request PATCH \
--url https://api.paygentic.io/v0/billableMetrics/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"unit": "<string>"
}'
{
"id": "<string>",
"object": "billableMetric",
"name": "<string>",
"description": "<string>",
"merchantId": "<string>",
"unit": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"aggregation": "SUM",
"productId": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Unique identifier for a billable metric
Billable metric updated successfully
The response is of type object
.