# 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

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_incomplete` _(Checkout API)_ — **You.** 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. See [Create an order](/checkout/integrate/create-order/).
- `checkout_complete` — **The 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. See [Confirm the order](/checkout/integrate/confirmation-and-push/).
- `AUTHORIZED` _(Order Management API)_ — **Kustom.** 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.
  - `CANCELLED` — **You.** Cancel what you cannot fulfill. The reservation is released and nothing is charged.
  - `EXPIRED` — **Time.** An authorization lapses after about 28 days with no capture. See [Extend it](/order-management/extend-authorization/).
- `PART_CAPTURED → CAPTURED` — **You.** 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. See [Capture an order](/order-management/capture/).
- `CLOSED` — **Kustom.** Nothing is left to capture or refund, and Kustom closes the order.

## 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

- [Order Management](/order-management/) — capture, refund, cancel and amend orders
- [Confirm the order](/checkout/integrate/confirmation-and-push/) — handle confirmation and push, record the order and acknowledge it
- [What an order is](/basics/what-an-order-is/) — order fields, amounts and identifiers
