API Reference
Overview
Quick Start
API Authentication
API Error Codes
APIs
Checkout API
Checkout API
Order Details
User History
Prices
Product API
Product API
Coupons
Products
Licenses
Pay Links
Transactions
Payments
Subscription API
Subscription API
Plans
Users
Modifiers
Payments
One-off Charges
Create One-off Charge
post
Alert API
Alert API
Webhooks

Create One-off Charge

post
/2.0/subscription/{id}/charge

This feature is useful for scenarios where buyers need to purchase add-ons on top of a recurring plan.

For example, Charges API provides you with the flexibility to charge buyers, with existing subscriptions, right away for one-off top-ups, rather than waiting for the end of their current billing cycle.

Example Request

preparing...
  • All one-off charges via the API will be made in full i.e. no prorated credits, no price modifiers, and no coupon discounts
  • The buyer will be invoiced and charged immediately
  • Charges are independent of the existing billing cycle i.e. they do not affect any existing due payments or future invoices
  • There is no built-in dunning for the Charges API, so you will need to manage error handling and retries on your own
  • Charges API inherits the user subscription's VAT settings (configurable from the Sales Tax Settings page in the Seller Dashboard)
  • You can only charge a card up to 5 times an hour (inclusive of scheduled subscription payments and one-off charges)
  • Subscriptions in a paused state cannot be charged until it is restarted.
id
integer
required

Subscription ID

vendor_id
integer
required

The vendor ID identifies your seller account. This can be found in Developer Tools > Authentication.

>= 1
vendor_auth_code
string
required

The vendor auth code is a private API key for authenticating API requests. This key should never be used in client side code or shared publicly. This can be found in Developer Tools > Authentication.

Match pattern:
[0-9a-f]+
amount
number
required

The amount for the one-off charge.Show all...

charge_name
string
required

The name of the one-off charge - this will be visible to the buyers and will show up in the invoice as a line item, so that a buyer can always refer back to the invoice to know how much they were charged and what for.Show all...

<= 50 characters
Parameters
:
Body
:
:
:
: