# Build a perfect integration

Plan your Kustom integration from checkout to settlement. Connect your systems, follow the implementation guides and verify the go-live checklist.

Plan the full order lifecycle: checkout, acknowledgment, capture, refunds and settlement.
Use the guides and checklist below to connect each step to your store and backend systems.

## Choose your integration

Using an e-commerce platform? Start with a plugin. The API guides are for developers building custom integrations.

- **Use a platform plugin** _(Platform plugins)_ — Connect your store without a custom API integration. Find a plugin for WooCommerce, Magento, PrestaShop, OXID or another supported platform. [Browse platform plugins](/partners/)
- **Build with the API** _(Live demo)_ — Create an order, render Checkout and confirm a test purchase in the interactive Playground tutorial. [Start the quickstart](/checkout/quickstart/)
- **Use a coding agent** _(Agents)_ — Set up the Kustom skill and Playground credentials. Your agent can read the docs as Markdown and create test orders. [Set up a coding agent](/basics/for-agents/)

## One order, four stages

Use the same `order_id` to track the purchase from checkout through settlement.

<ol class="kd-life not-content">
  <li class="kd-life__stage">
    <span class="kd-life__when">in the cart</span>
    <span class="kd-life__money">no order yet</span>
      <a class="kd-life__name" href="/checkout/surfaces/elements-overview/">Elements</a>
      <p class="kd-life__desc">Add payment displays and express buttons to product and cart pages. Kustom renders them and creates orders for express purchases.</p>
  </li>
  <li class="kd-life__stage">
    <span class="kd-life__when">at the checkout</span>
    <span class="kd-life__money">the customer pays</span>
      <a class="kd-life__name" href="/checkout/quickstart/">Checkout</a>
      <p class="kd-life__desc">Create the order, render the snippet and handle callbacks. Kustom collects customer details and authorizes the payment.</p>
  </li>
  <li class="kd-life__stage">
    <span class="kd-life__when">authorized</span>
    <span class="kd-life__money">the money is reserved</span>
    
      <a class="kd-life__name" href="/order-management/">Order Management</a>
      <p class="kd-life__desc">Acknowledge orders, capture payments when you ship, refund returns and manage cancellations or authorization extensions.</p>
  </li>
  <li class="kd-life__stage">
    <span class="kd-life__when">captured</span>
    <span class="kd-life__money">the money moves</span>
  </li>
  <li class="kd-life__stage">
    <span class="kd-life__when">settled</span>
    <span class="kd-life__money">in your account</span>
      <a class="kd-life__name" href="/finance/">Finance</a>
      <p class="kd-life__desc">Reconcile settlement reports against your orders and bank payouts.</p>
  </li>
</ol>
<p class="kd-life__foot not-content">Choose an <a href="/checkout/#integration-models">integration model</a> or <a href="/partners/">platform plugin</a> to handle these stages.</p>

## Where Kustom sits in your architecture

Send each API call from the system that handles the corresponding event: capture when a
shipment leaves, refund when a return is approved and reconcile when a payout arrives.
This works with a single backend or separate storefront, OMS, ERP and finance systems.

Store the Kustom `order_id` alongside your own order number in each system. Send your order
number as `merchant_reference1` and route [webhooks](/basics/conventions/webhooks/) to the
system that needs to act.

## What a perfect integration does

Review the requirements for each stage and follow the linked guides.

