Retry a subscription cycle's off-session charge
curl --request POST \ --url https://example.com/api/v1/orders/example/retry-subscription-charge \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "invoiceId": "example" }'Staff-triggered retry of one subscription cycle invoice’s off-session charge, scoped to an invoice belonging to this order’s own subscription. Returns the charge outcome as data — a decline or an unusable saved method is not an error response. When the customer has several cards and none is the default the outcome is card_choice_required and nothing is charged: choose a card and charge the invoice with POST /invoices/{id}/charge. A subscription whose collectionMethod is SEND_INVOICE has no charge to retry and returns 422. Requires the orders.retry_subscription_charge permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
The cycle invoice to retry; must belong to this order’s own subscription.
Example generated
{ "invoiceId": "example"}Responses
Section titled “Responses”The charge outcome.
object
object
Outcome of an off-session charge attempt: the card was charged; Stripe took the money but recording it failed (never retry); the customer has several cards and none was chosen; no usable saved card exists; the invoice was not payable; the card was declined; or Stripe could not be reached.
object
object
object
A card saved on a client’s Stripe customer.
object
Stripe’s card brand, e.g. visa, mastercard, amex; unknown when it has none.
Expiry month, 1 to 12.
True once the card’s expiry month has passed.
The card’s Stripe payment method id; send it as paymentMethodId to charge this card.
True for the card a charge uses when no card is named: the customer’s default, the card its Stripe subscription is charged with, or its only card.
object
object
object
object
Example
{ "data": { "result": { "kind": "charged" } }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC