# 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](/checkout/recurring/charging-a-token/)
for retry rules and handling tokens that can no longer be charged.

## What a token is charged for

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.

## Which API does what

| Step | Call | What it does | Guide |
|---|---|---|---|
| **1. Create the token** | [`POST /checkout/v3/orders`](/api/checkout/create-order-merchant/) | The customer's first purchase, flagged `recurring: true`. Once it's completed, [read the order](/api/checkout/read-order-merchant/) for its `recurring_token`. | [Create a customer token](/checkout/recurring/minting-a-token/) |
| **2. Charge it** | [`POST /customer-token/v1/tokens/{customerToken}/order`](/api/customer-tokens/charge-token/) | Every charge after the first. Creates a real order, with no checkout and no customer present. | [Charge a customer token](/checkout/recurring/charging-a-token/) |
| **3. Capture, if needed** | [`POST /ordermanagement/v1/orders/{order_id}/captures`](/api/order-management/capture-order/) | Only for charges made without `auto_capture: true`. | [Capture an order](/order-management/capture/) |

Every token call is in the [Customer Token API reference](/api/customer-tokens/), including
reading a token and disabling it.

## What this costs you at the checkout

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`.

## Treat the token as a credential

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.

## Related

- [Create a customer token](/checkout/recurring/minting-a-token/) — the first purchase
- [Charging a token & retries](/checkout/recurring/charging-a-token/) — every purchase after it
- [Saved payment methods](/checkout/saved-payment-methods/) — customer-initiated repeat purchases
- [Order lines and tax](/checkout/tax-and-order-lines/) — what Kustom validates on every line
- [Migrate from Vipps Recurring](/checkout/recurring/migrating-from-vipps-recurring/) — moving Vipps MobilePay agreements to customer tokens