- **1. Before the checkout** _(no order yet)_ — Express buttons on product and cart pages; Payment method display before the customer commits. [Adding Elements](/checkout/surfaces/elements/) · [Element catalogue](/checkout/surfaces/elements-catalogue/)
- **2. Taking the payment** _(the customer pays)_ — One order per cart, updated — never a second one; One line per item, with product_url and image_url; Discounts, gift cards and shipping as their own lines; Locale, country, currency and your own terms URL; Delivery options: static, or live from your TMS; Push and redirect both record the order — push wins. [Integration overview](/checkout/how-it-works/) · [Sell in multiple markets](/checkout/use-cases/multi-market/)
- **3. After the payment** _(the money is reserved)_ — Acknowledge every order once your record exists; Capture as you ship, with the lines it covers; Tracking on the capture, not the order; Refunds allocated to their capture; Cancel what you cannot fulfill; Extend the authorization before it expires. [Order Management](/order-management/) · [Capture an order](/order-management/capture/) · [Refunds](/order-management/refunds/)
- **4. Getting paid** _(in your account)_ — merchant_reference1 carries your order number; Settlement reports by API or SFTP, not by hand; Bank payment reference joins statement to report. [Settlements](/finance/) · [Your own data on an order](/basics/conventions/merchant-data/) · [Junipeer](/partners/junipeer/)
- **Staying in sync** _(every stage)_ — Events by webhook, not polling; Every delivery signature-verified and deduplicated; Your record is the truth for the business, Kustom's for the money. [Webhooks](/basics/conventions/webhooks/) · [Update or cancel an order](/order-management/update-and-cancel/)
- **Running it** _(every stage)_ — Playground and production never mixed; Eight go-live cases as the regression suite; Unknown fields ignored, every enum defaulted, keyed on error_code; Every Order Management write keyed with Kustom-Idempotency-Key. [Test data](/basics/test-data/) · [API stability](/basics/conventions/stability/) · [Troubleshooting](/checkout/troubleshooting/)

## The checklist

Verify these requirements before going live.

- [ ] Every cart change updates the existing order — one order per purchase in the Portal — [Render and update](/checkout/integrate/render-checkout-snippet/)
- [ ] Push and confirmation both create the same order record, once — [Confirm the order](/checkout/integrate/confirmation-and-push/)
- [ ] Every order is acknowledged — [Update or cancel an order](/order-management/update-and-cancel/)
- [ ] Every shipment is a capture, and every capture carries its order lines — [Capture an order](/order-management/capture/)
- [ ] Every refund is allocated to a capture — [Refunds](/order-management/refunds/)
- [ ] No authorization you meant to fulfill expires uncaptured — [Extend authorization](/order-management/extend-authorization/)
- [ ] merchant_reference1 on every order matches an order in your system — [Your own data on an order](/basics/conventions/merchant-data/)
- [ ] Settlement reports reconcile without manual matching — [Settlements](/finance/)
- [ ] Events arrive by webhook, verified and deduplicated — [Webhooks](/basics/conventions/webhooks/)
- [ ] The eight go-live cases pass in Playground on every release — [End-to-end test cases](/basics/test-data/#end-to-end-test-cases)

## Where the work is

  Elements

Add express buttons and payment displays to your store.

[Adding Elements](/checkout/surfaces/elements/)

  Checkout

Create orders, render Checkout and handle callbacks and confirmation.

[Start with Checkout](/checkout/how-it-works/)

  Order Management

Acknowledge orders, capture payments, issue refunds and manage authorizations.

[Order Management](/order-management/)

  Finance

Check payout schedules and reconcile settlement reports.

[Settlements](/finance/)

  Partners

Find platform plugins and shipping or accounting integrations.

[Browse platform plugins](/partners/)

  API reference

Look up endpoints, fields, authentication, errors and API conventions.

[API reference](/api/)

## Related

- [How Kustom Checkout works](/basics/how-kustom-works/) — the four calls behind every direct integration
- [What an order is](/basics/what-an-order-is/) — the one object every stage shares
- [Order lifecycle](/basics/order-lifecycle/) — the statuses underneath this page
- [Sell to businesses (B2B)](/checkout/use-cases/b2b/), [Recurring and on-demand payments](/checkout/recurring/), [Age verification](/checkout/use-cases/age-verification/) and [Upsell](/checkout/use-cases/confirmation-page-upsell/) — features to add to the checkout
- [Building with a coding agent](/basics/for-agents/) — hand this page and its checklist to an agent
