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
Section titled “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
Connect your store without a custom API integration. Find a plugin for WooCommerce, Magento, PrestaShop, OXID or another supported platform.
Build with the API
Create an order, render Checkout and confirm a test purchase in the interactive Playground tutorial.
Use a coding agent
Set up the Kustom skill and Playground credentials. Your agent can read the docs as Markdown and create test orders.
One order, four stages
Section titled “One order, four stages”Use the same order_id to track the purchase from checkout through settlement.
- in the cartno order yetElements
Add payment displays and express buttons to product and cart pages. Kustom renders them and creates orders for express purchases.
- at the checkoutthe customer paysCheckout
Create the order, render the snippet and handle callbacks. Kustom collects customer details and authorizes the payment.
- authorizedthe money is reservedOrder Management
Acknowledge orders, capture payments when you ship, refund returns and manage cancellations or authorization extensions.
- capturedthe money moves
- settledin your accountFinance
Reconcile settlement reports against your orders and bank payouts.
Choose an integration model or platform plugin to handle these stages.
Where Kustom sits in your architecture
Section titled “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 to the
system that needs to act.
What a perfect integration does
Section titled “What a perfect integration does”Review the requirements for each stage and follow the linked guides.
1Before the checkout
- Express buttons on product and cart pages
- Payment method display before the customer commits
2Taking the payment
- 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
3After the payment
- 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
4Getting paid
- merchant_reference1 carries your order number
- Settlement reports by API or SFTP, not by hand
- Bank payment reference joins statement to report
Staying in sync
- Events by webhook, not polling
- Every delivery signature-verified and deduplicated
- Your record is the truth for the business, Kustom's for the money
Running it
- 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
The checklist
Section titled “The checklist”Verify these requirements before going live.
- Render and update
- Confirm the order
- Update or cancel an order
- Capture an order
- Refunds
- Extend authorization
- Your own data on an order
- Settlements
- Webhooks
- End-to-end test cases
Where the work is
Section titled “Where the work is”Elements
Add express buttons and payment displays to your store.
Checkout
Create orders, render Checkout and handle callbacks and confirmation.
Order Management
Acknowledge orders, capture payments, issue refunds and manage authorizations.
Finance
Check payout schedules and reconcile settlement reports.
Partners
Find platform plugins and shipping or accounting integrations.
API reference
Look up endpoints, fields, authentication, errors and API conventions.
Related
Section titled “Related”- How Kustom Checkout works — the four calls behind every direct integration
- What an order is — the one object every stage shares
- Order lifecycle — the statuses underneath this page
- Sell to businesses (B2B), Recurring and on-demand payments, Age verification and Upsell — features to add to the checkout
- Building with a coding agent — hand this page and its checklist to an agent
This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.