For the complete documentation index, see llms.txt. This page is also available as Markdown.

Introduction

A detailed reference for all Commerce Layer core API resources — version 2026-05

Commerce Layer is a flexible commerce API built for developers. This is the complete resource reference for API version 2026-05, which brings a redesigned payment foundation.

This space covers the latest 2026-05 API version exclusively. The previous 2017-08 version is still available, but it's deprecated and will eventually be removed — see the related API reference if you're still integrating against it.

What's in this reference

For each resource you'll find:

  • The object page — a complete list of fields, attributes, and relationships returned by the API.

  • One page for each supported CRUD operation — with request arguments, required and optional fields, and a curl example showing both the request and response.

Differences from the previous version

The 2026-05 API introduces a redesigned payment infrastructure changing the payment model and some response conventions. The main differences from the previous version are:

  • Payment is driven by payment sessions rather than payment options. An order can have multiple sessions, each covering a portion of the order total (split payment).

  • All gateway configurations are modeled as typed payment settings resources (one for Adyen, Braintree, Checkout.com, PayPal, Stripe, gift cards, manual gateways, external gateways).

  • Vaulted instruments are supported via payment wallets, enabling faster checkout with stored payment methods.

  • A session's payment instrument attribute summarizes what the customer actually paid with (e.g. card brand and last digits, or the PayPal account) directly in the response, without needing to query the payment provider.

  • Payment rules allow conditional availability of payment settings per market.

  • Returns are refunded by creating payment refunds against the order's payment sessions, rather than through the previous version's refund flow.

  • Order subscriptions capture the payment wallet or setting derived from the source order's payment session — on each automatic run, recurring order copies use it to create and authorize a new payment session on the target order. Manually triggering subscription generation via order copies instead is only supported for orders still on the previous version's payment flow.

  • Order editing does not automatically adjust payment — any authorization, void, or refund required after an edit must be created manually against the order's payment sessions.

  • The gateway options for payment sessions, payment transactions, payment links, and payment wallets let you forward gateway-specific parameters straight into the payment gateway request, overriding fields the API would otherwise compute — the reconciliation reference and the amount can never be overridden this way, regardless of what's passed. It can only be set using integration API credentials — sales channels cannot supply it.

  • Meta information provided in the response JSON has changed — resource-level meta now contains only the API version that was active when this resource was created, while all other meta information has been moved into the document-level meta object.

Requests that omit the API version segment in the endpoint URL keep resolving to the 2017-08 version, which is the fixed default. To use the features covered in this reference, make sure to request the 2026-05 version explicitly (e.g. /api/2026-05/orders).

You can find below a full breakdown of the changes by resource:

What's new

The following resources are exclusive to this version and not available in previous versions:

Resource
Description
API reference

payment_sessions

The central payment intent object — tracks the full authorize → capture → refund lifecycle.

payment_settings

The read-only polymorphic base for gateway configurations — determines how payment sessions are processed.

payment_transactions

The polymorphic base for every payment action — models each authorization, capture, void, and refund.

payment_authorizations

The first transaction in a session's lifecycle — reserves funds on the customer's payment instrument.

payment_captures

A transaction against an authorization — collects previously reserved funds, in full or in part.

payment_voids

A transaction against an authorization — cancels it and releases the reserved funds before capture.

payment_refunds

A transaction against a capture — returns previously captured funds to the customer, in full or in part.

payment_links

A shareable payment URL for collecting a payment outside checkout — optionally tied to an order, or created as a standalone request.

payment_wallets

A vaulted payment instrument — enables faster checkout by reusing saved payment details across sessions.

payment_rules

Conditional logic scoped to a market — controls payment coverage requirements and available payment settings.

payment_setting_adyens

The Adyen-specific payment setting — holds the credentials needed to process payments through Adyen.

payment_setting_braintrees

The Braintree-specific payment setting — holds the credentials needed to process payments through Braintree.

payment_setting_checkout_coms

The Checkout.com-specific payment setting — holds the credentials needed to process payments through Checkout.com.

payment_setting_externals

