Charge Subscription

Charge a customer’s saved card for an existing subscription. This is used to debit the full plan amount after a subscription has been created and the customer has a valid card authorization.

Charge Subscription Details

FieldData TypeRequiredDescription
subscriptionIdstringYesThe subscription ID to charge.

After collecting the necessary subscription details. Make a POST request to our subscription endpoint.

Note : Before making a post request, the secret key should be specified in the header.

-H "x-api-key: your_secret_key".
{{host}}/v1/subscriptions/charge
{
  "subscriptionId": "358yne17-306e-4f28-bd44-421952542549"
}
{
  "status": true,
  "message": "Success",
  "code": 200,
  "data": {}
}

Notes

  • The subscription must be active (i.e., the customer must have a saved card authorization).
  • If the subscription is inactive, you’ll get a 422 error.
  • The amount charged is the plan amount, not the verification amount.

What’s Next