- Fundamentals
- Concepts
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.
Order statuses
Section titled “Order statuses”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.
checkout_incompleteYouCheckout APIPOST 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 →checkout_completeThe customerPresses 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 →AUTHORIZEDKustomOrder Management APIThe 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.
CANCELLEDYouCancel what you cannot fulfill. The reservation is released and nothing is charged.
EXPIREDTimeAn authorization lapses after about 28 days with no capture.Extend it →
PART_CAPTURED → CAPTUREDYouCapture 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 →CLOSEDKustomNothing is left to capture or refund, and Kustom closes the order.
Record the completed order
Section titled “Record the completed 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.
Related
Section titled “Related”- Order Management — capture, refund, cancel and amend orders
- Confirm the order — handle confirmation and push, record the order and acknowledge it
- What an order is — order fields, amounts and identifiers
This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.