# Kustom Docs > Documentation for integrating Kustom Checkout, with a live Playground on every page. ## Instructions for agents - This product is **Kustom Checkout**. It was formerly Klarna Checkout, so a few identifiers still carry the old name. The current ones are listed below; treat everything else Klarna-branded as legacy and do not emit it. - The API host is `api.kustom.co`, and `api.playground.kustom.co` for the playground. - `window._klarnaCheckout` is the real runtime global the checkout snippet exposes, and it is how you suspend and resume the iframe around an order update. The name is a legacy of the platform's Klarna origins. Use it; there is no other handle. - Send `Kustom-Idempotency-Key` on every Order Management `POST` and `PATCH`. The OpenAPI document lists it under its older name, `Klarna-Idempotency-Key`; the API accepts both as the same key, so send one, not both. The header exists on the Order Management API only: Checkout calls, including `POST /checkout/v3/orders`, take no idempotency key, so do not add one there or retry an ambiguous `5xx` as if they did. - Klarna is also a real payment method inside Kustom Checkout. That is not residue. - Extra merchant data (EMD) is optional, and a new integration does not need it. When you do send it, it goes in `attachment`: `content_type` is `application/vnd.klarna.internal.emd-v2+json` (a current identifier, like `window._klarnaCheckout`) and `body` is the EMD JSON serialized to a string. - One order object runs through the whole flow. Where a page appears to give it another name, prefer the name used in the OpenAPI reference. - Amounts are in minor units. `25000` is 250.00 SEK, never 25000 SEK. - Every page here is available as Markdown: append `.md` to any path. That includes every page of the API reference -- an operation, an API overview, or a tag. - The OpenAPI documents themselves are at `/openapi/.yaml`, listed under API reference below. Read one of those when you are generating a client; read the `.md` pages when you are answering a question. ## Fundamentals - [Fundamentals](https://docs.kustom.co/basics.md): Learn the concepts shared across Kustom APIs: orders, authentication, environments and the order lifecycle. Understand what your integration handles. - [Build a perfect integration](https://docs.kustom.co/basics/perfect-integration.md): Plan your Kustom integration from checkout to settlement. Connect your systems, follow the implementation guides and verify the go-live checklist. - [Building with a coding agent](https://docs.kustom.co/basics/for-agents.md): Set up Claude Code, Cursor or Codex to build a Kustom Checkout integration — its own Playground API credentials, the Kustom skill and the Markdown it reads. - [Test data](https://docs.kustom.co/basics/test-data.md): Sample customers and payment details for every market in the Kustom playground, plus eight end-to-end test cases that prove an integration's order lifecycle closes before go-live. Never test with real personal data. - [How Kustom Checkout works](https://docs.kustom.co/basics/how-kustom-works.md): The four calls behind every Kustom Checkout integration, what your site is responsible for at each one and how to tell whether you should be writing this code at all or installing a plugin instead. - [What an order is](https://docs.kustom.co/basics/what-an-order-is.md): The one object every Kustom product shares — how amounts are written, why order lines must add up, what the two html_snippets are for and which fields the order carries from cart to refund. - [Order lifecycle](https://docs.kustom.co/basics/order-lifecycle.md): Track Kustom order statuses from checkout to settlement. Learn when to record an order, capture a payment and handle refunds. - [Webhooks](https://docs.kustom.co/basics/conventions/webhooks.md): Receive Kustom events by HTTPS POST instead of polling — the event types, the slim payload shape, Standard Webhooks signature verification, secret rotation and why your handler must be idempotent. - [Your own data on an order](https://docs.kustom.co/basics/conventions/merchant-data.md): The three places you can put your own data on a Kustom order — merchant_reference1 and 2, merchant_data on the order and each line, and the extra merchant data attachment used for travel, events and marketplaces. - [API stability and service levels](https://docs.kustom.co/basics/conventions/stability.md): What Kustom may change in an API without bumping its version, how to write a client that survives those changes and the latency, availability and maintenance objectives Kustom publishes for its integration APIs. ## Checkout - [Checkout](https://docs.kustom.co/checkout.md): Add Kustom Checkout to your store with a platform plugin, embedded checkout, hosted payment page or mobile SDK. Start with the live demo or integration guide. - [Checkout in 15 minutes](https://docs.kustom.co/checkout/quickstart.md): Build an embedded Kustom Checkout with live Playground examples. Create an order, render the snippet, update the cart and handle confirmation and push. - [Integration overview](https://docs.kustom.co/checkout/how-it-works.md): 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. - [Order payload](https://docs.kustom.co/checkout/integrate/the-order.md): Build a Kustom Checkout order payload with itemized lines, valid amounts, merchant URLs, references and options for your integration. - [Create an order](https://docs.kustom.co/checkout/integrate/create-order.md): Create a Kustom Checkout order with POST /checkout/v3/orders, store its order_id and reuse the order when the customer returns. - [Render and update](https://docs.kustom.co/checkout/integrate/render-checkout-snippet.md): Embed the Kustom Checkout html_snippet, mount it in a single-page app and keep the cart in sync with suspend, update and resume. - [Handle callbacks](https://docs.kustom.co/checkout/integrate/validation-callback.md): Choose Kustom Checkout callbacks for address, shipping and validation. Handle the ten-second validation deadline and configure fail-closed behavior. - [Confirm the order](https://docs.kustom.co/checkout/integrate/confirmation-and-push.md): Handle Kustom Checkout confirmation and push callbacks, read and acknowledge orders idempotently and recover completed orders after missed callbacks. - [Checkout options](https://docs.kustom.co/checkout/checkout-options.md): Configure Kustom Checkout branding, VAT display, delivery notes, custom checkboxes and payment-only mode through the order options block. - [Order lines and tax](https://docs.kustom.co/checkout/tax-and-order-lines.md): Check Kustom Checkout order line fields, tax calculations and sales_tax lines. Recalculate tax after address changes and anonymize sensitive product names. - [Checkout URLs and callbacks](https://docs.kustom.co/checkout/integrate/merchant-urls.md): Configure required and optional merchant_urls for Kustom Checkout, including HTTPS callback endpoints and links to your terms. - [Billie](https://docs.kustom.co/checkout/billie.md): Offer Billie invoice payments to business customers in Kustom Checkout. Check supported markets, 30-day payment terms and account setup. - [PayPal](https://docs.kustom.co/checkout/paypal.md): Connect a PayPal Business account to Kustom Checkout. Compare capture models, reconcile transactions and manage PayPal payouts and disputes. - [External payment methods](https://docs.kustom.co/checkout/external-payment-methods.md): Add external payment methods to Kustom Checkout. Set redirect URLs, country filters and labels, and check supported method names and integration requirements. - [Shipping options in the checkout](https://docs.kustom.co/checkout/shipping.md): Offer delivery choices in Kustom Checkout: live options from your TMS through the Shipping Assistant, or a fixed shipping_options list sent with the order. - [Build a TMS integration](https://docs.kustom.co/checkout/shipping/shipping-assistant.md): Build the HTTP endpoints Kustom Shipping Assistant calls to authenticate, fetch delivery options and reserve shipments in your TMS. - [Authenticate the Shipping Assistant's calls](https://docs.kustom.co/checkout/shipping/shipping-assistant/authenticate.md): Implement POST /auth for the Kustom Shipping Assistant: verify the sha256 nonce digest, return a bearer token and answer 401 to make Kustom fetch a new one. - [Return shipping options to the checkout](https://docs.kustom.co/checkout/shipping/shipping-assistant/shipping-options.md): Implement POST /shippingoptions for the Kustom Shipping Assistant: required fields and how to build home delivery, pickup point, time slot and add-on options. - [Reserve and update the shipment](https://docs.kustom.co/checkout/shipping/shipping-assistant/reserve-shipment.md): Implement POST /shipment and PUT /shipment/{shipment_id} for the Kustom Shipping Assistant: reserve on Buy, update on a retry, refuse with failure_reason. - [Confirm the shipment](https://docs.kustom.co/checkout/shipping/shipping-assistant/after-purchase.md): Handle POST /shipment/{shipment_id}/confirm to confirm Shipping Assistant reservations after purchase. Includes response codes and failure behavior. - [Timeouts, fallback and testing your TMS](https://docs.kustom.co/checkout/shipping/shipping-assistant/errors-and-testing.md): What the customer sees when a Shipping Assistant call to your TMS fails or times out, how fallback works and how to test your integration in playground. - [Kustom Elements overview](https://docs.kustom.co/checkout/surfaces/elements-overview.md): Add Kustom payment and delivery method displays or express payment buttons to product and cart pages. Compare Elements and their setup requirements. - [Install Kustom Elements](https://docs.kustom.co/checkout/surfaces/elements.md): Install Kustom Elements with the Portal script, register your domains and add payment, delivery or express button tags to your pages. - [Add express buttons](https://docs.kustom.co/checkout/surfaces/express-buttons.md): Add Apple Pay, Google Pay and PayPal express buttons to a product or cart page, and choose who creates the order — createOrder, orderId or orderLines. - [Element catalogue](https://docs.kustom.co/checkout/surfaces/elements-catalogue.md): Reference for Kustom Element tags, locale values and attributes. Configure payment and delivery displays, include and exclude filters or express buttons. - [Element method identifiers](https://docs.kustom.co/checkout/surfaces/supported-methods.md): Look up the 57 payment method and 92 delivery carrier identifiers accepted by include and exclude on Kustom Elements. Values are case-sensitive. - [Discounts, gift cards and store credit](https://docs.kustom.co/checkout/use-cases/discounts-and-gift-cards.md): Represent discounts, multi-buy offers, gift cards and store credit in Kustom Checkout order lines, with the required amounts and VAT calculations. - [Sell in multiple markets](https://docs.kustom.co/checkout/use-cases/multi-market.md): Configure Kustom Checkout countries, currencies and locales for one or several markets, including supported languages and locale fallback rules. - [Recurring and on-demand payments](https://docs.kustom.co/checkout/recurring.md): Create customer tokens with Kustom Checkout and use them for subscriptions or on-demand charges. Learn the API flow, account requirements and storage rules. - [Create a customer token](https://docs.kustom.co/checkout/recurring/minting-a-token.md): Create a reusable Kustom customer token by setting recurring on a Checkout order, completing the purchase and storing the recurring_token from the order. - [Charge a customer token](https://docs.kustom.co/checkout/recurring/charging-a-token.md): Charge a stored customer token through the Customer Token API, with no checkout and no customer present, and tell declines worth retrying from permanent ones. - [Saved payment methods](https://docs.kustom.co/checkout/saved-payment-methods.md): Read, display and disable saved payment methods using Kustom customer tokens. Check token status, masked card details, errors and cancellation behavior. - [Sell to businesses (B2B)](https://docs.kustom.co/checkout/use-cases/b2b.md): Offer business checkout with organization details, separate billing and shipping addresses, card payments and Billie invoices in supported markets. - [Add confirmation page upsells](https://docs.kustom.co/checkout/use-cases/confirmation-page-upsell.md): Enable Kustom Checkout confirmation-page upsell, supply product recommendations and handle order changes until the delayed confirmation push arrives. - [Upsell callback reference](https://docs.kustom.co/checkout/use-cases/upsell-callback-contract.md): Implement the Kustom Checkout upsell callback with upsell_request, upsell_service_response and upsell_line fields, limits and widget eligibility rules. - [Age verification](https://docs.kustom.co/checkout/use-cases/age-verification.md): Set a minimum age in Kustom Checkout and verify it through BankID in Norway and Sweden. Requires age verification enabled on your account. - [Integrate the Hosted Payment Page](https://docs.kustom.co/checkout/surfaces/hosted-payment-page.md): Integrate Kustom Hosted Payment Page. Create an order and session, redirect customers or send a payment link, track the result and capture payment. - [Hosted Payment Page session reference](https://docs.kustom.co/checkout/surfaces/hosted-payment-page/session-reference.md): Reference for Kustom HPP session endpoints, merchant URLs, branding, statuses, callback retries and security, link distribution and error codes. - [Kustom Checkout in a mobile app](https://docs.kustom.co/checkout/mobile-sdk.md): Embed Kustom Checkout in iOS, Android or React Native apps with the Mobile SDK. Set up the return URL, handle events and errors or migrate from Klarna. - [Kustom Checkout in an iOS app](https://docs.kustom.co/checkout/mobile-sdk/ios.md): Add Kustom Checkout to an iOS app with KustomMobileSDK — install with Swift Package Manager or CocoaPods, create a KustomCheckoutView and handle its events. - [Kustom Checkout in an Android app](https://docs.kustom.co/checkout/mobile-sdk/android.md): Add Kustom Checkout to an Android app with KustomMobileSDK — add the Gradle dependency, create a KustomCheckoutView in XML or code and handle its events. - [Kustom Checkout in a React Native app](https://docs.kustom.co/checkout/mobile-sdk/react-native.md): Add Kustom Checkout to a React Native app with react-native-kustom-inapp-sdk — render KustomCheckoutView, set the snippet and handle onEvent and onError. - [Server-side callbacks](https://docs.kustom.co/checkout/callbacks.md): Handle Kustom Checkout callbacks for address, country and shipping changes, validation and completed orders. Includes requests, responses and examples. - [Checkout JavaScript events](https://docs.kustom.co/checkout/client-side-events.md): Listen for Kustom Checkout and confirmation widget JavaScript events, including upsell payloads, and suspend the iframe during order updates. - [Analytics events in the dataLayer](https://docs.kustom.co/checkout/analytics-events.md): Event names, payloads and an example checkout flow for embedded Kustom Checkout in an existing dataLayer, with GA4 mapping using GTM. - [Troubleshooting Checkout](https://docs.kustom.co/checkout/troubleshooting.md): Troubleshoot Kustom Checkout API errors and iframe issues. Fix invalid fields, authentication, expired orders, concurrent updates and browser conflicts. - [Supported browsers](https://docs.kustom.co/checkout/supported-browsers.md): The desktop and mobile browser versions Kustom Checkout supports, from Chrome 80 and Safari 13.1 to Android WebView, and what applies to unlisted browsers. ## Order Management - [Order Management](https://docs.kustom.co/order-management.md): Capture, refund, cancel and update an order after the customer pays, through the Order Management API, the Kustom Portal or a platform plugin. - [Capture an order](https://docs.kustom.co/order-management/capture.md): Capture a full or partial payment against an authorized order with POST /captures, and attach the order lines and shipping details each capture covers. - [Refund an order](https://docs.kustom.co/order-management/refunds.md): Credit money back on a captured order with POST /refunds, in full or in part, with return fees where the market supports them and allocated to the right shipment. - [Update or cancel an order](https://docs.kustom.co/order-management/update-and-cancel.md): Read an order's current state, amend its amount or addresses before capture, attach your own references, acknowledge a Checkout order and cancel one you can't fulfill. - [Extend order expiry](https://docs.kustom.co/order-management/extend-authorization.md): Buy more time to fulfill when an order won't ship inside the default authorization window — what the eligibility rules actually are, and how the new expiry date is calculated. - [Idempotency and retries](https://docs.kustom.co/order-management/idempotency-and-retries.md): Send a Kustom-Idempotency-Key on every Order Management write so a retried capture or refund runs once, and retry a 5xx on a schedule or escalate it. ## In-person - [In-person payments](https://docs.kustom.co/in-person.md): Take card payments in store on a phone or a Kustom terminal. Pick a device, run a test payment on Playground and see how /ipp/v1 devices and sessions fit. - [Enroll a device](https://docs.kustom.co/in-person/enroll-a-device.md): Pair a phone or Kustom terminal with your account through a named enrollment code from POST /ipp/v1/enrollments, then list, rename and deregister your devices. - [Enroll a managed fleet](https://docs.kustom.co/in-person/enroll-a-managed-fleet.md): Enroll every store phone from your MDM by pushing its enrollment code through the Kustom POS app's managed configuration, so nobody types a code in store. - [Take a payment in person](https://docs.kustom.co/in-person/take-a-payment.md): Create an in-person payment with POST /ipp/v1/sessions, preselect the payment flow and store the order_id from the ipp.session.finalized callback. - [Test in-person payments without hardware](https://docs.kustom.co/in-person/test-without-hardware.md): Run the whole in-person flow in Playground with a simulated device and a simulated card tap from /ipp/v1/dev, then work through the checklist before going live. - [Session states and callbacks](https://docs.kustom.co/in-person/sessions-and-callbacks.md): Every in-person session state, the ipp.* callback that reports it, the payload fields each event carries, and the card tap outcomes Playground can simulate. ## Finance - [Settlements and getting paid](https://docs.kustom.co/finance.md): How captured orders become money in your bank account — the payout schedule and delay, the settlement reports, and reconciling payouts with the Settlements API. - [Settlement report fields](https://docs.kustom.co/finance/settlement-report-fields.md): What every settlement field means — how settlement_amount adds up, the debt balance, each type and detailed_type, and where the CSV differs from the API. ## Partners - [Partners](https://docs.kustom.co/partners.md): Find the Kustom Checkout plugin for your e-commerce platform: how activation starts on each of 30 platforms, who owns the plugin and which page to open next. - [Activate Kustom Checkout on your platform](https://docs.kustom.co/partners/activate-kustom-checkout.md): The one activation procedure shared by around twenty-five e-commerce platforms — apply, pass KYC, generate API credentials in the Kustom Portal, paste them into your platform's payment settings and place a test order before going live. - [Onboard merchants with the partner API](https://docs.kustom.co/partners/onboarding-api.md): Create Kustom merchants from your platform — sign a JWT for an OAuth 2.0 token, call /accountmanagement/v1, handle STATUS_UPDATE and acknowledgements. - [Open source platform responsibility](https://docs.kustom.co/partners/open-source-responsibility.md): What Kustom warrants and what you own when you run Kustom Checkout on WooCommerce, Magento, PrestaShop or OXID — platform versions, third-party code, unofficial modules and the limits of Kustom's liability. - [Magento and Adobe Commerce](https://docs.kustom.co/partners/magento.md): Install Kustom Checkout on Adobe Commerce or Magento 2.4 with Composer, set credentials and the terms URL, verify it and fix the failures behind most tickets. - [Magento module reference](https://docs.kustom.co/partners/magento-module-reference.md): Reference for the Kustom Checkout modules on Adobe Commerce and Magento: module map, config paths, klarna_ tables, KCO callback routes and extension points. - [WooCommerce](https://docs.kustom.co/partners/woocommerce.md): Install and configure the Kustom Checkout plugin for WooCommerce, including the WordPress settings that break the checkout if you get them wrong, where the API credentials come from, and the migration path for stores moving off Vipps Checkout. - [PrestaShop](https://docs.kustom.co/partners/prestashop.md): Install the Kustom Checkout module for PrestaShop, map Kustom order states onto PrestaShop statuses and run captures and refunds from the back office — including what existing Klarna Checkout module users must do to move across. - [OXID eShop](https://docs.kustom.co/partners/oxid.md): Install and configure the Kustom Checkout module for OXID eShop 7 — Composer install, SSL and callback prerequisites, the full settings map, order management from the admin and the limitations you have to design around. - [Ingrid](https://docs.kustom.co/partners/ingrid.md): The Ingrid Headless connector for the Kustom Shipping Assistant — setup credentials, how Ingrid delivery options map onto Kustom's selected_shipping_option, the per-country tax default you may need to override and how split shipments change the order structure. - [Junipeer settlement reconciliation](https://docs.kustom.co/partners/junipeer.md): Connect Junipeer so Kustom settlement payouts reconcile automatically against the invoices in Fortnox, Visma or Business Central, with Kustom's fees written off — a payout-only integration that never syncs orders. - [Shipping partners](https://docs.kustom.co/partners/shipping-partners.md): The transport management systems that feed live delivery options into Kustom Checkout through the Shipping Assistant — which TMS is supported, what each needs from you and the exact credentials to enter in the Kustom Portal. ## API reference - [Every operation, in one file](https://docs.kustom.co/api.md): Method, path and page for all 102 operations of all 12 Kustom APIs. - [Checkout API](https://docs.kustom.co/api/checkout.md): Create, read, update, and abort Checkout orders. OpenAPI: [checkout.yaml](https://docs.kustom.co/openapi/checkout.yaml) - [Checkout Callback API](https://docs.kustom.co/api/checkout/callbacks.md): Callbacks Kustom makes to merchant URLs. OpenAPI: [checkout-callback.yaml](https://docs.kustom.co/openapi/checkout-callback.yaml) - [Customer Tokens API](https://docs.kustom.co/api/customer-tokens.md): Read tokens, create orders, and manage token status. OpenAPI: [customer-token.yaml](https://docs.kustom.co/openapi/customer-token.yaml) - [Hosted Payment Page API](https://docs.kustom.co/api/hosted-payment-page.md): Create and distribute hosted payment sessions. OpenAPI: [hosted-payment-page.yaml](https://docs.kustom.co/openapi/hosted-payment-page.yaml) - [Elements API](https://docs.kustom.co/api/elements.md): Configure Elements clients and allowed origins. OpenAPI: [elements.yaml](https://docs.kustom.co/openapi/elements.yaml) - [Shipping Service Callback API](https://docs.kustom.co/api/shipping-service-callback.md): Authentication, shipping options, and shipment reservations. OpenAPI: [shipping-service-callback.yaml](https://docs.kustom.co/openapi/shipping-service-callback.yaml) - [Order Management API](https://docs.kustom.co/api/order-management.md): Capture, refund, acknowledge, and amend orders. OpenAPI: [order-management.yaml](https://docs.kustom.co/openapi/order-management.yaml) - [In-Person Payments API](https://docs.kustom.co/api/in-person-payments.md): Enrollments, devices, locations, and terminal sessions. OpenAPI: [in-person-payments.yaml](https://docs.kustom.co/openapi/in-person-payments.yaml) - [Settlements API](https://docs.kustom.co/api/settlements.md): Payouts, transactions, and settlement reports. OpenAPI: [settlements.yaml](https://docs.kustom.co/openapi/settlements.yaml) - [Checkout Configuration API](https://docs.kustom.co/api/partners/checkout-configuration.md): Configure Checkout on behalf of merchants. OpenAPI: [kco-config-partner.yaml](https://docs.kustom.co/openapi/kco-config-partner.yaml) - [Elements Partner API](https://docs.kustom.co/api/partners/elements.md): Manage Elements clients for platform merchants. OpenAPI: [kustom-elements-partner.yaml](https://docs.kustom.co/openapi/kustom-elements-partner.yaml) - [Native Partner Onboarding API](https://docs.kustom.co/api/partners/native-onboarding.md): Onboard merchants and request credentials. OpenAPI: [native-partner.yaml](https://docs.kustom.co/openapi/native-partner.yaml) ## Optional - [Agent skill](https://docs.kustom.co/skill/SKILL.md)