Product identifier to add. Provide one of productId, foodId, serviceId, digitalId, or allAccess.
foodId
string
No
Food item identifier (restaurant stores).
serviceId
string
No
Service identifier (business stores).
digitalId
string
No
Digital product identifier (digital stores). Needs mode.
mode
string
With digitalId
lifetime (permanent access, the item’s one-time price) or pass (30 days, its monthly price).
allAccess
boolean
No
true adds the store-wide all-access pass instead of one item. Cannot be combined with digitalId.
autoRenew
boolean
No
The shopper ticked “Renew automatically”. Only meaningful on pass lines.
variantId
string
No
Variant identifier. Include it to add a specific product variant.
quantity
integer
No
Quantity to add. Defaults to 1.
selectedAddons
array
No
Array of add-on objects {addonId, quantity} for food or service items.
A storefront’s catalog type is determined by the shop type: product for ecommerce, food for restaurant, service for business, and digital for digital stores. Add the matching identifier (productId, foodId, serviceId, or digitalId / allAccess). Services behave like foods: they have no variants but can carry add-ons.
A service cart item is returned with itemType: "service" and a populated service object (plus a serviceId convenience field), mirroring the food shape:
A digital line carries no quantity (it is always 1, and quantity is ignored). The price on the line is a display snapshot taken from the catalog; the order recomputes it, so a client can never set it.
To add the all-access pass, send { "allAccess": true }. The returned line looks like this (itemType: "digital", with digital and digitalId pointing at the product; the pass line has neither):
Rules for digital lines, each answered with a code in the error body:
Status
code
When
400
mode_not_available
The item is not sold that way (for example mode: "pass" on an item with only a one-time price).
400
mixed_cart
The cart already holds a non-digital line. A cart is all digital or none.
404
not_found
The item does not exist, is unlisted, or is not in this store.
404
pass_not_available
allAccess was sent but the store has no pass on sale.
409
already_owned
The shopper already owns a permanent copy. An active pass is fine: buying again extends it.
Choosing the other way to buy an item already in the cart swaps the line instead of adding a second one. The quantity of a digital line cannot be changed.
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Body
application/json
Option 1
Option 2
Option 3
Option 4
Option 5
Add a product/variant line item, a food line item, a service line item, or a digital line item, with optional add-ons. Use the identifier that matches the storefront catalog type: productId (ecommerce), foodId (restaurant), serviceId (business), or digitalId / allAccess (digital).
How to buy the digital product: lifetime (permanent access, the product's pricing.oneTime) or pass (30 days, pricing.monthly). Required with digitalId.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Salesive Docs","colors":{"primary":"#0d65d9","light":"#0d65d9","dark":"#0d65d9"},"logo":{"light":"https://mintcdn.com/salesive/VvY6MQ7U6lHdcwJv/logo/black.png?fit=max\u0026auto=format\u0026n=VvY6MQ7U6lHdcwJv\u0026q=85\u0026s=5f950e29e4cd7ea06abc0929a6f665d9","dark":"https://mintcdn.com/salesive/VvY6MQ7U6lHdcwJv/logo/white.png?fit=max\u0026auto=format\u0026n=VvY6MQ7U6lHdcwJv\u0026q=85\u0026s=8ce4d52ad1712569cc11546be4cae9a6"},"favicon":"https://mintcdn.com/salesive/VvY6MQ7U6lHdcwJv/favicon.png?fit=max\u0026auto=format\u0026n=VvY6MQ7U6lHdcwJv\u0026q=85\u0026s=77d5b117821d218cce4ef3b09cefe83b","api":{"openapi":["api-reference/openapi.json","apps-api/specs/account.json","apps-api/specs/billing.json","apps-api/specs/catalog.json","apps-api/specs/customers-categories.json","apps-api/specs/digital.json","apps-api/specs/discounts-blogs.json","apps-api/specs/messaging.json","apps-api/specs/orders.json","apps-api/specs/productivity.json","apps-api/specs/shipping-fulfillment.json"],"playground":{"proxy":false}},"navbar":{"links":[{"href":"mailto:sales@salesive.com","label":"Contact Sales"}],"primary":{"type":"button","label":"Create your store","href":"https://salesive.com"}},"footer":{"socials":{"x":"https://x.com/salesivehq","github":"https://github.com/salesivehq","linkedin":"https://linkedin.com/company/salesivehq","youtube":"https://youtube.com/@salesivehq","instagram":"https://instagram.com/salesivehq","website":"https://salesive.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Salesive website","icon":"globe","href":"https://salesive.com"},{"anchor":"Support","icon":"envelope","href":"mailto:support@salesive.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"salesive","hasAudioNarration":false,"actualSubdomain":"salesive","customDomains":["docs.salesive.com"],"gitSource":{"type":"github","owner":"eoion","repo":"salesive-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae091b92ea1296893ea4165","collectionId":"a797cf05-3ced-4f39-8098-8a9a2aab35c7","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae091b92ea1296893ea4165"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6ae091b92ea1296893ea4165","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"Apps API","count":141},{"language":"default","tag":"API reference","count":81},{"language":"default","tag":"Products","count":21},{"language":"default","tag":"Shipping","count":18},{"language":"default","tag":"Building apps","count":17},{"language":"default","tag":"Orders","count":11},{"language":"default","tag":"Digital products","count":10},{"language":"default","tag":"Blogs","count":8},{"language":"default","tag":"Comments","count":8},{"language":"default","tag":"Shipday","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/cart/add-item","slug":"/api-reference/endpoint/cart/add-item","pageMetadata":{"title":"Add item to cart","description":"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper's cart.","openapi":"POST /cart","href":"/api-reference/endpoint/cart/add-item"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper’s cart.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /cart`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer {{token}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-shop-id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {{shopId}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"692cd420b07303c9be5eafd7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Provide the customer token as `,_jsx(_components.code,{children:`Bearer \u003cjwt>`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`x-shop-id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Identify the shop that owns the cart.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Content-Type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always set to `,_jsx(_components.code,{children:`application/json`}),`.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body parameters`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`productId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Product identifier to add. Provide one of `,_jsx(_components.code,{children:`productId`}),`, `,_jsx(_components.code,{children:`foodId`}),`, `,_jsx(_components.code,{children:`serviceId`}),`, `,_jsx(_components.code,{children:`digitalId`}),`, or `,_jsx(_components.code,{children:`allAccess`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`foodId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Food item identifier (restaurant stores).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`serviceId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Service identifier (business stores).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`digitalId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Digital product identifier (digital stores). Needs `,_jsx(_components.code,{children:`mode`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mode`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`With `,_jsx(_components.code,{children:`digitalId`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`lifetime`}),` (permanent access, the item’s one-time price) or `,_jsx(_components.code,{children:`pass`}),` (30 days, its monthly price).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`allAccess`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` adds the store-wide all-access pass instead of one item. Cannot be combined with `,_jsx(_components.code,{children:`digitalId`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`autoRenew`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The shopper ticked “Renew automatically”. Only meaningful on pass lines.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`variantId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Variant identifier. Include it to add a specific product variant.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quantity`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Quantity to add. Defaults to `,_jsx(_components.code,{children:`1`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`selectedAddons`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Array of add-on objects `,_jsx(_components.code,{children:`{addonId, quantity}`}),` for food `,_jsx(_components.strong,{children:`or`}),` service items.`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A storefront’s catalog type is determined by the shop type: `,_jsx(_components.code,{children:`product`}),` for ecommerce, `,_jsx(_components.code,{children:`food`}),` for restaurant, `,_jsx(_components.code,{children:`service`}),` for business, and `,_jsx(_components.code,{children:`digital`}),` for digital stores. Add the matching identifier (`,_jsx(_components.code,{children:`productId`}),`, `,_jsx(_components.code,{children:`foodId`}),`, `,_jsx(_components.code,{children:`serviceId`}),`, or `,_jsx(_components.code,{children:`digitalId`}),` / `,_jsx(_components.code,{children:`allAccess`}),`). Services behave like foods: they have no variants but can carry add-ons.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`food-request-example`,children:`Food request example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /cart`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer {{token}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-shop-id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {{shopId}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"foodId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"68e5bb463a1fc56a8ac150c0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"selectedAddons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addonId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"68e5bb463a1fc56a8ac150d1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`service-request-example`,children:`Service request example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /cart`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer {{token}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-shop-id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {{shopId}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"serviceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6a2f8a7ba6656ba8cddfc1f5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"selectedAddons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addonId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6a2f8a7ba6656ba8cddfc201\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A service cart item is returned with `,_jsx(_components.code,{children:`itemType: \"service\"`}),` and a populated `,_jsx(_components.code,{children:`service`}),` object (plus a `,_jsx(_components.code,{children:`serviceId`}),` convenience field), mirroring the food shape:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"service\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"service\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6a2f8a7ba6656ba8cddfc1f5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Home Cleaning\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"serviceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6a2f8a7ba6656ba8cddfc1f5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Home Cleaning\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.salesive.com/services/cleaning.webp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"selectedAddons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`digital-request-example`,children:`Digital request example`}),`\n`,_jsxs(_components.p,{children:[`A digital line carries no quantity (it is always 1, and `,_jsx(_components.code,{children:`quantity`}),` is ignored). The price on the line is a display snapshot taken from the catalog; the order recomputes it, so a client can never set it.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /cart`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer {{token}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-shop-id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {{shopId}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Content-Type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` application/json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"digitalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6702c1a4e1b3a40012cd2001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pass\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"autoRenew\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`To add the all-access pass, send `,_jsx(_components.code,{children:`{ \"allAccess\": true }`}),`. The returned line looks like this (`,_jsx(_components.code,{children:`itemType: \"digital\"`}),`, with `,_jsx(_components.code,{children:`digital`}),` and `,_jsx(_components.code,{children:`digitalId`}),` pointing at the product; the pass line has neither):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"digital\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"digital\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6702c1a4e1b3a40012cd2001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"digitalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6702c1a4e1b3a40012cd2001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pass\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The Lagos Cookbook\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.salesive.com/d/lagos-cookbook-cover.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"accessDays\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"autoRenew\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6702f4a1e1b3a40012cd7001\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Rules for digital lines, each answered with a `,_jsx(_components.code,{children:`code`}),` in the error body:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`mode_not_available`})}),_jsxs(_components.td,{children:[`The item is not sold that way (for example `,_jsx(_components.code,{children:`mode: \"pass\"`}),` on an item with only a one-time price).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`mixed_cart`})}),_jsx(_components.td,{children:`The cart already holds a non-digital line. A cart is all digital or none.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`not_found`})}),_jsx(_components.td,{children:`The item does not exist, is unlisted, or is not in this store.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`pass_not_available`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`allAccess`}),` was sent but the store has no pass on sale.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`already_owned`})}),_jsx(_components.td,{children:`The shopper already owns a permanent copy. An active pass is fine: buying again extends it.`})]})]})]}),`\n`,_jsx(_components.p,{children:`Choosing the other way to buy an item already in the cart swaps the line instead of adding a second one. The quantity of a digital line cannot be changed.`}),`\n`,_jsx(Heading,{level:`2`,id:`successful-response`,children:`Successful response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`35`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`35`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Item added to cart\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"693606ada7a8f7dc8ae32d80\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"food\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"food\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"68e5bb463a1fc56a8ac150c0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Margherita Pizza\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"foodId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"68e5bb463a1fc56a8ac150c0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Margherita Pizza\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.salesive.com/foods/margherita.webp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"selectedAddons\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"addonId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"68e5bb463a1fc56a8ac150d1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Extra Cheese\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A richer mozzarella finish baked on top.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6937b6e9e455c711f1fc9064\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6937b6e9e455c711f1fc9064\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"693606ada7a8f7dc8ae32d80\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-response`,children:`Error response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`404`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Product not found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add item to cart","description":"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper's cart.","openapi":"POST /cart","href":"/api-reference/endpoint/cart/add-item"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Headers","slug":"headers","depth":2,"children":[]},{"title":"Body parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Food request example","slug":"food-request-example","depth":2,"children":[]},{"title":"Service request example","slug":"service-request-example","depth":2,"children":[]},{"title":"Digital request example","slug":"digital-request-example","depth":2,"children":[]},{"title":"Successful response","slug":"successful-response","depth":2,"children":[]},{"title":"Error response","slug":"error-response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Add item to cart","description":"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper's cart.","parameters":["23c0953e-b7d1-450a-91b1-3e17c3412498"],"requestBody":"bdaf137e-49d0-4330-88b9-cc1617ab4f2c","responses":{"200":"e77e5c2d-21eb-4eb8-93ca-b888271a7f20","404":"b2666afb-25c5-40ed-8d6d-54f883288a8c"},"method":"post","type":"path","servers":["2eb8cb51-0d06-40eb-a1ca-4c7417a1a9e5"],"security":["ff72e6c7-5b18-482b-86f2-4927bcff2b3a"],"path":"/cart","baseUrlOptions":["https://store.salesive.com/api/v1"],"title":"Add item to cart","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"23c0953e-b7d1-450a-91b1-3e17c3412498":{"name":"x-shop-id","in":"header","description":"Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.","required":false,"schema":{"type":"string","isRequired":false,"description":"Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Add a product/variant line item, a food line item, a service line item, or a digital line item, with optional add-ons. Use the identifier that matches the storefront catalog type: productId (ecommerce), foodId (restaurant), serviceId (business), or digitalId / allAccess (digital).","required":["productId"],"properties":{"productId":{"type":"string","description":"Identifier of the product to add to the cart (ecommerce stores).","isRequired":true,"uniqueKey":"oneOf.0.productId","typeLabel":"string"},"foodId":{"type":"string","description":"Identifier of the food item to add to the cart (restaurant stores).","uniqueKey":"oneOf.0.foodId","typeLabel":"string"},"serviceId":{"type":"string","description":"Identifier of the service to add to the cart (business stores).","uniqueKey":"oneOf.0.serviceId","typeLabel":"string"},"variantId":{"type":"string","description":"Optional identifier of the product variant to add.","uniqueKey":"oneOf.0.variantId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity of the product, food, or service to add. Defaults to 1.","uniqueKey":"oneOf.0.quantity","typeLabel":"integer"},"selectedAddons":{"type":"array","items":{"type":"object","required":["addonId"],"properties":{"addonId":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.selectedAddons.items.[INDEX].addonId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"uniqueKey":"oneOf.0.selectedAddons.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"oneOf.0.selectedAddons.items.[INDEX]","typeLabel":"object"},"description":"Optional add-on selections for food or service items.","uniqueKey":"oneOf.0.selectedAddons","typeLabel":"object[]"},"digitalId":{"type":"string","description":"Identifier of the digital product to add (digital stores). Needs `mode`.","uniqueKey":"oneOf.0.digitalId","typeLabel":"string"},"mode":{"type":"string","enum":["lifetime","pass"],"description":"How to buy the digital product: `lifetime` (permanent access, the product's `pricing.oneTime`) or `pass` (30 days, `pricing.monthly`). Required with `digitalId`.","uniqueKey":"oneOf.0.mode","typeLabel":"enum\u003cstring>"},"allAccess":{"type":"boolean","enum":[true],"description":"Add the store-wide all-access pass instead of one product. Cannot be combined with `digitalId`.","uniqueKey":"oneOf.0.allAccess","typeLabel":"enum\u003cboolean>"},"autoRenew":{"type":"boolean","description":"The shopper ticked \"Renew automatically\". Only meaningful on pass lines (`mode: \"pass\"` or `allAccess`).","uniqueKey":"oneOf.0.autoRenew","typeLabel":"boolean"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Add a product/variant line item, a food line item, a service line item, or a digital line item, with optional add-ons. Use the identifier that matches the storefront catalog type: productId (ecommerce), foodId (restaurant), serviceId (business), or digitalId / allAccess (digital).","required":["foodId"],"properties":{"foodId":{"type":"string","description":"Identifier of the food item to add to the cart (restaurant stores).","isRequired":true,"uniqueKey":"oneOf.1.foodId","typeLabel":"string"},"productId":{"type":"string","description":"Identifier of the product to add to the cart (ecommerce stores).","uniqueKey":"oneOf.1.productId","typeLabel":"string"},"serviceId":{"type":"string","description":"Identifier of the service to add to the cart (business stores).","uniqueKey":"oneOf.1.serviceId","typeLabel":"string"},"variantId":{"type":"string","description":"Optional identifier of the product variant to add.","uniqueKey":"oneOf.1.variantId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity of the product, food, or service to add. Defaults to 1.","uniqueKey":"oneOf.1.quantity","typeLabel":"integer"},"selectedAddons":{"type":"array","items":{"type":"object","required":["addonId"],"properties":{"addonId":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.selectedAddons.items.[INDEX].addonId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"uniqueKey":"oneOf.1.selectedAddons.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"oneOf.1.selectedAddons.items.[INDEX]","typeLabel":"object"},"description":"Optional add-on selections for food or service items.","uniqueKey":"oneOf.1.selectedAddons","typeLabel":"object[]"},"digitalId":{"type":"string","description":"Identifier of the digital product to add (digital stores). Needs `mode`.","uniqueKey":"oneOf.1.digitalId","typeLabel":"string"},"mode":{"type":"string","enum":["lifetime","pass"],"description":"How to buy the digital product: `lifetime` (permanent access, the product's `pricing.oneTime`) or `pass` (30 days, `pricing.monthly`). Required with `digitalId`.","uniqueKey":"oneOf.1.mode","typeLabel":"enum\u003cstring>"},"allAccess":{"type":"boolean","enum":[true],"description":"Add the store-wide all-access pass instead of one product. Cannot be combined with `digitalId`.","uniqueKey":"oneOf.1.allAccess","typeLabel":"enum\u003cboolean>"},"autoRenew":{"type":"boolean","description":"The shopper ticked \"Renew automatically\". Only meaningful on pass lines (`mode: \"pass\"` or `allAccess`).","uniqueKey":"oneOf.1.autoRenew","typeLabel":"boolean"}},"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"Add a product/variant line item, a food line item, a service line item, or a digital line item, with optional add-ons. Use the identifier that matches the storefront catalog type: productId (ecommerce), foodId (restaurant), serviceId (business), or digitalId / allAccess (digital).","required":["serviceId"],"properties":{"serviceId":{"type":"string","description":"Identifier of the service to add to the cart (business stores).","isRequired":true,"uniqueKey":"oneOf.2.serviceId","typeLabel":"string"},"productId":{"type":"string","description":"Identifier of the product to add to the cart (ecommerce stores).","uniqueKey":"oneOf.2.productId","typeLabel":"string"},"foodId":{"type":"string","description":"Identifier of the food item to add to the cart (restaurant stores).","uniqueKey":"oneOf.2.foodId","typeLabel":"string"},"variantId":{"type":"string","description":"Optional identifier of the product variant to add.","uniqueKey":"oneOf.2.variantId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity of the product, food, or service to add. Defaults to 1.","uniqueKey":"oneOf.2.quantity","typeLabel":"integer"},"selectedAddons":{"type":"array","items":{"type":"object","required":["addonId"],"properties":{"addonId":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.selectedAddons.items.[INDEX].addonId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"uniqueKey":"oneOf.2.selectedAddons.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"oneOf.2.selectedAddons.items.[INDEX]","typeLabel":"object"},"description":"Optional add-on selections for food or service items.","uniqueKey":"oneOf.2.selectedAddons","typeLabel":"object[]"},"digitalId":{"type":"string","description":"Identifier of the digital product to add (digital stores). Needs `mode`.","uniqueKey":"oneOf.2.digitalId","typeLabel":"string"},"mode":{"type":"string","enum":["lifetime","pass"],"description":"How to buy the digital product: `lifetime` (permanent access, the product's `pricing.oneTime`) or `pass` (30 days, `pricing.monthly`). Required with `digitalId`.","uniqueKey":"oneOf.2.mode","typeLabel":"enum\u003cstring>"},"allAccess":{"type":"boolean","enum":[true],"description":"Add the store-wide all-access pass instead of one product. Cannot be combined with `digitalId`.","uniqueKey":"oneOf.2.allAccess","typeLabel":"enum\u003cboolean>"},"autoRenew":{"type":"boolean","description":"The shopper ticked \"Renew automatically\". Only meaningful on pass lines (`mode: \"pass\"` or `allAccess`).","uniqueKey":"oneOf.2.autoRenew","typeLabel":"boolean"}},"uniqueKey":"oneOf.2","typeLabel":"object"},{"type":"object","description":"Add a product/variant line item, a food line item, a service line item, or a digital line item, with optional add-ons. Use the identifier that matches the storefront catalog type: productId (ecommerce), foodId (restaurant), serviceId (business), or digitalId / allAccess (digital).","required":["digitalId"],"properties":{"digitalId":{"type":"string","description":"Identifier of the digital product to add (digital stores). Needs `mode`.","isRequired":true,"uniqueKey":"oneOf.3.digitalId","typeLabel":"string"},"productId":{"type":"string","description":"Identifier of the product to add to the cart (ecommerce stores).","uniqueKey":"oneOf.3.productId","typeLabel":"string"},"foodId":{"type":"string","description":"Identifier of the food item to add to the cart (restaurant stores).","uniqueKey":"oneOf.3.foodId","typeLabel":"string"},"serviceId":{"type":"string","description":"Identifier of the service to add to the cart (business stores).","uniqueKey":"oneOf.3.serviceId","typeLabel":"string"},"variantId":{"type":"string","description":"Optional identifier of the product variant to add.","uniqueKey":"oneOf.3.variantId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity of the product, food, or service to add. Defaults to 1.","uniqueKey":"oneOf.3.quantity","typeLabel":"integer"},"selectedAddons":{"type":"array","items":{"type":"object","required":["addonId"],"properties":{"addonId":{"type":"string","isRequired":true,"uniqueKey":"oneOf.3.selectedAddons.items.[INDEX].addonId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"uniqueKey":"oneOf.3.selectedAddons.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"oneOf.3.selectedAddons.items.[INDEX]","typeLabel":"object"},"description":"Optional add-on selections for food or service items.","uniqueKey":"oneOf.3.selectedAddons","typeLabel":"object[]"},"mode":{"type":"string","enum":["lifetime","pass"],"description":"How to buy the digital product: `lifetime` (permanent access, the product's `pricing.oneTime`) or `pass` (30 days, `pricing.monthly`). Required with `digitalId`.","uniqueKey":"oneOf.3.mode","typeLabel":"enum\u003cstring>"},"allAccess":{"type":"boolean","enum":[true],"description":"Add the store-wide all-access pass instead of one product. Cannot be combined with `digitalId`.","uniqueKey":"oneOf.3.allAccess","typeLabel":"enum\u003cboolean>"},"autoRenew":{"type":"boolean","description":"The shopper ticked \"Renew automatically\". Only meaningful on pass lines (`mode: \"pass\"` or `allAccess`).","uniqueKey":"oneOf.3.autoRenew","typeLabel":"boolean"}},"uniqueKey":"oneOf.3","typeLabel":"object"},{"type":"object","description":"Add a product/variant line item, a food line item, a service line item, or a digital line item, with optional add-ons. Use the identifier that matches the storefront catalog type: productId (ecommerce), foodId (restaurant), serviceId (business), or digitalId / allAccess (digital).","required":["allAccess"],"properties":{"allAccess":{"type":"boolean","enum":[true],"description":"Add the store-wide all-access pass instead of one product. Cannot be combined with `digitalId`.","isRequired":true,"uniqueKey":"oneOf.4.allAccess","typeLabel":"enum\u003cboolean>"},"productId":{"type":"string","description":"Identifier of the product to add to the cart (ecommerce stores).","uniqueKey":"oneOf.4.productId","typeLabel":"string"},"foodId":{"type":"string","description":"Identifier of the food item to add to the cart (restaurant stores).","uniqueKey":"oneOf.4.foodId","typeLabel":"string"},"serviceId":{"type":"string","description":"Identifier of the service to add to the cart (business stores).","uniqueKey":"oneOf.4.serviceId","typeLabel":"string"},"variantId":{"type":"string","description":"Optional identifier of the product variant to add.","uniqueKey":"oneOf.4.variantId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"description":"Quantity of the product, food, or service to add. Defaults to 1.","uniqueKey":"oneOf.4.quantity","typeLabel":"integer"},"selectedAddons":{"type":"array","items":{"type":"object","required":["addonId"],"properties":{"addonId":{"type":"string","isRequired":true,"uniqueKey":"oneOf.4.selectedAddons.items.[INDEX].addonId","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"default":1,"uniqueKey":"oneOf.4.selectedAddons.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"oneOf.4.selectedAddons.items.[INDEX]","typeLabel":"object"},"description":"Optional add-on selections for food or service items.","uniqueKey":"oneOf.4.selectedAddons","typeLabel":"object[]"},"digitalId":{"type":"string","description":"Identifier of the digital product to add (digital stores). Needs `mode`.","uniqueKey":"oneOf.4.digitalId","typeLabel":"string"},"mode":{"type":"string","enum":["lifetime","pass"],"description":"How to buy the digital product: `lifetime` (permanent access, the product's `pricing.oneTime`) or `pass` (30 days, `pricing.monthly`). Required with `digitalId`.","uniqueKey":"oneOf.4.mode","typeLabel":"enum\u003cstring>"},"autoRenew":{"type":"boolean","description":"The shopper ticked \"Renew automatically\". Only meaningful on pass lines (`mode: \"pass\"` or `allAccess`).","uniqueKey":"oneOf.4.autoRenew","typeLabel":"boolean"}},"uniqueKey":"oneOf.4","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"productId":"\u003cstring>","foodId":"\u003cstring>","serviceId":"\u003cstring>","variantId":"\u003cstring>","quantity":1,"selectedAddons":[{"addonId":"\u003cstring>","quantity":1}],"digitalId":"\u003cstring>","allAccess":true,"autoRenew":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e77e5c2d-21eb-4eb8-93ca-b888271a7f20":{"description":"Cart updated with the new item.","content":{"application/json":{"schema":{"type":"object","required":["status","success","message","data"],"properties":{"status":{"type":"integer","description":"HTTP status code returned by the API.","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","description":"Indicates whether the request succeeded.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable response message.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","required":["_id","items","totalPrice"],"properties":{"_id":{"type":"string","description":"Cart identifier.","isRequired":true,"uniqueKey":"data._id","typeLabel":"string"},"items":{"type":"array","items":{"type":"object","required":["itemType","name","image","price","quantity"],"properties":{"itemType":{"type":"string","enum":["product","food","service","digital"],"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].itemType","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"Display name of the line item.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].name","typeLabel":"string"},"image":{"type":"string","format":"uri","description":"Primary image for the line item.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].image","typeLabel":"string\u003curi>"},"price":{"type":"number","description":"Unit price of the line item.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].price","typeLabel":"number"},"quantity":{"type":"integer","minimum":1,"description":"Quantity of the line item in the cart.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].quantity","typeLabel":"integer"},"_id":{"type":"string","uniqueKey":"data.\\items.items.[INDEX]._id","typeLabel":"string"},"product":{"type":"object","description":"Product or variant metadata for the cart item.","properties":{"_id":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].product._id","typeLabel":"string"},"id":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].product.id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].product.name","typeLabel":"string"},"images":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"data.\\items.items.[INDEX].product.images.items.[INDEX]","typeLabel":"string\u003curi>"},"uniqueKey":"data.\\items.items.[INDEX].product.images","typeLabel":"string\u003curi>[]"},"price":{"type":"number","uniqueKey":"data.\\items.items.[INDEX].product.price","typeLabel":"number"},"promoPrice":{"oneOf":[{"type":"number","uniqueKey":"data.\\items.items.[INDEX].product.promoPrice.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].product.promoPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].product.promoPrice","typeLabel":"number | null"},"sku":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].product.sku","typeLabel":"string"},"parentProductId":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].product.parentProductId","typeLabel":"string"},"variantAttributes":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].product.variantAttributes.additionalProperties","typeLabel":"string"},"uniqueKey":"data.\\items.items.[INDEX].product.variantAttributes","typeLabel":"object"}},"uniqueKey":"data.\\items.items.[INDEX].product","typeLabel":"object"},"food":{"type":"object","description":"Food metadata for a food line item.","properties":{"_id":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].food._id","typeLabel":"string"},"id":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].food.id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].food.name","typeLabel":"string"},"images":{"type":"array","items":{"type":"string","format":"uri","uniqueKey":"data.\\items.items.[INDEX].food.images.items.[INDEX]","typeLabel":"string\u003curi>"},"uniqueKey":"data.\\items.items.[INDEX].food.images","typeLabel":"string\u003curi>[]"},"price":{"type":"number","uniqueKey":"data.\\items.items.[INDEX].food.price","typeLabel":"number"},"promoPrice":{"oneOf":[{"type":"number","uniqueKey":"data.\\items.items.[INDEX].food.promoPrice.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.\\items.items.[INDEX].food.promoPrice.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].food.promoPrice","typeLabel":"number | null"}},"uniqueKey":"data.\\items.items.[INDEX].food","typeLabel":"object"},"foodId":{"type":"string","description":"Identifier of the food item when `itemType` is `food`.","uniqueKey":"data.\\items.items.[INDEX].foodId","typeLabel":"string"},"variant":{"type":"string","description":"Identifier of the variant if the line item is variant-based.","uniqueKey":"data.\\items.items.[INDEX].variant","typeLabel":"string"},"sku":{"type":"string","description":"SKU of the line item, if applicable.","uniqueKey":"data.\\items.items.[INDEX].sku","typeLabel":"string"},"variantAttributes":{"type":"object","description":"Attributes for the selected variant.","additionalProperties":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].variantAttributes.additionalProperties","typeLabel":"string"},"uniqueKey":"data.\\items.items.[INDEX].variantAttributes","typeLabel":"object"},"selectedAddons":{"type":"array","items":{"type":"object","required":["addonId","name","price","quantity"],"properties":{"addonId":{"type":"string","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].selectedAddons.items.[INDEX].addonId","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].selectedAddons.items.[INDEX].name","typeLabel":"string"},"price":{"type":"number","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].selectedAddons.items.[INDEX].price","typeLabel":"number"},"quantity":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].selectedAddons.items.[INDEX].quantity","typeLabel":"integer"},"description":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].selectedAddons.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"data.\\items.items.[INDEX].selectedAddons.items.[INDEX]","typeLabel":"object"},"description":"Snapshot of selected add-ons for food items.","uniqueKey":"data.\\items.items.[INDEX].selectedAddons","typeLabel":"object[]"},"digital":{"oneOf":[{"type":"string","description":"Digital product id when `itemType` is `digital`. Absent on the all-access pass line.","uniqueKey":"data.\\items.items.[INDEX].digital.oneOf.0","typeLabel":"string"},{"type":"null","description":"Digital product id when `itemType` is `digital`. Absent on the all-access pass line.","uniqueKey":"data.\\items.items.[INDEX].digital.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].digital","typeLabel":"string | null"},"digitalId":{"oneOf":[{"type":"string","description":"Same as `digital`, as a convenience.","uniqueKey":"data.\\items.items.[INDEX].digitalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Same as `digital`, as a convenience.","uniqueKey":"data.\\items.items.[INDEX].digitalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.\\items.items.[INDEX].digitalId","typeLabel":"string | null"},"mode":{"type":"string","enum":["lifetime","pass","all_access"],"description":"Digital lines only: how the item is being bought.","uniqueKey":"data.\\items.items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"accessDays":{"type":"integer","description":"Digital pass lines only: days of access one purchase gives (30).","uniqueKey":"data.\\items.items.[INDEX].accessDays","typeLabel":"integer"},"autoRenew":{"type":"boolean","description":"Digital pass lines only: the shopper opted in to automatic renewal.","uniqueKey":"data.\\items.items.[INDEX].autoRenew","typeLabel":"boolean"}},"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.\\items","typeLabel":"object[]"},"totalPrice":{"type":"number","description":"Total price of all items in the cart.","isRequired":true,"uniqueKey":"data.totalPrice","typeLabel":"number"},"user":{"type":"string","description":"Identifier of the shopper who owns the cart.","uniqueKey":"data.user","typeLabel":"string"},"shop":{"type":"string","description":"Identifier of the shop associated with the cart.","uniqueKey":"data.shop","typeLabel":"string"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the cart was created.","uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Timestamp when the cart was last updated.","uniqueKey":"data.updatedAt","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":123,"success":true,"message":"\u003cstring>","data":{"_id":"\u003cstring>","items":[{"itemType":"product","name":"\u003cstring>","image":"\u003cstring>","price":123,"quantity":2,"_id":"\u003cstring>","product":{"_id":"\u003cstring>","id":"\u003cstring>","name":"\u003cstring>","images":["\u003cstring>"],"price":123,"promoPrice":123,"sku":"\u003cstring>","parentProductId":"\u003cstring>","variantAttributes":{}},"food":{"_id":"\u003cstring>","id":"\u003cstring>","name":"\u003cstring>","images":["\u003cstring>"],"price":123,"promoPrice":123},"foodId":"\u003cstring>","variant":"\u003cstring>","sku":"\u003cstring>","variantAttributes":{},"selectedAddons":[{"addonId":"\u003cstring>","name":"\u003cstring>","price":123,"quantity":2,"description":"\u003cstring>"}],"digital":"\u003cstring>","digitalId":"\u003cstring>","mode":"lifetime","accessDays":123,"autoRenew":true}],"totalPrice":123,"user":"\u003cstring>","shop":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"b2666afb-25c5-40ed-8d6d-54f883288a8c":{"description":"Product or variant not found.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"ff72e6c7-5b18-482b-86f2-4927bcff2b3a":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT issued by the Salesive Store API for authenticated shoppers.","scopes":[],"schemeName":"BearerAuth"},"ShopIdHeader":{"type":"apiKey","in":"header","name":"x-shop-id","description":"Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.","scopes":[],"schemeName":"ShopIdHeader"}}},"servers":{"2eb8cb51-0d06-40eb-a1ca-4c7417a1a9e5":{"description":"Production","url":"https://store.salesive.com/api/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT issued by the Salesive Store API for authenticated shoppers.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"JWT issued by the Salesive Store API for authenticated shoppers.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"},{"scheme":{"type":"apiKey","in":"header","name":"x-shop-id","description":"Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.","scopes":[],"schemeName":"ShopIdHeader"},"schema":{"title":"x-shop-id","type":"string","description":"Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ShopIdHeader","name":"x-shop-id"}],"title":"BearerAuth \u0026 ShopIdHeader"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"salesive","siteName":"Salesive Docs","title":"Add item to cart - Salesive Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T01:41:45.922Z","originalFileLocation":"api-reference/endpoint/cart/add-item.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=\"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper\u0026#x27;s cart.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Salesive Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_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/salesive/YvWX5_GKzhKJt0DJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add item to cart - Salesive Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper\u0026#x27;s cart.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Salesive Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.salesive.com/api-reference/endpoint/cart/add-item\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://salesive.mintlify.app/_mintlify/api/og/v2?division=Cart\u0026amp;title=Add+item+to+cart\u0026amp;description=Add+a+product%2C+variant%2C+food%2C+service%2C+or+digital+item+with+optional+add-ons+to+the+authenticated+shopper%27s+cart.\u0026amp;theme=1263b52321fc39e5f55940f5\u0026amp;signature=910a024568f4a6d9d24a4f0b9c9141acc1abd5f9b1992ecf03fa9dc4db71a48a\">\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=\"Add item to cart - Salesive Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper\u0026#x27;s cart.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://salesive.mintlify.app/_mintlify/api/og/v2?division=Cart\u0026amp;title=Add+item+to+cart\u0026amp;description=Add+a+product%2C+variant%2C+food%2C+service%2C+or+digital+item+with+optional+add-ons+to+the+authenticated+shopper%27s+cart.\u0026amp;theme=1263b52321fc39e5f55940f5\u0026amp;signature=910a024568f4a6d9d24a4f0b9c9141acc1abd5f9b1992ecf03fa9dc4db71a48a\">\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/salesive/YvWX5_GKzhKJt0DJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Salesive Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0d65d9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.salesive.com/api-reference/endpoint/cart/add-item\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/cart/add-item.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.salesive.com/#organization\",\"name\":\"Salesive Docs\",\"url\":\"https://docs.salesive.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/salesive/VvY6MQ7U6lHdcwJv/logo/black.png?fit=max\u0026auto=format\u0026n=VvY6MQ7U6lHdcwJv\u0026q=85\u0026s=5f950e29e4cd7ea06abc0929a6f665d9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.salesive.com#website\",\"name\":\"Salesive Docs\",\"url\":\"https://docs.salesive.com\",\"publisher\":{\"@id\":\"https://docs.salesive.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.salesive.com/api-reference/endpoint/cart/add-item#webpage\",\"url\":\"https://docs.salesive.com/api-reference/endpoint/cart/add-item\",\"name\":\"Add item to cart\",\"description\":\"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper's cart.\",\"dateModified\":\"2026-10-12T01:41:45.922Z\",\"isPartOf\":{\"@id\":\"https://docs.salesive.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.salesive.com/api-reference/endpoint/cart/add-item#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.salesive.com/api-reference/endpoint/cart/add-item#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cart\",\"item\":\"https://docs.salesive.com/api-reference/endpoint/cart/get-cart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add item to cart\",\"item\":\"https://docs.salesive.com/api-reference/endpoint/cart/add-item\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.salesive.com/api-reference/endpoint/cart/add-item#apireference\",\"headline\":\"Add item to cart\",\"name\":\"Add item to cart\",\"description\":\"Add a product, variant, food, service, or digital item with optional add-ons to the authenticated shopper's cart.\",\"url\":\"https://docs.salesive.com/api-reference/endpoint/cart/add-item\",\"mainEntityOfPage\":{\"@id\":\"https://docs.salesive.com/api-reference/endpoint/cart/add-item#webpage\"},\"dateModified\":\"2026-10-12T01:41:45.922Z\",\"publisher\":{\"@id\":\"https://docs.salesive.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.salesive.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Salesive Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Salesive Docs","nav":{"global":{"anchors":[{"anchor":"Salesive website","icon":"globe","href":"https://salesive.com"},{"anchor":"Support","icon":"envelope","href":"mailto:support@salesive.com"}]},"tabs":[{"tab":"Platform guides","pages":[{"title":"Platform guides","href":""}]},{"tab":"Building apps","pages":[{"title":"Building apps","href":"/apps/overview"}]},{"tab":"Apps API","pages":[{"title":"Apps API","href":"/apps-api/introduction"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Salesive Store API overview","href":"/api-reference/introduction"}]},{"group":"Authentication","pages":[{"title":"Create ghost user","openapi":"POST /auth/ghost","href":"/api-reference/endpoint/auth/create-ghost"},{"title":"Authenticate shopper","openapi":"POST /auth/authenticate","href":"/api-reference/endpoint/auth/authenticate"},{"title":"Resend verification code","openapi":"POST /auth/resend-otp","href":"/api-reference/endpoint/auth/resend-otp"},{"title":"Verify email","openapi":"POST /auth/verify","href":"/api-reference/endpoint/auth/verify"},{"title":"Check user exists","openapi":"POST /auth/check-user","href":"/api-reference/endpoint/auth/check-user"},{"title":"Get authenticated user","openapi":"GET /auth/me","href":"/api-reference/endpoint/auth/me"}]},{"group":"Banners","pages":[{"title":"List banners","openapi":"GET /banner","href":"/api-reference/endpoint/banners/get-all"}]},{"group":"Blogs","pages":[{"title":"List blogs","openapi":"GET /blogs","href":"/api-reference/endpoint/blogs/get-all"},{"title":"Get blog by ID or slug","openapi":"GET /blogs/{id}","href":"/api-reference/endpoint/blogs/get-by-id"}]},{"group":"Cart","pages":[{"title":"Get cart","description":"Retrieve the current cart for the authenticated shopper.","openapi":"GET /cart","href":"/api-reference/endpoint/cart/get-cart"},{"title":"Add item to cart","openapi":"POST /cart","href":"/api-reference/endpoint/cart/add-item"},{"title":"Update cart item","description":"Update the quantity of a product or variant already in the cart.","openapi":"PATCH /cart/{productId}","href":"/api-reference/endpoint/cart/update-item"},{"title":"Update cart variant","openapi":"PATCH /cart/{productId}/{variantId}","href":"/api-reference/endpoint/cart/update-variant"},{"title":"Remove cart item","openapi":"DELETE /cart/{productId}","href":"/api-reference/endpoint/cart/remove-item"},{"title":"Remove cart variant","openapi":"DELETE /cart/{productId}/{variantId}","href":"/api-reference/endpoint/cart/remove-variant"},{"title":"Clear cart","openapi":"DELETE /cart","href":"/api-reference/endpoint/cart/clear-cart"}]},{"group":"Comments","pages":[{"title":"Create comment","openapi":"POST /comments","href":"/api-reference/endpoint/comments/create-comment"},{"title":"Reply to comment","openapi":"POST /comments","href":"/api-reference/endpoint/comments/reply-to-comment"},{"title":"Get product comments","openapi":"GET /comments/product/{productId}","href":"/api-reference/endpoint/comments/get-product-comments"},{"title":"Get replies","openapi":"GET /comments/replies/{commentId}","href":"/api-reference/endpoint/comments/get-replies"},{"title":"Like comment","openapi":"POST /comments/{commentId}/like","href":"/api-reference/endpoint/comments/like-comment"},{"title":"Dislike comment","openapi":"POST /comments/{commentId}/dislike","href":"/api-reference/endpoint/comments/dislike-comment"}]},{"group":"Country","pages":[{"title":"Get states by country","openapi":"GET /country/states","href":"/api-reference/endpoint/country/get-states"},{"title":"Get country by short name","openapi":"GET /country","href":"/api-reference/endpoint/country/get-country"},{"title":"Get cities by state","openapi":"GET /country/cities","href":"/api-reference/endpoint/country/get-cities"},{"title":"List countries","openapi":"GET /country/countries","href":"/api-reference/endpoint/country/get-countries"}]},{"group":"Coupons","pages":[{"title":"Verify coupon","openapi":"POST /coupons/verify","href":"/api-reference/endpoint/coupons/verify"},{"title":"Apply coupon to order","openapi":"POST /coupons/apply","href":"/api-reference/endpoint/coupons/apply"}]},{"group":"Digital","pages":[{"title":"Get the all-access pass","openapi":"api-reference/openapi.json GET /digital/pass","href":"/api-reference/endpoint/digital/get-pass"},{"title":"Get a free preview","openapi":"api-reference/openapi.json GET /digital-products/{id}/preview","href":"/api-reference/endpoint/digital/get-preview"}]},{"group":"Downloads","pages":[{"title":"Download a purchased file","openapi":"api-reference/openapi.json GET /downloads/{token}","href":"/api-reference/endpoint/downloads/download"},{"title":"Download a title with an all-access link","openapi":"api-reference/openapi.json GET /downloads/{token}/{productId}","href":"/api-reference/endpoint/downloads/download-all-access"}]},{"group":"Library","pages":[{"title":"Get the shopper's library","openapi":"api-reference/openapi.json GET /library","href":"/api-reference/endpoint/library/get-library"},{"title":"Read a title online","href":"/api-reference/endpoint/library/read-book"},{"title":"Turn auto-renew on or off","openapi":"api-reference/openapi.json POST /library/{entitlementId}/auto-renew","href":"/api-reference/endpoint/library/set-auto-renew"}]},{"group":"Newsletter","pages":[{"title":"Subscribe to newsletter","openapi":"POST /newsletter/subscribe","href":"/api-reference/endpoint/newsletter/subscribe"},{"title":"Check subscription","openapi":"GET /newsletter/check","href":"/api-reference/endpoint/newsletter/check-subscription"},{"title":"Update email","openapi":"PUT /newsletter/update-email","href":"/api-reference/endpoint/newsletter/update-email"},{"title":"Unsubscribe","openapi":"POST /newsletter/unsubscribe","href":"/api-reference/endpoint/newsletter/unsubscribe"}]},{"group":"Orders","pages":[{"title":"Create order from cart","openapi":"POST /orders/from-cart","href":"/api-reference/endpoint/orders/create-from-cart"},{"title":"List orders","openapi":"GET /orders","href":"/api-reference/endpoint/orders/list-orders"},{"title":"Get order by ID","openapi":"GET /orders/{id}","href":"/api-reference/endpoint/orders/get-order"},{"title":"Update an order","openapi":"PATCH /orders/{id}","href":"/api-reference/endpoint/orders/update-order"},{"title":"Add shipment to order","openapi":"POST /orders/add-shipment","href":"/api-reference/endpoint/orders/add-shipment"}]},{"group":"Payments","pages":[{"title":"Get shop payments","openapi":"GET /payments","href":"/api-reference/endpoint/payments/get-payments"},{"title":"Get payment config","openapi":"GET /payments/config/{provider}","href":"/api-reference/endpoint/payments/get-config"}]},{"group":"Products","pages":[{"title":"List products","openapi":"GET /products","href":"/api-reference/endpoint/products/get-all"},{"title":"Get product","openapi":"GET /products/{id}","href":"/api-reference/endpoint/products/get-by-id"},{"title":"Get add-ons","openapi":"GET /products/{id}/addons","href":"/api-reference/endpoint/products/get-addons"},{"title":"List categories","openapi":"GET /products/category","href":"/api-reference/endpoint/products/list-categories"},{"title":"Get category","openapi":"GET /products/categories/{category}","href":"/api-reference/endpoint/products/get-category"},{"title":"List products by category","openapi":"GET /products/category/{category}","href":"/api-reference/endpoint/products/list-by-category"}]},{"group":"Push Subscriptions","pages":[{"title":"Get VAPID public key","openapi":"GET /push-subscriptions/public-key","href":"/api-reference/endpoint/push-subscriptions/get-vapid-public-key"},{"title":"List subscriptions","openapi":"GET /push-subscriptions","href":"/api-reference/endpoint/push-subscriptions/list-subscriptions"},{"title":"Delete all subscriptions","openapi":"DELETE /push-subscriptions","href":"/api-reference/endpoint/push-subscriptions/delete-all-subscriptions"},{"title":"Delete subscription","openapi":"DELETE /push-subscriptions/{subscriptionId}","href":"/api-reference/endpoint/push-subscriptions/delete-subscription"},{"title":"Create/update subscription","openapi":"POST /push-subscriptions","href":"/api-reference/endpoint/push-subscriptions/create-update-subscription"}]},{"group":"Reviews","pages":[{"title":"Create review","openapi":"POST /reviews","href":"/api-reference/endpoint/reviews/create-review"},{"title":"Get product reviews","openapi":"GET /reviews/product/{productId}","href":"/api-reference/endpoint/reviews/get-product-reviews"},{"title":"Get shop reviews","openapi":"GET /reviews","href":"/api-reference/endpoint/reviews/get-shop-reviews"},{"title":"Get pending reviews","openapi":"GET /reviews/pending","href":"/api-reference/endpoint/reviews/get-pending-reviews"}]},{"group":"Shipping","pages":[{"title":"Get shipping options","openapi":"GET /shipping/options","href":"/api-reference/endpoint/shipping/get-options"},{"title":"Get shipments by order","openapi":"GET /shipping/shipments","href":"/api-reference/endpoint/shipping/get-shipments"}]},{"group":"Shipping address","pages":[{"title":"List shipping addresses","openapi":"GET /shipping-address","href":"/api-reference/endpoint/shipping-address/get-all"},{"title":"Get default shipping address","openapi":"GET /shipping-address/default","href":"/api-reference/endpoint/shipping-address/get-default"},{"title":"Create shipping address","openapi":"POST /shipping-address","href":"/api-reference/endpoint/shipping-address/create"},{"title":"Convert coordinates to address","openapi":"GET /shipping-address/coords-to-address","href":"/api-reference/endpoint/shipping-address/coords-to-address"},{"title":"Autocomplete address","openapi":"GET /shipping-address/autocomplete","href":"/api-reference/endpoint/shipping-address/autocomplete"}]},{"group":"Shop","pages":[{"title":"Get shop","openapi":"GET /shops","href":"/api-reference/endpoint/shop/get-shop"},{"title":"Get shop brand","openapi":"GET /shops/{shopId}/brand","href":"/api-reference/endpoint/shop/get-brand"}]},{"group":"User","pages":[{"title":"Get user profile","openapi":"GET /user","href":"/api-reference/endpoint/user/get-profile"},{"title":"Update user profile","openapi":"PATCH /user","href":"/api-reference/endpoint/user/update-profile"},{"title":"Add shipping address","openapi":"POST /user/address","href":"/api-reference/endpoint/user/add-address"},{"title":"Update shipping address","openapi":"PATCH /user/address/{addressId}","href":"/api-reference/endpoint/user/update-address"},{"title":"Delete shipping address","openapi":"DELETE /user/address/{addressId}","href":"/api-reference/endpoint/user/delete-address"},{"title":"Set default address","openapi":"PATCH /user/address/{addressId}/default","href":"/api-reference/endpoint/user/set-default-address"}]},{"group":"Wishlist","pages":[{"title":"Get wishlist","openapi":"GET /wishlist","href":"/api-reference/endpoint/wishlist/get-wishlist"},{"title":"Add item to wishlist","openapi":"POST /wishlist","href":"/api-reference/endpoint/wishlist/add-item"},{"title":"Remove item from wishlist","openapi":"DELETE /wishlist/{productId}","href":"/api-reference/endpoint/wishlist/remove-item"},{"title":"Clear wishlist","openapi":"DELETE /wishlist","href":"/api-reference/endpoint/wishlist/clear-wishlist"}]}]},{"tab":"Form Builder","pages":[{"title":"Form Builder","href":"/form-builder/introduction"}]}]},"title":"Add item to cart - Salesive Docs","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","Page-CBCH2P7b.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","clsx-Cs6nMGht.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-zbf22OZA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C_fs-y5n.js"]}