1. Checkout APIs
Image
Salla Platform Docs
  • Overview
  • Authentication
  • Key Concepts
  • Usage Flows
  • Cart
    • Save guest cart data
      POST
    • Generate cart
      POST
    • Get cart
      GET
    • Assign cart to Customer
      POST
    • Apply cart coupon
      POST
    • Remove cart coupon
      DELETE
  • Cart Items
    • Add cart item
      POST
    • Update cart item
      PATCH
    • Delete cart item
      DELETE
  • Schemas
    • SuccessEnvelope
    • GuestDataRequest
    • GuestData
    • Error
    • Money
    • CartTotals
    • TotalLineItem
    • CartItem
    • AssignShippingRequest
    • CartItemsRequest
    • ProductIdentifier
    • CartItemEntry
    • RemoveItemsRequest
    • BadRequest
    • Unauthorized
    • Forbidden
    • NotFound
    • ValidationError
    • Currency
    • AmountLine
    • CartScope
    • CartFeatures
    • CartAmounts
    • CartDiscountEntry
    • CartOptionEntry
    • Cart
    • CartShipping
    • CartItemCreateRequest
    • CartItemUpdateRequest
    • ApplyCouponRequest
    • ErrorEnvelope
    • CartItemOptionInput
    • ErrorObject
    • GenerateCartRequest
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla CLI
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Checkout APIs

Overview

The Checkout APIs provide RESTful endpoints to manage cart state programmatically: create a cart, retrieve it, manage line items, apply/remove coupons, and assign cart ownership.
This collection focuses on cart operations that feed checkout. It does not include payment submission or full checkout-step orchestration endpoints in this module.

Quick Start#

Make your first cart in three steps:
See the Authentication guide for all required headers.

Who is this for?#

This API collection is designed for developers building integrations that need to control cart and checkout-entry flows outside of the standard storefront, including:
Headless storefronts — Custom front-end implementations that manage their own cart and checkout UI
Mobile applications — Native iOS and Android apps with in-app purchasing flows
Mini-apps — Lightweight embedded experiences (e.g. social commerce, chat-based shopping)
Third-party integrations — Merchant tools, POS systems, and partner platforms that interact with the store's cart pipeline
Internal services — Backend systems that orchestrate cart creation, synchronization, and checkout handoff

What can you do?#

CapabilityDescription
Cart lifecycleCreate, retrieve, and manage shopping carts scoped to a specific store
Line itemsAdd, update, and remove products using flexible identifiers (product ID, variant ID, or SKU)
Coupons & discountsApply and remove promotional coupon codes with real-time total recalculation
OwnershipAssign guest carts to authenticated Customers when transitioning from guest to logged-in state
Product optionsConfigure items with size, color, and other variant selections, plus notes and bundle payloads

Endpoint Reference#

All paths are relative to https://api.salla.dev/store/v2/checkout.
MethodPathNameAuthDescription
POST/generateGenerate cartOptionalCreates a new cart (guest or authenticated)
GET/{cartId}Get cartOptionalRetrieves cart state (include_items=true for line items)
POST/{cartId}/itemsAdd cart itemOptionalAdds a product by ID, variant ID, or SKU
PATCH/{cartId}/items/{item}Update cart itemOptionalUpdates quantity, options, or notes
DELETE/{cartId}/items/{item}Delete cart itemOptionalRemoves a line item
POST/{cartId}/couponApply cart couponOptionalApplies a coupon code
DELETE/{cartId}/couponRemove cart couponOptionalRemoves the current coupon
POST/{cartId}/guestSave guest cart dataOptionalSaves guest contact details for checkout
POST/{cartId}/assignAssign cart to CustomerRequiredTransfers cart to authenticated Customer

Design principles#

Store-scoped — Every request is scoped to a single store via the Store-Identifier header, ensuring clear multi-tenancy
Stateful responses — Every mutating operation returns the updated cart, so the client can remain synchronized without extra reads
Flexible identification — Products can be referenced by ID, variant ID, or SKU, reducing the need for preliminary lookups
Consistent error handling — All errors follow a uniform envelope format with machine-readable codes and field-level validation details
Guest + auth aware — Cart generation supports both guest and authenticated contexts; guest carts can be assigned later when needed

Authentication#

The Store-Identifier header is required on all requests. Bearer token authentication is optional for guest cart operations and required for Customer-scoped operations like assigning a cart. See the Authentication guide for details.

Documentation Index#

DocumentDescription
AuthenticationAuth headers and security scheme
Key ConceptsProduct identification, response structure, ownership, and errors
Usage FlowsTypical integration patterns and error recovery
Modified at 2026-06-15 18:49:41
Next
Authentication
Advertisement
Advertisement