Create a single order for a cart that contains items from multiple merchants
in the marketplace, and start a payment for the whole basket. Each item names
the merchant it belongs to; items are validated against the marketplace catalog,
commission is resolved per merchant, and one payment covers the entire order.
The response includes a client_secret to complete the payment on the
storefront and a per-merchant breakdown of gross, discount, commission, and net
amounts. Once payment succeeds, the order finalizes automatically — no further
call is required.
Which key sees what. A publishable operator key (a storefront’s browser) and a secret
operator key (the operator’s server) can both check out. The operator’s terms in
merchant_breakdown (commission_amount, net_amount, commission_rule_id,
shipping_amount, shipping_retained, shipping_commission) are returned to the secret key
only, including on an idempotent replay.
Discounts. Pass the optional discounts array to apply a merchant’s own
promotion or gift card to that merchant’s portion of the basket — each entry
names the merchant_store_id and an optional promotion_id and/or
gift_card_code, and the discount reduces only that merchant’s subtotal.
Marketplace-wide promotions run by the operator apply automatically; you do not
pass them. The response reports discount_total, the
operator_funded_discount (the share the operator funded), a per-merchant
discount_breakdown, and discount_amount plus merchant_gross on each
merchant_breakdown entry.
🛡️ The server is the price authority (anti-tampering). You never send money
amounts on this call — only identifiers. Each item’s price is recomputed from the
marketplace catalog, and a discounts entry only names a promotion_id /
gift_card_code; the server independently resolves the actual discount that
merchant’s promotion or gift card grants (and the operator-funded share),
computes every gross, discount_amount, merchant_gross, commission, and the
payment total from those resolved values, and charges exactly that. A named
discount that doesn’t validate (expired, ineligible, wrong store) is rejected with
400 discount_invalid rather than silently applied. There is no client-supplied
discount_amount or per-item price to tamper with — a manipulated basket cannot
lower what is charged. The resolved breakdown is then held server-side and used
verbatim to finalize the order after payment succeeds; nothing the client sends
after checkout can change what each merchant is paid.
Shipping. Each merchant’s items are delivered, and priced, separately: one shipping
line per merchant. By default each merchant’s own delivery rates price their line, from
the shipping_destination (or the shipping_address, which is located when no
destination is sent). The marketplace may instead charge a flat rate per merchant, and may
set a free-shipping threshold: a merchant whose items total at least that much ships free.
To offer carrier options, send a street shipping_address and a parcel per merchant in
shipping_selections to POST /v1/cart/checkout/quote; to choose one, send its rate_id
here. Shipping is paid to whoever ships the items — the merchant, or the marketplace when
it ships on the merchant’s behalf. total_amount includes shipping, shipping_total
reports it, and shipping_breakdown lists each merchant’s line. A shipping amount is never
read from the request. The same computation runs on POST /v1/cart/checkout/quote, so the
shopper can see each line before paying.
Stock is reserved at checkout: the items are held against each merchant’s
inventory immediately so concurrent shoppers cannot oversell the last units,
and the hold becomes a real stock reduction when payment succeeds. If an item
cannot be held, the call returns 400 insufficient_stock and no order or
payment is created. Holds expire automatically if payment is never completed,
returning the stock to availability.
The shopper. Send the shopper’s credential to tie the purchase to them: a
Galactic Core shopper session in x-auth-token (also accepted as
x-customer-token), or an assertion signed by the marketplace’s own backend in
x-external-auth. With neither, the checkout is a guest checkout. The purchase is
recorded against that credential, which is what later lets the shopper see it in
GET /v1/customers/me, return it, and dispute it. A guest purchase becomes
visible to an account once that account has verified its email address with a
one-time code.
Wallet. A signed-in shopper can spend their marketplace wallet balance: send
wallet_amount to spend up to that much, or use_wallet: true to spend as much
as the checkout allows. The balance is held while payment is pending and returned
if the payment fails or is abandoned. The charge never falls below the payment
provider’s minimum for the currency, so a wallet cannot pay for a whole basket.
The response reports wallet_applied, and total_amount is the amount charged
after it. Each merchant is still paid their full net: the marketplace operator
funds the wallet.
Currency: every price is charged in the marketplace’s currency. A merchant who prices in
another currency is converted with the exchange rate the marketplace sets for that currency —
items, the merchant’s discounts, gift-card amounts and delivery fees alike, each rounded to
the marketplace currency’s decimal places. A merchant whose currency has no rate in the
marketplace cannot be bought from there (400 item_currency_unsupported).
Shipping: each merchant’s items are priced by that merchant’s delivery rates, converted to
the marketplace’s currency with the marketplace’s exchange rate; items the marketplace ships
itself are priced by the marketplace’s own delivery rates (pricing: operator_rate). A
marketplace flat rate or free-shipping threshold overrides both.
Shipping errors: 400 shipping_destination_required when a merchant’s delivery rate needs
a location and none can be found, 400 shipping_not_deliverable when a merchant (or the
marketplace, for items it ships) does not deliver to the address, 400 shipping_currency_unsupported when the marketplace has no exchange rate for the currency a
merchant’s delivery rates are set in, 400 shipping_rate_invalid when a chosen carrier option is unknown,
expired, not in the marketplace’s currency, or chosen for items the marketplace ships itself,
and 502 shipping_unavailable when shipping cannot be priced right now.
Requires the marketplace operator key.
Send an Idempotency-Key header to make a retry safe: a repeat of the same request with the
same key returns the purchase the first attempt created (200, the same order_group_id and
PaymentIntent) instead of creating a second order, holding stock twice or raising a second
charge. Keys are unique per marketplace and environment.
Format: tybrite_sk_live_* (production) or tybrite_sk_test_* (sandbox)
Full read/write access to all endpoints
⚠️ NEVER expose in client-side code or public repositories
Required for: every write a shopper does not make for themselves, authentication, payment verification, AI recommendations
Publishable Keys (Client-Safe):
Format: tybrite_pk_live_* (production) or tybrite_pk_test_* (sandbox)
Catalogue reads, plus the actions a shopper takes for themselves
✅ Safe for client-side JavaScript, mobile apps, and public code
Allowed for: browsing products, search, CMS content, pricing queries, cart and wishlist,
reviews, storefront events, and the Agent API's quotes, cart drafts and checkout intents
Endpoint-Specific Requirements:
Authentication endpoints (/v1/auth/*): state-changing POST calls require a secret key, for store and marketplace keys alike; GET /v1/auth/me accepts either key
AI Recommendations (POST /v1/recommendations): Secret key required
Semantic Search (POST /v1/search): Both key types allowed (read-only operation)
Shopper actions (cart, wishlist, reviews, storefront events, Agent API quotes, cart drafts and checkout intents): Both key types allowed
All other write operations: Secret key required
All read operations: Both key types allowed
Using a publishable key for restricted operations returns 403 Forbidden.
Limited publishable keys:
A publishable key can be limited to the products that carry one tag (for example starter:jewellery), created from
the store's Developers page. The limit applies to the key, never to the shopper: shopper sign-up and sign-in stay store-wide.
Reads return only the slice: products (with their facets, filters, search, brands and specifications), categories and
subcategories that hold in-slice products, collections, promotions, posts and lookbooks that carry the tag, reviews of
in-slice products, prices, discovery lists and the store information summary, with every count computed on the slice.
A product outside the slice answers 404, as if it did not exist.
A write that names a product or variant outside the slice (adding to the cart or wishlist, reserving stock, an order line,
a review, a promotion calculation, a storefront event) answers 403 with the error code out_of_scope, and nothing is
written or reserved. An order is refused as a whole.
A route that carries no slice behaviour is not available to the key: it answers 403 with endpoint_not_allowed.
Orders placed through such a key record the tag on the order's attribution as key_scope.
Secret keys and connected-app keys cannot be limited.
Responses are cached per key limit: a limited key never receives a response cached for the whole store, and the reverse.
Headers
Idempotency-Key
string
A unique key for this checkout attempt. Repeating the request with the same key and the same body returns the original result with 200; the same key with a different body is refused with 409 idempotency_conflict.
Maximum string length: 255
x-auth-token
string
Session token of a shopper signed in through Galactic Core, tying the checkout to their account rather than treating it as a guest checkout. Optional; send at most one shopper credential.
x-customer-token
string
Alias of x-auth-token.
x-external-auth
string
A shopper assertion signed by the marketplace's own backend with the marketplace's signing secret, for marketplaces that run their own sign-in. The claim carries external_id, iat and exp (at most 300 seconds apart), and optionally email with email_verified: true. Optional; send at most one shopper credential.
Body
application/json
items
object[]
required
The cart line items to check out.
Minimum array length: 1
Show child attributes
customer_email
string<email>
required
customer_name
string
customer_phone
string
currency
string
ISO currency code for the order. Defaults to USD.
Example:
"USD"
shipping_address
object
Where the order is going (line1, line2, city, state, postal_code, country). Located to price shipping when shipping_destination is omitted.
shipping_destination
object
Where the basket is going, used to price each merchant's delivery rates. Send coordinates, or a place name. When omitted, the shipping_address is located instead.
Show child attributes
shipping_selections
object[]
Optional per-merchant shipping choices: a carrier option (rate_id) returned by POST /v1/cart/checkout/quote. Without one, the merchant's own delivery rate applies.
Show child attributes
billing_address
object
wallet_amount
number
Spend up to this much of the signed-in shopper's marketplace wallet on this checkout. Capped by the balance and by the payment provider's minimum charge.
use_wallet
boolean
Spend as much of the signed-in shopper's wallet as the checkout allows.
discounts
object[]
Optional per-merchant discounts. Each entry applies a merchant's own promotion and/or gift card to that merchant's portion of the basket, reducing only that merchant's subtotal. Marketplace-wide promotions run by the operator apply automatically and are not passed here.
Show child attributes
attribution
object
Where the shopper came from, recorded so the sale is credited to the right traffic source in the merchant's reports, and to the advertising campaign that earned it. The same fields are also accepted at the top level of this request body if you already send them that way. Every field is optional; values that are not recognisable as what the field names are ignored. Each seller's order in the basket keeps a copy.
Show child attributes
Response
A repeat of an earlier checkout with the same Idempotency-Key and body. The body is the original checkout's result, with the same order_group_id and payment_intent_id.
A created multi-merchant order awaiting payment. Use client_secret to
complete the payment on the storefront; the order finalizes automatically
once payment succeeds.
order_group_id
string<uuid>
Identifier for the multi-merchant order.
group_number
string
Human-readable reference for the order.
Example:
"MKT-100042"
payment_intent_id
string
Identifier of the payment to complete on the storefront.
client_secret
string
Secret used by the storefront payment form to complete the charge.
currency
string
Example:
"USD"
subtotal
number
Example:
245
total_amount
number
The amount charged — the basket after every discount, plus shipping, less wallet_applied.
Example:
245
shipping_total
number
Shipping across every merchant, included in total_amount.
Example:
15
shipping_breakdown
object[]
One shipping line per merchant.
Show child attributes
wallet_applied
number
How much of the shopper's marketplace wallet this checkout spends. Held while payment is pending and returned if the payment fails. Funded by the marketplace operator, so each merchant's net is unchanged.
Example:
0
discount_total
number
Total discount applied across the whole basket — the sum of every merchant's own promotion and gift card discounts plus any marketplace-wide promotion run by the operator.
Example:
10
operator_funded_discount
number
The portion of discount_total funded by the marketplace operator (for example a marketplace-wide promotion). The remainder is funded by individual merchants.
Example:
5
discount_breakdown
object[]
Per-merchant breakdown of how discounts were applied.
Show child attributes
merchant_breakdown
object[]
Per-merchant gross, discount, commission, and net amounts for this order.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Galactic Core API Documentation","colors":{"primary":"#3b82f6","light":"#60a5fa","dark":"#3b82f6"},"logo":{"light":"https://mintcdn.com/tybritelabs/9cNSmgnBxs-QU_UC/branding/gc-long-blue.png?fit=max\u0026auto=format\u0026n=9cNSmgnBxs-QU_UC\u0026q=85\u0026s=88d64ea989973d874ed73437459487f7","dark":"https://mintcdn.com/tybritelabs/9cNSmgnBxs-QU_UC/branding/gc-long-white.png?fit=max\u0026auto=format\u0026n=9cNSmgnBxs-QU_UC\u0026q=85\u0026s=051cafe35073e2d41a7bfb963b3ad22b"},"favicon":"https://mintcdn.com/tybritelabs/9cNSmgnBxs-QU_UC/favicon.svg?fit=max\u0026auto=format\u0026n=9cNSmgnBxs-QU_UC\u0026q=85\u0026s=83f32264cd55e429e1a14f9d0ee78689","navbar":{"links":[{"href":"https://gc.tybritelabs.com/dashboard","label":"Dashboard"}],"primary":{"type":"button","label":"Get Started","href":"/quickstart"}},"footer":{"socials":{"github":"https://github.com/tybrite","twitter":"https://twitter.com/tybrite","linkedin":"https://linkedin.com/company/tybrite"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://gc.tybritelabs.com/dashboard"},{"anchor":"GitHub","icon":"github","href":"https://github.com/tybrite"},{"anchor":"Support","icon":"envelope","href":"mailto:support@tybrite.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tybritelabs","hasAudioNarration":false,"actualSubdomain":"tybritelabs","customDomains":["docs.tybritelabs.com"],"gitSource":{"type":"github","owner":"tybrite","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b062237df4589996178296d","clientVersion":"0.0.4352","searchFilterCounts":[{"language":"default","tag":"Galactic Core","count":350},{"language":"default","tag":"API Reference","count":294},{"language":"default","tag":"TLDP","count":51},{"language":"default","tag":"Getting Started","count":50},{"language":"default","tag":"TypeScript SDK","count":47},{"language":"default","tag":"Agent","count":43},{"language":"default","tag":"Customers","count":25},{"language":"default","tag":"Returns","count":15},{"language":"default","tag":"Marketplace","count":14},{"language":"default","tag":"B2B","count":14}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/marketplace/check-out-a-multi-merchant-cart","slug":"/api-reference/marketplace/check-out-a-multi-merchant-cart","pageMetadata":{"title":"Check out a multi-merchant cart","description":"Create a single order for a cart that contains items from multiple merchants\nin the marketplace, and start a payment for the whole basket. Each item names\nthe merchant it belongs to; items are validated against the marketplace catalog,\ncommission is resolved per merchant, and one payment covers the entire order.\n\nThe response includes a `client_secret` to complete the payment on the\nstorefront and a per-merchant breakdown of gross, discount, commission, and net\namounts. Once payment succeeds, the order finalizes automatically — no further\ncall is required.\n\n**Which key sees what.** A publishable operator key (a storefront's browser) and a secret\noperator key (the operator's server) can both check out. The operator's terms in\n`merchant_breakdown` (`commission_amount`, `net_amount`, `commission_rule_id`,\n`shipping_amount`, `shipping_retained`, `shipping_commission`) are returned to the secret key\nonly, including on an idempotent replay.\n\n**Discounts.** Pass the optional `discounts` array to apply a merchant's own\npromotion or gift card to that merchant's portion of the basket — each entry\nnames the `merchant_store_id` and an optional `promotion_id` and/or\n`gift_card_code`, and the discount reduces only that merchant's subtotal.\nMarketplace-wide promotions run by the operator apply automatically; you do not\npass them. The response reports `discount_total`, the\n`operator_funded_discount` (the share the operator funded), a per-merchant\n`discount_breakdown`, and `discount_amount` plus `merchant_gross` on each\n`merchant_breakdown` entry.\n\n🛡️ **The server is the price authority (anti-tampering).** You never send money\namounts on this call — only identifiers. Each item's price is recomputed from the\nmarketplace catalog, and a `discounts` entry only *names* a `promotion_id` /\n`gift_card_code`; the server independently resolves the actual discount that\nmerchant's promotion or gift card grants (and the operator-funded share),\ncomputes every `gross`, `discount_amount`, `merchant_gross`, commission, and the\npayment total from those resolved values, and charges exactly that. A named\ndiscount that doesn't validate (expired, ineligible, wrong store) is rejected with\n`400 discount_invalid` rather than silently applied. There is no client-supplied\n`discount_amount` or per-item price to tamper with — a manipulated basket cannot\nlower what is charged. The resolved breakdown is then held server-side and used\nverbatim to finalize the order after payment succeeds; nothing the client sends\nafter checkout can change what each merchant is paid.\n\n**Shipping.** Each merchant's items are delivered, and priced, separately: one shipping\nline per merchant. By default each merchant's own delivery rates price their line, from\nthe `shipping_destination` (or the `shipping_address`, which is located when no\ndestination is sent). The marketplace may instead charge a flat rate per merchant, and may\nset a free-shipping threshold: a merchant whose items total at least that much ships free.\nTo offer carrier options, send a street `shipping_address` and a `parcel` per merchant in\n`shipping_selections` to `POST /v1/cart/checkout/quote`; to choose one, send its `rate_id`\nhere. Shipping is paid to whoever ships the items — the merchant, or the marketplace when\nit ships on the merchant's behalf. `total_amount` includes shipping, `shipping_total`\nreports it, and `shipping_breakdown` lists each merchant's line. A shipping amount is never\nread from the request. The same computation runs on `POST /v1/cart/checkout/quote`, so the\nshopper can see each line before paying.\n\nStock is reserved at checkout: the items are held against each merchant's\ninventory immediately so concurrent shoppers cannot oversell the last units,\nand the hold becomes a real stock reduction when payment succeeds. If an item\ncannot be held, the call returns `400 insufficient_stock` and no order or\npayment is created. Holds expire automatically if payment is never completed,\nreturning the stock to availability.\n\n**The shopper.** Send the shopper's credential to tie the purchase to them: a\nGalactic Core shopper session in `x-auth-token` (also accepted as\n`x-customer-token`), or an assertion signed by the marketplace's own backend in\n`x-external-auth`. With neither, the checkout is a guest checkout. The purchase is\nrecorded against that credential, which is what later lets the shopper see it in\n`GET /v1/customers/me`, return it, and dispute it. A guest purchase becomes\nvisible to an account once that account has verified its email address with a\none-time code.\n\n**Wallet.** A signed-in shopper can spend their marketplace wallet balance: send\n`wallet_amount` to spend up to that much, or `use_wallet: true` to spend as much\nas the checkout allows. The balance is held while payment is pending and returned\nif the payment fails or is abandoned. The charge never falls below the payment\nprovider's minimum for the currency, so a wallet cannot pay for a whole basket.\nThe response reports `wallet_applied`, and `total_amount` is the amount charged\nafter it. Each merchant is still paid their full net: the marketplace operator\nfunds the wallet.\n\nCurrency: every price is charged in the marketplace's currency. A merchant who prices in\nanother currency is converted with the exchange rate the marketplace sets for that currency —\nitems, the merchant's discounts, gift-card amounts and delivery fees alike, each rounded to\nthe marketplace currency's decimal places. A merchant whose currency has no rate in the\nmarketplace cannot be bought from there (`400 item_currency_unsupported`).\n\nShipping: each merchant's items are priced by that merchant's delivery rates, converted to\nthe marketplace's currency with the marketplace's exchange rate; items the marketplace ships\nitself are priced by the marketplace's own delivery rates (`pricing: operator_rate`). A\nmarketplace flat rate or free-shipping threshold overrides both.\n\nShipping errors: `400 shipping_destination_required` when a merchant's delivery rate needs\na location and none can be found, `400 shipping_not_deliverable` when a merchant (or the\nmarketplace, for items it ships) does not deliver to the address, `400\nshipping_currency_unsupported` when the marketplace has no exchange rate for the currency a\nmerchant's delivery rates are set in, `400 shipping_rate_invalid` when a chosen carrier option is unknown,\nexpired, not in the marketplace's currency, or chosen for items the marketplace ships itself,\nand `502 shipping_unavailable` when shipping cannot be priced right now.\n\nRequires the marketplace operator key.\n\nSend an `Idempotency-Key` header to make a retry safe: a repeat of the same request with the\nsame key returns the purchase the first attempt created (`200`, the same `order_group_id` and\nPaymentIntent) instead of creating a second order, holding stock twice or raising a second\ncharge. Keys are unique per marketplace and environment.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/cart/checkout","href":"/api-reference/marketplace/check-out-a-multi-merchant-cart","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n em: \"em\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a single order for a cart that contains items from multiple merchants\\nin the marketplace, and start a payment for the whole basket. Each item names\\nthe merchant it belongs to; items are validated against the marketplace catalog,\\ncommission is resolved per merchant, and one payment covers the entire order.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The response includes a \", _jsx(_components.code, {\n children: \"client_secret\"\n }), \" to complete the payment on the\\nstorefront and a per-merchant breakdown of gross, discount, commission, and net\\namounts. Once payment succeeds, the order finalizes automatically — no further\\ncall is required.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Which key sees what.\"\n }), \" A publishable operator key (a storefront’s browser) and a secret\\noperator key (the operator’s server) can both check out. The operator’s terms in\\n\", _jsx(_components.code, {\n children: \"merchant_breakdown\"\n }), \" (\", _jsx(_components.code, {\n children: \"commission_amount\"\n }), \", \", _jsx(_components.code, {\n children: \"net_amount\"\n }), \", \", _jsx(_components.code, {\n children: \"commission_rule_id\"\n }), \",\\n\", _jsx(_components.code, {\n children: \"shipping_amount\"\n }), \", \", _jsx(_components.code, {\n children: \"shipping_retained\"\n }), \", \", _jsx(_components.code, {\n children: \"shipping_commission\"\n }), \") are returned to the secret key\\nonly, including on an idempotent replay.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Discounts.\"\n }), \" Pass the optional \", _jsx(_components.code, {\n children: \"discounts\"\n }), \" array to apply a merchant’s own\\npromotion or gift card to that merchant’s portion of the basket — each entry\\nnames the \", _jsx(_components.code, {\n children: \"merchant_store_id\"\n }), \" and an optional \", _jsx(_components.code, {\n children: \"promotion_id\"\n }), \" and/or\\n\", _jsx(_components.code, {\n children: \"gift_card_code\"\n }), \", and the discount reduces only that merchant’s subtotal.\\nMarketplace-wide promotions run by the operator apply automatically; you do not\\npass them. The response reports \", _jsx(_components.code, {\n children: \"discount_total\"\n }), \", the\\n\", _jsx(_components.code, {\n children: \"operator_funded_discount\"\n }), \" (the share the operator funded), a per-merchant\\n\", _jsx(_components.code, {\n children: \"discount_breakdown\"\n }), \", and \", _jsx(_components.code, {\n children: \"discount_amount\"\n }), \" plus \", _jsx(_components.code, {\n children: \"merchant_gross\"\n }), \" on each\\n\", _jsx(_components.code, {\n children: \"merchant_breakdown\"\n }), \" entry.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"🛡️ \", _jsx(_components.strong, {\n children: \"The server is the price authority (anti-tampering).\"\n }), \" You never send money\\namounts on this call — only identifiers. Each item’s price is recomputed from the\\nmarketplace catalog, and a \", _jsx(_components.code, {\n children: \"discounts\"\n }), \" entry only \", _jsx(_components.em, {\n children: \"names\"\n }), \" a \", _jsx(_components.code, {\n children: \"promotion_id\"\n }), \" /\\n\", _jsx(_components.code, {\n children: \"gift_card_code\"\n }), \"; the server independently resolves the actual discount that\\nmerchant’s promotion or gift card grants (and the operator-funded share),\\ncomputes every \", _jsx(_components.code, {\n children: \"gross\"\n }), \", \", _jsx(_components.code, {\n children: \"discount_amount\"\n }), \", \", _jsx(_components.code, {\n children: \"merchant_gross\"\n }), \", commission, and the\\npayment total from those resolved values, and charges exactly that. A named\\ndiscount that doesn’t validate (expired, ineligible, wrong store) is rejected with\\n\", _jsx(_components.code, {\n children: \"400 discount_invalid\"\n }), \" rather than silently applied. There is no client-supplied\\n\", _jsx(_components.code, {\n children: \"discount_amount\"\n }), \" or per-item price to tamper with — a manipulated basket cannot\\nlower what is charged. The resolved breakdown is then held server-side and used\\nverbatim to finalize the order after payment succeeds; nothing the client sends\\nafter checkout can change what each merchant is paid.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Shipping.\"\n }), \" Each merchant’s items are delivered, and priced, separately: one shipping\\nline per merchant. By default each merchant’s own delivery rates price their line, from\\nthe \", _jsx(_components.code, {\n children: \"shipping_destination\"\n }), \" (or the \", _jsx(_components.code, {\n children: \"shipping_address\"\n }), \", which is located when no\\ndestination is sent). The marketplace may instead charge a flat rate per merchant, and may\\nset a free-shipping threshold: a merchant whose items total at least that much ships free.\\nTo offer carrier options, send a street \", _jsx(_components.code, {\n children: \"shipping_address\"\n }), \" and a \", _jsx(_components.code, {\n children: \"parcel\"\n }), \" per merchant in\\n\", _jsx(_components.code, {\n children: \"shipping_selections\"\n }), \" to \", _jsx(_components.code, {\n children: \"POST /v1/cart/checkout/quote\"\n }), \"; to choose one, send its \", _jsx(_components.code, {\n children: \"rate_id\"\n }), \"\\nhere. Shipping is paid to whoever ships the items — the merchant, or the marketplace when\\nit ships on the merchant’s behalf. \", _jsx(_components.code, {\n children: \"total_amount\"\n }), \" includes shipping, \", _jsx(_components.code, {\n children: \"shipping_total\"\n }), \"\\nreports it, and \", _jsx(_components.code, {\n children: \"shipping_breakdown\"\n }), \" lists each merchant’s line. A shipping amount is never\\nread from the request. The same computation runs on \", _jsx(_components.code, {\n children: \"POST /v1/cart/checkout/quote\"\n }), \", so the\\nshopper can see each line before paying.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Stock is reserved at checkout: the items are held against each merchant’s\\ninventory immediately so concurrent shoppers cannot oversell the last units,\\nand the hold becomes a real stock reduction when payment succeeds. If an item\\ncannot be held, the call returns \", _jsx(_components.code, {\n children: \"400 insufficient_stock\"\n }), \" and no order or\\npayment is created. Holds expire automatically if payment is never completed,\\nreturning the stock to availability.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"The shopper.\"\n }), \" Send the shopper’s credential to tie the purchase to them: a\\nGalactic Core shopper session in \", _jsx(_components.code, {\n children: \"x-auth-token\"\n }), \" (also accepted as\\n\", _jsx(_components.code, {\n children: \"x-customer-token\"\n }), \"), or an assertion signed by the marketplace’s own backend in\\n\", _jsx(_components.code, {\n children: \"x-external-auth\"\n }), \". With neither, the checkout is a guest checkout. The purchase is\\nrecorded against that credential, which is what later lets the shopper see it in\\n\", _jsx(_components.code, {\n children: \"GET /v1/customers/me\"\n }), \", return it, and dispute it. A guest purchase becomes\\nvisible to an account once that account has verified its email address with a\\none-time code.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Wallet.\"\n }), \" A signed-in shopper can spend their marketplace wallet balance: send\\n\", _jsx(_components.code, {\n children: \"wallet_amount\"\n }), \" to spend up to that much, or \", _jsx(_components.code, {\n children: \"use_wallet: true\"\n }), \" to spend as much\\nas the checkout allows. The balance is held while payment is pending and returned\\nif the payment fails or is abandoned. The charge never falls below the payment\\nprovider’s minimum for the currency, so a wallet cannot pay for a whole basket.\\nThe response reports \", _jsx(_components.code, {\n children: \"wallet_applied\"\n }), \", and \", _jsx(_components.code, {\n children: \"total_amount\"\n }), \" is the amount charged\\nafter it. Each merchant is still paid their full net: the marketplace operator\\nfunds the wallet.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Currency: every price is charged in the marketplace’s currency. A merchant who prices in\\nanother currency is converted with the exchange rate the marketplace sets for that currency —\\nitems, the merchant’s discounts, gift-card amounts and delivery fees alike, each rounded to\\nthe marketplace currency’s decimal places. A merchant whose currency has no rate in the\\nmarketplace cannot be bought from there (\", _jsx(_components.code, {\n children: \"400 item_currency_unsupported\"\n }), \").\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Shipping: each merchant’s items are priced by that merchant’s delivery rates, converted to\\nthe marketplace’s currency with the marketplace’s exchange rate; items the marketplace ships\\nitself are priced by the marketplace’s own delivery rates (\", _jsx(_components.code, {\n children: \"pricing: operator_rate\"\n }), \"). A\\nmarketplace flat rate or free-shipping threshold overrides both.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Shipping errors: \", _jsx(_components.code, {\n children: \"400 shipping_destination_required\"\n }), \" when a merchant’s delivery rate needs\\na location and none can be found, \", _jsx(_components.code, {\n children: \"400 shipping_not_deliverable\"\n }), \" when a merchant (or the\\nmarketplace, for items it ships) does not deliver to the address, \", _jsx(_components.code, {\n children: \"400 shipping_currency_unsupported\"\n }), \" when the marketplace has no exchange rate for the currency a\\nmerchant’s delivery rates are set in, \", _jsx(_components.code, {\n children: \"400 shipping_rate_invalid\"\n }), \" when a chosen carrier option is unknown,\\nexpired, not in the marketplace’s currency, or chosen for items the marketplace ships itself,\\nand \", _jsx(_components.code, {\n children: \"502 shipping_unavailable\"\n }), \" when shipping cannot be priced right now.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Requires the marketplace operator key.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Send an \", _jsx(_components.code, {\n children: \"Idempotency-Key\"\n }), \" header to make a retry safe: a repeat of the same request with the\\nsame key returns the purchase the first attempt created (\", _jsx(_components.code, {\n children: \"200\"\n }), \", the same \", _jsx(_components.code, {\n children: \"order_group_id\"\n }), \" and\\nPaymentIntent) instead of creating a second order, holding stock twice or raising a second\\ncharge. Keys are unique per marketplace and environment.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Check out a multi-merchant cart","description":"Create a single order for a cart that contains items from multiple merchants\nin the marketplace, and start a payment for the whole basket. Each item names\nthe merchant it belongs to; items are validated against the marketplace catalog,\ncommission is resolved per merchant, and one payment covers the entire order.\n\nThe response includes a `client_secret` to complete the payment on the\nstorefront and a per-merchant breakdown of gross, discount, commission, and net\namounts. Once payment succeeds, the order finalizes automatically — no further\ncall is required.\n\n**Which key sees what.** A publishable operator key (a storefront's browser) and a secret\noperator key (the operator's server) can both check out. The operator's terms in\n`merchant_breakdown` (`commission_amount`, `net_amount`, `commission_rule_id`,\n`shipping_amount`, `shipping_retained`, `shipping_commission`) are returned to the secret key\nonly, including on an idempotent replay.\n\n**Discounts.** Pass the optional `discounts` array to apply a merchant's own\npromotion or gift card to that merchant's portion of the basket — each entry\nnames the `merchant_store_id` and an optional `promotion_id` and/or\n`gift_card_code`, and the discount reduces only that merchant's subtotal.\nMarketplace-wide promotions run by the operator apply automatically; you do not\npass them. The response reports `discount_total`, the\n`operator_funded_discount` (the share the operator funded), a per-merchant\n`discount_breakdown`, and `discount_amount` plus `merchant_gross` on each\n`merchant_breakdown` entry.\n\n🛡️ **The server is the price authority (anti-tampering).** You never send money\namounts on this call — only identifiers. Each item's price is recomputed from the\nmarketplace catalog, and a `discounts` entry only *names* a `promotion_id` /\n`gift_card_code`; the server independently resolves the actual discount that\nmerchant's promotion or gift card grants (and the operator-funded share),\ncomputes every `gross`, `discount_amount`, `merchant_gross`, commission, and the\npayment total from those resolved values, and charges exactly that. A named\ndiscount that doesn't validate (expired, ineligible, wrong store) is rejected with\n`400 discount_invalid` rather than silently applied. There is no client-supplied\n`discount_amount` or per-item price to tamper with — a manipulated basket cannot\nlower what is charged. The resolved breakdown is then held server-side and used\nverbatim to finalize the order after payment succeeds; nothing the client sends\nafter checkout can change what each merchant is paid.\n\n**Shipping.** Each merchant's items are delivered, and priced, separately: one shipping\nline per merchant. By default each merchant's own delivery rates price their line, from\nthe `shipping_destination` (or the `shipping_address`, which is located when no\ndestination is sent). The marketplace may instead charge a flat rate per merchant, and may\nset a free-shipping threshold: a merchant whose items total at least that much ships free.\nTo offer carrier options, send a street `shipping_address` and a `parcel` per merchant in\n`shipping_selections` to `POST /v1/cart/checkout/quote`; to choose one, send its `rate_id`\nhere. Shipping is paid to whoever ships the items — the merchant, or the marketplace when\nit ships on the merchant's behalf. `total_amount` includes shipping, `shipping_total`\nreports it, and `shipping_breakdown` lists each merchant's line. A shipping amount is never\nread from the request. The same computation runs on `POST /v1/cart/checkout/quote`, so the\nshopper can see each line before paying.\n\nStock is reserved at checkout: the items are held against each merchant's\ninventory immediately so concurrent shoppers cannot oversell the last units,\nand the hold becomes a real stock reduction when payment succeeds. If an item\ncannot be held, the call returns `400 insufficient_stock` and no order or\npayment is created. Holds expire automatically if payment is never completed,\nreturning the stock to availability.\n\n**The shopper.** Send the shopper's credential to tie the purchase to them: a\nGalactic Core shopper session in `x-auth-token` (also accepted as\n`x-customer-token`), or an assertion signed by the marketplace's own backend in\n`x-external-auth`. With neither, the checkout is a guest checkout. The purchase is\nrecorded against that credential, which is what later lets the shopper see it in\n`GET /v1/customers/me`, return it, and dispute it. A guest purchase becomes\nvisible to an account once that account has verified its email address with a\none-time code.\n\n**Wallet.** A signed-in shopper can spend their marketplace wallet balance: send\n`wallet_amount` to spend up to that much, or `use_wallet: true` to spend as much\nas the checkout allows. The balance is held while payment is pending and returned\nif the payment fails or is abandoned. The charge never falls below the payment\nprovider's minimum for the currency, so a wallet cannot pay for a whole basket.\nThe response reports `wallet_applied`, and `total_amount` is the amount charged\nafter it. Each merchant is still paid their full net: the marketplace operator\nfunds the wallet.\n\nCurrency: every price is charged in the marketplace's currency. A merchant who prices in\nanother currency is converted with the exchange rate the marketplace sets for that currency —\nitems, the merchant's discounts, gift-card amounts and delivery fees alike, each rounded to\nthe marketplace currency's decimal places. A merchant whose currency has no rate in the\nmarketplace cannot be bought from there (`400 item_currency_unsupported`).\n\nShipping: each merchant's items are priced by that merchant's delivery rates, converted to\nthe marketplace's currency with the marketplace's exchange rate; items the marketplace ships\nitself are priced by the marketplace's own delivery rates (`pricing: operator_rate`). A\nmarketplace flat rate or free-shipping threshold overrides both.\n\nShipping errors: `400 shipping_destination_required` when a merchant's delivery rate needs\na location and none can be found, `400 shipping_not_deliverable` when a merchant (or the\nmarketplace, for items it ships) does not deliver to the address, `400\nshipping_currency_unsupported` when the marketplace has no exchange rate for the currency a\nmerchant's delivery rates are set in, `400 shipping_rate_invalid` when a chosen carrier option is unknown,\nexpired, not in the marketplace's currency, or chosen for items the marketplace ships itself,\nand `502 shipping_unavailable` when shipping cannot be priced right now.\n\nRequires the marketplace operator key.\n\nSend an `Idempotency-Key` header to make a retry safe: a repeat of the same request with the\nsame key returns the purchase the first attempt created (`200`, the same `order_group_id` and\nPaymentIntent) instead of creating a second order, holding stock twice or raising a second\ncharge. Keys are unique per marketplace and environment.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/cart/checkout","href":"/api-reference/marketplace/check-out-a-multi-merchant-cart","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/tybritelabs/af1ac4e439492905/sync.js","/_mintlify/custom/tybritelabs/cffa438ecec94ea5/scripts/check-tldp-isolation.js"],"openApiReferenceData":{"operation":{"operationId":"marketplaceCheckout","tags":["Marketplace"],"summary":"Check out a multi-merchant cart","description":"Create a single order for a cart that contains items from multiple merchants\nin the marketplace, and start a payment for the whole basket. Each item names\nthe merchant it belongs to; items are validated against the marketplace catalog,\ncommission is resolved per merchant, and one payment covers the entire order.\n\nThe response includes a `client_secret` to complete the payment on the\nstorefront and a per-merchant breakdown of gross, discount, commission, and net\namounts. Once payment succeeds, the order finalizes automatically — no further\ncall is required.\n\n**Which key sees what.** A publishable operator key (a storefront's browser) and a secret\noperator key (the operator's server) can both check out. The operator's terms in\n`merchant_breakdown` (`commission_amount`, `net_amount`, `commission_rule_id`,\n`shipping_amount`, `shipping_retained`, `shipping_commission`) are returned to the secret key\nonly, including on an idempotent replay.\n\n**Discounts.** Pass the optional `discounts` array to apply a merchant's own\npromotion or gift card to that merchant's portion of the basket — each entry\nnames the `merchant_store_id` and an optional `promotion_id` and/or\n`gift_card_code`, and the discount reduces only that merchant's subtotal.\nMarketplace-wide promotions run by the operator apply automatically; you do not\npass them. The response reports `discount_total`, the\n`operator_funded_discount` (the share the operator funded), a per-merchant\n`discount_breakdown`, and `discount_amount` plus `merchant_gross` on each\n`merchant_breakdown` entry.\n\n🛡️ **The server is the price authority (anti-tampering).** You never send money\namounts on this call — only identifiers. Each item's price is recomputed from the\nmarketplace catalog, and a `discounts` entry only *names* a `promotion_id` /\n`gift_card_code`; the server independently resolves the actual discount that\nmerchant's promotion or gift card grants (and the operator-funded share),\ncomputes every `gross`, `discount_amount`, `merchant_gross`, commission, and the\npayment total from those resolved values, and charges exactly that. A named\ndiscount that doesn't validate (expired, ineligible, wrong store) is rejected with\n`400 discount_invalid` rather than silently applied. There is no client-supplied\n`discount_amount` or per-item price to tamper with — a manipulated basket cannot\nlower what is charged. The resolved breakdown is then held server-side and used\nverbatim to finalize the order after payment succeeds; nothing the client sends\nafter checkout can change what each merchant is paid.\n\n**Shipping.** Each merchant's items are delivered, and priced, separately: one shipping\nline per merchant. By default each merchant's own delivery rates price their line, from\nthe `shipping_destination` (or the `shipping_address`, which is located when no\ndestination is sent). The marketplace may instead charge a flat rate per merchant, and may\nset a free-shipping threshold: a merchant whose items total at least that much ships free.\nTo offer carrier options, send a street `shipping_address` and a `parcel` per merchant in\n`shipping_selections` to `POST /v1/cart/checkout/quote`; to choose one, send its `rate_id`\nhere. Shipping is paid to whoever ships the items — the merchant, or the marketplace when\nit ships on the merchant's behalf. `total_amount` includes shipping, `shipping_total`\nreports it, and `shipping_breakdown` lists each merchant's line. A shipping amount is never\nread from the request. The same computation runs on `POST /v1/cart/checkout/quote`, so the\nshopper can see each line before paying.\n\nStock is reserved at checkout: the items are held against each merchant's\ninventory immediately so concurrent shoppers cannot oversell the last units,\nand the hold becomes a real stock reduction when payment succeeds. If an item\ncannot be held, the call returns `400 insufficient_stock` and no order or\npayment is created. Holds expire automatically if payment is never completed,\nreturning the stock to availability.\n\n**The shopper.** Send the shopper's credential to tie the purchase to them: a\nGalactic Core shopper session in `x-auth-token` (also accepted as\n`x-customer-token`), or an assertion signed by the marketplace's own backend in\n`x-external-auth`. With neither, the checkout is a guest checkout. The purchase is\nrecorded against that credential, which is what later lets the shopper see it in\n`GET /v1/customers/me`, return it, and dispute it. A guest purchase becomes\nvisible to an account once that account has verified its email address with a\none-time code.\n\n**Wallet.** A signed-in shopper can spend their marketplace wallet balance: send\n`wallet_amount` to spend up to that much, or `use_wallet: true` to spend as much\nas the checkout allows. The balance is held while payment is pending and returned\nif the payment fails or is abandoned. The charge never falls below the payment\nprovider's minimum for the currency, so a wallet cannot pay for a whole basket.\nThe response reports `wallet_applied`, and `total_amount` is the amount charged\nafter it. Each merchant is still paid their full net: the marketplace operator\nfunds the wallet.\n\nCurrency: every price is charged in the marketplace's currency. A merchant who prices in\nanother currency is converted with the exchange rate the marketplace sets for that currency —\nitems, the merchant's discounts, gift-card amounts and delivery fees alike, each rounded to\nthe marketplace currency's decimal places. A merchant whose currency has no rate in the\nmarketplace cannot be bought from there (`400 item_currency_unsupported`).\n\nShipping: each merchant's items are priced by that merchant's delivery rates, converted to\nthe marketplace's currency with the marketplace's exchange rate; items the marketplace ships\nitself are priced by the marketplace's own delivery rates (`pricing: operator_rate`). A\nmarketplace flat rate or free-shipping threshold overrides both.\n\nShipping errors: `400 shipping_destination_required` when a merchant's delivery rate needs\na location and none can be found, `400 shipping_not_deliverable` when a merchant (or the\nmarketplace, for items it ships) does not deliver to the address, `400\nshipping_currency_unsupported` when the marketplace has no exchange rate for the currency a\nmerchant's delivery rates are set in, `400 shipping_rate_invalid` when a chosen carrier option is unknown,\nexpired, not in the marketplace's currency, or chosen for items the marketplace ships itself,\nand `502 shipping_unavailable` when shipping cannot be priced right now.\n\nRequires the marketplace operator key.\n\nSend an `Idempotency-Key` header to make a retry safe: a repeat of the same request with the\nsame key returns the purchase the first attempt created (`200`, the same `order_group_id` and\nPaymentIntent) instead of creating a second order, holding stock twice or raising a second\ncharge. Keys are unique per marketplace and environment.\n","security":["b6f42c8b-7973-4a1e-8ce8-da2a60516ee2"],"parameters":["38fe4c22-25b1-4ea0-a1bb-e3d735eb2f0e","41db0561-10d1-48ec-a9d4-2a605c81f52f","be3687c7-4297-4b90-a74e-9f6326a4391b","4005f75c-d02c-4a50-a703-6460e4bba022"],"requestBody":"0476fd3b-221e-43bb-8921-e931bd434548","responses":{"200":"f56cbb49-97b9-4ac3-8380-059b8c7de4cf","201":"ba083607-2c34-4b11-9a1e-b21b76bce639","400":"f92c5967-92a5-4dc3-b0f2-7df95a5b7001","401":"6bf17d45-1ffc-456c-a10f-f19ad6c62ea9","402":"19029922-ac6e-4a7e-9ab8-d91247c1c8fe","403":"fe4b4bd0-8bf0-4690-9bb0-3227b0f29ad5","404":"48a62fc5-791e-4f24-95b6-00d8b99cbfb8","409":"86df7eb1-5961-4f8a-b037-28be9f66dac4","500":"f96b86ca-10c9-4e24-9fbe-5973b8d3dfad","502":"26b99122-726c-463a-9bb6-f9007e1382ed"},"method":"post","type":"path","servers":["23497b63-1a0b-4f70-a5d0-9eec416be49d"],"path":"/v1/cart/checkout","baseUrlOptions":["https://api.tybritelabs.com"],"title":"Check out a multi-merchant cart","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"38fe4c22-25b1-4ea0-a1bb-e3d735eb2f0e":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255,"isRequired":false,"description":"A unique key for this checkout attempt. Repeating the request with the same key and the same body returns the original result with `200`; the same key with a different body is refused with `409 idempotency_conflict`.","uniqueKey":"","typeLabel":"string"},"example":"checkout-7f3c2a91-4d1e","description":"A unique key for this checkout attempt. Repeating the request with the same key and the same body returns the original result with `200`; the same key with a different body is refused with `409 idempotency_conflict`."},"41db0561-10d1-48ec-a9d4-2a605c81f52f":{"name":"x-auth-token","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"Session token of a shopper signed in through Galactic Core, tying the checkout to their account rather than treating it as a guest checkout. Optional; send at most one shopper credential.","uniqueKey":"","typeLabel":"string"},"description":"Session token of a shopper signed in through Galactic Core, tying the checkout to their account rather than treating it as a guest checkout. Optional; send at most one shopper credential."},"be3687c7-4297-4b90-a74e-9f6326a4391b":{"name":"x-customer-token","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"Alias of `x-auth-token`.","uniqueKey":"","typeLabel":"string"},"description":"Alias of `x-auth-token`."},"4005f75c-d02c-4a50-a703-6460e4bba022":{"name":"x-external-auth","in":"header","required":false,"schema":{"type":"string","isRequired":false,"description":"A shopper assertion signed by the marketplace's own backend with the marketplace's signing secret, for marketplaces that run their own sign-in. The claim carries `external_id`, `iat` and `exp` (at most 300 seconds apart), and optionally `email` with `email_verified: true`. Optional; send at most one shopper credential.","uniqueKey":"","typeLabel":"string"},"description":"A shopper assertion signed by the marketplace's own backend with the marketplace's signing secret, for marketplaces that run their own sign-in. The claim carries `external_id`, `iat` and `exp` (at most 300 seconds apart), and optionally `email` with `email_verified: true`. Optional; send at most one shopper credential."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items","customer_email"],"properties":{"items":{"type":"array","minItems":1,"description":"The cart line items to check out.","items":{"type":"object","required":["variant_id","merchant_store_id","quantity"],"properties":{"variant_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variant_id","typeLabel":"string\u003cuuid>"},"merchant_store_id":{"type":"string","format":"uuid","description":"The merchant that sells this item.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"quantity":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"integer"},"product_id":{"type":"string","format":"uuid","uniqueKey":"\\items.items.[INDEX].product_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"},"customer_email":{"type":"string","format":"email","isRequired":true,"uniqueKey":"customer_email","typeLabel":"string\u003cemail>"},"customer_name":{"type":"string","uniqueKey":"customer_name","typeLabel":"string"},"customer_phone":{"type":"string","uniqueKey":"customer_phone","typeLabel":"string"},"currency":{"type":"string","description":"ISO currency code for the order. Defaults to USD.","example":"USD","uniqueKey":"currency","typeLabel":"string"},"shipping_address":{"type":"object","additionalProperties":true,"description":"Where the order is going (`line1`, `line2`, `city`, `state`, `postal_code`, `country`). Located to price shipping when `shipping_destination` is omitted.","uniqueKey":"shipping_address","typeLabel":"object"},"shipping_destination":{"type":"object","description":"Where the basket is going, used to price each merchant's delivery rates. Send coordinates, or a place name. When omitted, the `shipping_address` is located instead.","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90,"example":40.7589,"uniqueKey":"shipping_destination.latitude","typeLabel":"number"},"longitude":{"type":"number","minimum":-180,"maximum":180,"example":-73.9851,"uniqueKey":"shipping_destination.longitude","typeLabel":"number"},"place_name":{"type":"string","maxLength":300,"description":"A place to locate when coordinates are not known, such as a city or a full address.","example":"New York, NY 10036, US","uniqueKey":"shipping_destination.place_name","typeLabel":"string"},"country_code":{"type":"string","description":"ISO 3166-1 alpha-2 country code narrowing `place_name`.","example":"US","uniqueKey":"shipping_destination.country_code","typeLabel":"string"}},"uniqueKey":"shipping_destination","typeLabel":"object"},"shipping_selections":{"type":"array","description":"Optional per-merchant shipping choices: a carrier option (`rate_id`) returned by `POST /v1/cart/checkout/quote`. Without one, the merchant's own delivery rate applies.","items":{"type":"object","description":"A choice for one merchant's delivery. `parcel` asks for that merchant's carrier options in a quote; `rate_id` chooses one of the options a quote returned. The amount is never sent: the option is checked again against the merchant's carrier account and charged at its current price.","required":["merchant_store_id"],"properties":{"merchant_store_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"shipping_selections.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"parcel":{"type":"object","description":"The parcel for this merchant's items, needed for carrier options.","required":["length","width","height","distance_unit","weight","mass_unit"],"properties":{"length":{"type":"string","example":"10","isRequired":true,"uniqueKey":"shipping_selections.items.[INDEX].parcel.length","typeLabel":"string"},"width":{"type":"string","example":"8","isRequired":true,"uniqueKey":"shipping_selections.items.[INDEX].parcel.width","typeLabel":"string"},"height":{"type":"string","example":"4","isRequired":true,"uniqueKey":"shipping_selections.items.[INDEX].parcel.height","typeLabel":"string"},"distance_unit":{"type":"string","example":"in","isRequired":true,"uniqueKey":"shipping_selections.items.[INDEX].parcel.distance_unit","typeLabel":"string"},"weight":{"type":"string","example":"2","isRequired":true,"uniqueKey":"shipping_selections.items.[INDEX].parcel.weight","typeLabel":"string"},"mass_unit":{"type":"string","example":"lb","isRequired":true,"uniqueKey":"shipping_selections.items.[INDEX].parcel.mass_unit","typeLabel":"string"}},"uniqueKey":"shipping_selections.items.[INDEX].parcel","typeLabel":"object"},"rate_id":{"type":"string","description":"A `rate_id` from this merchant's `rates` in a quote.","uniqueKey":"shipping_selections.items.[INDEX].rate_id","typeLabel":"string"},"rate_source":{"type":"string","enum":["shippo","carrier","custom"],"description":"The `source` of the chosen rate, as the quote returned it.","uniqueKey":"shipping_selections.items.[INDEX].rate_source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"shipping_selections.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipping_selections","typeLabel":"object[]"},"billing_address":{"type":"object","additionalProperties":true,"uniqueKey":"billing_address","typeLabel":"object"},"wallet_amount":{"type":"number","exclusiveMinimum":0,"description":"Spend up to this much of the signed-in shopper's marketplace wallet on this checkout. Capped by the balance and by the payment provider's minimum charge.","uniqueKey":"wallet_amount","typeLabel":"number"},"use_wallet":{"type":"boolean","description":"Spend as much of the signed-in shopper's wallet as the checkout allows.","uniqueKey":"use_wallet","typeLabel":"boolean"},"discounts":{"type":"array","description":"Optional per-merchant discounts. Each entry applies a merchant's own promotion and/or gift card to that merchant's portion of the basket, reducing only that merchant's subtotal. Marketplace-wide promotions run by the operator apply automatically and are not passed here.","items":{"type":"object","required":["merchant_store_id"],"properties":{"merchant_store_id":{"type":"string","format":"uuid","description":"The merchant whose portion of the basket this discount applies to.","isRequired":true,"uniqueKey":"discounts.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"promotion_id":{"type":"string","format":"uuid","description":"The merchant's own promotion to apply.","uniqueKey":"discounts.items.[INDEX].promotion_id","typeLabel":"string\u003cuuid>"},"gift_card_code":{"type":"string","description":"A gift card code to redeem against this merchant's portion.","uniqueKey":"discounts.items.[INDEX].gift_card_code","typeLabel":"string"}},"uniqueKey":"discounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"discounts","typeLabel":"object[]"},"attribution":{"type":"object","description":"Where the shopper came from, recorded so the sale is credited to the right traffic source in the merchant's reports, and to the advertising campaign that earned it. The same fields are also accepted at the top level of this request body if you already send them that way. Every field is optional; values that are not recognisable as what the field names are ignored. Each seller's order in the basket keeps a copy.","properties":{"session_id":{"type":"string","description":"The shopper's storefront session, linking the order to their visit.","example":"s_4d7e2f10","uniqueKey":"attribution.session_id","typeLabel":"string"},"utm_source":{"type":"string","example":"google","uniqueKey":"attribution.utm_source","typeLabel":"string"},"utm_medium":{"type":"string","example":"cpc","uniqueKey":"attribution.utm_medium","typeLabel":"string"},"utm_campaign":{"type":"string","description":"The campaign tag the shopper arrived with. For a marketplace's own advertising it is the campaign id carried on the ad's link.","example":"spring-sale","uniqueKey":"attribution.utm_campaign","typeLabel":"string"},"utm_term":{"type":"string","description":"The paid keyword the shopper searched.","example":"running shoes","uniqueKey":"attribution.utm_term","typeLabel":"string"},"utm_content":{"type":"string","description":"The creative or placement the shopper clicked.","example":"hero-video-a","uniqueKey":"attribution.utm_content","typeLabel":"string"},"gclid":{"type":"string","description":"The Google ad click id captured on landing. Forward the captured value unchanged.","example":"Cj0KCQiA...gclid","uniqueKey":"attribution.gclid","typeLabel":"string"},"gbraid":{"type":"string","description":"The Google ad click id for iOS app-to-web traffic, captured on landing.","uniqueKey":"attribution.gbraid","typeLabel":"string"},"wbraid":{"type":"string","description":"The Google ad click id for iOS web-to-app traffic, captured on landing.","uniqueKey":"attribution.wbraid","typeLabel":"string"},"fbclid":{"type":"string","description":"The Meta (Facebook and Instagram) ad click id captured on landing.","example":"IwAR1abc...fbclid","uniqueKey":"attribution.fbclid","typeLabel":"string"},"fbc":{"type":"string","description":"The value of the shopper's `_fbc` browser cookie (`fb.\u003cn>.\u003ctimestamp>.\u003cclick id>`).","example":"fb.1.1763800000000.IwAR1abc","uniqueKey":"attribution.fbc","typeLabel":"string"},"fbp":{"type":"string","description":"The value of the shopper's `_fbp` browser cookie (`fb.\u003cn>.\u003ctimestamp>.\u003crandom number>`).","example":"fb.1.1763800000000.1234567890","uniqueKey":"attribution.fbp","typeLabel":"string"},"clicked_at":{"type":"string","format":"date-time","description":"When the shopper last clicked the ad. A click is credited to a campaign only while it is inside that campaign's click window; without this field the order is credited on the tag alone.","uniqueKey":"attribution.clicked_at","typeLabel":"string\u003cdate-time>"},"ad_consent":{"type":"object","description":"What the shopper agreed to for advertising. Conversions are reported to an advertising platform only where this permits it: in the European Economic Area and where the country is unknown, `ad_user_data` must be `granted`.","properties":{"ad_user_data":{"type":"string","enum":["granted","denied","unspecified"],"uniqueKey":"attribution.ad_consent.ad_user_data","typeLabel":"enum\u003cstring>"},"ad_personalization":{"type":"string","enum":["granted","denied","unspecified"],"uniqueKey":"attribution.ad_consent.ad_personalization","typeLabel":"enum\u003cstring>"},"jurisdiction":{"type":"string","description":"The shopper's region (`EEA`, `UK`, `CH`, or an ISO country code) when the storefront resolves it; otherwise the delivery country decides.","example":"EEA","uniqueKey":"attribution.ad_consent.jurisdiction","typeLabel":"string"}},"uniqueKey":"attribution.ad_consent","typeLabel":"object"},"referrer":{"type":"string","example":"https://www.google.com/","uniqueKey":"attribution.referrer","typeLabel":"string"}},"uniqueKey":"attribution","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"items":[{"product_id":"11111111-1111-1111-1111-111111111111","variant_id":"22222222-2222-2222-2222-222222222222","merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","quantity":2}],"customer_email":"john.doe@example.com","customer_name":"John Doe","currency":"USD","shipping_address":{"line1":"350 5th Ave","city":"New York","state":"NY","postal_code":"10118","country":"US"},"shipping_destination":{"latitude":40.7484,"longitude":-73.9857},"discounts":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","promotion_id":"8a7b6c5d-1234-5678-9abc-def012345678","gift_card_code":"GC-XXXX-YYYY"}]},"examples":{"Example":{"title":"Example","value":{"items":[{"product_id":"11111111-1111-1111-1111-111111111111","variant_id":"22222222-2222-2222-2222-222222222222","merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","quantity":2}],"customer_email":"john.doe@example.com","customer_name":"John Doe","currency":"USD","shipping_address":{"line1":"350 5th Ave","city":"New York","state":"NY","postal_code":"10118","country":"US"},"shipping_destination":{"latitude":40.7484,"longitude":-73.9857},"discounts":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","promotion_id":"8a7b6c5d-1234-5678-9abc-def012345678","gift_card_code":"GC-XXXX-YYYY"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"f56cbb49-97b9-4ac3-8380-059b8c7de4cf":{"description":"A repeat of an earlier checkout with the same `Idempotency-Key` and body. The body is the original checkout's result, with the same `order_group_id` and `payment_intent_id`.","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","description":"A created multi-merchant order awaiting payment. Use `client_secret` to\ncomplete the payment on the storefront; the order finalizes automatically\nonce payment succeeds.\n","properties":{"order_group_id":{"type":"string","format":"uuid","description":"Identifier for the multi-merchant order.","uniqueKey":"order_group_id","typeLabel":"string\u003cuuid>"},"group_number":{"type":"string","description":"Human-readable reference for the order.","example":"MKT-100042","uniqueKey":"group_number","typeLabel":"string"},"payment_intent_id":{"type":"string","description":"Identifier of the payment to complete on the storefront.","uniqueKey":"payment_intent_id","typeLabel":"string"},"client_secret":{"type":"string","description":"Secret used by the storefront payment form to complete the charge.","uniqueKey":"client_secret","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"currency","typeLabel":"string"},"subtotal":{"type":"number","example":245,"uniqueKey":"subtotal","typeLabel":"number"},"total_amount":{"type":"number","description":"The amount charged — the basket after every discount, plus shipping, less `wallet_applied`.","example":245,"uniqueKey":"total_amount","typeLabel":"number"},"shipping_total":{"type":"number","description":"Shipping across every merchant, included in `total_amount`.","example":15,"uniqueKey":"shipping_total","typeLabel":"number"},"shipping_breakdown":{"type":"array","description":"One shipping line per merchant.","items":{"type":"object","description":"One merchant's shipping line, as the shopper sees it.","properties":{"merchant_store_id":{"type":"string","format":"uuid","uniqueKey":"shipping_breakdown.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"amount":{"type":"number","description":"What the shopper pays to deliver this merchant's items.","example":6,"uniqueKey":"shipping_breakdown.items.[INDEX].amount","typeLabel":"number"},"pricing":{"type":"string","enum":["seller_rate","operator_rate","carrier_rate","flat","free"],"description":"What priced the line: the merchant's own delivery rates (`seller_rate`), the marketplace's own delivery rates when the marketplace ships the items (`operator_rate`), a carrier option the shopper chose (`carrier_rate`), the marketplace's flat rate (`flat`), or its free-shipping threshold (`free`).","example":"seller_rate","uniqueKey":"shipping_breakdown.items.[INDEX].pricing","typeLabel":"enum\u003cstring>"},"fulfilled_by":{"type":"string","enum":["seller","marketplace"],"description":"Who ships these items.","example":"seller","uniqueKey":"shipping_breakdown.items.[INDEX].fulfilled_by","typeLabel":"enum\u003cstring>"},"is_free":{"type":"boolean","example":false,"uniqueKey":"shipping_breakdown.items.[INDEX].is_free","typeLabel":"boolean"},"free_threshold":{"oneOf":[{"type":"number","description":"The marketplace's free-shipping threshold: a merchant's items totalling at least this much ship free. Null when the marketplace has none.","example":75,"uniqueKey":"shipping_breakdown.items.[INDEX].free_threshold.oneOf.0","typeLabel":"number"},{"type":"null","description":"The marketplace's free-shipping threshold: a merchant's items totalling at least this much ship free. Null when the marketplace has none.","example":75,"uniqueKey":"shipping_breakdown.items.[INDEX].free_threshold.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].free_threshold","typeLabel":"number | null"},"description":{"oneOf":[{"type":"string","description":"The delivery rate or carrier option that priced this line.","example":"Local delivery","uniqueKey":"shipping_breakdown.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The delivery rate or carrier option that priced this line.","example":"Local delivery","uniqueKey":"shipping_breakdown.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].description","typeLabel":"string | null"},"selected_rate_id":{"oneOf":[{"type":"string","description":"The carrier option charged, when the shopper chose one.","uniqueKey":"shipping_breakdown.items.[INDEX].selected_rate_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The carrier option charged, when the shopper chose one.","uniqueKey":"shipping_breakdown.items.[INDEX].selected_rate_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].selected_rate_id","typeLabel":"string | null"},"rates":{"type":"array","description":"Carrier options for this merchant (quote only), present when the request carried a street address and a `parcel` for this merchant and the merchant ships the items.","items":{"type":"object","description":"One carrier option for a merchant's delivery.","properties":{"rate_id":{"type":"string","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].rate_id","typeLabel":"string"},"provider":{"type":"string","example":"USPS","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].provider","typeLabel":"string"},"service":{"oneOf":[{"type":"string","example":"Priority Mail","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].service.oneOf.0","typeLabel":"string"},{"type":"null","example":"Priority Mail","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].service.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].service","typeLabel":"string | null"},"amount":{"type":"number","example":8.1,"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].amount","typeLabel":"number"},"currency":{"type":"string","example":"USD","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].currency","typeLabel":"string"},"estimated_days":{"oneOf":[{"type":"integer","example":2,"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].estimated_days.oneOf.0","typeLabel":"integer"},{"type":"null","example":2,"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].estimated_days.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].estimated_days","typeLabel":"integer | null"},"source":{"type":"string","enum":["shippo","carrier","custom"],"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipping_breakdown.items.[INDEX].rates","typeLabel":"object[]"}},"uniqueKey":"shipping_breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipping_breakdown","typeLabel":"object[]"},"wallet_applied":{"type":"number","description":"How much of the shopper's marketplace wallet this checkout spends. Held while payment is pending and returned if the payment fails. Funded by the marketplace operator, so each merchant's net is unchanged.","example":0,"uniqueKey":"wallet_applied","typeLabel":"number"},"discount_total":{"type":"number","description":"Total discount applied across the whole basket — the sum of every merchant's own promotion and gift card discounts plus any marketplace-wide promotion run by the operator.","example":10,"uniqueKey":"discount_total","typeLabel":"number"},"operator_funded_discount":{"type":"number","description":"The portion of `discount_total` funded by the marketplace operator (for example a marketplace-wide promotion). The remainder is funded by individual merchants.","example":5,"uniqueKey":"operator_funded_discount","typeLabel":"number"},"discount_breakdown":{"type":"array","description":"Per-merchant breakdown of how discounts were applied.","items":{"type":"object","properties":{"merchant_store_id":{"type":"string","format":"uuid","uniqueKey":"discount_breakdown.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"merchant_discount":{"type":"number","description":"Discount funded by this merchant's own promotion.","example":5,"uniqueKey":"discount_breakdown.items.[INDEX].merchant_discount","typeLabel":"number"},"gift_card_amount":{"type":"number","description":"Amount redeemed from a gift card against this merchant's portion.","example":0,"uniqueKey":"discount_breakdown.items.[INDEX].gift_card_amount","typeLabel":"number"},"operator_funded_discount":{"type":"number","description":"Discount applied to this merchant's portion that the marketplace operator funded (for example a marketplace-wide promotion).","example":5,"uniqueKey":"discount_breakdown.items.[INDEX].operator_funded_discount","typeLabel":"number"}},"uniqueKey":"discount_breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"discount_breakdown","typeLabel":"object[]"},"merchant_breakdown":{"type":"array","description":"Per-merchant gross, discount, commission, and net amounts for this order.","items":{"type":"object","description":"Commission, shipping and payout breakdown for a single merchant within a unified order. The operator's terms (`commission_amount`, `net_amount`, `commission_rule_id`, `shipping_amount`, `shipping_retained` and `shipping_commission`) are returned to a secret operator key only; a publishable key receives the other fields.","properties":{"merchant_store_id":{"type":"string","format":"uuid","uniqueKey":"merchant_breakdown.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"gross_amount":{"type":"number","description":"Total of this merchant's items before any discount is applied.","example":130,"uniqueKey":"merchant_breakdown.items.[INDEX].gross_amount","typeLabel":"number"},"discount_amount":{"type":"number","description":"Total discount applied to this merchant's portion of the basket (the merchant's own promotion and/or gift card). Reduces this merchant's subtotal.","example":10,"uniqueKey":"merchant_breakdown.items.[INDEX].discount_amount","typeLabel":"number"},"merchant_gross":{"type":"number","description":"Total of this merchant's items after their own discount — the base commission is charged on.","example":120,"uniqueKey":"merchant_breakdown.items.[INDEX].merchant_gross","typeLabel":"number"},"operator_funded_discount":{"type":"number","description":"Discount on this merchant's portion funded by the marketplace operator. Lowers what the shopper pays, not what the merchant is paid.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].operator_funded_discount","typeLabel":"number"},"fulfillment_mode":{"type":"string","enum":["merchant","operator"],"description":"Who ships this merchant's items: the merchant, or the marketplace operator on their behalf. Decided at checkout, and decides who receives the shipping.","example":"merchant","uniqueKey":"merchant_breakdown.items.[INDEX].fulfillment_mode","typeLabel":"enum\u003cstring>"},"shipping_charged":{"type":"number","description":"What the shopper pays for delivering this merchant's items.","example":6,"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_charged","typeLabel":"number"},"shipping_amount":{"type":"number","description":"The part of `shipping_charged` the merchant receives — all of it when the merchant ships, none when the marketplace does. Secret operator key only.","example":6,"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_amount","typeLabel":"number"},"shipping_retained":{"type":"number","description":"The part of `shipping_charged` the marketplace keeps because it ships these items. Secret operator key only.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_retained","typeLabel":"number"},"shipping_commission":{"type":"number","description":"Commission taken on the merchant's shipping, when the marketplace charges commission on shipping. Included in `commission_amount`. Secret operator key only.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_commission","typeLabel":"number"},"shipping_pricing":{"type":"string","enum":["seller_rate","operator_rate","carrier_rate","flat","free"],"description":"How the shipping was priced: the merchant's own delivery rates, the marketplace operator's rates, a carrier option the shopper chose, the marketplace's flat rate, or free under the marketplace's free-shipping threshold.","example":"seller_rate","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_pricing","typeLabel":"enum\u003cstring>"},"commission_amount":{"type":"number","description":"Commission deducted from this merchant's share, including any `shipping_commission`. Secret operator key only.","example":12,"uniqueKey":"merchant_breakdown.items.[INDEX].commission_amount","typeLabel":"number"},"net_amount":{"type":"number","description":"Amount this merchant receives: `merchant_gross` plus `shipping_amount`, less `commission_amount`. Secret operator key only.","example":114,"uniqueKey":"merchant_breakdown.items.[INDEX].net_amount","typeLabel":"number"},"commission_rule_id":{"oneOf":[{"type":"string","format":"uuid","description":"Identifier of the commission rule applied to this merchant, or null if none matched. Secret operator key only.","uniqueKey":"merchant_breakdown.items.[INDEX].commission_rule_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Identifier of the commission rule applied to this merchant, or null if none matched. Secret operator key only.","uniqueKey":"merchant_breakdown.items.[INDEX].commission_rule_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_breakdown.items.[INDEX].commission_rule_id","typeLabel":"string\u003cuuid> | null"},"seller_currency":{"type":"string","description":"The currency this seller prices in (ISO 4217, upper case).","example":"GBP","uniqueKey":"merchant_breakdown.items.[INDEX].seller_currency","typeLabel":"string"},"currency_rate":{"type":"number","description":"Rate used to convert the seller's prices into the cart currency.","example":1.27,"uniqueKey":"merchant_breakdown.items.[INDEX].currency_rate","typeLabel":"number"},"gross_seller_amount":{"type":"number","description":"`gross_amount` in the seller's currency.","example":120,"uniqueKey":"merchant_breakdown.items.[INDEX].gross_seller_amount","typeLabel":"number"},"merchant_gross_seller":{"type":"number","description":"`merchant_gross` in the seller's currency.","example":114,"uniqueKey":"merchant_breakdown.items.[INDEX].merchant_gross_seller","typeLabel":"number"},"shipping_description":{"oneOf":[{"type":"string","description":"Human label of the shipping applied, for example `Flat rate`.","example":"Flat rate","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human label of the shipping applied, for example `Flat rate`.","example":"Flat rate","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_description","typeLabel":"string | null"},"shipping_rate":{"oneOf":[{"type":"object","additionalProperties":true,"description":"The carrier option chosen; null unless `shipping_pricing` is `carrier_rate`.","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_rate.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"The carrier option chosen; null unless `shipping_pricing` is `carrier_rate`.","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_rate","typeLabel":"object | null"},"gift_card_amount":{"type":"number","description":"Gift card value applied to this merchant's share, in the cart currency.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].gift_card_amount","typeLabel":"number"},"gift_card_amount_seller":{"type":"number","description":"The same gift card amount in the seller's currency.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].gift_card_amount_seller","typeLabel":"number"}},"uniqueKey":"merchant_breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"merchant_breakdown","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"order_group_id":"44444444-4444-4444-4444-444444444444","group_number":"MKT-100042","payment_intent_id":"pi_3Pxxxxxxxxxxxx","client_secret":"pi_3Pxxxxxxxxxxxx_secret_yyyyyyyy","currency":"USD","subtotal":245,"total_amount":235.99,"shipping_total":5.99,"wallet_applied":0,"discount_total":15,"operator_funded_discount":5,"discount_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","merchant_discount":10,"gift_card_amount":0,"operator_funded_discount":5}],"shipping_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","amount":5.99,"pricing":"seller_rate","fulfilled_by":"seller","is_free":false,"free_threshold":null,"description":"Local (within 10 km)","selected_rate_id":null}],"merchant_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","gross_amount":245,"discount_amount":10,"merchant_gross":235,"operator_funded_discount":5,"fulfillment_mode":"merchant","shipping_charged":5.99,"shipping_amount":5.99,"shipping_retained":0,"shipping_commission":0,"shipping_pricing":"seller_rate","commission_amount":23.5,"net_amount":217.49,"commission_rule_id":"7e6d5c4b-1234-5678-9abc-def012345678"}]},"examples":{"Example":{"title":"Example","value":{"order_group_id":"44444444-4444-4444-4444-444444444444","group_number":"MKT-100042","payment_intent_id":"pi_3Pxxxxxxxxxxxx","client_secret":"pi_3Pxxxxxxxxxxxx_secret_yyyyyyyy","currency":"USD","subtotal":245,"total_amount":235.99,"shipping_total":5.99,"wallet_applied":0,"discount_total":15,"operator_funded_discount":5,"discount_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","merchant_discount":10,"gift_card_amount":0,"operator_funded_discount":5}],"shipping_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","amount":5.99,"pricing":"seller_rate","fulfilled_by":"seller","is_free":false,"free_threshold":null,"description":"Local (within 10 km)","selected_rate_id":null}],"merchant_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","gross_amount":245,"discount_amount":10,"merchant_gross":235,"operator_funded_discount":5,"fulfillment_mode":"merchant","shipping_charged":5.99,"shipping_amount":5.99,"shipping_retained":0,"shipping_commission":0,"shipping_pricing":"seller_rate","commission_amount":23.5,"net_amount":217.49,"commission_rule_id":"7e6d5c4b-1234-5678-9abc-def012345678"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"ba083607-2c34-4b11-9a1e-b21b76bce639":{"description":"The multi-merchant order was created and is awaiting payment.","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","description":"A created multi-merchant order awaiting payment. Use `client_secret` to\ncomplete the payment on the storefront; the order finalizes automatically\nonce payment succeeds.\n","properties":{"order_group_id":{"type":"string","format":"uuid","description":"Identifier for the multi-merchant order.","uniqueKey":"order_group_id","typeLabel":"string\u003cuuid>"},"group_number":{"type":"string","description":"Human-readable reference for the order.","example":"MKT-100042","uniqueKey":"group_number","typeLabel":"string"},"payment_intent_id":{"type":"string","description":"Identifier of the payment to complete on the storefront.","uniqueKey":"payment_intent_id","typeLabel":"string"},"client_secret":{"type":"string","description":"Secret used by the storefront payment form to complete the charge.","uniqueKey":"client_secret","typeLabel":"string"},"currency":{"type":"string","example":"USD","uniqueKey":"currency","typeLabel":"string"},"subtotal":{"type":"number","example":245,"uniqueKey":"subtotal","typeLabel":"number"},"total_amount":{"type":"number","description":"The amount charged — the basket after every discount, plus shipping, less `wallet_applied`.","example":245,"uniqueKey":"total_amount","typeLabel":"number"},"shipping_total":{"type":"number","description":"Shipping across every merchant, included in `total_amount`.","example":15,"uniqueKey":"shipping_total","typeLabel":"number"},"shipping_breakdown":{"type":"array","description":"One shipping line per merchant.","items":{"type":"object","description":"One merchant's shipping line, as the shopper sees it.","properties":{"merchant_store_id":{"type":"string","format":"uuid","uniqueKey":"shipping_breakdown.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"amount":{"type":"number","description":"What the shopper pays to deliver this merchant's items.","example":6,"uniqueKey":"shipping_breakdown.items.[INDEX].amount","typeLabel":"number"},"pricing":{"type":"string","enum":["seller_rate","operator_rate","carrier_rate","flat","free"],"description":"What priced the line: the merchant's own delivery rates (`seller_rate`), the marketplace's own delivery rates when the marketplace ships the items (`operator_rate`), a carrier option the shopper chose (`carrier_rate`), the marketplace's flat rate (`flat`), or its free-shipping threshold (`free`).","example":"seller_rate","uniqueKey":"shipping_breakdown.items.[INDEX].pricing","typeLabel":"enum\u003cstring>"},"fulfilled_by":{"type":"string","enum":["seller","marketplace"],"description":"Who ships these items.","example":"seller","uniqueKey":"shipping_breakdown.items.[INDEX].fulfilled_by","typeLabel":"enum\u003cstring>"},"is_free":{"type":"boolean","example":false,"uniqueKey":"shipping_breakdown.items.[INDEX].is_free","typeLabel":"boolean"},"free_threshold":{"oneOf":[{"type":"number","description":"The marketplace's free-shipping threshold: a merchant's items totalling at least this much ship free. Null when the marketplace has none.","example":75,"uniqueKey":"shipping_breakdown.items.[INDEX].free_threshold.oneOf.0","typeLabel":"number"},{"type":"null","description":"The marketplace's free-shipping threshold: a merchant's items totalling at least this much ship free. Null when the marketplace has none.","example":75,"uniqueKey":"shipping_breakdown.items.[INDEX].free_threshold.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].free_threshold","typeLabel":"number | null"},"description":{"oneOf":[{"type":"string","description":"The delivery rate or carrier option that priced this line.","example":"Local delivery","uniqueKey":"shipping_breakdown.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The delivery rate or carrier option that priced this line.","example":"Local delivery","uniqueKey":"shipping_breakdown.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].description","typeLabel":"string | null"},"selected_rate_id":{"oneOf":[{"type":"string","description":"The carrier option charged, when the shopper chose one.","uniqueKey":"shipping_breakdown.items.[INDEX].selected_rate_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The carrier option charged, when the shopper chose one.","uniqueKey":"shipping_breakdown.items.[INDEX].selected_rate_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].selected_rate_id","typeLabel":"string | null"},"rates":{"type":"array","description":"Carrier options for this merchant (quote only), present when the request carried a street address and a `parcel` for this merchant and the merchant ships the items.","items":{"type":"object","description":"One carrier option for a merchant's delivery.","properties":{"rate_id":{"type":"string","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].rate_id","typeLabel":"string"},"provider":{"type":"string","example":"USPS","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].provider","typeLabel":"string"},"service":{"oneOf":[{"type":"string","example":"Priority Mail","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].service.oneOf.0","typeLabel":"string"},{"type":"null","example":"Priority Mail","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].service.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].service","typeLabel":"string | null"},"amount":{"type":"number","example":8.1,"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].amount","typeLabel":"number"},"currency":{"type":"string","example":"USD","uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].currency","typeLabel":"string"},"estimated_days":{"oneOf":[{"type":"integer","example":2,"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].estimated_days.oneOf.0","typeLabel":"integer"},{"type":"null","example":2,"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].estimated_days.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].estimated_days","typeLabel":"integer | null"},"source":{"type":"string","enum":["shippo","carrier","custom"],"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX].source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"shipping_breakdown.items.[INDEX].rates.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipping_breakdown.items.[INDEX].rates","typeLabel":"object[]"}},"uniqueKey":"shipping_breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipping_breakdown","typeLabel":"object[]"},"wallet_applied":{"type":"number","description":"How much of the shopper's marketplace wallet this checkout spends. Held while payment is pending and returned if the payment fails. Funded by the marketplace operator, so each merchant's net is unchanged.","example":0,"uniqueKey":"wallet_applied","typeLabel":"number"},"discount_total":{"type":"number","description":"Total discount applied across the whole basket — the sum of every merchant's own promotion and gift card discounts plus any marketplace-wide promotion run by the operator.","example":10,"uniqueKey":"discount_total","typeLabel":"number"},"operator_funded_discount":{"type":"number","description":"The portion of `discount_total` funded by the marketplace operator (for example a marketplace-wide promotion). The remainder is funded by individual merchants.","example":5,"uniqueKey":"operator_funded_discount","typeLabel":"number"},"discount_breakdown":{"type":"array","description":"Per-merchant breakdown of how discounts were applied.","items":{"type":"object","properties":{"merchant_store_id":{"type":"string","format":"uuid","uniqueKey":"discount_breakdown.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"merchant_discount":{"type":"number","description":"Discount funded by this merchant's own promotion.","example":5,"uniqueKey":"discount_breakdown.items.[INDEX].merchant_discount","typeLabel":"number"},"gift_card_amount":{"type":"number","description":"Amount redeemed from a gift card against this merchant's portion.","example":0,"uniqueKey":"discount_breakdown.items.[INDEX].gift_card_amount","typeLabel":"number"},"operator_funded_discount":{"type":"number","description":"Discount applied to this merchant's portion that the marketplace operator funded (for example a marketplace-wide promotion).","example":5,"uniqueKey":"discount_breakdown.items.[INDEX].operator_funded_discount","typeLabel":"number"}},"uniqueKey":"discount_breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"discount_breakdown","typeLabel":"object[]"},"merchant_breakdown":{"type":"array","description":"Per-merchant gross, discount, commission, and net amounts for this order.","items":{"type":"object","description":"Commission, shipping and payout breakdown for a single merchant within a unified order. The operator's terms (`commission_amount`, `net_amount`, `commission_rule_id`, `shipping_amount`, `shipping_retained` and `shipping_commission`) are returned to a secret operator key only; a publishable key receives the other fields.","properties":{"merchant_store_id":{"type":"string","format":"uuid","uniqueKey":"merchant_breakdown.items.[INDEX].merchant_store_id","typeLabel":"string\u003cuuid>"},"gross_amount":{"type":"number","description":"Total of this merchant's items before any discount is applied.","example":130,"uniqueKey":"merchant_breakdown.items.[INDEX].gross_amount","typeLabel":"number"},"discount_amount":{"type":"number","description":"Total discount applied to this merchant's portion of the basket (the merchant's own promotion and/or gift card). Reduces this merchant's subtotal.","example":10,"uniqueKey":"merchant_breakdown.items.[INDEX].discount_amount","typeLabel":"number"},"merchant_gross":{"type":"number","description":"Total of this merchant's items after their own discount — the base commission is charged on.","example":120,"uniqueKey":"merchant_breakdown.items.[INDEX].merchant_gross","typeLabel":"number"},"operator_funded_discount":{"type":"number","description":"Discount on this merchant's portion funded by the marketplace operator. Lowers what the shopper pays, not what the merchant is paid.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].operator_funded_discount","typeLabel":"number"},"fulfillment_mode":{"type":"string","enum":["merchant","operator"],"description":"Who ships this merchant's items: the merchant, or the marketplace operator on their behalf. Decided at checkout, and decides who receives the shipping.","example":"merchant","uniqueKey":"merchant_breakdown.items.[INDEX].fulfillment_mode","typeLabel":"enum\u003cstring>"},"shipping_charged":{"type":"number","description":"What the shopper pays for delivering this merchant's items.","example":6,"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_charged","typeLabel":"number"},"shipping_amount":{"type":"number","description":"The part of `shipping_charged` the merchant receives — all of it when the merchant ships, none when the marketplace does. Secret operator key only.","example":6,"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_amount","typeLabel":"number"},"shipping_retained":{"type":"number","description":"The part of `shipping_charged` the marketplace keeps because it ships these items. Secret operator key only.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_retained","typeLabel":"number"},"shipping_commission":{"type":"number","description":"Commission taken on the merchant's shipping, when the marketplace charges commission on shipping. Included in `commission_amount`. Secret operator key only.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_commission","typeLabel":"number"},"shipping_pricing":{"type":"string","enum":["seller_rate","operator_rate","carrier_rate","flat","free"],"description":"How the shipping was priced: the merchant's own delivery rates, the marketplace operator's rates, a carrier option the shopper chose, the marketplace's flat rate, or free under the marketplace's free-shipping threshold.","example":"seller_rate","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_pricing","typeLabel":"enum\u003cstring>"},"commission_amount":{"type":"number","description":"Commission deducted from this merchant's share, including any `shipping_commission`. Secret operator key only.","example":12,"uniqueKey":"merchant_breakdown.items.[INDEX].commission_amount","typeLabel":"number"},"net_amount":{"type":"number","description":"Amount this merchant receives: `merchant_gross` plus `shipping_amount`, less `commission_amount`. Secret operator key only.","example":114,"uniqueKey":"merchant_breakdown.items.[INDEX].net_amount","typeLabel":"number"},"commission_rule_id":{"oneOf":[{"type":"string","format":"uuid","description":"Identifier of the commission rule applied to this merchant, or null if none matched. Secret operator key only.","uniqueKey":"merchant_breakdown.items.[INDEX].commission_rule_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"Identifier of the commission rule applied to this merchant, or null if none matched. Secret operator key only.","uniqueKey":"merchant_breakdown.items.[INDEX].commission_rule_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_breakdown.items.[INDEX].commission_rule_id","typeLabel":"string\u003cuuid> | null"},"seller_currency":{"type":"string","description":"The currency this seller prices in (ISO 4217, upper case).","example":"GBP","uniqueKey":"merchant_breakdown.items.[INDEX].seller_currency","typeLabel":"string"},"currency_rate":{"type":"number","description":"Rate used to convert the seller's prices into the cart currency.","example":1.27,"uniqueKey":"merchant_breakdown.items.[INDEX].currency_rate","typeLabel":"number"},"gross_seller_amount":{"type":"number","description":"`gross_amount` in the seller's currency.","example":120,"uniqueKey":"merchant_breakdown.items.[INDEX].gross_seller_amount","typeLabel":"number"},"merchant_gross_seller":{"type":"number","description":"`merchant_gross` in the seller's currency.","example":114,"uniqueKey":"merchant_breakdown.items.[INDEX].merchant_gross_seller","typeLabel":"number"},"shipping_description":{"oneOf":[{"type":"string","description":"Human label of the shipping applied, for example `Flat rate`.","example":"Flat rate","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Human label of the shipping applied, for example `Flat rate`.","example":"Flat rate","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_description","typeLabel":"string | null"},"shipping_rate":{"oneOf":[{"type":"object","additionalProperties":true,"description":"The carrier option chosen; null unless `shipping_pricing` is `carrier_rate`.","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_rate.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"The carrier option chosen; null unless `shipping_pricing` is `carrier_rate`.","uniqueKey":"merchant_breakdown.items.[INDEX].shipping_rate.oneOf.1","typeLabel":"null"}],"uniqueKey":"merchant_breakdown.items.[INDEX].shipping_rate","typeLabel":"object | null"},"gift_card_amount":{"type":"number","description":"Gift card value applied to this merchant's share, in the cart currency.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].gift_card_amount","typeLabel":"number"},"gift_card_amount_seller":{"type":"number","description":"The same gift card amount in the seller's currency.","example":0,"uniqueKey":"merchant_breakdown.items.[INDEX].gift_card_amount_seller","typeLabel":"number"}},"uniqueKey":"merchant_breakdown.items.[INDEX]","typeLabel":"object"},"uniqueKey":"merchant_breakdown","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"order_group_id":"44444444-4444-4444-4444-444444444444","group_number":"MKT-100042","payment_intent_id":"pi_3Pxxxxxxxxxxxx","client_secret":"pi_3Pxxxxxxxxxxxx_secret_yyyyyyyy","currency":"USD","subtotal":245,"total_amount":235.99,"shipping_total":5.99,"wallet_applied":0,"discount_total":15,"operator_funded_discount":5,"discount_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","merchant_discount":10,"gift_card_amount":0,"operator_funded_discount":5}],"shipping_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","amount":5.99,"pricing":"seller_rate","fulfilled_by":"seller","is_free":false,"free_threshold":null,"description":"Local (within 10 km)","selected_rate_id":null}],"merchant_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","gross_amount":245,"discount_amount":10,"merchant_gross":235,"operator_funded_discount":5,"fulfillment_mode":"merchant","shipping_charged":5.99,"shipping_amount":5.99,"shipping_retained":0,"shipping_commission":0,"shipping_pricing":"seller_rate","commission_amount":23.5,"net_amount":217.49,"commission_rule_id":"7e6d5c4b-1234-5678-9abc-def012345678"}]},"examples":{"Example":{"title":"Example","value":{"order_group_id":"44444444-4444-4444-4444-444444444444","group_number":"MKT-100042","payment_intent_id":"pi_3Pxxxxxxxxxxxx","client_secret":"pi_3Pxxxxxxxxxxxx_secret_yyyyyyyy","currency":"USD","subtotal":245,"total_amount":235.99,"shipping_total":5.99,"wallet_applied":0,"discount_total":15,"operator_funded_discount":5,"discount_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","merchant_discount":10,"gift_card_amount":0,"operator_funded_discount":5}],"shipping_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","amount":5.99,"pricing":"seller_rate","fulfilled_by":"seller","is_free":false,"free_threshold":null,"description":"Local (within 10 km)","selected_rate_id":null}],"merchant_breakdown":[{"merchant_store_id":"3f1a2b4c-1111-2222-3333-444455556666","gross_amount":245,"discount_amount":10,"merchant_gross":235,"operator_funded_discount":5,"fulfillment_mode":"merchant","shipping_charged":5.99,"shipping_amount":5.99,"shipping_retained":0,"shipping_commission":0,"shipping_pricing":"seller_rate","commission_amount":23.5,"net_amount":217.49,"commission_rule_id":"7e6d5c4b-1234-5678-9abc-def012345678"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"f92c5967-92a5-4dc3-b0f2-7df95a5b7001":{"description":"Invalid request - malformed data or missing required fields","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required field","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","uniqueKey":"error.details.oneOf.0","typeLabel":"string"},{"type":"object","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"string | object"},"hint":{"type":"string","description":"Additional guidance on how to resolve the error.","uniqueKey":"error.hint","typeLabel":"string"},"available_stock":{"type":"integer","description":"Current stock level (present on insufficient_stock errors).","uniqueKey":"error.available_stock","typeLabel":"integer"},"current_cart_quantity":{"type":"integer","description":"Quantity already in cart (present on insufficient_stock errors).","uniqueKey":"error.current_cart_quantity","typeLabel":"integer"},"limit":{"type":"integer","description":"Rate limit ceiling (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.limit","typeLabel":"integer"},"remaining":{"type":"integer","description":"Requests remaining in the current window (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.remaining","typeLabel":"integer"},"reset":{"type":"integer","description":"Unix timestamp when the rate limit / quota window resets (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.reset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"invalid_request","message":"Invalid request parameters","details":"The 'email' field is required"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"invalid_request","message":"Invalid request parameters","details":"The 'email' field is required"}}}},"exampleType":"examples"}},"exampleType":"examples"},"6bf17d45-1ffc-456c-a10f-f19ad6c62ea9":{"description":"Authentication failed. `unauthorized` means the API key is missing or invalid, or the `x-auth-token` header is absent. `invalid_token` means the `x-auth-token` is not a valid sign-in token for this store and environment: expired, revoked, issued by another store, or malformed. A storefront refreshes the session once with `POST /v1/auth/refresh` and treats the shopper as signed out if that fails.","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required field","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","uniqueKey":"error.details.oneOf.0","typeLabel":"string"},{"type":"object","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"string | object"},"hint":{"type":"string","description":"Additional guidance on how to resolve the error.","uniqueKey":"error.hint","typeLabel":"string"},"available_stock":{"type":"integer","description":"Current stock level (present on insufficient_stock errors).","uniqueKey":"error.available_stock","typeLabel":"integer"},"current_cart_quantity":{"type":"integer","description":"Quantity already in cart (present on insufficient_stock errors).","uniqueKey":"error.current_cart_quantity","typeLabel":"integer"},"limit":{"type":"integer","description":"Rate limit ceiling (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.limit","typeLabel":"integer"},"remaining":{"type":"integer","description":"Requests remaining in the current window (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.remaining","typeLabel":"integer"},"reset":{"type":"integer","description":"Unix timestamp when the rate limit / quota window resets (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.reset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalid_token":{"title":"invalid_token","summary":"Sign-in token not valid","value":{"error":{"code":"invalid_token","message":"Invalid or expired customer token","hint":"Refresh the token via POST /v1/auth/refresh once; if that fails, treat the shopper as signed out and re-authenticate."}}},"unauthorized":{"title":"unauthorized","summary":"API key missing or invalid","value":{"error":{"code":"unauthorized","message":"Missing or invalid Authorization header"}}}},"exampleType":"examples"}},"exampleType":"examples"},"19029922-ac6e-4a7e-9ab8-d91247c1c8fe":{"description":"The store's subscription is not active, or the store is deactivated. Every API-keyed request for that store answers `402` with `subscription_expired` until the subscription is renewed.","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required field","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","uniqueKey":"error.details.oneOf.0","typeLabel":"string"},{"type":"object","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"string | object"},"hint":{"type":"string","description":"Additional guidance on how to resolve the error.","uniqueKey":"error.hint","typeLabel":"string"},"available_stock":{"type":"integer","description":"Current stock level (present on insufficient_stock errors).","uniqueKey":"error.available_stock","typeLabel":"integer"},"current_cart_quantity":{"type":"integer","description":"Quantity already in cart (present on insufficient_stock errors).","uniqueKey":"error.current_cart_quantity","typeLabel":"integer"},"limit":{"type":"integer","description":"Rate limit ceiling (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.limit","typeLabel":"integer"},"remaining":{"type":"integer","description":"Requests remaining in the current window (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.remaining","typeLabel":"integer"},"reset":{"type":"integer","description":"Unix timestamp when the rate limit / quota window resets (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.reset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"subscription_expired","message":"This store's subscription is not active"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"subscription_expired","message":"This store's subscription is not active"}}}},"exampleType":"examples"}},"exampleType":"examples"},"fe4b4bd0-8bf0-4690-9bb0-3227b0f29ad5":{"description":"Insufficient permissions for this key. A GC Connect key that was not granted the operation's scope (for example `agent:read` or `orders:write`) receives `insufficient_scope`, and the message names the scope. A request that needs a secret key (a publishable key on a write, whatever scopes it holds), or a marketplace operator key calling a single-store operation, receives `forbidden`. A store whose plan does not include the feature the route belongs to receives `feature_not_available`, whatever the key. A publishable key limited to the products that carry one tag receives `out_of_scope` for a product, variant, promotion or review outside its slice, and `endpoint_not_allowed` on a route that has no slice behaviour. A request that identifies a customer (`x-auth-token`, `x-external-auth` or `x-idp-token`) whose account has been closed receives `account_closed`.","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required field","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","uniqueKey":"error.details.oneOf.0","typeLabel":"string"},{"type":"object","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"string | object"},"hint":{"type":"string","description":"Additional guidance on how to resolve the error.","uniqueKey":"error.hint","typeLabel":"string"},"available_stock":{"type":"integer","description":"Current stock level (present on insufficient_stock errors).","uniqueKey":"error.available_stock","typeLabel":"integer"},"current_cart_quantity":{"type":"integer","description":"Quantity already in cart (present on insufficient_stock errors).","uniqueKey":"error.current_cart_quantity","typeLabel":"integer"},"limit":{"type":"integer","description":"Rate limit ceiling (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.limit","typeLabel":"integer"},"remaining":{"type":"integer","description":"Requests remaining in the current window (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.remaining","typeLabel":"integer"},"reset":{"type":"integer","description":"Unix timestamp when the rate limit / quota window resets (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.reset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"insufficient_scope":{"title":"insufficient_scope","summary":"Connect key without the operation's scope","value":{"error":{"code":"insufficient_scope","message":"This connected app was not granted the 'agent:read' scope."}}},"forbidden":{"title":"forbidden","summary":"Secret key required","value":{"error":{"code":"forbidden","message":"This operation requires a secret key. Publishable keys cover catalogue reads and the actions a shopper takes for themselves."}}},"feature_not_available":{"title":"feature_not_available","summary":"The store's plan does not include the feature","value":{"error":{"code":"feature_not_available","message":"Smart Search is not available for this store."}}},"out_of_scope":{"title":"out_of_scope","summary":"A publishable key limited to one tag named a product outside its slice","value":{"error":{"code":"out_of_scope","message":"This key is limited to part of the catalogue and this product is outside it."}}},"account_closed":{"title":"account_closed","summary":"The identified customer account has been closed","value":{"error":{"code":"account_closed","message":"This customer account has been closed."}}}},"exampleType":"examples"}},"exampleType":"examples"},"48a62fc5-791e-4f24-95b6-00d8b99cbfb8":{"description":"Resource not found","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required field","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","uniqueKey":"error.details.oneOf.0","typeLabel":"string"},{"type":"object","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"string | object"},"hint":{"type":"string","description":"Additional guidance on how to resolve the error.","uniqueKey":"error.hint","typeLabel":"string"},"available_stock":{"type":"integer","description":"Current stock level (present on insufficient_stock errors).","uniqueKey":"error.available_stock","typeLabel":"integer"},"current_cart_quantity":{"type":"integer","description":"Quantity already in cart (present on insufficient_stock errors).","uniqueKey":"error.current_cart_quantity","typeLabel":"integer"},"limit":{"type":"integer","description":"Rate limit ceiling (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.limit","typeLabel":"integer"},"remaining":{"type":"integer","description":"Requests remaining in the current window (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.remaining","typeLabel":"integer"},"reset":{"type":"integer","description":"Unix timestamp when the rate limit / quota window resets (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.reset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"not_found","message":"Resource not found"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"not_found","message":"Resource not found"}}}},"exampleType":"examples"}},"exampleType":"examples"},"86df7eb1-5961-4f8a-b037-28be9f66dac4":{"description":"The marketplace has not finished connecting its payment account, so it cannot take payment yet (`provider_not_live`); or the `Idempotency-Key` was already used with a different body (`idempotency_conflict`), names a checkout still being processed (`idempotency_in_progress`), or names a checkout that did not complete (`idempotency_failed` — retry with a new key).","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required field","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","uniqueKey":"error.details.oneOf.0","typeLabel":"string"},{"type":"object","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"string | object"},"hint":{"type":"string","description":"Additional guidance on how to resolve the error.","uniqueKey":"error.hint","typeLabel":"string"},"available_stock":{"type":"integer","description":"Current stock level (present on insufficient_stock errors).","uniqueKey":"error.available_stock","typeLabel":"integer"},"current_cart_quantity":{"type":"integer","description":"Quantity already in cart (present on insufficient_stock errors).","uniqueKey":"error.current_cart_quantity","typeLabel":"integer"},"limit":{"type":"integer","description":"Rate limit ceiling (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.limit","typeLabel":"integer"},"remaining":{"type":"integer","description":"Requests remaining in the current window (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.remaining","typeLabel":"integer"},"reset":{"type":"integer","description":"Unix timestamp when the rate limit / quota window resets (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.reset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"provider_not_live","message":"This marketplace has not finished connecting its payment account."}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"provider_not_live","message":"This marketplace has not finished connecting its payment account."}}}},"exampleType":"examples"}},"exampleType":"examples"},"f96b86ca-10c9-4e24-9fbe-5973b8d3dfad":{"description":"Internal server error. A 5xx response never carries `details`.","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required field","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","uniqueKey":"error.details.oneOf.0","typeLabel":"string"},{"type":"object","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"string | object"},"hint":{"type":"string","description":"Additional guidance on how to resolve the error.","uniqueKey":"error.hint","typeLabel":"string"},"available_stock":{"type":"integer","description":"Current stock level (present on insufficient_stock errors).","uniqueKey":"error.available_stock","typeLabel":"integer"},"current_cart_quantity":{"type":"integer","description":"Quantity already in cart (present on insufficient_stock errors).","uniqueKey":"error.current_cart_quantity","typeLabel":"integer"},"limit":{"type":"integer","description":"Rate limit ceiling (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.limit","typeLabel":"integer"},"remaining":{"type":"integer","description":"Requests remaining in the current window (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.remaining","typeLabel":"integer"},"reset":{"type":"integer","description":"Unix timestamp when the rate limit / quota window resets (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.reset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"server_error","message":"An unexpected error occurred"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"server_error","message":"An unexpected error occurred"}}}},"exampleType":"examples"}},"exampleType":"examples"},"26b99122-726c-463a-9bb6-f9007e1382ed":{"description":"The payment provider could not be reached or rejected the request (`provider_error`), or shipping could not be priced (`shipping_unavailable`). No order is created.","headers":{"Tybrite-Environment":{"description":"Confirms which environment your API key resolved to. Use this to verify that test keys\nare hitting sandbox data and live keys are hitting production data.\n\n- `production` — requests are scoped to live data; real orders, customers, and payments\n- `sandbox` — requests are scoped to isolated test data; no real money is moved\n\nPresent on every authenticated response, including error responses.\n","schema":{"type":"string","enum":["production","sandbox"]},"example":"sandbox"}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"invalid_request","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required field","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"type":"string","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","uniqueKey":"error.details.oneOf.0","typeLabel":"string"},{"type":"object","description":"Further detail about the error: a sentence, or for some errors an object (for example the `missing` list of `billing_location_required` or the `item_index` and `field_name` of `line_field_required`).","example":"The 'email' field is required","additionalProperties":true,"uniqueKey":"error.details.oneOf.1","typeLabel":"object"}],"uniqueKey":"error.details","typeLabel":"string | object"},"hint":{"type":"string","description":"Additional guidance on how to resolve the error.","uniqueKey":"error.hint","typeLabel":"string"},"available_stock":{"type":"integer","description":"Current stock level (present on insufficient_stock errors).","uniqueKey":"error.available_stock","typeLabel":"integer"},"current_cart_quantity":{"type":"integer","description":"Quantity already in cart (present on insufficient_stock errors).","uniqueKey":"error.current_cart_quantity","typeLabel":"integer"},"limit":{"type":"integer","description":"Rate limit ceiling (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.limit","typeLabel":"integer"},"remaining":{"type":"integer","description":"Requests remaining in the current window (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.remaining","typeLabel":"integer"},"reset":{"type":"integer","description":"Unix timestamp when the rate limit / quota window resets (present on rate_limited / quota_exceeded errors).","uniqueKey":"error.reset","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"provider_error","message":"Payment initialization failed"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"provider_error","message":"Payment initialization failed"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"b6f42c8b-7973-4a1e-8ce8-da2a60516ee2":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"**API Key Authentication**\n \nUse your API key in the Authorization header:\n```\nAuthorization: Bearer tybrite_sk_live_YOUR_KEY\n```\n \n**Key Types:**\n \n**Secret Keys (Server-Side Only):**\n- Format: `tybrite_sk_live_*` (production) or `tybrite_sk_test_*` (sandbox)\n- Full read/write access to all endpoints\n- ⚠️ NEVER expose in client-side code or public repositories\n- Required for: every write a shopper does not make for themselves, authentication, payment verification, AI recommendations\n \n**Publishable Keys (Client-Safe):**\n- Format: `tybrite_pk_live_*` (production) or `tybrite_pk_test_*` (sandbox)\n- Catalogue reads, plus the actions a shopper takes for themselves\n- ✅ Safe for client-side JavaScript, mobile apps, and public code\n- Allowed for: browsing products, search, CMS content, pricing queries, cart and wishlist,\n reviews, storefront events, and the Agent API's quotes, cart drafts and checkout intents\n \n**Endpoint-Specific Requirements:**\n- **Authentication endpoints** (`/v1/auth/*`): state-changing `POST` calls require a secret key, for store and marketplace keys alike; `GET /v1/auth/me` accepts either key\n- **Payment verification** (`POST /v1/payments/verify`): Secret key required\n- **AI Recommendations** (`POST /v1/recommendations`): Secret key required\n- **Semantic Search** (`POST /v1/search`): Both key types allowed (read-only operation)\n- **Shopper actions** (cart, wishlist, reviews, storefront events, Agent API quotes, cart drafts and checkout intents): Both key types allowed\n- **All other write operations**: Secret key required\n- **All read operations**: Both key types allowed\n \nUsing a publishable key for restricted operations returns 403 Forbidden.\n\n**Limited publishable keys:**\nA publishable key can be limited to the products that carry one tag (for example `starter:jewellery`), created from\nthe store's Developers page. The limit applies to the key, never to the shopper: shopper sign-up and sign-in stay store-wide.\n- Reads return only the slice: products (with their facets, filters, search, brands and specifications), categories and\n subcategories that hold in-slice products, collections, promotions, posts and lookbooks that carry the tag, reviews of\n in-slice products, prices, discovery lists and the store information summary, with every count computed on the slice.\n A product outside the slice answers `404`, as if it did not exist.\n- A write that names a product or variant outside the slice (adding to the cart or wishlist, reserving stock, an order line,\n a review, a promotion calculation, a storefront event) answers `403` with the error code `out_of_scope`, and nothing is\n written or reserved. An order is refused as a whole.\n- A route that carries no slice behaviour is not available to the key: it answers `403` with `endpoint_not_allowed`.\n- Orders placed through such a key record the tag on the order's attribution as `key_scope`.\n- Secret keys and connected-app keys cannot be limited.\n- Responses are cached per key limit: a limited key never receives a response cached for the whole store, and the reverse.\n","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"23497b63-1a0b-4f70-a5d0-9eec416be49d":{"url":"https://api.tybritelabs.com","description":"Production API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"**API Key Authentication**\n \nUse your API key in the Authorization header:\n```\nAuthorization: Bearer tybrite_sk_live_YOUR_KEY\n```\n \n**Key Types:**\n \n**Secret Keys (Server-Side Only):**\n- Format: `tybrite_sk_live_*` (production) or `tybrite_sk_test_*` (sandbox)\n- Full read/write access to all endpoints\n- ⚠️ NEVER expose in client-side code or public repositories\n- Required for: every write a shopper does not make for themselves, authentication, payment verification, AI recommendations\n \n**Publishable Keys (Client-Safe):**\n- Format: `tybrite_pk_live_*` (production) or `tybrite_pk_test_*` (sandbox)\n- Catalogue reads, plus the actions a shopper takes for themselves\n- ✅ Safe for client-side JavaScript, mobile apps, and public code\n- Allowed for: browsing products, search, CMS content, pricing queries, cart and wishlist,\n reviews, storefront events, and the Agent API's quotes, cart drafts and checkout intents\n \n**Endpoint-Specific Requirements:**\n- **Authentication endpoints** (`/v1/auth/*`): state-changing `POST` calls require a secret key, for store and marketplace keys alike; `GET /v1/auth/me` accepts either key\n- **Payment verification** (`POST /v1/payments/verify`): Secret key required\n- **AI Recommendations** (`POST /v1/recommendations`): Secret key required\n- **Semantic Search** (`POST /v1/search`): Both key types allowed (read-only operation)\n- **Shopper actions** (cart, wishlist, reviews, storefront events, Agent API quotes, cart drafts and checkout intents): Both key types allowed\n- **All other write operations**: Secret key required\n- **All read operations**: Both key types allowed\n \nUsing a publishable key for restricted operations returns 403 Forbidden.\n\n**Limited publishable keys:**\nA publishable key can be limited to the products that carry one tag (for example `starter:jewellery`), created from\nthe store's Developers page. The limit applies to the key, never to the shopper: shopper sign-up and sign-in stay store-wide.\n- Reads return only the slice: products (with their facets, filters, search, brands and specifications), categories and\n subcategories that hold in-slice products, collections, promotions, posts and lookbooks that carry the tag, reviews of\n in-slice products, prices, discovery lists and the store information summary, with every count computed on the slice.\n A product outside the slice answers `404`, as if it did not exist.\n- A write that names a product or variant outside the slice (adding to the cart or wishlist, reserving stock, an order line,\n a review, a promotion calculation, a storefront event) answers `403` with the error code `out_of_scope`, and nothing is\n written or reserved. An order is refused as a whole.\n- A route that carries no slice behaviour is not available to the key: it answers `403` with `endpoint_not_allowed`.\n- Orders placed through such a key record the tag on the order's attribution as `key_scope`.\n- Secret keys and connected-app keys cannot be limited.\n- Responses are cached per key limit: a limited key never receives a response cached for the whole store, and the reverse.\n","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"**API Key Authentication**\n \nUse your API key in the Authorization header:\n```\nAuthorization: Bearer tybrite_sk_live_YOUR_KEY\n```\n \n**Key Types:**\n \n**Secret Keys (Server-Side Only):**\n- Format: `tybrite_sk_live_*` (production) or `tybrite_sk_test_*` (sandbox)\n- Full read/write access to all endpoints\n- ⚠️ NEVER expose in client-side code or public repositories\n- Required for: every write a shopper does not make for themselves, authentication, payment verification, AI recommendations\n \n**Publishable Keys (Client-Safe):**\n- Format: `tybrite_pk_live_*` (production) or `tybrite_pk_test_*` (sandbox)\n- Catalogue reads, plus the actions a shopper takes for themselves\n- ✅ Safe for client-side JavaScript, mobile apps, and public code\n- Allowed for: browsing products, search, CMS content, pricing queries, cart and wishlist,\n reviews, storefront events, and the Agent API's quotes, cart drafts and checkout intents\n \n**Endpoint-Specific Requirements:**\n- **Authentication endpoints** (`/v1/auth/*`): state-changing `POST` calls require a secret key, for store and marketplace keys alike; `GET /v1/auth/me` accepts either key\n- **Payment verification** (`POST /v1/payments/verify`): Secret key required\n- **AI Recommendations** (`POST /v1/recommendations`): Secret key required\n- **Semantic Search** (`POST /v1/search`): Both key types allowed (read-only operation)\n- **Shopper actions** (cart, wishlist, reviews, storefront events, Agent API quotes, cart drafts and checkout intents): Both key types allowed\n- **All other write operations**: Secret key required\n- **All read operations**: Both key types allowed\n \nUsing a publishable key for restricted operations returns 403 Forbidden.\n\n**Limited publishable keys:**\nA publishable key can be limited to the products that carry one tag (for example `starter:jewellery`), created from\nthe store's Developers page. The limit applies to the key, never to the shopper: shopper sign-up and sign-in stay store-wide.\n- Reads return only the slice: products (with their facets, filters, search, brands and specifications), categories and\n subcategories that hold in-slice products, collections, promotions, posts and lookbooks that carry the tag, reviews of\n in-slice products, prices, discovery lists and the store information summary, with every count computed on the slice.\n A product outside the slice answers `404`, as if it did not exist.\n- A write that names a product or variant outside the slice (adding to the cart or wishlist, reserving stock, an order line,\n a review, a promotion calculation, a storefront event) answers `403` with the error code `out_of_scope`, and nothing is\n written or reserved. An order is refused as a whole.\n- A route that carries no slice behaviour is not available to the key: it answers `403` with `endpoint_not_allowed`.\n- Orders placed through such a key record the tag on the order's attribution as `key_scope`.\n- Secret keys and connected-app keys cannot be limited.\n- Responses are cached per key limit: a limited key never receives a response cached for the whole store, and the reverse.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"tybritelabs","siteName":"Galactic Core API Documentation","title":"Check out a multi-merchant cart - Galactic Core API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T23:48:17.963Z","originalFileLocation":"api-reference/marketplace/check-out-a-multi-merchant-cart.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a single order for a cart that contains items from multiple merchants in the marketplace, and start a payment for the whole basket. Each item names the merchant it belongs to; items are validated against the marketplace catalog, commission is resolved per merchant, and one payment covers the entire order. The response includes a client_secret to complete the payment on the storefront and a per-merchant breakdown of gross, discount, commission, and net amounts. Once payment succeeds, the order finalizes automatically — no further call is required. Which key sees what. A publishable operator key (a storefront\u0026#x27;s browser) and a secret operator key (the operator\u0026#x27;s server) can both check out. The operator\u0026#x27;s terms in merchant_breakdown (commission_amount, net_amount, commission_rule_id, shipping_amount, shipping_retained, shipping_commission) are returned to the secret key only, including on an idempotent replay. Discounts. Pass the optional discounts array to apply a merchant\u0026#x27;s own promotion or gift card to that merchant\u0026#x27;s portion of the basket — each entry names the merchant_store_id and an optional promotion_id and/or gift_card_code, and the discount reduces only that merchant\u0026#x27;s subtotal. Marketplace-wide promotions run by the operator apply automatically; you do not pass them. The response reports discount_total, the operator_funded_discount (the share the operator funded), a per-merchant discount_breakdown, and discount_amount plus merchant_gross on each merchant_breakdown entry. 🛡️ The server is the price authority (anti-tampering). You never send money amounts on this call — only identifiers. Each item\u0026#x27;s price is recomputed from the marketplace catalog, and a discounts entry only names a promotion_id / gift_card_code; the server independently resolves the actual discount that merchant\u0026#x27;s promotion or gift card grants (and the operator-funded share), computes every gross, discount_amount, merchant_gross, commission, and the payment total from those resolved values, and charges exactly that. A named discount that doesn\u0026#x27;t validate (expired, ineligible, wrong store) is rejected with 400 discount_invalid rather than silently applied. There is no client-supplied discount_amount or per-item price to tamper with — a manipulated basket cannot lower what is charged. The resolved breakdown is then held server-side and used verbatim to finalize the order after payment succeeds; nothing the client sends after checkout can change what each merchant is paid. Shipping. Each merchant\u0026#x27;s items are delivered, and priced, separately: one shipping line per merchant. By default each merchant\u0026#x27;s own delivery rates price their line, from the shipping_destination (or the shipping_address, which is located when no destination is sent). The marketplace may instead charge a flat rate per merchant, and may set a free-shipping threshold: a merchant whose items total at least that much ships free. To offer carrier options, send a street shipping_address and a parcel per merchant in shipping_selections to POST /v1/cart/checkout/quote; to choose one, send its rate_id here. Shipping is paid to whoever ships the items — the merchant, or the marketplace when it ships on the merchant\u0026#x27;s behalf. total_amount includes shipping, shipping_total reports it, and shipping_breakdown lists each merchant\u0026#x27;s line. A shipping amount is never read from the request. The same computation runs on POST /v1/cart/checkout/quote, so the shopper can see each line before paying. Stock is reserved at checkout: the items are held against each merchant\u0026#x27;s inventory immediately so concurrent shoppers cannot oversell the last units, and the hold becomes a real stock reduction when payment succeeds. If an item cannot be held, the call returns 400 insufficient_stock and no order or payment is created. Holds expire automatically if payment is never completed, returning the stock to availability. The shopper. Send the shopper\u0026#x27;s credential to tie the purchase to them: a Galactic Core shopper session in x-auth-token (also accepted as x-customer-token), or an assertion signed by the marketplace\u0026#x27;s own backend in x-external-auth. With neither, the checkout is a guest checkout. The purchase is recorded against that credential, which is what later lets the shopper see it in GET /v1/customers/me, return it, and dispute it. A guest purchase becomes visible to an account once that account has verified its email address with a one-time code. Wallet. A signed-in shopper can spend their marketplace wallet balance: send wallet_amount to spend up to that much, or use_wallet: true to spend as much as the checkout allows. The balance is held while payment is pending and returned if the payment fails or is abandoned. The charge never falls below the payment provider\u0026#x27;s minimum for the currency, so a wallet cannot pay for a whole basket. The response reports wallet_applied, and total_amount is the amount charged after it. Each merchant is still paid their full net: the marketplace operator funds the wallet. Currency: every price is charged in the marketplace\u0026#x27;s currency. A merchant who prices in another currency is converted with the exchange rate the marketplace sets for that currency — items, the merchant\u0026#x27;s discounts, gift-card amounts and delivery fees alike, each rounded to the marketplace currency\u0026#x27;s decimal places. A merchant whose currency has no rate in the marketplace cannot be bought from there (400 item_currency_unsupported). Shipping: each merchant\u0026#x27;s items are priced by that merchant\u0026#x27;s delivery rates, converted to the marketplace\u0026#x27;s currency with the marketplace\u0026#x27;s exchange rate; items the marketplace ships itself are priced by the marketplace\u0026#x27;s own delivery rates (pricing: operator_rate). A marketplace flat rate or free-shipping threshold overrides both. Shipping errors: 400 shipping_destination_required when a merchant\u0026#x27;s delivery rate needs a location and none can be found, 400 shipping_not_deliverable when a merchant (or the marketplace, for items it ships) does not deliver to the address, 400 shipping_currency_unsupported when the marketplace has no exchange rate for the currency a merchant\u0026#x27;s delivery rates are set in, 400 shipping_rate_invalid when a chosen carrier option is unknown, expired, not in the marketplace\u0026#x27;s currency, or chosen for items the marketplace ships itself, and 502 shipping_unavailable when shipping cannot be priced right now. Requires the marketplace operator key. Send an Idempotency-Key header to make a retry safe: a repeat of the same request with the same key returns the purchase the first attempt created (200, the same order_group_id and PaymentIntent) instead of creating a second order, holding stock twice or raising a second charge. Keys are unique per marketplace and environment.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Galactic Core API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Check out a multi-merchant cart - Galactic Core API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a single order for a cart that contains items from multiple merchants in the marketplace, and start a payment for the whole basket. Each item names the merchant it belongs to; items are validated against the marketplace catalog, commission is resolved per merchant, and one payment covers the entire order. The response includes a client_secret to complete the payment on the storefront and a per-merchant breakdown of gross, discount, commission, and net amounts. Once payment succeeds, the order finalizes automatically — no further call is required. Which key sees what. A publishable operator key (a storefront\u0026#x27;s browser) and a secret operator key (the operator\u0026#x27;s server) can both check out. The operator\u0026#x27;s terms in merchant_breakdown (commission_amount, net_amount, commission_rule_id, shipping_amount, shipping_retained, shipping_commission) are returned to the secret key only, including on an idempotent replay. Discounts. Pass the optional discounts array to apply a merchant\u0026#x27;s own promotion or gift card to that merchant\u0026#x27;s portion of the basket — each entry names the merchant_store_id and an optional promotion_id and/or gift_card_code, and the discount reduces only that merchant\u0026#x27;s subtotal. Marketplace-wide promotions run by the operator apply automatically; you do not pass them. The response reports discount_total, the operator_funded_discount (the share the operator funded), a per-merchant discount_breakdown, and discount_amount plus merchant_gross on each merchant_breakdown entry. 🛡️ The server is the price authority (anti-tampering). You never send money amounts on this call — only identifiers. Each item\u0026#x27;s price is recomputed from the marketplace catalog, and a discounts entry only names a promotion_id / gift_card_code; the server independently resolves the actual discount that merchant\u0026#x27;s promotion or gift card grants (and the operator-funded share), computes every gross, discount_amount, merchant_gross, commission, and the payment total from those resolved values, and charges exactly that. A named discount that doesn\u0026#x27;t validate (expired, ineligible, wrong store) is rejected with 400 discount_invalid rather than silently applied. There is no client-supplied discount_amount or per-item price to tamper with — a manipulated basket cannot lower what is charged. The resolved breakdown is then held server-side and used verbatim to finalize the order after payment succeeds; nothing the client sends after checkout can change what each merchant is paid. Shipping. Each merchant\u0026#x27;s items are delivered, and priced, separately: one shipping line per merchant. By default each merchant\u0026#x27;s own delivery rates price their line, from the shipping_destination (or the shipping_address, which is located when no destination is sent). The marketplace may instead charge a flat rate per merchant, and may set a free-shipping threshold: a merchant whose items total at least that much ships free. To offer carrier options, send a street shipping_address and a parcel per merchant in shipping_selections to POST /v1/cart/checkout/quote; to choose one, send its rate_id here. Shipping is paid to whoever ships the items — the merchant, or the marketplace when it ships on the merchant\u0026#x27;s behalf. total_amount includes shipping, shipping_total reports it, and shipping_breakdown lists each merchant\u0026#x27;s line. A shipping amount is never read from the request. The same computation runs on POST /v1/cart/checkout/quote, so the shopper can see each line before paying. Stock is reserved at checkout: the items are held against each merchant\u0026#x27;s inventory immediately so concurrent shoppers cannot oversell the last units, and the hold becomes a real stock reduction when payment succeeds. If an item cannot be held, the call returns 400 insufficient_stock and no order or payment is created. Holds expire automatically if payment is never completed, returning the stock to availability. The shopper. Send the shopper\u0026#x27;s credential to tie the purchase to them: a Galactic Core shopper session in x-auth-token (also accepted as x-customer-token), or an assertion signed by the marketplace\u0026#x27;s own backend in x-external-auth. With neither, the checkout is a guest checkout. The purchase is recorded against that credential, which is what later lets the shopper see it in GET /v1/customers/me, return it, and dispute it. A guest purchase becomes visible to an account once that account has verified its email address with a one-time code. Wallet. A signed-in shopper can spend their marketplace wallet balance: send wallet_amount to spend up to that much, or use_wallet: true to spend as much as the checkout allows. The balance is held while payment is pending and returned if the payment fails or is abandoned. The charge never falls below the payment provider\u0026#x27;s minimum for the currency, so a wallet cannot pay for a whole basket. The response reports wallet_applied, and total_amount is the amount charged after it. Each merchant is still paid their full net: the marketplace operator funds the wallet. Currency: every price is charged in the marketplace\u0026#x27;s currency. A merchant who prices in another currency is converted with the exchange rate the marketplace sets for that currency — items, the merchant\u0026#x27;s discounts, gift-card amounts and delivery fees alike, each rounded to the marketplace currency\u0026#x27;s decimal places. A merchant whose currency has no rate in the marketplace cannot be bought from there (400 item_currency_unsupported). Shipping: each merchant\u0026#x27;s items are priced by that merchant\u0026#x27;s delivery rates, converted to the marketplace\u0026#x27;s currency with the marketplace\u0026#x27;s exchange rate; items the marketplace ships itself are priced by the marketplace\u0026#x27;s own delivery rates (pricing: operator_rate). A marketplace flat rate or free-shipping threshold overrides both. Shipping errors: 400 shipping_destination_required when a merchant\u0026#x27;s delivery rate needs a location and none can be found, 400 shipping_not_deliverable when a merchant (or the marketplace, for items it ships) does not deliver to the address, 400 shipping_currency_unsupported when the marketplace has no exchange rate for the currency a merchant\u0026#x27;s delivery rates are set in, 400 shipping_rate_invalid when a chosen carrier option is unknown, expired, not in the marketplace\u0026#x27;s currency, or chosen for items the marketplace ships itself, and 502 shipping_unavailable when shipping cannot be priced right now. Requires the marketplace operator key. Send an Idempotency-Key header to make a retry safe: a repeat of the same request with the same key returns the purchase the first attempt created (200, the same order_group_id and PaymentIntent) instead of creating a second order, holding stock twice or raising a second charge. Keys are unique per marketplace and environment.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Galactic Core API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tybritelabs.mintlify.site/_mintlify/api/og/v2?division=Marketplace\u0026amp;title=Check+out+a+multi-merchant+cart\u0026amp;description=Create+a+single+order+for+a+cart+that+contains+items+from+multiple+merchants%0Ain+the+marketplace%2C+and+start+a+payment+for+the+whole+basket.+Each+item+names%0Athe+m\u0026amp;theme=e2a958a3415fbc57a167c80a\u0026amp;signature=c4a637fe7ffbaedddf4639dcd933cdce789cc0f6634cb9e6a19ef5329179bf2e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Check out a multi-merchant cart - Galactic Core API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a single order for a cart that contains items from multiple merchants in the marketplace, and start a payment for the whole basket. Each item names the merchant it belongs to; items are validated against the marketplace catalog, commission is resolved per merchant, and one payment covers the entire order. The response includes a client_secret to complete the payment on the storefront and a per-merchant breakdown of gross, discount, commission, and net amounts. Once payment succeeds, the order finalizes automatically — no further call is required. Which key sees what. A publishable operator key (a storefront\u0026#x27;s browser) and a secret operator key (the operator\u0026#x27;s server) can both check out. The operator\u0026#x27;s terms in merchant_breakdown (commission_amount, net_amount, commission_rule_id, shipping_amount, shipping_retained, shipping_commission) are returned to the secret key only, including on an idempotent replay. Discounts. Pass the optional discounts array to apply a merchant\u0026#x27;s own promotion or gift card to that merchant\u0026#x27;s portion of the basket — each entry names the merchant_store_id and an optional promotion_id and/or gift_card_code, and the discount reduces only that merchant\u0026#x27;s subtotal. Marketplace-wide promotions run by the operator apply automatically; you do not pass them. The response reports discount_total, the operator_funded_discount (the share the operator funded), a per-merchant discount_breakdown, and discount_amount plus merchant_gross on each merchant_breakdown entry. 🛡️ The server is the price authority (anti-tampering). You never send money amounts on this call — only identifiers. Each item\u0026#x27;s price is recomputed from the marketplace catalog, and a discounts entry only names a promotion_id / gift_card_code; the server independently resolves the actual discount that merchant\u0026#x27;s promotion or gift card grants (and the operator-funded share), computes every gross, discount_amount, merchant_gross, commission, and the payment total from those resolved values, and charges exactly that. A named discount that doesn\u0026#x27;t validate (expired, ineligible, wrong store) is rejected with 400 discount_invalid rather than silently applied. There is no client-supplied discount_amount or per-item price to tamper with — a manipulated basket cannot lower what is charged. The resolved breakdown is then held server-side and used verbatim to finalize the order after payment succeeds; nothing the client sends after checkout can change what each merchant is paid. Shipping. Each merchant\u0026#x27;s items are delivered, and priced, separately: one shipping line per merchant. By default each merchant\u0026#x27;s own delivery rates price their line, from the shipping_destination (or the shipping_address, which is located when no destination is sent). The marketplace may instead charge a flat rate per merchant, and may set a free-shipping threshold: a merchant whose items total at least that much ships free. To offer carrier options, send a street shipping_address and a parcel per merchant in shipping_selections to POST /v1/cart/checkout/quote; to choose one, send its rate_id here. Shipping is paid to whoever ships the items — the merchant, or the marketplace when it ships on the merchant\u0026#x27;s behalf. total_amount includes shipping, shipping_total reports it, and shipping_breakdown lists each merchant\u0026#x27;s line. A shipping amount is never read from the request. The same computation runs on POST /v1/cart/checkout/quote, so the shopper can see each line before paying. Stock is reserved at checkout: the items are held against each merchant\u0026#x27;s inventory immediately so concurrent shoppers cannot oversell the last units, and the hold becomes a real stock reduction when payment succeeds. If an item cannot be held, the call returns 400 insufficient_stock and no order or payment is created. Holds expire automatically if payment is never completed, returning the stock to availability. The shopper. Send the shopper\u0026#x27;s credential to tie the purchase to them: a Galactic Core shopper session in x-auth-token (also accepted as x-customer-token), or an assertion signed by the marketplace\u0026#x27;s own backend in x-external-auth. With neither, the checkout is a guest checkout. The purchase is recorded against that credential, which is what later lets the shopper see it in GET /v1/customers/me, return it, and dispute it. A guest purchase becomes visible to an account once that account has verified its email address with a one-time code. Wallet. A signed-in shopper can spend their marketplace wallet balance: send wallet_amount to spend up to that much, or use_wallet: true to spend as much as the checkout allows. The balance is held while payment is pending and returned if the payment fails or is abandoned. The charge never falls below the payment provider\u0026#x27;s minimum for the currency, so a wallet cannot pay for a whole basket. The response reports wallet_applied, and total_amount is the amount charged after it. Each merchant is still paid their full net: the marketplace operator funds the wallet. Currency: every price is charged in the marketplace\u0026#x27;s currency. A merchant who prices in another currency is converted with the exchange rate the marketplace sets for that currency — items, the merchant\u0026#x27;s discounts, gift-card amounts and delivery fees alike, each rounded to the marketplace currency\u0026#x27;s decimal places. A merchant whose currency has no rate in the marketplace cannot be bought from there (400 item_currency_unsupported). Shipping: each merchant\u0026#x27;s items are priced by that merchant\u0026#x27;s delivery rates, converted to the marketplace\u0026#x27;s currency with the marketplace\u0026#x27;s exchange rate; items the marketplace ships itself are priced by the marketplace\u0026#x27;s own delivery rates (pricing: operator_rate). A marketplace flat rate or free-shipping threshold overrides both. Shipping errors: 400 shipping_destination_required when a merchant\u0026#x27;s delivery rate needs a location and none can be found, 400 shipping_not_deliverable when a merchant (or the marketplace, for items it ships) does not deliver to the address, 400 shipping_currency_unsupported when the marketplace has no exchange rate for the currency a merchant\u0026#x27;s delivery rates are set in, 400 shipping_rate_invalid when a chosen carrier option is unknown, expired, not in the marketplace\u0026#x27;s currency, or chosen for items the marketplace ships itself, and 502 shipping_unavailable when shipping cannot be priced right now. Requires the marketplace operator key. Send an Idempotency-Key header to make a retry safe: a repeat of the same request with the same key returns the purchase the first attempt created (200, the same order_group_id and PaymentIntent) instead of creating a second order, holding stock twice or raising a second charge. Keys are unique per marketplace and environment.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tybritelabs.mintlify.site/_mintlify/api/og/v2?division=Marketplace\u0026amp;title=Check+out+a+multi-merchant+cart\u0026amp;description=Create+a+single+order+for+a+cart+that+contains+items+from+multiple+merchants%0Ain+the+marketplace%2C+and+start+a+payment+for+the+whole+basket.+Each+item+names%0Athe+m\u0026amp;theme=e2a958a3415fbc57a167c80a\u0026amp;signature=c4a637fe7ffbaedddf4639dcd933cdce789cc0f6634cb9e6a19ef5329179bf2e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/tybritelabs/d0xYWWdjx3Q9ZfW_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Galactic Core API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/marketplace/check-out-a-multi-merchant-cart.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tybritelabs.com/#organization\",\"name\":\"Galactic Core API Documentation\",\"url\":\"https://docs.tybritelabs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tybritelabs/9cNSmgnBxs-QU_UC/branding/gc-long-blue.png?fit=max\u0026auto=format\u0026n=9cNSmgnBxs-QU_UC\u0026q=85\u0026s=88d64ea989973d874ed73437459487f7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tybritelabs.com#website\",\"name\":\"Galactic Core API Documentation\",\"url\":\"https://docs.tybritelabs.com\",\"publisher\":{\"@id\":\"https://docs.tybritelabs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart#webpage\",\"url\":\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart\",\"name\":\"Check out a multi-merchant cart\",\"description\":\"Create a single order for a cart that contains items from multiple merchants in the marketplace, and start a payment for the whole basket. Each item names the merchant it belongs to; items are validated against the marketplace catalog, commission is resolved per merchant, and one payment covers the entire order. The response includes a client_secret to complete the payment on the storefront and a per-merchant breakdown of gross, discount, commission, and net amounts. Once payment succeeds, the order finalizes automatically — no further call is required. Which key sees what. A publishable operator key (a storefront's browser) and a secret operator key (the operator's server) can both check out. The operator's terms in merchant_breakdown (commission_amount, net_amount, commission_rule_id, shipping_amount, shipping_retained, shipping_commission) are returned to the secret key only, including on an idempotent replay. Discounts. Pass the optional discounts array to apply a merchant's own promotion or gift card to that merchant's portion of the basket — each entry names the merchant_store_id and an optional promotion_id and/or gift_card_code, and the discount reduces only that merchant's subtotal. Marketplace-wide promotions run by the operator apply automatically; you do not pass them. The response reports discount_total, the operator_funded_discount (the share the operator funded), a per-merchant discount_breakdown, and discount_amount plus merchant_gross on each merchant_breakdown entry. 🛡️ The server is the price authority (anti-tampering). You never send money amounts on this call — only identifiers. Each item's price is recomputed from the marketplace catalog, and a discounts entry only names a promotion_id / gift_card_code; the server independently resolves the actual discount that merchant's promotion or gift card grants (and the operator-funded share), computes every gross, discount_amount, merchant_gross, commission, and the payment total from those resolved values, and charges exactly that. A named discount that doesn't validate (expired, ineligible, wrong store) is rejected with 400 discount_invalid rather than silently applied. There is no client-supplied discount_amount or per-item price to tamper with — a manipulated basket cannot lower what is charged. The resolved breakdown is then held server-side and used verbatim to finalize the order after payment succeeds; nothing the client sends after checkout can change what each merchant is paid. Shipping. Each merchant's items are delivered, and priced, separately: one shipping line per merchant. By default each merchant's own delivery rates price their line, from the shipping_destination (or the shipping_address, which is located when no destination is sent). The marketplace may instead charge a flat rate per merchant, and may set a free-shipping threshold: a merchant whose items total at least that much ships free. To offer carrier options, send a street shipping_address and a parcel per merchant in shipping_selections to POST /v1/cart/checkout/quote; to choose one, send its rate_id here. Shipping is paid to whoever ships the items — the merchant, or the marketplace when it ships on the merchant's behalf. total_amount includes shipping, shipping_total reports it, and shipping_breakdown lists each merchant's line. A shipping amount is never read from the request. The same computation runs on POST /v1/cart/checkout/quote, so the shopper can see each line before paying. Stock is reserved at checkout: the items are held against each merchant's inventory immediately so concurrent shoppers cannot oversell the last units, and the hold becomes a real stock reduction when payment succeeds. If an item cannot be held, the call returns 400 insufficient_stock and no order or payment is created. Holds expire automatically if payment is never completed, returning the stock to availability. The shopper. Send the shopper's credential to tie the purchase to them: a Galactic Core shopper session in x-auth-token (also accepted as x-customer-token), or an assertion signed by the marketplace's own backend in x-external-auth. With neither, the checkout is a guest checkout. The purchase is recorded against that credential, which is what later lets the shopper see it in GET /v1/customers/me, return it, and dispute it. A guest purchase becomes visible to an account once that account has verified its email address with a one-time code. Wallet. A signed-in shopper can spend their marketplace wallet balance: send wallet_amount to spend up to that much, or use_wallet: true to spend as much as the checkout allows. The balance is held while payment is pending and returned if the payment fails or is abandoned. The charge never falls below the payment provider's minimum for the currency, so a wallet cannot pay for a whole basket. The response reports wallet_applied, and total_amount is the amount charged after it. Each merchant is still paid their full net: the marketplace operator funds the wallet. Currency: every price is charged in the marketplace's currency. A merchant who prices in another currency is converted with the exchange rate the marketplace sets for that currency — items, the merchant's discounts, gift-card amounts and delivery fees alike, each rounded to the marketplace currency's decimal places. A merchant whose currency has no rate in the marketplace cannot be bought from there (400 item_currency_unsupported). Shipping: each merchant's items are priced by that merchant's delivery rates, converted to the marketplace's currency with the marketplace's exchange rate; items the marketplace ships itself are priced by the marketplace's own delivery rates (pricing: operator_rate). A marketplace flat rate or free-shipping threshold overrides both. Shipping errors: 400 shipping_destination_required when a merchant's delivery rate needs a location and none can be found, 400 shipping_not_deliverable when a merchant (or the marketplace, for items it ships) does not deliver to the address, 400 shipping_currency_unsupported when the marketplace has no exchange rate for the currency a merchant's delivery rates are set in, 400 shipping_rate_invalid when a chosen carrier option is unknown, expired, not in the marketplace's currency, or chosen for items the marketplace ships itself, and 502 shipping_unavailable when shipping cannot be priced right now. Requires the marketplace operator key. Send an Idempotency-Key header to make a retry safe: a repeat of the same request with the same key returns the purchase the first attempt created (200, the same order_group_id and PaymentIntent) instead of creating a second order, holding stock twice or raising a second charge. Keys are unique per marketplace and environment.\",\"dateModified\":\"2026-11-24T23:48:17.963Z\",\"isPartOf\":{\"@id\":\"https://docs.tybritelabs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Galactic Core API Documentation\",\"item\":\"https://docs.tybritelabs.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Check out a multi-merchant cart\",\"item\":\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart#apireference\",\"headline\":\"Check out a multi-merchant cart\",\"name\":\"Check out a multi-merchant cart\",\"description\":\"Create a single order for a cart that contains items from multiple merchants in the marketplace, and start a payment for the whole basket. Each item names the merchant it belongs to; items are validated against the marketplace catalog, commission is resolved per merchant, and one payment covers the entire order. The response includes a client_secret to complete the payment on the storefront and a per-merchant breakdown of gross, discount, commission, and net amounts. Once payment succeeds, the order finalizes automatically — no further call is required. Which key sees what. A publishable operator key (a storefront's browser) and a secret operator key (the operator's server) can both check out. The operator's terms in merchant_breakdown (commission_amount, net_amount, commission_rule_id, shipping_amount, shipping_retained, shipping_commission) are returned to the secret key only, including on an idempotent replay. Discounts. Pass the optional discounts array to apply a merchant's own promotion or gift card to that merchant's portion of the basket — each entry names the merchant_store_id and an optional promotion_id and/or gift_card_code, and the discount reduces only that merchant's subtotal. Marketplace-wide promotions run by the operator apply automatically; you do not pass them. The response reports discount_total, the operator_funded_discount (the share the operator funded), a per-merchant discount_breakdown, and discount_amount plus merchant_gross on each merchant_breakdown entry. 🛡️ The server is the price authority (anti-tampering). You never send money amounts on this call — only identifiers. Each item's price is recomputed from the marketplace catalog, and a discounts entry only names a promotion_id / gift_card_code; the server independently resolves the actual discount that merchant's promotion or gift card grants (and the operator-funded share), computes every gross, discount_amount, merchant_gross, commission, and the payment total from those resolved values, and charges exactly that. A named discount that doesn't validate (expired, ineligible, wrong store) is rejected with 400 discount_invalid rather than silently applied. There is no client-supplied discount_amount or per-item price to tamper with — a manipulated basket cannot lower what is charged. The resolved breakdown is then held server-side and used verbatim to finalize the order after payment succeeds; nothing the client sends after checkout can change what each merchant is paid. Shipping. Each merchant's items are delivered, and priced, separately: one shipping line per merchant. By default each merchant's own delivery rates price their line, from the shipping_destination (or the shipping_address, which is located when no destination is sent). The marketplace may instead charge a flat rate per merchant, and may set a free-shipping threshold: a merchant whose items total at least that much ships free. To offer carrier options, send a street shipping_address and a parcel per merchant in shipping_selections to POST /v1/cart/checkout/quote; to choose one, send its rate_id here. Shipping is paid to whoever ships the items — the merchant, or the marketplace when it ships on the merchant's behalf. total_amount includes shipping, shipping_total reports it, and shipping_breakdown lists each merchant's line. A shipping amount is never read from the request. The same computation runs on POST /v1/cart/checkout/quote, so the shopper can see each line before paying. Stock is reserved at checkout: the items are held against each merchant's inventory immediately so concurrent shoppers cannot oversell the last units, and the hold becomes a real stock reduction when payment succeeds. If an item cannot be held, the call returns 400 insufficient_stock and no order or payment is created. Holds expire automatically if payment is never completed, returning the stock to availability. The shopper. Send the shopper's credential to tie the purchase to them: a Galactic Core shopper session in x-auth-token (also accepted as x-customer-token), or an assertion signed by the marketplace's own backend in x-external-auth. With neither, the checkout is a guest checkout. The purchase is recorded against that credential, which is what later lets the shopper see it in GET /v1/customers/me, return it, and dispute it. A guest purchase becomes visible to an account once that account has verified its email address with a one-time code. Wallet. A signed-in shopper can spend their marketplace wallet balance: send wallet_amount to spend up to that much, or use_wallet: true to spend as much as the checkout allows. The balance is held while payment is pending and returned if the payment fails or is abandoned. The charge never falls below the payment provider's minimum for the currency, so a wallet cannot pay for a whole basket. The response reports wallet_applied, and total_amount is the amount charged after it. Each merchant is still paid their full net: the marketplace operator funds the wallet. Currency: every price is charged in the marketplace's currency. A merchant who prices in another currency is converted with the exchange rate the marketplace sets for that currency — items, the merchant's discounts, gift-card amounts and delivery fees alike, each rounded to the marketplace currency's decimal places. A merchant whose currency has no rate in the marketplace cannot be bought from there (400 item_currency_unsupported). Shipping: each merchant's items are priced by that merchant's delivery rates, converted to the marketplace's currency with the marketplace's exchange rate; items the marketplace ships itself are priced by the marketplace's own delivery rates (pricing: operator_rate). A marketplace flat rate or free-shipping threshold overrides both. Shipping errors: 400 shipping_destination_required when a merchant's delivery rate needs a location and none can be found, 400 shipping_not_deliverable when a merchant (or the marketplace, for items it ships) does not deliver to the address, 400 shipping_currency_unsupported when the marketplace has no exchange rate for the currency a merchant's delivery rates are set in, 400 shipping_rate_invalid when a chosen carrier option is unknown, expired, not in the marketplace's currency, or chosen for items the marketplace ships itself, and 502 shipping_unavailable when shipping cannot be priced right now. Requires the marketplace operator key. Send an Idempotency-Key header to make a retry safe: a repeat of the same request with the same key returns the purchase the first attempt created (200, the same order_group_id and PaymentIntent) instead of creating a second order, holding stock twice or raising a second charge. Keys are unique per marketplace and environment.\",\"url\":\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tybritelabs.com/api-reference/marketplace/check-out-a-multi-merchant-cart#webpage\"},\"dateModified\":\"2026-11-24T23:48:17.963Z\",\"publisher\":{\"@id\":\"https://docs.tybritelabs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tybritelabs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Galactic Core API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Galactic Core API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/marketplace/check-out-a-multi-merchant-cart.md","siteName":"Galactic Core API Documentation","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://gc.tybritelabs.com/dashboard"},{"anchor":"GitHub","icon":"github","href":"https://github.com/tybrite"},{"anchor":"Support","icon":"envelope","href":"mailto:support@tybrite.com"}]},"products":[{"product":"Galactic Core","icon":"cart-shopping","description":"Programmable commerce infrastructure","tabs":[{"tab":"Getting Started","pages":[{"title":"Getting Started","href":""}]},{"tab":"API Reference","groups":[{"group":"Reference","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"System","pages":[{"title":"API information","deprecated":null,"version":null,"openapi":"/openapi.yaml get /","href":"/api-reference/system/api-information"},{"title":"Health check","deprecated":null,"version":null,"openapi":"/tldp/openapi.yaml get /v1/health","href":"/api-reference/system/health-check"},{"title":"Get comprehensive store information","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/store/info","href":"/api-reference/system/get-comprehensive-store-information"}]},{"group":"Store","pages":[{"title":"Get the store profile","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/store/profile","href":"/api-reference/store/get-the-store-profile"},{"title":"List published policies","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/store/policies","href":"/api-reference/store/list-published-policies"},{"title":"Get a published policy","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/store/policies/{slug}","href":"/api-reference/store/get-a-published-policy"}]},{"group":"Products","pages":[{"title":"List products with filtering and pagination","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/products","href":"/api-reference/products/list-products-with-filtering-and-pagination"},{"title":"List brands","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/brands","href":"/api-reference/products/list-brands"},{"title":"List the values a product list can be filtered by","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/products/facets","href":"/api-reference/products/list-the-values-a-product-list-can-be-filtered-by"},{"title":"Get product by ID or variant ID","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/products/{id}","href":"/api-reference/products/get-product-by-id-or-variant-id"},{"title":"Get product by SEO-friendly slug","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/products/by-slug/{slug}","href":"/api-reference/products/get-product-by-seo-friendly-slug"},{"title":"Get a variant's specifications","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/products/{id}/specifications","href":"/api-reference/products/get-a-variants-specifications"},{"title":"Get a product's custom fields","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/products/{id}/custom-fields","href":"/api-reference/products/get-a-products-custom-fields"},{"title":"List product specifications","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/product-specifications","href":"/api-reference/products/list-product-specifications"},{"title":"List product collections","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/product-collections","href":"/api-reference/products/list-product-collections"},{"title":"Get product collection by ID","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/product-collections/{id}","href":"/api-reference/products/get-product-collection-by-id"},{"title":"Get items in a product collection","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/product-collections/{id}/items","href":"/api-reference/products/get-items-in-a-product-collection"}]},{"group":"Taxonomy","pages":[{"title":"List categories","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/categories","href":"/api-reference/taxonomy/list-categories"},{"title":"Get category","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/categories/{id}","href":"/api-reference/taxonomy/get-category"},{"title":"List subcategories","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/subcategories","href":"/api-reference/taxonomy/list-subcategories"},{"title":"Get subcategory by ID","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/subcategories/{id}","href":"/api-reference/taxonomy/get-subcategory-by-id"}]},{"group":"Orders","pages":[{"title":"List orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/orders","href":"/api-reference/orders/list-orders"},{"title":"Create order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/orders","href":"/api-reference/orders/create-order"},{"title":"Get order details","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/orders/{id}","href":"/api-reference/orders/get-order-details"},{"title":"Update order","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/orders/{id}","href":"/api-reference/orders/update-order"},{"title":"Reserve stock for checkout","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/checkout/reserve","href":"/api-reference/orders/reserve-stock-for-checkout"}]},{"group":"Payments","pages":[{"title":"Get available payment methods","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/payments/methods","href":"/api-reference/payments/get-available-payment-methods"},{"title":"Initialize payment","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payments/initialize","href":"/api-reference/payments/initialize-payment"},{"title":"Verify payment status","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/payments/verify","href":"/api-reference/payments/verify-payment-status"}]},{"group":"Cart \u0026 Wishlist","pages":[{"title":"Get cart","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/cart","href":"/api-reference/cart-\u0026-wishlist/get-cart"},{"title":"Clear cart","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/cart","href":"/api-reference/cart-\u0026-wishlist/clear-cart"},{"title":"Add to cart","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/cart/items","href":"/api-reference/cart-\u0026-wishlist/add-to-cart"},{"title":"Remove cart item","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/cart/items/{id}","href":"/api-reference/cart-\u0026-wishlist/remove-cart-item"},{"title":"Update cart item","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/cart/items/{id}","href":"/api-reference/cart-\u0026-wishlist/update-cart-item"},{"title":"Merge carts","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/cart/merge","href":"/api-reference/cart-\u0026-wishlist/merge-carts"},{"title":"Get wishlist","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/wishlist","href":"/api-reference/cart-\u0026-wishlist/get-wishlist"},{"title":"Add to wishlist","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/wishlist","href":"/api-reference/cart-\u0026-wishlist/add-to-wishlist"},{"title":"Remove from wishlist","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/wishlist/{id}","href":"/api-reference/cart-\u0026-wishlist/remove-from-wishlist"},{"title":"Move wishlist item to cart","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/wishlist/move-to-cart","href":"/api-reference/cart-\u0026-wishlist/move-wishlist-item-to-cart"},{"title":"Ask to be told when a variant is back in stock","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/variants/{id}/notify-when-available","href":"/api-reference/cart-\u0026-wishlist/ask-to-be-told-when-a-variant-is-back-in-stock"},{"title":"Record a guest's contact details at checkout","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/cart/checkout-contact","href":"/api-reference/cart-\u0026-wishlist/record-a-guests-contact-details-at-checkout"},{"title":"Restore the cart behind a recovery link","description":"Returns the items of the cart a reminder email linked to, priced from the store's current catalogue. Pass the\n`cart_recovery` query parameter of the page the shopper arrived on as `token`. The storefront re-adds the\nreturned items with `POST /v1/cart/items`.\n\nThe token is the only credential. A token that is unknown, expired (30 days) or issued to another store\nanswers the same `404`. The response carries no email address or name.\n\n**Auth / key type:** publishable key (`tybrite_pk_*`) or secret key (`tybrite_sk_*`). Test keys read test records.\n\n**Rate limits:** 60 requests per hour per IP address, within one store.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/cart/checkout-recover","href":"/api-reference/cart-\u0026-wishlist/restore-the-cart-behind-a-recovery-link"}]},{"group":"Marketplace","pages":[{"title":"Check out a multi-merchant cart","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/cart/checkout","href":"/api-reference/marketplace/check-out-a-multi-merchant-cart"},{"title":"Quote a multi-merchant checkout","description":"What `POST /v1/cart/checkout` will charge for this basket, per merchant, before the\nshopper pays — including each merchant's shipping line. It takes the same body and runs\nthe same computation as the checkout, but holds no stock, creates no order and starts no\npayment, so it can be called as the shopper edits their basket or their address.\n\nEach merchant's items are priced for delivery separately: by that merchant's own delivery\nrates for the destination, or by the marketplace's flat rate per merchant, and free when\nthe merchant's items reach the marketplace's free-shipping threshold. When the request\ncarries a street `shipping_address` and a `parcel` for a merchant in\n`shipping_selections`, that merchant's carrier options are listed in `rates`; send the\nchosen option's `rate_id` (and `rate_source`) to the checkout. Carrier options are not\noffered for items the marketplace ships itself.\n\nThe quote never includes commission or what a merchant is paid.\n\nRequires the marketplace operator key (a publishable key is enough).\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/cart/checkout/quote","href":"/api-reference/marketplace/quote-a-multi-merchant-checkout"},{"title":"Get the signed-in shopper's unified marketplace profile","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/me","href":"/api-reference/marketplace/get-the-signed-in-shoppers-unified-marketplace-profile"},{"title":"Get the signed-in shopper's marketplace wallet","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/me/wallet","href":"/api-reference/marketplace/get-the-signed-in-shoppers-marketplace-wallet"},{"title":"Get marketplace information","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/marketplace/info","href":"/api-reference/marketplace/get-marketplace-information"},{"title":"List the marketplace's merchants","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/marketplace/info/merchants","href":"/api-reference/marketplace/list-the-marketplaces-merchants"},{"title":"Get placements for several slots","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/marketplace/ad-slots","href":"/api-reference/marketplace/get-placements-for-several-slots"},{"title":"Get placements for a slot","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/marketplace/ad-slots/{slot_key}","href":"/api-reference/marketplace/get-placements-for-a-slot"},{"title":"Log an ad impression or click","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/marketplace/ad-events","href":"/api-reference/marketplace/log-an-ad-impression-or-click"},{"title":"List operator-curated merchandising sections","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/marketplace/collections","href":"/api-reference/marketplace/list-operator-curated-merchandising-sections"},{"title":"Get one curated section with its members","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/marketplace/collections/{slug}","href":"/api-reference/marketplace/get-one-curated-section-with-its-members"}]},{"group":"Recommendations","pages":[{"title":"Get product recommendations","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/recommendations","href":"/api-reference/recommendations/get-product-recommendations"}]},{"group":"Discovery","pages":[{"title":"Most-viewed products (windowed)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/discovery/most-viewed","href":"/api-reference/discovery/most-viewed-products-windowed"},{"title":"Most-added-to-cart products (windowed)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/discovery/most-added-to-cart","href":"/api-reference/discovery/most-added-to-cart-products-windowed"},{"title":"Best-converting products (windowed)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/discovery/best-converting","href":"/api-reference/discovery/best-converting-products-windowed"}]},{"group":"Events","pages":[{"title":"Record a storefront product event","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/events","href":"/api-reference/events/record-a-storefront-product-event"}]},{"group":"Tax","pages":[{"title":"Preview tax for a cart before checkout","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/tax/preview","href":"/api-reference/tax/preview-tax-for-a-cart-before-checkout"}]},{"group":"Analytics","pages":[{"title":"Record a storefront analytics event","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/analytics/collect","href":"/api-reference/analytics/record-a-storefront-analytics-event"}]},{"group":"Agent","pages":[{"title":"List the agent tools","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/capabilities","href":"/api-reference/agent/list-the-agent-tools"},{"title":"Search by constraints","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/search","href":"/api-reference/agent/search-by-constraints"},{"title":"Read a shopper's message","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/interpret","href":"/api-reference/agent/read-a-shoppers-message"},{"title":"Get a product dossier","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/products/{id}/context","href":"/api-reference/agent/get-a-product-dossier"},{"title":"Compare products","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/compare","href":"/api-reference/agent/compare-products"},{"title":"Check a product against constraints","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/fit","href":"/api-reference/agent/check-a-product-against-constraints"},{"title":"Find alternatives to a product","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/alternatives","href":"/api-reference/agent/find-alternatives-to-a-product"},{"title":"Price a basket","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/quote","href":"/api-reference/agent/price-a-basket"},{"title":"Create a cart draft","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/cart-drafts","href":"/api-reference/agent/create-a-cart-draft"},{"title":"Draft a cart from an intent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/cart-drafts/from-intent","href":"/api-reference/agent/draft-a-cart-from-an-intent"},{"title":"Get a cart draft","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/cart-drafts/{id}","href":"/api-reference/agent/get-a-cart-draft"},{"title":"Add a draft to the shopper's cart","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/cart-drafts/{id}/apply","href":"/api-reference/agent/add-a-draft-to-the-shoppers-cart"},{"title":"Get insights on a cart","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/cart-insights","href":"/api-reference/agent/get-insights-on-a-cart"},{"title":"Get the shopper's personalisation consent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/me/consent","href":"/api-reference/agent/get-the-shoppers-personalisation-consent"},{"title":"Grant or revoke personalisation consent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/consent","href":"/api-reference/agent/grant-or-revoke-personalisation-consent"},{"title":"Get the shopper's own context","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/me/context","href":"/api-reference/agent/get-the-shoppers-own-context"},{"title":"Get wishlist insights","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/me/wishlist-insights","href":"/api-reference/agent/get-wishlist-insights"},{"title":"Get reorder suggestions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/me/reorder-suggestions","href":"/api-reference/agent/get-reorder-suggestions"},{"title":"Get an order's status","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/orders/{id}/status","href":"/api-reference/agent/get-an-orders-status"},{"title":"Request a return for an order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/orders/{id}/returns","href":"/api-reference/agent/request-a-return-for-an-order"},{"title":"List the shopper's standing instructions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/me/mandates","href":"/api-reference/agent/list-the-shoppers-standing-instructions"},{"title":"Create a standing instruction","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/mandates","href":"/api-reference/agent/create-a-standing-instruction"},{"title":"Cancel a standing instruction","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/mandates/{id}/cancel","href":"/api-reference/agent/cancel-a-standing-instruction"},{"title":"Subscribe \u0026 Save offers on a product","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/products/{id}/subscribe-save","href":"/api-reference/agent/subscribe-\u0026-save-offers-on-a-product"},{"title":"List the shopper's assistant conversations","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/me/conversations","href":"/api-reference/agent/list-the-shoppers-assistant-conversations"},{"title":"Start an assistant conversation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/conversations","href":"/api-reference/agent/start-an-assistant-conversation"},{"title":"Delete all of the shopper's assistant conversations","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/agent/me/conversations","href":"/api-reference/agent/delete-all-of-the-shoppers-assistant-conversations"},{"title":"Move a guest's conversations to the shopper who signed in","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/conversations/adopt","href":"/api-reference/agent/move-a-guests-conversations-to-the-shopper-who-signed-in"},{"title":"Get an assistant conversation with its turns","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/me/conversations/{id}","href":"/api-reference/agent/get-an-assistant-conversation-with-its-turns"},{"title":"Delete an assistant conversation","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/agent/me/conversations/{id}","href":"/api-reference/agent/delete-an-assistant-conversation"},{"title":"Add a turn to an assistant conversation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/conversations/{id}/turns","href":"/api-reference/agent/add-a-turn-to-an-assistant-conversation"},{"title":"List the shopper's Subscribe \u0026 Save subscriptions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/me/shopper-subscriptions","href":"/api-reference/agent/list-the-shoppers-subscribe-\u0026-save-subscriptions"},{"title":"Start a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/shopper-subscriptions","href":"/api-reference/agent/start-a-subscribe-\u0026-save-subscription"},{"title":"Pause a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/shopper-subscriptions/{id}/pause","href":"/api-reference/agent/pause-a-subscribe-\u0026-save-subscription"},{"title":"Skip the next Subscribe \u0026 Save delivery","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/shopper-subscriptions/{id}/skip","href":"/api-reference/agent/skip-the-next-subscribe-\u0026-save-delivery"},{"title":"Cancel a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/shopper-subscriptions/{id}/cancel","href":"/api-reference/agent/cancel-a-subscribe-\u0026-save-subscription"},{"title":"Change a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/me/shopper-subscriptions/{id}/update","href":"/api-reference/agent/change-a-subscribe-\u0026-save-subscription"},{"title":"Create a checkout intent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/checkout-intents","href":"/api-reference/agent/create-a-checkout-intent"},{"title":"Get a checkout intent","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/checkout-intents/{id}","href":"/api-reference/agent/get-a-checkout-intent"},{"title":"Confirm a checkout intent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/checkout-intents/{id}/confirm","href":"/api-reference/agent/confirm-a-checkout-intent"},{"title":"Cancel a checkout intent","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agent/checkout-intents/{id}/cancel","href":"/api-reference/agent/cancel-a-checkout-intent"},{"title":"Get the store's policies","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/store-policies","href":"/api-reference/agent/get-the-stores-policies"},{"title":"Get AI credit usage","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agent/usage","href":"/api-reference/agent/get-ai-credit-usage"}]},{"group":"Search","pages":[{"title":"Simple text search","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/search","href":"/api-reference/search/simple-text-search"},{"title":"Semantic search","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/search","href":"/api-reference/search/semantic-search"},{"title":"Type-ahead suggestions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/search/autocomplete","href":"/api-reference/search/type-ahead-suggestions"}]},{"group":"Authentication","pages":[{"title":"Register customer account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/register","href":"/api-reference/authentication/register-customer-account"},{"title":"Confirm a new account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/register/verify","href":"/api-reference/authentication/confirm-a-new-account"},{"title":"Resend the confirmation email","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/register/resend","href":"/api-reference/authentication/resend-the-confirmation-email"},{"title":"Create an account from a guest order","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/claim-account","href":"/api-reference/authentication/create-an-account-from-a-guest-order"},{"title":"Login with email and password","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/login","href":"/api-reference/authentication/login-with-email-and-password"},{"title":"Logout current session","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/logout","href":"/api-reference/authentication/logout-current-session"},{"title":"Send a sign-in code","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/magic-link","href":"/api-reference/authentication/send-a-sign-in-code"},{"title":"Verify a sign-in code","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/verify-otp","href":"/api-reference/authentication/verify-a-sign-in-code"},{"title":"Request a password reset","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/password/forgot","href":"/api-reference/authentication/request-a-password-reset"},{"title":"Reset a password","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/password/reset","href":"/api-reference/authentication/reset-a-password"},{"title":"Change or set a password","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/password/change","href":"/api-reference/authentication/change-or-set-a-password"},{"title":"Refresh access token","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/auth/refresh","href":"/api-reference/authentication/refresh-access-token"},{"title":"Get current user","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/auth/me","href":"/api-reference/authentication/get-current-user"}]},{"group":"Customers","pages":[{"title":"Create customer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers","href":"/api-reference/customers/create-customer"},{"title":"Get customer details","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}","href":"/api-reference/customers/get-customer-details"},{"title":"Update customer","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/customers/{id}","href":"/api-reference/customers/update-customer"},{"title":"List a shopper's saved addresses","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}/addresses","href":"/api-reference/customers/list-a-shoppers-saved-addresses"},{"title":"Save a new address","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/addresses","href":"/api-reference/customers/save-a-new-address"},{"title":"Delete a saved address","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/customers/{id}/addresses/{addressId}","href":"/api-reference/customers/delete-a-saved-address"},{"title":"Update a saved address","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/customers/{id}/addresses/{addressId}","href":"/api-reference/customers/update-a-saved-address"},{"title":"List a shopper's Subscribe \u0026 Save subscriptions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}/shopper-subscriptions","href":"/api-reference/customers/list-a-shoppers-subscribe-\u0026-save-subscriptions"},{"title":"Get a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}/shopper-subscriptions/{subscriptionId}","href":"/api-reference/customers/get-a-subscribe-\u0026-save-subscription"},{"title":"Change a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/customers/{id}/shopper-subscriptions/{subscriptionId}","href":"/api-reference/customers/change-a-subscribe-\u0026-save-subscription"},{"title":"Pause a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/shopper-subscriptions/{subscriptionId}/pause","href":"/api-reference/customers/pause-a-subscribe-\u0026-save-subscription"},{"title":"Resume a paused Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/shopper-subscriptions/{subscriptionId}/resume","href":"/api-reference/customers/resume-a-paused-subscribe-\u0026-save-subscription"},{"title":"Skip the next Subscribe \u0026 Save delivery","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/shopper-subscriptions/{subscriptionId}/skip-next","href":"/api-reference/customers/skip-the-next-subscribe-\u0026-save-delivery"},{"title":"Cancel a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/shopper-subscriptions/{subscriptionId}/cancel","href":"/api-reference/customers/cancel-a-subscribe-\u0026-save-subscription"},{"title":"Add a card to a Subscribe \u0026 Save subscription","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/shopper-subscriptions/{subscriptionId}/payment-method","href":"/api-reference/customers/add-a-card-to-a-subscribe-\u0026-save-subscription"},{"title":"List a shopper's saved cards","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}/payment-methods","href":"/api-reference/customers/list-a-shoppers-saved-cards"},{"title":"Remove a saved card","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/customers/{id}/payment-methods/{paymentMethodId}","href":"/api-reference/customers/remove-a-saved-card"},{"title":"List a shopper's data requests","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}/data-requests","href":"/api-reference/customers/list-a-shoppers-data-requests"},{"title":"Ask for a copy of my data, or for my account to be deleted","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/data-requests","href":"/api-reference/customers/ask-for-a-copy-of-my-data-or-for-my-account-to-be-deleted"},{"title":"Download a copy of my data","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}/data-requests/{request_id}/export","href":"/api-reference/customers/download-a-copy-of-my-data"},{"title":"Start changing a shopper's email address","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/email-change","href":"/api-reference/customers/start-changing-a-shoppers-email-address"},{"title":"Confirm a shopper's new email address","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/email-change/confirm","href":"/api-reference/customers/confirm-a-shoppers-new-email-address"},{"title":"List a shopper's delivered items","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/customers/{id}/fulfilments","href":"/api-reference/customers/list-a-shoppers-delivered-items"},{"title":"Reveal the codes of a delivered item","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/customers/{id}/fulfilments/{fulfilment_id}/reveal","href":"/api-reference/customers/reveal-the-codes-of-a-delivered-item"},{"title":"Download a file the shopper bought","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/fulfilment/downloads/{fulfilment_id}/{asset_id}","href":"/api-reference/customers/download-a-file-the-shopper-bought"}]},{"group":"Gift Cards","pages":[{"title":"List gift cards","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/gift-cards","href":"/api-reference/gift-cards/list-gift-cards"},{"title":"Check gift card balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/gift-cards/check","href":"/api-reference/gift-cards/check-gift-card-balance"}]},{"group":"Promotions","pages":[{"title":"List promotions","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/promotions","href":"/api-reference/promotions/list-promotions"},{"title":"Get promotion details","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/promotions/{id}","href":"/api-reference/promotions/get-promotion-details"},{"title":"Calculate a promotion's discount for a cart","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/promotions/{id}/calculate","href":"/api-reference/promotions/calculate-a-promotions-discount-for-a-cart"},{"title":"Find the best promotion for a cart","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/promotions/calculate-best","href":"/api-reference/promotions/find-the-best-promotion-for-a-cart"},{"title":"List the Subscribe \u0026 Save offers for a product","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/subscribe-save/offers","href":"/api-reference/promotions/list-the-subscribe-\u0026-save-offers-for-a-product"},{"title":"Quote the price of a Subscribe \u0026 Save offer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/subscribe-save/quote","href":"/api-reference/promotions/quote-the-price-of-a-subscribe-\u0026-save-offer"}]},{"group":"Campaigns","pages":[{"title":"List running campaigns","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/campaigns","href":"/api-reference/campaigns/list-running-campaigns"},{"title":"Get a running campaign","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/campaigns/{id}","href":"/api-reference/campaigns/get-a-running-campaign"}]},{"group":"CMS","pages":[{"title":"List blog posts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/posts","href":"/api-reference/cms/list-blog-posts"},{"title":"Get blog post by slug","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/posts/{slug}","href":"/api-reference/cms/get-blog-post-by-slug"},{"title":"Most-read blog posts","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/posts/trending","href":"/api-reference/cms/most-read-blog-posts"},{"title":"Posts related to this one","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/posts/{slug}/related","href":"/api-reference/cms/posts-related-to-this-one"},{"title":"List lookbooks","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/lookbooks","href":"/api-reference/cms/list-lookbooks"},{"title":"Get lookbook details by slug","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/lookbooks/{slug}","href":"/api-reference/cms/get-lookbook-details-by-slug"},{"title":"Subscribe an email to the store's newsletter","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/newsletter/subscribe","href":"/api-reference/cms/subscribe-an-email-to-the-stores-newsletter"},{"title":"Get a lead form","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/lead-forms/{slug}","href":"/api-reference/cms/get-a-lead-form"},{"title":"Get a lead form token","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/lead-forms/{slug}/token","href":"/api-reference/cms/get-a-lead-form-token"},{"title":"Submit a lead form","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/lead-forms/{slug}/submit","href":"/api-reference/cms/submit-a-lead-form"}]},{"group":"Pricing","pages":[{"title":"Get prices for multiple products with dynamic pricing and multi-currency support","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/prices/products","href":"/api-reference/pricing/get-prices-for-multiple-products-with-dynamic-pricing-and-multi-currency-support"},{"title":"Get single product pricing with dynamic pricing and multi-currency support","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/prices/products/{id}","href":"/api-reference/pricing/get-single-product-pricing-with-dynamic-pricing-and-multi-currency-support"},{"title":"Get product pricing by SEO-friendly slug with dynamic pricing and multi-currency support","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/prices/products/by-slug/{slug}","href":"/api-reference/pricing/get-product-pricing-by-seo-friendly-slug-with-dynamic-pricing-and-multi-currency-support"}]},{"group":"Messaging","pages":[{"title":"List message threads","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/messaging/threads","href":"/api-reference/messaging/list-message-threads"},{"title":"Get thread details","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/messaging/threads/{id}","href":"/api-reference/messaging/get-thread-details"},{"title":"Update thread","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/messaging/threads/{id}","href":"/api-reference/messaging/update-thread"},{"title":"Get messages in a thread","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/messaging/threads/{id}/messages","href":"/api-reference/messaging/get-messages-in-a-thread"},{"title":"Send a message to a thread","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messaging/threads/{id}/messages","href":"/api-reference/messaging/send-a-message-to-a-thread"},{"title":"Start a new conversation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messaging/conversations","href":"/api-reference/messaging/start-a-new-conversation"},{"title":"Mark thread as read","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messaging/threads/{id}/read","href":"/api-reference/messaging/mark-thread-as-read"},{"title":"Delete message","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/messaging/messages/{id}","href":"/api-reference/messaging/delete-message"},{"title":"Edit message","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/messaging/messages/{id}","href":"/api-reference/messaging/edit-message"},{"title":"Subscribe to a thread's new messages in realtime (WebSocket)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/messaging/threads/{id}/subscribe","href":"/api-reference/messaging/subscribe-to-a-threads-new-messages-in-realtime-websocket"},{"title":"Read a guest conversation from its email link","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messaging/guest-thread/view","href":"/api-reference/messaging/read-a-guest-conversation-from-its-email-link"},{"title":"Reply on a guest conversation from its email link","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messaging/guest-thread/reply","href":"/api-reference/messaging/reply-on-a-guest-conversation-from-its-email-link"},{"title":"Report a marketplace guest conversation from its email link","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messaging/guest-thread/report","href":"/api-reference/messaging/report-a-marketplace-guest-conversation-from-its-email-link"},{"title":"Report a marketplace conversation","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/messaging/threads/{id}/report","href":"/api-reference/messaging/report-a-marketplace-conversation"}]},{"group":"Shipping","pages":[{"title":"Get shipping zones and pricing tiers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/shipping/zones","href":"/api-reference/shipping/get-shipping-zones-and-pricing-tiers"},{"title":"Calculate shipping fee","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/shipping/calculate","href":"/api-reference/shipping/calculate-shipping-fee"},{"title":"Track a shipment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/shipping/tracking/{carrier}/{number}","href":"/api-reference/shipping/track-a-shipment"}]},{"group":"GC Connect","pages":[{"title":"Validate an authorization request","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/connect/authorize","href":"/api-reference/gc-connect/validate-an-authorization-request"},{"title":"Approve the authorization (merchant consent)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/connect/authorize","href":"/api-reference/gc-connect/approve-the-authorization-merchant-consent"},{"title":"Exchange authorization code for API keys","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/connect/token","href":"/api-reference/gc-connect/exchange-authorization-code-for-api-keys"},{"title":"Revoke a store connection","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/connect/revoke","href":"/api-reference/gc-connect/revoke-a-store-connection"},{"title":"List active store connections","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/connect/sessions","href":"/api-reference/gc-connect/list-active-store-connections"},{"title":"List the linked store's team","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/connect/team","href":"/api-reference/gc-connect/list-the-linked-stores-team"}]},{"group":"Storefront Studio","pages":[{"title":"Read the reported storefront address and routes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/storefront/site","href":"/api-reference/storefront-studio/read-the-reported-storefront-address-and-routes"},{"title":"Report the storefront's address and routes","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/storefront/site","href":"/api-reference/storefront-studio/report-the-storefronts-address-and-routes"},{"title":"List the app's A/B experiments","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/storefront/experiments","href":"/api-reference/storefront-studio/list-the-apps-ab-experiments"},{"title":"Register or update an A/B experiment","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/storefront/experiments/{experiment_id}","href":"/api-reference/storefront-studio/register-or-update-an-ab-experiment"},{"title":"Read the paid orders for each variant of an experiment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/storefront/experiments/{experiment_id}/conversions","href":"/api-reference/storefront-studio/read-the-paid-orders-for-each-variant-of-an-experiment"},{"title":"List the support requests the app opened","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/storefront/tickets","href":"/api-reference/storefront-studio/list-the-support-requests-the-app-opened"},{"title":"Open a support request for the store","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/storefront/tickets","href":"/api-reference/storefront-studio/open-a-support-request-for-the-store"},{"title":"Read one support request the app opened","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/storefront/tickets/{ticket_id}","href":"/api-reference/storefront-studio/read-one-support-request-the-app-opened"},{"title":"List the templates the app offered","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/storefront/templates","href":"/api-reference/storefront-studio/list-the-templates-the-app-offered"},{"title":"Read a template the app offered","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/storefront/templates/{template_id}","href":"/api-reference/storefront-studio/read-a-template-the-app-offered"},{"title":"Offer a template for the store","deprecated":null,"version":null,"openapi":"/openapi.yaml put /v1/storefront/templates/{template_id}","href":"/api-reference/storefront-studio/offer-a-template-for-the-store"},{"title":"Withdraw a template offer","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/storefront/templates/{template_id}","href":"/api-reference/storefront-studio/withdraw-a-template-offer"}]},{"group":"Reviews","pages":[{"title":"List reviews for a product","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/reviews","href":"/api-reference/reviews/list-reviews-for-a-product"},{"title":"Submit a product review","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/reviews","href":"/api-reference/reviews/submit-a-product-review"},{"title":"Get a single review","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/reviews/{id}","href":"/api-reference/reviews/get-a-single-review"},{"title":"Delete your own review","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/reviews/{id}","href":"/api-reference/reviews/delete-your-own-review"},{"title":"Mark a review as helpful","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/reviews/{id}/helpful","href":"/api-reference/reviews/mark-a-review-as-helpful"}]},{"group":"Returns","pages":[{"title":"List return reason codes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/returns/reasons","href":"/api-reference/returns/list-return-reason-codes"},{"title":"Check whether an order can still be returned","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/returns/eligibility","href":"/api-reference/returns/check-whether-an-order-can-still-be-returned"},{"title":"Get the customer's store credit balance","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/returns/store-credit","href":"/api-reference/returns/get-the-customers-store-credit-balance"},{"title":"List the signed-in customer's returns","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/returns","href":"/api-reference/returns/list-the-signed-in-customers-returns"},{"title":"Lodge a return","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/returns","href":"/api-reference/returns/lodge-a-return"},{"title":"Get one of the customer's returns","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/returns/{id}","href":"/api-reference/returns/get-one-of-the-customers-returns"},{"title":"Accept a store credit offer","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/returns/{id}/accept-credit","href":"/api-reference/returns/accept-a-store-credit-offer"},{"title":"Request a refund instead of store credit","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/returns/{id}/request-refund","href":"/api-reference/returns/request-a-refund-instead-of-store-credit"}]},{"group":"Disputes","pages":[{"title":"List dispute reason codes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/disputes/reasons","href":"/api-reference/disputes/list-dispute-reason-codes"},{"title":"List the shopper's disputes","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/disputes","href":"/api-reference/disputes/list-the-shoppers-disputes"},{"title":"Open a dispute","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/disputes","href":"/api-reference/disputes/open-a-dispute"},{"title":"Get a dispute","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/disputes/{id}","href":"/api-reference/disputes/get-a-dispute"},{"title":"Cancel a dispute","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/disputes/{id}/cancel","href":"/api-reference/disputes/cancel-a-dispute"},{"title":"Add a message to a dispute","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/disputes/{id}/messages","href":"/api-reference/disputes/add-a-message-to-a-dispute"}]},{"group":"B2B","pages":[{"title":"List your requests for quote","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/b2b/rfqs","href":"/api-reference/b2b/list-your-requests-for-quote"},{"title":"Request a quote","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/b2b/rfqs","href":"/api-reference/b2b/request-a-quote"},{"title":"Get one of your RFQs","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/b2b/rfqs/{id}","href":"/api-reference/b2b/get-one-of-your-rfqs"},{"title":"Get a quote addressed to you","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/b2b/quotes/{id}","href":"/api-reference/b2b/get-a-quote-addressed-to-you"},{"title":"Accept a quote","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/b2b/quotes/{id}/accept","href":"/api-reference/b2b/accept-a-quote"},{"title":"Reject a quote","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/b2b/quotes/{id}/reject","href":"/api-reference/b2b/reject-a-quote"},{"title":"List your purchase orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/b2b/purchase-orders","href":"/api-reference/b2b/list-your-purchase-orders"},{"title":"Get one of your purchase orders","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/b2b/purchase-orders/{id}","href":"/api-reference/b2b/get-one-of-your-purchase-orders"},{"title":"List your invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/b2b/invoices","href":"/api-reference/b2b/list-your-invoices"},{"title":"Get one of your invoices","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/b2b/invoices/{id}","href":"/api-reference/b2b/get-one-of-your-invoices"},{"title":"Start paying an invoice","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/b2b/invoices/{id}/pay","href":"/api-reference/b2b/start-paying-an-invoice"},{"title":"List the approvals the signed-in approver can decide","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/b2b/approvals","href":"/api-reference/b2b/list-the-approvals-the-signed-in-approver-can-decide"},{"title":"Approve or reject a held purchase","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/b2b/approvals/{id}/decision","href":"/api-reference/b2b/approve-or-reject-a-held-purchase"},{"title":"Place a wholesale order directly (self-serve checkout)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/b2b/orders","href":"/api-reference/b2b/place-a-wholesale-order-directly-self-serve-checkout"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","deprecated":null,"version":null,"openapi":"/tldp/openapi.yaml get /v1/webhooks","href":"/api-reference/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint","deprecated":null,"version":null,"openapi":"/tldp/openapi.yaml post /v1/webhooks","href":"/api-reference/webhooks/create-a-webhook-endpoint"},{"title":"Get a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/webhook_endpoints/{id}","href":"/api-reference/webhooks/get-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/tldp/openapi.yaml delete /v1/webhooks/{webhookId}","href":"/api-reference/webhooks/delete-a-webhook-endpoint"},{"title":"Update a webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /v1/webhook_endpoints/{id}","href":"/api-reference/webhooks/update-a-webhook-endpoint"},{"title":"Send a test event","deprecated":null,"version":null,"openapi":"/tldp/openapi.yaml post /v1/webhooks/{webhookId}/test","href":"/api-reference/webhooks/send-a-test-event"},{"title":"List webhook events","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/webhook_events","href":"/api-reference/webhooks/list-webhook-events"},{"title":"Get a webhook event","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/webhook_events/{id}","href":"/api-reference/webhooks/get-a-webhook-event"},{"title":"Retry a webhook event","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/webhook_events/{id}/retry","href":"/api-reference/webhooks/retry-a-webhook-event"}]},{"group":"Ingestion","pages":[{"title":"Ingest a batch of products","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/ingest/products","href":"/api-reference/ingestion/ingest-a-batch-of-products"},{"title":"Get a sample product feed","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/ingest/sample","href":"/api-reference/ingestion/get-a-sample-product-feed"},{"title":"Validate a product feed (no writes)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/ingest/test","href":"/api-reference/ingestion/validate-a-product-feed-no-writes"}]},{"group":"Feeds","pages":[{"title":"Public catalog feed (JSON)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/feeds/{store}/products.json","href":"/api-reference/feeds/public-catalog-feed-json"},{"title":"Public catalog feed (XML)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/feeds/{store}/products.xml","href":"/api-reference/feeds/public-catalog-feed-xml"},{"title":"Store summary for AI assistants (llms.txt)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/feeds/{store}/llms.txt","href":"/api-reference/feeds/store-summary-for-ai-assistants-llmstxt"},{"title":"Full catalog for AI assistants (llms-full.txt)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/feeds/{store}/llms-full.txt","href":"/api-reference/feeds/full-catalog-for-ai-assistants-llms-fulltxt"},{"title":"How an AI assistant connects to a store (agent.json)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/feeds/{store}/agent.json","href":"/api-reference/feeds/how-an-ai-assistant-connects-to-a-store-agentjson"}]},{"group":"Sandbox","pages":[{"title":"Reset your sandbox data","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/reset","href":"/api-reference/sandbox/reset-your-sandbox-data"},{"title":"Reset your sandbox data (alias)","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/sandbox/data","href":"/api-reference/sandbox/reset-your-sandbox-data-alias"},{"title":"Fast-forward sandbox time","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/time","href":"/api-reference/sandbox/fast-forward-sandbox-time"},{"title":"Replay a sandbox webhook event","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/webhooks/replay","href":"/api-reference/sandbox/replay-a-sandbox-webhook-event"},{"title":"Create a sandbox promotion","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/seed/promotion","href":"/api-reference/sandbox/create-a-sandbox-promotion"},{"title":"Create a sandbox gift card","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/seed/gift-card","href":"/api-reference/sandbox/create-a-sandbox-gift-card"},{"title":"Create a sandbox campaign","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/seed/campaign","href":"/api-reference/sandbox/create-a-sandbox-campaign"},{"title":"Create a sandbox B2B buyer account","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/seed/b2b-buyer-account","href":"/api-reference/sandbox/create-a-sandbox-b2b-buyer-account"},{"title":"Create a sandbox dynamic-pricing rule","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/seed/pricing-rule","href":"/api-reference/sandbox/create-a-sandbox-dynamic-pricing-rule"},{"title":"List sandbox stock levels","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/sandbox/stock","href":"/api-reference/sandbox/list-sandbox-stock-levels"},{"title":"Set sandbox stock levels","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/sandbox/stock","href":"/api-reference/sandbox/set-sandbox-stock-levels"},{"title":"Remove every sandbox stock level","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/sandbox/stock","href":"/api-reference/sandbox/remove-every-sandbox-stock-level"},{"title":"Remove one sandbox stock level","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /v1/sandbox/stock/{variant_id}","href":"/api-reference/sandbox/remove-one-sandbox-stock-level"}]},{"group":"Agency Signup","pages":[{"title":"Get an agency's plans and its active automatic offers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/agency/pricing","href":"/api-reference/agency-signup/get-an-agencys-plans-and-its-active-automatic-offers"},{"title":"Get the platform's active automatic offers","deprecated":null,"version":null,"openapi":"/openapi.yaml get /v1/pricing/offers","href":"/api-reference/agency-signup/get-the-platforms-active-automatic-offers"},{"title":"Sign a merchant up under an agency (send code, verify, create the store)","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/agency/merchant-signup","href":"/api-reference/agency-signup/sign-a-merchant-up-under-an-agency-send-code-verify-create-the-store"}]}]},{"tab":"TypeScript SDK","pages":[{"title":"TypeScript SDK","href":"/sdk/introduction"}]},{"tab":"Workflow Examples","pages":[{"title":"Workflow Examples","href":"/workflows/introduction"}]}]},{"product":"TLDP","icon":"truck","description":"One API for logistics: rates, shipments, tracking and returns","pages":[{"title":"TLDP","href":"/tldp"}]}]},"basePath":"","title":"Check out a multi-merchant cart - Galactic Core API Documentation","deploymentId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","buildId":"dpl_5nNsUVHqbVdUHouroPPzwztSbjmH","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-B564ZPEC.js","snippetPresets-L1o8HcxD.js","utils-CztB6GTn.js","style-to-object-BY3JEAdk.js","utils-CvVTgJWk.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DYi6_847.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DthbVJn_.js","_Uint8Array-G4MDMcnE.js","isObject-FP1Yky1u.js","Page-Cwg6gQ2F.js","api-description-markdown-DFvICuUq.js","DynamicMarkdown-DHV3eOcf.js","CodeSnippet-DANVAYTI.js","use-playground-group-access-DaUWE1Sg.js","SectionHeading-DLRZDaDn.js","ApiExamples-BnQo4SxZ.js","usePlaygroundInputsStore-Dsmj0Yg6.js","shallow-Bp_wEvgz.js","isEqual-BwXlkqOR.js","CodeSnippets-D6Fi8DmN.js","MethodPill-CgqQYk5N.js","getPastedJson-k_txzq3J.js","Check2Icon-CO8ho5Tt.js","axios-CsQoIw0U.js","Markdown-C8ZpmBko.js","AssistantPageLink-AWAGfbYY.js","dist-CAcI43Vk.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}