Create a new charge
charges
Create a new charge
POST
Create a new charge
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The API key to access the admin API
Body
application/json
The name of the charge
Example:
"Extra Storage"
Unique code identifier for the charge
Example:
"extra_storage"
The price of the charge
Required range:
x >= 0Example:
1000
The currency for the charge
Example:
"USD"
The entitlement code this charge is associated with
Example:
"EXTRA_STORAGE_ENTITLEMENT"
Description of the charge
Example:
"Additional storage space for your account"
Optional overrides for billable metric configuration
Example:
{
"fieldName": "storage_gb",
"aggregatorType": "sum",
"description": "Total storage used in GB"
}Response
Charge created successfully