Skip to content

Order lifecycle

Track Kustom order statuses from checkout to settlement. Learn when to record an order, capture a payment and handle refunds.

When a customer completes checkout, Kustom authorizes the payment. Capture the payment through Order Management when you fulfill the order. Settlement pays the captured funds to your account.

The Checkout API tracks the checkout session. After authorization, the Order Management API tracks captures, refunds and cancellations. Both APIs use the same order_id.

  1. checkout_incompleteYouCheckout API

    POST the cart and render the snippet. The customer is in the checkout, and you can still change the order by POSTing any subset of its fields.

    Create an order →
  2. checkout_completeThe customer

    Presses Pay order. Kustom redirects their browser to your confirmation URL and, separately, calls your push URL server-to-server. The order is read-only from here.

    Confirm the order →
  3. AUTHORIZEDKustomOrder Management API

    The payment method authorizes: the money is reserved, not moved, and none of it has reached you. Acknowledge the order once your own record of it exists.

    • CANCELLEDYou

      Cancel what you cannot fulfill. The reservation is released and nothing is charged.

    • EXPIREDTime

      An authorization lapses after about 28 days with no capture.Extend it →

  4. PART_CAPTURED → CAPTUREDYou

    Capture as you ship, in one call or several. This is where the money moves.

    Refunding does not change the status: it stays CAPTURED and the refunded amount grows.

    Capture an order →
  5. CLOSEDKustom

    Nothing is left to capture or refund, and Kustom closes the order.

Handle both the confirmation redirect and the server-to-server push. Each handler must read the order, verify checkout_complete, record it once and acknowledge it. The push handler must work even if the customer closes the tab before reaching your confirmation page.

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