Charges a customer for their managed subscription.
This API processes charges immediately and sends notifications to the customer. It is used for managed subscriptions that rely on seller actions for charges, reminders, and deactivation, with no internal subscription date tracking.
For large rebill volumes (e.g., January 1st annual renewals), we recommend to divide workloads into batches and call the endpoint sequentially, waiting for each batch to complete.
Failed charges: when a subscription can't be charged, the request returns 400. The error object contains subscription, which describes the failure, for example the decline reason (DECLINED_SOFT or DECLINED).
Retry limit: each store has a maximum number of charge retries, 4 by default. After the limit is reached, a charge returns 400 with "Max retries reached."
Testing: the test payment processor always approves charges. To test a failure, set simulate to failure and pass a reasonCode, for example INSUFFICIENT_FUNDS for a soft decline or ISSUER_DECLINE_HARD for a hard decline. Simulation works only on subscriptions created in test mode, the response action is subscription.charge.simulate, and simulated failures don't count toward the retry limit. A subscription can fail only once per retry window, so use a new test subscription for each scenario.