Attach custom fields to the order (e.g. a gift message or delivery
instructions). Each entry has a required label and an optional value. Entries
without a label are dropped, and the list is capped at 50 entries.
Field
Type
Required
Description
label
string
Yes
The field name (max 100 characters).
value
string
No
The field value (max 2000 characters).
If no body parameters are provided, the entire cart will be converted into an order.
Food and service cart items have no productId, so select them with indices
(0-based cart positions) or send an empty body to include the whole cart. The
resulting order items carry an itemType of product, food, or service;
service items reference service and include any selectedAddons. Service
(business) orders are non-shippable, so shippingCost is 0 and no shipment is
created.
Digital orders. A cart of digital lines becomes an order with itemType: "digital" lines (digital, mode, accessDays), shippingCost: 0, and no shipping address or shipment. Prices are recomputed from the catalog, never taken from the cart. The shopper must be signed in with a real account, because access is delivered to their email: a guest session gets 403 with code: "login_required". Other digital codes are mixed_cart (400), item_unavailable (400), mode_not_available (400) and already_owned (409).Once payment is confirmed the order moves straight to completed (there is nothing to ship), the buyer’s access is granted, and an email with the download links is sent. Cancelling or refunding the order takes the access back.
Digital orders only: renew the pass lines automatically with the card used to pay. The card is saved only when the gateway marks it reusable (Paystack card payments). When omitted, the choice made on the cart lines is used.
{"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/orders/create-from-cart","slug":"/api-reference/endpoint/orders/create-from-cart","pageMetadata":{"title":"Create order from cart","description":"Create an order from items in the authenticated shopper's cart.","openapi":"POST /orders/from-cart","href":"/api-reference/endpoint/orders/create-from-cart"},"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: \"Create an order from items in 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:`6`,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:`6`,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:` /orders/from-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`]})})}),`\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 order.`})]}),_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`,_jsx(_components.p,{children:`You can create an order using one of the following methods:`}),`\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:`productIds`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Array of product IDs to include (any variants of these products).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`items`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Array of explicit items with `,_jsx(_components.code,{children:`productId`}),` and optional `,_jsx(_components.code,{children:`variantId`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`indices`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Array of 0-based cart item positions to include.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`additionalInfo`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Custom labelled key/value info to attach to the order, see below.`})]}),_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:`Digital orders only: renew the pass lines automatically with the card used to pay. When omitted, the choice made on the cart lines is used.`})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`additionalinfo-entries`,children:[_jsx(_components.code,{children:`additionalInfo`}),` entries`]}),`\n`,_jsxs(_components.p,{children:[`Attach custom fields to the order (e.g. a gift message or delivery\ninstructions). Each entry has a required `,_jsx(_components.code,{children:`label`}),` and an optional `,_jsx(_components.code,{children:`value`}),`. Entries\nwithout a label are dropped, and the list is capped at 50 entries.`]}),`\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:`label`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The field name (max 100 characters).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`value`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The field value (max 2000 characters).`})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`If no body parameters are provided, the entire cart will be converted into an order.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Food and service cart items have no `,_jsx(_components.code,{children:`productId`}),`, so select them with `,_jsx(_components.code,{children:`indices`}),`\n(0-based cart positions) or send an empty body to include the whole cart. The\nresulting order items carry an `,_jsx(_components.code,{children:`itemType`}),` of `,_jsx(_components.code,{children:`product`}),`, `,_jsx(_components.code,{children:`food`}),`, or `,_jsx(_components.code,{children:`service`}),`;\nservice items reference `,_jsx(_components.code,{children:`service`}),` and include any `,_jsx(_components.code,{children:`selectedAddons`}),`. Service\n(business) orders are non-shippable, so `,_jsx(_components.code,{children:`shippingCost`}),` is `,_jsx(_components.code,{children:`0`}),` and no shipment is\ncreated.`]})}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Digital orders.`}),` A cart of digital lines becomes an order with `,_jsx(_components.code,{children:`itemType: \"digital\"`}),` lines (`,_jsx(_components.code,{children:`digital`}),`, `,_jsx(_components.code,{children:`mode`}),`, `,_jsx(_components.code,{children:`accessDays`}),`), `,_jsx(_components.code,{children:`shippingCost: 0`}),`, and no shipping address or shipment. Prices are recomputed from the catalog, never taken from the cart. The shopper must be signed in with a real account, because access is delivered to their email: a guest session gets `,_jsx(_components.code,{children:`403`}),` with `,_jsx(_components.code,{children:`code: \"login_required\"`}),`. Other digital codes are `,_jsx(_components.code,{children:`mixed_cart`}),` (400), `,_jsx(_components.code,{children:`item_unavailable`}),` (400), `,_jsx(_components.code,{children:`mode_not_available`}),` (400) and `,_jsx(_components.code,{children:`already_owned`}),` (409).`]}),_jsxs(_components.p,{children:[`Once payment is confirmed the order moves straight to `,_jsx(_components.code,{children:`completed`}),` (there is nothing to ship), the buyer’s access is granted, and an email with the download links is sent. Cancelling or refunding the order takes the access back.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-examples`,children:`Request examples`}),`\n`,_jsx(Heading,{level:`3`,id:`create-order-from-entire-cart`,children:`Create order from entire cart`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`create-order-from-selected-products`,children:`Create order from selected products`}),`\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:` \"productIds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"68e5bb463a1fc56a8ac150bf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"68e5bb463a1fc56a8ac150c0\"`})}),`\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:`3`,id:`create-order-from-explicit-items`,children:`Create order from explicit items`}),`\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:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"68e5bb463a1fc56a8ac150bf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"68e5bb463a1fc56a8ac150bf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"variantId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"68e5c1303a1fc56a8ac151e2\"`}),_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:`3`,id:`create-order-from-cart-indices`,children:`Create order from cart indices`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,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:` \"indices\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_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:`3`,id:`create-order-with-additional-info`,children:`Create order with additional info`}),`\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:` \"additionalInfo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Gift message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Happy birthday!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Delivery instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Leave at the front desk\"`}),_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:`successful-response`,children:`Successful response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`47`,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:`47`,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:`\"Order created from 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:`\"6a27d632289b87893fcbde35\"`}),_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:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"69360693a7a8f7dc8ae32d6d\"`}),_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:` \"shop\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"68b8f52575da81b332af29f1\"`}),_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:` \"product\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"69fb494e51280f9f65d059ae\"`}),_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:` \"variant\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:`\"Wristwatch\"`}),_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:`45000`}),_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:` \"imageUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.salesive.com/products/wristwatch.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:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6a27d632289b87893fcbde36\"`})]}),`\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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_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:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"online\"`}),_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:` \"paymentMethod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"other\"`}),_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:` \"payment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"discount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"coupon\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"subtotal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`45000`}),_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:` \"shippingCost\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"tax\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"fee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`675`}),_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:` \"additionalInfo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Gift message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Happy birthday!\"`}),_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:` \"posCustomerName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"posCustomerEmail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"posCustomerPhone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"shipment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"deleted\"`}),_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:` \"deletedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_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:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`17`}),_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:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-06-09T09:00:34.748Z\"`}),_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:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-06-09T09:00:34.748Z\"`}),_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:` \"__v\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_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:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`45675`}),_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:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`45000`}),_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:`\"6a27d632289b87893fcbde35\"`})]}),`\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:`400`}),_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:`\"Cart is empty\"`}),_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`,_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":"Create order from cart","description":"Create an order from items in the authenticated shopper's cart.","openapi":"POST /orders/from-cart","href":"/api-reference/endpoint/orders/create-from-cart"}}},"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":"additionalInfo entries","slug":"additionalinfo-entries","depth":3,"children":[]}]},{"title":"Request examples","slug":"request-examples","depth":2,"children":[{"title":"Create order from entire cart","slug":"create-order-from-entire-cart","depth":3,"children":[]},{"title":"Create order from selected products","slug":"create-order-from-selected-products","depth":3,"children":[]},{"title":"Create order from explicit items","slug":"create-order-from-explicit-items","depth":3,"children":[]},{"title":"Create order from cart indices","slug":"create-order-from-cart-indices","depth":3,"children":[]},{"title":"Create order with additional info","slug":"create-order-with-additional-info","depth":3,"children":[]}]},{"title":"Successful response","slug":"successful-response","depth":2,"children":[]},{"title":"Error response","slug":"error-response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create order from cart","description":"Create an order from items in the authenticated shopper's cart.","parameters":["fcf60396-4246-431a-b011-d5f76ab44e15"],"requestBody":"f0824f47-b2db-41e7-a898-67faa1a0da29","responses":{"201":"50fb1b0c-cba5-4f54-981f-0ff534421dce","400":"aeb40cb1-d4e6-40ae-a758-4777c82e3f0e","401":"2dcb2fa0-4615-48a0-87a1-2b2bbecc846d"},"method":"post","type":"path","servers":["2eb8cb51-0d06-40eb-a1ca-4c7417a1a9e5"],"security":["ff72e6c7-5b18-482b-86f2-4927bcff2b3a"],"path":"/orders/from-cart","baseUrlOptions":["https://store.salesive.com/api/v1"],"title":"Create order from cart","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"fcf60396-4246-431a-b011-d5f76ab44e15":{"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":false,"content":{"application/json":{"schema":{"type":"object","properties":{"productIds":{"type":"array","items":{"type":"string","uniqueKey":"productIds.items.[INDEX]","typeLabel":"string"},"description":"Array of product IDs to include (any variants of these products).","uniqueKey":"productIds","typeLabel":"string[]"},"items":{"type":"array","items":{"type":"object","required":["productId"],"properties":{"productId":{"type":"string","isRequired":true,"uniqueKey":"\\items.items.[INDEX].productId","typeLabel":"string"},"variantId":{"type":"string","uniqueKey":"\\items.items.[INDEX].variantId","typeLabel":"string"}},"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"description":"Array of explicit items with productId and optional variantId.","uniqueKey":"\\items","typeLabel":"object[]"},"indices":{"type":"array","items":{"type":"integer","minimum":0,"uniqueKey":"indices.items.[INDEX]","typeLabel":"integer"},"description":"Array of 0-based cart item positions to include.","uniqueKey":"indices","typeLabel":"integer[]"},"additionalInfo":{"type":"array","maxItems":50,"items":{"type":"object","required":["label"],"properties":{"label":{"type":"string","maxLength":100,"description":"The name of the field (e.g. \"Gift message\").","isRequired":true,"uniqueKey":"additionalInfo.items.[INDEX].label","typeLabel":"string"},"value":{"type":"string","maxLength":2000,"description":"The field value.","uniqueKey":"additionalInfo.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"additionalInfo.items.[INDEX]","typeLabel":"object"},"description":"Custom labelled key/value info to attach to the order (e.g. gift message, delivery instructions). Max 50 entries.","uniqueKey":"additionalInfo","typeLabel":"object[]"},"autoRenew":{"type":"boolean","description":"Digital orders only: renew the pass lines automatically with the card used to pay. The card is saved only when the gateway marks it reusable (Paystack card payments). When omitted, the choice made on the cart lines is used.","uniqueKey":"autoRenew","typeLabel":"boolean"}},"description":"If no parameters provided, entire cart will be converted to order.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"productIds":["\u003cstring>"],"items":[{"productId":"\u003cstring>","variantId":"\u003cstring>"}],"indices":[1],"additionalInfo":[{"label":"\u003cstring>","value":"\u003cstring>"}],"autoRenew":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"50fb1b0c-cba5-4f54-981f-0ff534421dce":{"description":"Order created successfully.","content":{"application/json":{"schema":{"type":"object","required":["status","success","message","data"],"properties":{"status":{"type":"integer","isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"success":{"type":"boolean","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","required":["_id","orderId","user","shop","items","status","subtotal","shippingCost","total"],"properties":{"_id":{"type":"string","description":"Order identifier.","isRequired":true,"uniqueKey":"data._id","typeLabel":"string"},"orderId":{"type":"integer","description":"Human-readable order number.","isRequired":true,"uniqueKey":"data.orderId","typeLabel":"integer"},"user":{"type":"string","description":"Identifier of the shopper who placed the order.","isRequired":true,"uniqueKey":"data.user","typeLabel":"string"},"shop":{"type":"string","description":"Identifier of the shop associated with the order.","isRequired":true,"uniqueKey":"data.shop","typeLabel":"string"},"items":{"type":"array","items":{"type":"object","required":["name","price","quantity"],"properties":{"name":{"type":"string","description":"Product name.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].name","typeLabel":"string"},"price":{"type":"number","description":"Unit price at time of order.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].price","typeLabel":"number"},"quantity":{"type":"integer","minimum":1,"description":"Quantity ordered.","isRequired":true,"uniqueKey":"data.\\items.items.[INDEX].quantity","typeLabel":"integer"},"product":{"type":"string","description":"Product identifier.","uniqueKey":"data.\\items.items.[INDEX].product","typeLabel":"string"},"variant":{"type":"string","description":"Variant identifier if applicable.","uniqueKey":"data.\\items.items.[INDEX].variant","typeLabel":"string"},"sku":{"type":"string","description":"Product SKU.","uniqueKey":"data.\\items.items.[INDEX].sku","typeLabel":"string"},"variantAttributes":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"data.\\items.items.[INDEX].variantAttributes.additionalProperties","typeLabel":"string"},"uniqueKey":"data.\\items.items.[INDEX].variantAttributes","typeLabel":"object"},"imageUrl":{"type":"string","format":"uri","uniqueKey":"data.\\items.items.[INDEX].imageUrl","typeLabel":"string\u003curi>"},"itemType":{"type":"string","enum":["product","food","service","digital"],"description":"What the line is. Food, service and digital lines have no `product`.","uniqueKey":"data.\\items.items.[INDEX].itemType","typeLabel":"enum\u003cstring>"},"digital":{"type":"string","description":"Digital product id on a digital line. Absent for the all-access pass.","uniqueKey":"data.\\items.items.[INDEX].digital","typeLabel":"string"},"mode":{"type":"string","enum":["lifetime","pass","all_access"],"description":"Digital lines only.","uniqueKey":"data.\\items.items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"accessDays":{"type":"integer","description":"Digital pass lines only: days of access this line adds (30).","uniqueKey":"data.\\items.items.[INDEX].accessDays","typeLabel":"integer"}},"uniqueKey":"data.\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.\\items","typeLabel":"object[]"},"status":{"type":"string","enum":["pending","processing","paid","cancelled","refunded"],"description":"Current status of the order.","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"subtotal":{"type":"number","description":"Subtotal before shipping costs.","isRequired":true,"uniqueKey":"data.subtotal","typeLabel":"number"},"shippingCost":{"type":"number","description":"Shipping cost for the order.","isRequired":true,"uniqueKey":"data.shippingCost","typeLabel":"number"},"total":{"type":"number","description":"Total order amount (subtotal + shippingCost).","isRequired":true,"uniqueKey":"data.total","typeLabel":"number"},"shippingAddress":{"oneOf":[{"type":"object","description":"Legacy embedded address; absent on current orders — use the shipment's shippingAddress instead.","deprecated":true,"properties":{"fullName":{"type":"string","uniqueKey":"data.shippingAddress.oneOf.0.fullName","typeLabel":"string"},"addressLine1":{"type":"string","uniqueKey":"data.shippingAddress.oneOf.0.addressLine1","typeLabel":"string"},"addressLine2":{"type":"string","uniqueKey":"data.shippingAddress.oneOf.0.addressLine2","typeLabel":"string"},"city":{"type":"string","uniqueKey":"data.shippingAddress.oneOf.0.city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"data.shippingAddress.oneOf.0.state","typeLabel":"string"},"zipCode":{"type":"string","uniqueKey":"data.shippingAddress.oneOf.0.zipCode","typeLabel":"string"},"country":{"type":"string","uniqueKey":"data.shippingAddress.oneOf.0.country","typeLabel":"string"},"phoneNumber":{"type":"string","uniqueKey":"data.shippingAddress.oneOf.0.phoneNumber","typeLabel":"string"}},"uniqueKey":"data.shippingAddress.oneOf.0","typeLabel":"object"},{"type":"null","description":"Legacy embedded address; absent on current orders — use the shipment's shippingAddress instead.","deprecated":true,"properties":{"fullName":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zipCode":{"type":"string"},"country":{"type":"string"},"phoneNumber":{"type":"string"}},"uniqueKey":"data.shippingAddress.oneOf.1","typeLabel":"null"},{"type":"null","uniqueKey":"data.shippingAddress.oneOf.2","typeLabel":"null"}],"uniqueKey":"data.shippingAddress","typeLabel":"object · null · null"},"payment":{"type":"string","description":"Payment identifier.","uniqueKey":"data.payment","typeLabel":"string"},"shipment":{"type":"string","description":"Shipment identifier.","uniqueKey":"data.shipment","typeLabel":"string"},"notes":{"type":"string","description":"Additional order notes.","uniqueKey":"data.notes","typeLabel":"string"},"additionalInfo":{"type":"array","items":{"type":"object","required":["label"],"properties":{"label":{"type":"string","maxLength":100,"description":"The name of the field (e.g. \"Gift message\").","isRequired":true,"uniqueKey":"data.additionalInfo.items.[INDEX].label","typeLabel":"string"},"value":{"type":"string","maxLength":2000,"description":"The field value.","uniqueKey":"data.additionalInfo.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"data.additionalInfo.items.[INDEX]","typeLabel":"object"},"description":"Custom labelled key/value info attached to the order.","uniqueKey":"data.additionalInfo","typeLabel":"object[]"},"createdAt":{"type":"string","format":"date-time","uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","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>","orderId":123,"user":"\u003cstring>","shop":"\u003cstring>","items":[{"name":"\u003cstring>","price":123,"quantity":2,"product":"\u003cstring>","variant":"\u003cstring>","sku":"\u003cstring>","variantAttributes":{},"imageUrl":"\u003cstring>","itemType":"product","digital":"\u003cstring>","mode":"lifetime","accessDays":123}],"status":"pending","subtotal":123,"shippingCost":123,"total":123,"shippingAddress":{"fullName":"\u003cstring>","addressLine1":"\u003cstring>","addressLine2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","zipCode":"\u003cstring>","country":"\u003cstring>","phoneNumber":"\u003cstring>"},"payment":"\u003cstring>","shipment":"\u003cstring>","notes":"\u003cstring>","additionalInfo":[{"label":"\u003cstring>","value":"\u003cstring>"}],"createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"aeb40cb1-d4e6-40ae-a758-4777c82e3f0e":{"description":"Cart is empty or invalid request.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"2dcb2fa0-4615-48a0-87a1-2b2bbecc846d":{"description":"Unauthorized.","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":"Create order from cart - Salesive Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T01:41:45.920Z","originalFileLocation":"api-reference/endpoint/orders/create-from-cart.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create an order from items in 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=\"Create order from cart - Salesive Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an order from items in 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/orders/create-from-cart\">\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=Orders\u0026amp;title=Create+order+from+cart\u0026amp;description=Create+an+order+from+items+in+the+authenticated+shopper%27s+cart.\u0026amp;theme=1263b52321fc39e5f55940f5\u0026amp;signature=a3b16b21473549a2e3d89008d88771b08df10d741b2db69bc1b01cd68c1a7214\">\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=\"Create order from cart - Salesive Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an order from items in the authenticated shopper\u0026#x27;s cart.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://salesive.mintlify.app/_mintlify/api/og/v2?division=Orders\u0026amp;title=Create+order+from+cart\u0026amp;description=Create+an+order+from+items+in+the+authenticated+shopper%27s+cart.\u0026amp;theme=1263b52321fc39e5f55940f5\u0026amp;signature=a3b16b21473549a2e3d89008d88771b08df10d741b2db69bc1b01cd68c1a7214\">\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/orders/create-from-cart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/orders/create-from-cart.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/orders/create-from-cart#webpage\",\"url\":\"https://docs.salesive.com/api-reference/endpoint/orders/create-from-cart\",\"name\":\"Create order from cart\",\"description\":\"Create an order from items in the authenticated shopper's cart.\",\"dateModified\":\"2026-10-12T01:41:45.920Z\",\"isPartOf\":{\"@id\":\"https://docs.salesive.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.salesive.com/api-reference/endpoint/orders/create-from-cart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.salesive.com/api-reference/endpoint/orders/create-from-cart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Salesive Docs\",\"item\":\"https://docs.salesive.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create order from cart\",\"item\":\"https://docs.salesive.com/api-reference/endpoint/orders/create-from-cart\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.salesive.com/api-reference/endpoint/orders/create-from-cart#apireference\",\"headline\":\"Create order from cart\",\"name\":\"Create order from cart\",\"description\":\"Create an order from items in the authenticated shopper's cart.\",\"url\":\"https://docs.salesive.com/api-reference/endpoint/orders/create-from-cart\",\"mainEntityOfPage\":{\"@id\":\"https://docs.salesive.com/api-reference/endpoint/orders/create-from-cart#webpage\"},\"dateModified\":\"2026-10-12T01:41:45.920Z\",\"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","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","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","description":"Unsubscribe an email from the newsletter.","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","description":"Retrieve orders for the authenticated shopper with optional filters.","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":"Create order from 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"]}