v2

latestOpenAPI 3.0.12026-07-262352981007.0 KB
Subscriptions

Cancel usage charge

Cancels (refunds) a usage charge. The cancellation is processed asynchronously.

Important considerations:

  • Only charges in the 'Succeeded' status can be canceled
  • Charges can only be canceled within 24 hours of the charge being created
  • The caller must be authorized for usage billing on the charged product
post/subscriptions/{subscriptionId}/charges/{id}/cancel

Path parameters

subscriptionIdstring required

The unique identifier of the usage subscription

idstring uuid required

The unique identifier of the usage charge to cancel

Request body

reasonstring nullable

Response

When request is accepted. Returns a 'Link' object to the charge.

idstring nullable
hrefstring nullable
relationstring nullable
methodstring nullable