The custom gateway payment setting — integrates any external provider through a webhook-based contract.

payment_setting_gift_cards

The gift card payment setting — redeems a code and deducts the payment amount from its balance.

payment_setting_manuals

The manual payment setting — processes out-of-band methods like wire transfers with no external gateway calls.

payment_setting_paypals

The PayPal-specific payment setting — holds the credentials needed to process payments through PayPal.

payment_setting_stripes

The Stripe-specific payment setting — holds the credentials needed to process payments through Stripe.

What's deprecated

The following resources are still available when requesting this version, but they are deprecated — calls to them keep working, though every response carries a warning, and they will eventually be removed in a future version:

Resource
Description
API reference

payment_gateways

The polymorphic base for gateway configurations — used to represent whichever payment provider was configured for a market.

payment_methods

The payment method offered in a market or store — used to price and list the available ways to pay before order placement.

payment_options

Extra data attached to an order's payment — used to pass custom information through to the payment gateway at payment creation.

transactions

The polymorphic base for every payment action — used to track authorization, capture, void, and refund events across an order's lifecycle.

authorizations

The first transaction in an order's payment flow — used to reserve funds and move the order to `authorized` status.

captures

A transaction against an approved order — used to collect previously authorized funds and mark the order as `paid`.

voids

A transaction against a pending order — used to cancel it before capture, moving the order's payment status to `voided`.

refunds

A transaction against a capture — used to return previously captured funds to the customer, in full or in part.

customer_payment_sources

The link between a customer and a saved card — used to let logged-in customers reuse stored payment methods at checkout.

wire_transfers

A manual payment source for wire transfers — used to record out-of-band payments that were always automatically authorized.

manual_gateways

The gateway configuration for manual payments — used to accept wire transfers, cash, and other non-integrated payment options.

adyen_gateways

The gateway configuration for Adyen — used to process PSD2-compliant, SCA/3DS2 payments through Adyen's SDK.

adyen_payments

A payment source tied to an Adyen gateway — used to process a payment through Adyen.

axerve_gateways

The gateway configuration for Axerve — used to process PSD2-compliant, SCA/3DS2 payments through Axerve's Lightbox.

axerve_payments

A payment source tied to an Axerve gateway — used to process a payment through Axerve.

braintree_gateways

The gateway configuration for Braintree — used to process PSD2-compliant, SCA/3DS2 payments through Braintree's SDK.

braintree_payments

A payment source tied to a Braintree gateway — used to process a payment through Braintree.

checkout_com_gateways

The gateway configuration for Checkout.com — used to process PSD2-compliant, SCA/3DS2 payments through Checkout.com's SDK.

checkout_com_payments

A payment source tied to a Checkout.com gateway — used to process a payment through Checkout.com.

external_gateways

The gateway configuration for custom providers — used to integrate any payment service not available out-of-the-box.

external_payments

A payment source tied to an external gateway — used to process a payment through a custom integration.

klarna_gateways

The gateway configuration for Klarna — used to process PSD2-compliant, SCA/3DS2 payments through Klarna's SDK.

klarna_payments

A payment source tied to a Klarna gateway — used to process a payment through Klarna.

paypal_gateways

The gateway configuration for PayPal — used to process payments through PayPal.

paypal_payments

A payment source tied to a PayPal gateway — used to process a payment through PayPal.

satispay_gateways

The gateway configuration for Satispay — used to process PSD2-compliant, SCA/3DS2 payments through Satispay.

satispay_payments

A payment source tied to a Satispay gateway — used to process a payment through Satispay.

stripe_gateways

The gateway configuration for Stripe — used to process PSD2-compliant, SCA/3DS2 payments through Stripe's SDK.

stripe_payments

A payment source tied to a Stripe gateway — used to process a payment through Stripe.

order_validation_rules

Validation rules scoped to a market — used to enforce conditions, such as required billing info, before order placement.

billing_info_validation_rules

An order validation rule subtype — used to make billing info required for a specific market.

shipment_line_items

The shipment-scoped view of a stock line item — used to represent a SKU's quantity within a specific shipment.

Last updated