Skip to content

Recurring and on-demand payments

Create customer tokens with Kustom Checkout for subscriptions or on-demand charges. Learn how to store and charge a token and which methods are eligible.

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.

Ask Kustom merchant support to enable recurring on your account before creating customer tokens. Without it, creating an order with recurring: true returns 400 with error_code: BAD_VALUE. A token belongs to the merchant ID that created it. You can’t charge it under another merchant ID.

The initial checkout can offer cards, direct debit, Apple Pay and Google Pay. Eligibility, including for Klarna monthly invoice, depends on the market and merchant configuration. Financing methods are not offered on a new recurring checkout.

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.