Create usage charge
Changed onCreates a one-off charge (quantity 1) against a usage product the account is subscribed to. The charge is processed asynchronously.
Important considerations:
- The usage product must already be subscribed on the account's usage subscription
- The price must exist on the usage product and be active
- Charges are rejected while the usage subscription is overdue (past due, unpaid, canceled, or incomplete-expired)
- The caller must be authorized for usage billing on the product
Request
- Base URLhttps://api.smokeball.com
- URLhttps://api.smokeball.com/subscriptions/{subscriptionId}/usages/{usageId}/charges
- AuthAPI key in header x-api-key and API key in header Authorization
Path parameters
The unique identifier of the usage subscription
The unique identifier of the usage product to charge
Request body
Response
When request is accepted. Returns a 'Link' object to the created charge.
Changes
- info
added the non-success response with the status
- info
- info
the request property
////became nullable (media type: application/json-patch+json) - info
the request property
////became nullable (media type: application/json) - info
the request property
////became nullable (media type: application/*+json) - info
the request property
////became optional (media type: application/json-patch+json) - info
the request property
////became optional (media type: application/json) - info
the request property
////became optional (media type: application/*+json)
- info