Skip to content

Recurring and on-demand payments

Create customer tokens with Kustom Checkout and use them for subscriptions or on-demand charges. Learn the API flow, account requirements and storage rules.

Use a customer token to charge for subscriptions or on-demand purchases after the customer leaves Checkout. Create the first order with recurring: true. When the customer completes it, store the token and use it for later server-side charges. Your system controls when each charge happens; the token has no billing schedule.

The customer authenticates during the initial checkout. Later charges are initiated by your server without a checkout or redirect. See Charge a customer token for retry rules and handling tokens that can no longer be charged.

Use a token for:

  • A schedule you run — a fixed commitment billed on your own cadence.
  • On-demand — a charge whenever your own logic calls for one: a top-up, a usage overage or a re-order.

Your system sends each charge request with its amount.

StepCallWhat it doesGuide
1. Create the tokenPOST /checkout/v3/ordersThe customer’s first purchase, flagged recurring: true. Once it’s completed, read the order for its recurring_token.Create a customer token
2. Charge itPOST /customer-token/v1/tokens/{customerToken}/orderEvery charge after the first. Creates a real order, with no checkout and no customer present.Charge a customer token
3. Capture, if neededPOST /ordermanagement/v1/orders/{order_id}/capturesOnly for charges made without auto_capture: true.Capture an order

Every token call is in the Customer Token API reference, including reading a token and disabling it.

Check these requirements before integrating:

  • Flagging an order as recurring removes the financing payment methods. The customer sees a smaller set of options than on an ordinary order.
  • A token belongs to the merchant ID that created it. You can’t create a token under one MID and charge it under another.

Ask Kustom merchant support to enable recurring on your account. Without it, creating an order with recurring: true returns 400 with error_code: BAD_VALUE.

A customer token authorizes charges. Encrypt it at rest, keep it out of logs and URLs and associate it with exactly one customer in your database.

This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.