# Integration overview

Build an embedded Kustom Checkout in five steps, from the order payload to payment confirmation. See the API calls between your server, browser and Kustom.

**Using an e-commerce platform?** [Check for a plugin](/partners/) first. This guide is for
developers building a custom integration.

You'll need [Playground credentials](/api/authentication/) and a server with public HTTPS
callback endpoints. To try the flow before building, use the [quickstart](/checkout/quickstart/).

## Build the checkout

1. [Order payload](/checkout/integrate/the-order/): cart items, amounts and callback URLs.
2. [Create an order](/checkout/integrate/create-order/): send the payload and store `order_id`.
3. [Render and update](/checkout/integrate/render-checkout-snippet/): display `html_snippet` and handle cart updates.
4. [Handle callbacks](/checkout/integrate/validation-callback/): choose which checks your server needs to make.
5. [Confirm the order](/checkout/integrate/confirmation-and-push/): record and acknowledge the order from both confirmation and push.

## Purchase flow

After you prepare the payload, a purchase follows this sequence:

1. **[Create an order](/checkout/integrate/create-order/)** — Send the cart and receive order_id and html_snippet.
   - Your server → Kustom: POST `/checkout/v3/orders` (keep API credentials on your server)
   - Kustom → Your server (response): order_id + html_snippet
2. **[Render the snippet](/checkout/integrate/render-checkout-snippet/)** — Display html_snippet on your checkout page.
   - Your server → Customer's browser: html_snippet
   - Customer's browser → Kustom: the checkout iframe (Kustom collects the payment details)
3. **[Validate](/checkout/integrate/validation-callback/)** (optional) — Check the order before the purchase completes.
   - Kustom → Your server: POST `your validation URL` (return 200 to approve)
4. **[Confirm and push](/checkout/integrate/confirmation-and-push/)** — Read, record and acknowledge the completed order.
   - Kustom → Customer's browser: redirect: your confirmation page
   - Kustom → Your server: POST `your push URL` (handle either route independently and idempotently)
   - Your server → Kustom: POST `acknowledge` (stops the push retries)

After authorization:

- [Order Management](/order-management/) (once authorized) — Capture payments, refund returns and cancel orders.
- [Finance](/finance/) (once settled) — Reconcile payouts and settlement reports.

For hosted checkout or a native app, see [integration models](/checkout/#integration-models)
and the [mobile SDK](/checkout/mobile-sdk/). See [order lifecycle](/basics/order-lifecycle/)
for order statuses.
