An optional secondary identifier for the order, enabling customer lookup by an alternate reference. Use this for any supplementary order ID your system tracks — for example a fulfillment system ID (e.g. NetSuite), a marketplace order number, or a confirmation number. Customers can look up their return using either name or secondary_identifier.
The deduction from the original order price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.
Refunds attached at the order level. Write-once identity is external_id when it is set: a new id is appended; an identical replay is a no-op. A different shape for an existing id is skipped with no client error — the stored row is unchanged and the write still succeeds (same success path as an identical replay). external_id may be null; those rows are not write-once and each send inserts. Sending refunds: [{new}] appends that refund and leaves unmentioned refunds in place. Omitting refunds or sending refunds: [] does not remove refunds already on the order.
List of order line items associated with the order.
An order line item to update. Identify the target line item with exactly one of id or external_id; sending both, or sending neither, returns a 422 validation error.
The date and time the order was created in the source system, in ATOM format (ISO 8601/RFC 3339). Optional in API version 2026-07, so you can leave it out or send null. From 2026-10 this field is required.
Timestamp when the order was cancelled. Required when status is cancelled — include both fields together so Loop can reverse Checkout+ protection coverage.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Loop Returns Documentation","colors":{"primary":"#0672FF","light":"#FFFCF7","dark":"#000000"},"logo":{"light":"https://mintcdn.com/loopreturns/mWP1nZGNp75FiB-l/logo/loop-logo-lapis-charcoal.svg?fit=max\u0026auto=format\u0026n=mWP1nZGNp75FiB-l\u0026q=85\u0026s=5113cc3f8f2d70a65c2c774e471a13c4","dark":"https://mintcdn.com/loopreturns/mWP1nZGNp75FiB-l/logo/loop-logo-lapis-newsprint.svg?fit=max\u0026auto=format\u0026n=mWP1nZGNp75FiB-l\u0026q=85\u0026s=c2197689146b468c5df1b8581f091743"},"favicon":"https://mintcdn.com/loopreturns/mWP1nZGNp75FiB-l/favicon.svg?fit=max\u0026auto=format\u0026n=mWP1nZGNp75FiB-l\u0026q=85\u0026s=93b43e224efe823b43c6d1b9c45799f9","navbar":{"links":[{"href":"https://help.loopreturns.com","label":"Support"}],"primary":{"type":"button","label":"Request Demo","href":"https://www.loopreturns.com/book-a-demo-today/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/loop-returns","instagram":"https://www.instagram.com/loopreturns"}},"fonts":{"heading":{"family":"ABC Ginto","weight":900,"source":"fonts/ABCGinto-Black.woff2","format":"woff2"},"body":{"family":"Matter","weight":400,"source":"fonts/Matter-Regular.woff2","format":"woff2"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"System Status","icon":"radar","href":"https://status.loopreturns.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"loopreturns","hasAudioNarration":false,"actualSubdomain":"loopreturns","customDomains":["docs.loopreturns.com"],"gitSource":{"type":"gitlab","owner":"loopreturns/documentation","repo":"public-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"projectId":67355043,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adfbc999942d6d486f9a4bb","collectionId":"51e14b64-29f6-4eba-ab27-2f63361e4060","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adfbc999942d6d486f9a4bb"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae390ef8616a449c23c7ec5","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API Reference","count":172},{"language":"default","tag":"APIs","count":164},{"language":"default","tag":"Commerce Data","count":68},{"language":"default","tag":"Return Create (HAL-Forms)","count":30},{"language":"default","tag":"Guides","count":30},{"language":"default","tag":"Return Create","count":22},{"language":"default","tag":"Products","count":17},{"language":"default","tag":"Webhook Reference","count":13},{"language":"default","tag":"Collections","count":12},{"language":"default","tag":"Orders","count":11}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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":"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":"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/2026-07/orders/update-order","slug":"/api-reference/2026-07/orders/update-order","pageMetadata":{"openapi":"openapi/orders-api-2026-07.yaml put /orders/{id}","title":"Update Order","description":"Update a specific order.","href":"/api-reference/2026-07/orders/update-order"},"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: \"Update a specific order.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"openapi/orders-api-2026-07.yaml put /orders/{id}","title":"Update Order","description":"Update a specific order.","href":"/api-reference/2026-07/orders/update-order"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/loopreturns/d7dc6883aeaefe8b/scripts/generate-unstable-nav.js","/_mintlify/custom/loopreturns/eb155f0b6d2849a4/scripts/update-openapi-servers.js"],"openApiReferenceData":{"operation":{"summary":"Update Order","description":"Update a specific order.","operationId":"update-order","parameters":["b25c568b-e1db-4964-b2c3-b46204b3ce49"],"tags":["Orders"],"security":["ff516d31-5a60-410f-b93f-07895507b8da"],"requestBody":"541e8ca5-d494-415c-86f2-ff7aae970001","responses":{"200":"a30fb119-7aa8-4531-8871-eec12eca9f0a","401":"44b717cd-3539-4988-9acb-c8cbcbbb76ab","404":"b1bae426-1034-42f8-8db2-db113582ac51"},"method":"put","type":"path","servers":["7814cba3-e1c7-4ef2-94c2-96a32eee4840"],"path":"/orders/{id}","baseUrlOptions":["https://api.loopreturns.com/api/2026-07"],"title":"Update Order","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b25c568b-e1db-4964-b2c3-b46204b3ce49":{"in":"path","name":"id","schema":{"type":"integer","isRequired":true,"description":"Identifier of the order.","uniqueKey":"","typeLabel":"integer"},"required":true,"description":"Identifier of the order."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"UpdateOrderRequest","type":"object","properties":{"sales_channel":{"type":"string","maxLength":255,"examples":["shopify"],"description":"If a channel with this name is not already associated with the shop, it will be used to create a new channel.","isRequired":true,"uniqueKey":"sales_channel","typeLabel":"string"},"source":{"type":"object","description":"The source system that created the order.","required":["name"],"properties":{"name":{"type":"string","maxLength":255,"description":"Name of the source system (e.g. 'shopify', 'hubble').","isRequired":true,"uniqueKey":"source.name","typeLabel":"string"}},"isRequired":true,"uniqueKey":"source","typeLabel":"object"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"external_id","typeLabel":"string | null"},"name":{"type":"string","maxLength":100,"uniqueKey":"name","typeLabel":"string"},"secondary_identifier":{"oneOf":[{"type":"string","maxLength":100,"description":"An optional secondary identifier for the order, enabling customer lookup by an alternate reference. Use this for any supplementary order ID your system tracks — for example a fulfillment system ID (e.g. NetSuite), a marketplace order number, or a confirmation number. Customers can look up their return using either name or secondary_identifier.\n","uniqueKey":"secondary_identifier.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"An optional secondary identifier for the order, enabling customer lookup by an alternate reference. Use this for any supplementary order ID your system tracks — for example a fulfillment system ID (e.g. NetSuite), a marketplace order number, or a confirmation number. Customers can look up their return using either name or secondary_identifier.\n","uniqueKey":"secondary_identifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"secondary_identifier","typeLabel":"string | null"},"customer":{"oneOf":[{"type":"object","properties":{"id":{"oneOf":[{"type":"integer","description":"Must be the only parameter in the request. Set to null to remove a customer relationship or provide an existing customer id to associate the customer with the order","uniqueKey":"customer.oneOf.0.id.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Must be the only parameter in the request. Set to null to remove a customer relationship or provide an existing customer id to associate the customer with the order","uniqueKey":"customer.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.oneOf.0.id","typeLabel":"integer | null"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"Must be the only parameter in the request. Provide an existing customer external_id to associate the customer with the order","uniqueKey":"customer.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Must be the only parameter in the request. Provide an existing customer external_id to associate the customer with the order","uniqueKey":"customer.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer.oneOf.0.external_id","typeLabel":"string | null"}},"uniqueKey":"customer.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"oneOf":[{"type":"integer","description":"Must be the only parameter in the request. Set to null to remove a customer relationship or provide an existing customer id to associate the customer with the order"},{"type":"null","description":"Must be the only parameter in the request. Set to null to remove a customer relationship or provide an existing customer id to associate the customer with the order"}]},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"Must be the only parameter in the request. Provide an existing customer external_id to associate the customer with the order"},{"type":"null","maxLength":100,"description":"Must be the only parameter in the request. Provide an existing customer external_id to associate the customer with the order"}]}},"uniqueKey":"customer.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer","typeLabel":"object | null"},"status":{"type":"string","enum":["active","archived","cancelled","unknown"],"description":"Status of the Order.","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"shipping_address":{"type":"object","properties":{"address1":{"type":"string","maxLength":125,"description":"Address line 1.","isRequired":true,"uniqueKey":"shipping_address.address1","typeLabel":"string"},"city":{"type":"string","maxLength":100,"description":"City.","isRequired":true,"uniqueKey":"shipping_address.city","typeLabel":"string"},"country_code":{"type":"string","maxLength":2,"description":"Must be a valid 2 character country code.","isRequired":true,"uniqueKey":"shipping_address.country_code","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Recipient name.","uniqueKey":"shipping_address.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Recipient name.","uniqueKey":"shipping_address.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","maxLength":100,"description":"Recipient company.","uniqueKey":"shipping_address.company.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Recipient company.","uniqueKey":"shipping_address.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.company","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","maxLength":125,"description":"Address line 2.","uniqueKey":"shipping_address.address2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":125,"description":"Address line 2.","uniqueKey":"shipping_address.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.address2","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","maxLength":100,"description":"State or Region.","uniqueKey":"shipping_address.region.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"State or Region.","uniqueKey":"shipping_address.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.region","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","maxLength":16,"description":"Postal Code.","uniqueKey":"shipping_address.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":16,"description":"Postal Code.","uniqueKey":"shipping_address.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_address.postal_code","typeLabel":"string | null"}},"required":["address1","city","country_code"],"examples":[{"name":"John Smith","company":"Acme, Co","address1":"123 Example St","address2":"Box 123","city":"Columbus","region":"OH","postal_code":12345,"country_code":"US"}],"uniqueKey":"shipping_address","typeLabel":"object"},"billing_address":{"type":"object","properties":{"address1":{"type":"string","maxLength":125,"description":"Address line 1.","isRequired":true,"uniqueKey":"billing_address.address1","typeLabel":"string"},"city":{"type":"string","maxLength":100,"description":"City.","isRequired":true,"uniqueKey":"billing_address.city","typeLabel":"string"},"country_code":{"type":"string","maxLength":2,"description":"Must be a valid 2 character country code.","isRequired":true,"uniqueKey":"billing_address.country_code","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Recipient name.","uniqueKey":"billing_address.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Recipient name.","uniqueKey":"billing_address.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","maxLength":100,"description":"Recipient company.","uniqueKey":"billing_address.company.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Recipient company.","uniqueKey":"billing_address.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.company","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","maxLength":125,"description":"Address line 2.","uniqueKey":"billing_address.address2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":125,"description":"Address line 2.","uniqueKey":"billing_address.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.address2","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","maxLength":100,"description":"State or Region.","uniqueKey":"billing_address.region.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"State or Region.","uniqueKey":"billing_address.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.region","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","maxLength":16,"description":"Postal Code.","uniqueKey":"billing_address.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":16,"description":"Postal Code.","uniqueKey":"billing_address.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.postal_code","typeLabel":"string | null"}},"required":["address1","city","country_code"],"examples":[{"name":"John Smith","company":"Acme, Co","address1":"123 Example St","address2":"Box 123","city":"Columbus","region":"OH","postal_code":12345,"country_code":"US"}],"uniqueKey":"billing_address","typeLabel":"object"},"taxes_included":{"oneOf":[{"type":"boolean","uniqueKey":"taxes_included.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"taxes_included.oneOf.1","typeLabel":"null"}],"uniqueKey":"taxes_included","typeLabel":"boolean | null"},"total_price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"total_price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"total_price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The price of the order in minor units, such as cents, with its corresponding currency.\n","uniqueKey":"total_price","typeLabel":"object"},"total_price_presentment":{"oneOf":[{"type":"object","description":"The price of the order in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"total_price_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"total_price_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"total_price_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The price of the order in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","uniqueKey":"total_price_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"total_price_presentment","typeLabel":"object | null"},"total_discounts":{"oneOf":[{"type":"object","description":"The deduction from the original order price as a way to promote sales, special offers, or customer loyalty rewards.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"total_discounts.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"total_discounts.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"total_discounts.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deduction from the original order price as a way to promote sales, special offers, or customer loyalty rewards.\n","uniqueKey":"total_discounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"total_discounts","typeLabel":"object | null"},"total_discounts_presentment":{"oneOf":[{"type":"object","description":"The deduction from the original order price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"total_discounts_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"total_discounts_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"total_discounts_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deduction from the original order price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","uniqueKey":"total_discounts_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"total_discounts_presentment","typeLabel":"object | null"},"total_taxes":{"oneOf":[{"type":"object","description":"The tax amount for the order.","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"total_taxes.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"total_taxes.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"total_taxes.oneOf.0","typeLabel":"object"},{"type":"null","description":"The tax amount for the order.","uniqueKey":"total_taxes.oneOf.1","typeLabel":"null"}],"uniqueKey":"total_taxes","typeLabel":"object | null"},"total_taxes_presentment":{"oneOf":[{"type":"object","description":"The tax amount for the order according to the customer's local currency.","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"total_taxes_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"total_taxes_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"total_taxes_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The tax amount for the order according to the customer's local currency.","uniqueKey":"total_taxes_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"total_taxes_presentment","typeLabel":"object | null"},"shipping_lines":{"type":"array","items":{"title":"ShippingLines","type":"array","items":{"title":"ShippingLine","type":"object","properties":{"title":{"type":"string","uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].title","typeLabel":"string"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].price","typeLabel":"object"},"discounts":{"title":"ShippingLineDiscount","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.external_id","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.name","typeLabel":"string"},"discount_type":{"oneOf":[{"type":"string","description":"Type of discount.","enum":["amount","bonus","bonus_choice","fixed_price","free","percentage","percentage_off_options","price_book_price","total_fixed_price"],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.discount_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of discount.","enum":["amount","bonus","bonus_choice","fixed_price","free","percentage","percentage_off_options","price_book_price","total_fixed_price"],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.discount_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.discount_type","typeLabel":"enum\u003cstring> | null"},"code":{"type":"string","uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.code","typeLabel":"string"},"reason":{"type":"string","uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.reason","typeLabel":"string"},"rate":{"type":"number","uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.rate","typeLabel":"number"},"net_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.net_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.net_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.net_adjustment_money","typeLabel":"object"},"tax_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.tax_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.tax_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts.tax_adjustment_money","typeLabel":"object"}},"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].discounts","typeLabel":"ShippingLineDiscount · object"},"tax_lines":{"title":"TaxLines","type":"array","items":{"title":"TaxLine","type":"object","required":["title","rate","price"],"properties":{"title":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].tax_lines.items.[INDEX].title","typeLabel":"string"},"rate":{"type":"number","description":"Tax rate as a decimal (e.g. `0.08` for 8%).","isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].tax_lines.items.[INDEX].rate","typeLabel":"number"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].tax_lines.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].tax_lines.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].tax_lines.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].tax_lines.items.[INDEX]","typeLabel":"TaxLine · object"},"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX].tax_lines","typeLabel":"TaxLine · object[]"}},"uniqueKey":"shipping_lines.items.[INDEX].items.[INDEX]","typeLabel":"ShippingLine · object"},"uniqueKey":"shipping_lines.items.[INDEX]","typeLabel":"ShippingLine · object[]"},"description":"List of shipping line items associated with the order.","uniqueKey":"shipping_lines","typeLabel":"ShippingLine · object[][]"},"refunds":{"type":"array","items":{"title":"RefundItems","description":"Refunds attached at the order level. Write-once identity is `external_id` when it is set: a new id is appended; an identical replay is a no-op. A different shape for an existing id is skipped with no client error — the stored row is unchanged and the write still succeeds (same success path as an identical replay). `external_id` may be null; those rows are not write-once and each send inserts. Sending `refunds: [{new}]` appends that refund and leaves unmentioned refunds in place. Omitting `refunds` or sending `refunds: []` does not remove refunds already on the order.\n","type":"array","items":{"type":"object","title":"OrderRefund","required":["type","amount"],"example":{"external_id":"pos-refund-2026-0807-0042","type":"line_item","amount":{"amount":17600,"currency_code":"USD"},"line_items":[{"external_id":"line-item-a","quantity":1,"restock":true},{"external_id":"line-item-b","quantity":1,"restock":false}],"created_at":"2026-08-07T14:32:00-07:00"},"properties":{"type":{"oneOf":[{"type":"string","description":"Type of refund.","enum":["line_item","shipping","other"],"isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of refund.","enum":["line_item","shipping","other"],"isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].type","typeLabel":"enum\u003cstring> | null"},"amount":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].amount.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].amount.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].amount","typeLabel":"object"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"External identifier for the refund event.","uniqueKey":"refunds.items.[INDEX].items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"External identifier for the refund event.","uniqueKey":"refunds.items.[INDEX].items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].external_id","typeLabel":"string | null"},"line_items":{"type":"array","description":"Refunded order line items when `type` is `line_item`. Each child `external_id` must match a `line_items[].external_id` on the order (this request or already stored). Each child `id` must be the global identifier of an existing order line item. Do not send `line_items` on refunds nested under `line_items[].refunds[]`.\n","items":{"oneOf":[{"type":"object","title":"Option 1","description":"Identify an order line item by either `id` or `external_id`. These options are mutually exclusive; providing one prohibits the other. Used on refunds attached at the order level.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing order line item. Mutually exclusive with `external_id`.\n","isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.0.id","typeLabel":"integer\u003cint64>"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.0.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.0.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.0.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.0","typeLabel":"Option 1 · object"},{"type":"object","title":"Option 2","description":"Identify an order line item by either `id` or `external_id`. These options are mutually exclusive; providing one prohibits the other. Used on refunds attached at the order level.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing order line item or a line item being created in the request.\n","isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.1.external_id","typeLabel":"string"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.1.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.1.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.1.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX].oneOf.1","typeLabel":"Option 2 · object"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items.items.[INDEX]","typeLabel":"Option 1 · object | Option 2 · object"},"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_items","typeLabel":"(Option 1 · object | Option 2 · object)[]"},"line_item":{"oneOf":[{"type":"object","title":"Option 1","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing order line item. Mutually exclusive with `external_id`.\n","isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.0.id","typeLabel":"integer\u003cint64>"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.0.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.0.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.0.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.0.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.0","typeLabel":"Option 1 · object"},{"type":"object","title":"Option 2","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing order line item or a line item being created in the request.\n","isRequired":true,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.1.external_id","typeLabel":"string"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.1.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.1.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.1.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.1.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.1.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.1.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.1","typeLabel":"Option 2 · object"},{"type":"null","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item.oneOf.2","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].line_item","typeLabel":"Option 1 · object | Option 2 · object | null"},"created_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"refunds.items.[INDEX].items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"refunds.items.[INDEX].items.[INDEX].updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"refunds.items.[INDEX].items.[INDEX].updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"refunds.items.[INDEX].items.[INDEX].updated_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"refunds.items.[INDEX].items.[INDEX]","typeLabel":"OrderRefund · object"},"uniqueKey":"refunds.items.[INDEX]","typeLabel":"OrderRefund · object[]"},"description":"List of refunds associated with the order.","uniqueKey":"refunds","typeLabel":"OrderRefund · object[][]"},"line_items":{"type":"array","items":{"oneOf":[{"type":"object","description":"An order line item to update. Identify the target line item with exactly one of `id` or `external_id`; sending both, or sending neither, returns a 422 validation error.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","minimum":1,"description":"Global identifier of an existing line item on the order. Mutually exclusive with `external_id`.\n","examples":[810772123123125],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.id","typeLabel":"integer\u003cint64>"},"external_id":{"type":"string","maxLength":100,"description":"External identifier of the line item. Mutually exclusive with `id`.\n","examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.external_id","typeLabel":"string"},"product":{"oneOf":[{"type":"object","description":"Identify a product by either `id` or `external_id`. These options are mutually exclusive.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing product.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.product.oneOf.0.id","typeLabel":"integer\u003cint64>"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.0.product.oneOf.0","typeLabel":"object"},{"type":"object","description":"Identify a product by either `id` or `external_id`. These options are mutually exclusive.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing product.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.product.oneOf.1.external_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.0.product.oneOf.1","typeLabel":"object"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.product","typeLabel":"object"},"product_variant":{"oneOf":[{"type":"object","description":"Identify a product variant by either `id` or `external_id`. These options are mutually exclusive.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing product variant.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.product_variant.oneOf.0.id","typeLabel":"integer\u003cint64>"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.0.product_variant.oneOf.0","typeLabel":"object"},{"type":"object","description":"Identify a product variant by either `id` or `external_id`. These options are mutually exclusive.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing product variant.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.product_variant.oneOf.1.external_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.0.product_variant.oneOf.1","typeLabel":"object"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.product_variant.oneOf.2","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.product_variant","typeLabel":"object · object · null"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.quantity","typeLabel":"integer | null"},"unit_price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The price of the order line item in minor units, such as cents, with its corresponding currency.\n","uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_price","typeLabel":"object"},"unit_price_presentment":{"oneOf":[{"type":"object","description":"The price of the order line item in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_price_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_price_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_price_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The price of the order line item in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_price_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_price_presentment","typeLabel":"object | null"},"unit_discounts":{"oneOf":[{"type":"object","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards.\n","uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts","typeLabel":"object | null"},"unit_discounts_presentment":{"oneOf":[{"type":"object","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.unit_discounts_presentment","typeLabel":"object | null"},"taxable":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.0.taxable.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.taxable.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.taxable","typeLabel":"boolean | null"},"tax_lines":{"oneOf":[{"type":"array","items":{"title":"TaxLine","type":"object","required":["title","rate","price"],"properties":{"title":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines.oneOf.0.items.[INDEX].title","typeLabel":"string"},"rate":{"type":"number","description":"Tax rate as a decimal (e.g. `0.08` for 8%).","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines.oneOf.0.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines.oneOf.0.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines.oneOf.0.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines.oneOf.0.items.[INDEX]","typeLabel":"TaxLine · object"},"title":"TaxLines","uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines.oneOf.0","typeLabel":"TaxLine · object[]"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.tax_lines","typeLabel":"TaxLine · object[] | null"},"refunds":{"oneOf":[{"type":"array","items":{"type":"object","title":"OrderRefund","required":["type","amount"],"example":{"external_id":"pos-refund-2026-0807-0042","type":"line_item","amount":{"amount":17600,"currency_code":"USD"},"line_items":[{"external_id":"line-item-a","quantity":1,"restock":true},{"external_id":"line-item-b","quantity":1,"restock":false}],"created_at":"2026-08-07T14:32:00-07:00"},"properties":{"type":{"oneOf":[{"type":"string","description":"Type of refund.","enum":["line_item","shipping","other"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of refund.","enum":["line_item","shipping","other"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring> | null"},"amount":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].amount.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].amount.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].amount","typeLabel":"object"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"External identifier for the refund event.","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"External identifier for the refund event.","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"line_items":{"type":"array","description":"Refunded order line items when `type` is `line_item`. Each child `external_id` must match a `line_items[].external_id` on the order (this request or already stored). Each child `id` must be the global identifier of an existing order line item. Do not send `line_items` on refunds nested under `line_items[].refunds[]`.\n","items":{"oneOf":[{"type":"object","title":"Option 1","description":"Identify an order line item by either `id` or `external_id`. These options are mutually exclusive; providing one prohibits the other. Used on refunds attached at the order level.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing order line item. Mutually exclusive with `external_id`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.id","typeLabel":"integer\u003cint64>"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0","typeLabel":"Option 1 · object"},{"type":"object","title":"Option 2","description":"Identify an order line item by either `id` or `external_id`. These options are mutually exclusive; providing one prohibits the other. Used on refunds attached at the order level.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing order line item or a line item being created in the request.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.external_id","typeLabel":"string"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1","typeLabel":"Option 2 · object"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX]","typeLabel":"Option 1 · object | Option 2 · object"},"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_items","typeLabel":"(Option 1 · object | Option 2 · object)[]"},"line_item":{"oneOf":[{"type":"object","title":"Option 1","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing order line item. Mutually exclusive with `external_id`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.id","typeLabel":"integer\u003cint64>"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0","typeLabel":"Option 1 · object"},{"type":"object","title":"Option 2","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing order line item or a line item being created in the request.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.external_id","typeLabel":"string"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1","typeLabel":"Option 2 · object"},{"type":"null","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item.oneOf.2","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].line_item","typeLabel":"Option 1 · object | Option 2 · object | null"},"created_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0.items.[INDEX]","typeLabel":"OrderRefund · object"},"title":"RefundItems","description":"Refunds attached at the order level. Write-once identity is `external_id` when it is set: a new id is appended; an identical replay is a no-op. A different shape for an existing id is skipped with no client error — the stored row is unchanged and the write still succeeds (same success path as an identical replay). `external_id` may be null; those rows are not write-once and each send inserts. Sending `refunds: [{new}]` appends that refund and leaves unmentioned refunds in place. Omitting `refunds` or sending `refunds: []` does not remove refunds already on the order.\n","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.0","typeLabel":"OrderRefund · object[]"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.refunds","typeLabel":"OrderRefund · object[] | null"},"discounts":{"oneOf":[{"type":"array","items":{"title":"OrderLineItemDiscount","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"discount_type":{"type":"string","description":"Type of discount.","enum":["amount","bonus","bonus_choice","fixed_price","free","percentage","percentage_off_options","price_book_price","total_fixed_price"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].discount_type","typeLabel":"enum\u003cstring>"},"discount_relation":{"oneOf":[{"type":"string","description":"Discount Relation.","enum":["prereq","entitled","x","y"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].discount_relation.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Discount Relation.","enum":["prereq","entitled","x","y"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].discount_relation.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].discount_relation","typeLabel":"enum\u003cstring> | null"},"name":{"type":"string","maxLength":64,"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].name","typeLabel":"string"},"code":{"type":"string","maxLength":100,"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].code","typeLabel":"string"},"reason":{"type":"string","maxLength":512,"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"rate":{"type":"number","uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"tax_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].tax_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].tax_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].tax_adjustment_money","typeLabel":"object"},"net_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].net_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].net_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX].net_adjustment_money","typeLabel":"object"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0.items.[INDEX]","typeLabel":"OrderLineItemDiscount · object"},"title":"OrderLineItemDiscounts","uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.0","typeLabel":"OrderLineItemDiscount · object[]"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.discounts","typeLabel":"OrderLineItemDiscount · object[] | null"},"duties":{"oneOf":[{"type":"array","items":{"title":"Duty","type":"object","properties":{"hs_code":{"oneOf":[{"type":"string","maxLength":10,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].hs_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":10,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].hs_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].hs_code","typeLabel":"string | null"},"country_of_origin":{"oneOf":[{"type":"string","maxLength":2,"examples":["US","CA"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].country_of_origin.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":2,"examples":["US","CA"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].country_of_origin.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].country_of_origin","typeLabel":"string | null"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].price","typeLabel":"object"},"tax_lines":{"title":"TaxLines","type":"array","items":{"title":"TaxLine","type":"object","required":["title","rate","price"],"properties":{"title":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].title","typeLabel":"string"},"rate":{"type":"number","description":"Tax rate as a decimal (e.g. `0.08` for 8%).","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].rate","typeLabel":"number"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX]","typeLabel":"TaxLine · object"},"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX].tax_lines","typeLabel":"TaxLine · object[]"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0.items.[INDEX]","typeLabel":"Duty · object"},"title":"Duties","uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.0","typeLabel":"Duty · object[]"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.0.duties.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.duties","typeLabel":"Duty · object[] | null"},"metadata":{"oneOf":[{"type":"array","description":"Key/value metadata to attach to the line item. Providing this array replaces the line item's entire stored metadata set: keys omitted from the array are removed, and included keys are inserted or updated. Omit the field to leave existing metadata unchanged; send an empty array or `null` to clear all metadata. Duplicate keys within a single line item are rejected (422).\n","items":{"title":"LineItemMetadataEntry","type":"object","required":["key","value"],"properties":{"key":{"type":"string","maxLength":512,"description":"The metadata key. Note this differs from order-level metadata, which caps keys at 100 characters.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"oneOf":[{"type":"string","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata.oneOf.0.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"boolean","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata.oneOf.0.items.[INDEX].value.oneOf.1","typeLabel":"boolean"},{"type":"object","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata.oneOf.0.items.[INDEX].value.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata.oneOf.0.items.[INDEX].value","typeLabel":"string | boolean | object"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata.oneOf.0.items.[INDEX]","typeLabel":"LineItemMetadataEntry · object"},"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata.oneOf.0","typeLabel":"LineItemMetadataEntry · object[]"},{"type":"null","description":"Key/value metadata to attach to the line item. Providing this array replaces the line item's entire stored metadata set: keys omitted from the array are removed, and included keys are inserted or updated. Omit the field to leave existing metadata unchanged; send an empty array or `null` to clear all metadata. Duplicate keys within a single line item are rejected (422).\n","items":{"title":"LineItemMetadataEntry","type":"object","required":["key","value"],"properties":{"key":{"type":"string","maxLength":512,"description":"The metadata key. Note this differs from order-level metadata, which caps keys at 100 characters.\n"},"value":{"oneOf":[{"type":"string","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"},{"type":"boolean","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"},{"type":"object","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"}]}}},"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.0.metadata","typeLabel":"LineItemMetadataEntry · object[] | null"}},"uniqueKey":"line_items.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"An order line item to update. Identify the target line item with exactly one of `id` or `external_id`; sending both, or sending neither, returns a 422 validation error.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"External identifier of the line item. Mutually exclusive with `id`.\n","examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.external_id","typeLabel":"string"},"id":{"type":"integer","format":"int64","minimum":1,"description":"Global identifier of an existing line item on the order. Mutually exclusive with `external_id`.\n","examples":[810772123123125],"uniqueKey":"line_items.items.[INDEX].oneOf.1.id","typeLabel":"integer\u003cint64>"},"product":{"oneOf":[{"type":"object","description":"Identify a product by either `id` or `external_id`. These options are mutually exclusive.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing product.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.product.oneOf.0.id","typeLabel":"integer\u003cint64>"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.1.product.oneOf.0","typeLabel":"object"},{"type":"object","description":"Identify a product by either `id` or `external_id`. These options are mutually exclusive.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing product.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.product.oneOf.1.external_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.1.product.oneOf.1","typeLabel":"object"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.product","typeLabel":"object"},"product_variant":{"oneOf":[{"type":"object","description":"Identify a product variant by either `id` or `external_id`. These options are mutually exclusive.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing product variant.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.product_variant.oneOf.0.id","typeLabel":"integer\u003cint64>"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.1.product_variant.oneOf.0","typeLabel":"object"},{"type":"object","description":"Identify a product variant by either `id` or `external_id`. These options are mutually exclusive.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing product variant.","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.product_variant.oneOf.1.external_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.1.product_variant.oneOf.1","typeLabel":"object"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.product_variant.oneOf.2","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.product_variant","typeLabel":"object · object · null"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.1.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.quantity","typeLabel":"integer | null"},"unit_price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The price of the order line item in minor units, such as cents, with its corresponding currency.\n","uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_price","typeLabel":"object"},"unit_price_presentment":{"oneOf":[{"type":"object","description":"The price of the order line item in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_price_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_price_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_price_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The price of the order line item in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_price_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_price_presentment","typeLabel":"object | null"},"unit_discounts":{"oneOf":[{"type":"object","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards.\n","uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts","typeLabel":"object | null"},"unit_discounts_presentment":{"oneOf":[{"type":"object","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.unit_discounts_presentment","typeLabel":"object | null"},"taxable":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.1.taxable.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.taxable.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.taxable","typeLabel":"boolean | null"},"tax_lines":{"oneOf":[{"type":"array","items":{"title":"TaxLine","type":"object","required":["title","rate","price"],"properties":{"title":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines.oneOf.0.items.[INDEX].title","typeLabel":"string"},"rate":{"type":"number","description":"Tax rate as a decimal (e.g. `0.08` for 8%).","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines.oneOf.0.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines.oneOf.0.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines.oneOf.0.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines.oneOf.0.items.[INDEX]","typeLabel":"TaxLine · object"},"title":"TaxLines","uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines.oneOf.0","typeLabel":"TaxLine · object[]"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.tax_lines","typeLabel":"TaxLine · object[] | null"},"refunds":{"oneOf":[{"type":"array","items":{"type":"object","title":"OrderRefund","required":["type","amount"],"example":{"external_id":"pos-refund-2026-0807-0042","type":"line_item","amount":{"amount":17600,"currency_code":"USD"},"line_items":[{"external_id":"line-item-a","quantity":1,"restock":true},{"external_id":"line-item-b","quantity":1,"restock":false}],"created_at":"2026-08-07T14:32:00-07:00"},"properties":{"type":{"oneOf":[{"type":"string","description":"Type of refund.","enum":["line_item","shipping","other"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of refund.","enum":["line_item","shipping","other"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring> | null"},"amount":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].amount.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].amount.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].amount","typeLabel":"object"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"External identifier for the refund event.","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"External identifier for the refund event.","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"line_items":{"type":"array","description":"Refunded order line items when `type` is `line_item`. Each child `external_id` must match a `line_items[].external_id` on the order (this request or already stored). Each child `id` must be the global identifier of an existing order line item. Do not send `line_items` on refunds nested under `line_items[].refunds[]`.\n","items":{"oneOf":[{"type":"object","title":"Option 1","description":"Identify an order line item by either `id` or `external_id`. These options are mutually exclusive; providing one prohibits the other. Used on refunds attached at the order level.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing order line item. Mutually exclusive with `external_id`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.id","typeLabel":"integer\u003cint64>"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.0","typeLabel":"Option 1 · object"},{"type":"object","title":"Option 2","description":"Identify an order line item by either `id` or `external_id`. These options are mutually exclusive; providing one prohibits the other. Used on refunds attached at the order level.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing order line item or a line item being created in the request.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.external_id","typeLabel":"string"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX].oneOf.1","typeLabel":"Option 2 · object"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items.items.[INDEX]","typeLabel":"Option 1 · object | Option 2 · object"},"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_items","typeLabel":"(Option 1 · object | Option 2 · object)[]"},"line_item":{"oneOf":[{"type":"object","title":"Option 1","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing order line item. Mutually exclusive with `external_id`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.id","typeLabel":"integer\u003cint64>"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.0","typeLabel":"Option 1 · object"},{"type":"object","title":"Option 2","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing order line item or a line item being created in the request.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.external_id","typeLabel":"string"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.1","typeLabel":"Option 2 · object"},{"type":"null","description":"Accepted on write for backward compatibility; coerced to `line_items` when `line_items` is omitted. Do not send both unless they describe the same single child.\n","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item.oneOf.2","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].line_item","typeLabel":"Option 1 · object | Option 2 · object | null"},"created_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0.items.[INDEX]","typeLabel":"OrderRefund · object"},"title":"RefundItems","description":"Refunds attached at the order level. Write-once identity is `external_id` when it is set: a new id is appended; an identical replay is a no-op. A different shape for an existing id is skipped with no client error — the stored row is unchanged and the write still succeeds (same success path as an identical replay). `external_id` may be null; those rows are not write-once and each send inserts. Sending `refunds: [{new}]` appends that refund and leaves unmentioned refunds in place. Omitting `refunds` or sending `refunds: []` does not remove refunds already on the order.\n","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.0","typeLabel":"OrderRefund · object[]"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.refunds","typeLabel":"OrderRefund · object[] | null"},"discounts":{"oneOf":[{"type":"array","items":{"title":"OrderLineItemDiscount","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"discount_type":{"type":"string","description":"Type of discount.","enum":["amount","bonus","bonus_choice","fixed_price","free","percentage","percentage_off_options","price_book_price","total_fixed_price"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].discount_type","typeLabel":"enum\u003cstring>"},"discount_relation":{"oneOf":[{"type":"string","description":"Discount Relation.","enum":["prereq","entitled","x","y"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].discount_relation.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Discount Relation.","enum":["prereq","entitled","x","y"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].discount_relation.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].discount_relation","typeLabel":"enum\u003cstring> | null"},"name":{"type":"string","maxLength":64,"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].name","typeLabel":"string"},"code":{"type":"string","maxLength":100,"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].code","typeLabel":"string"},"reason":{"type":"string","maxLength":512,"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"rate":{"type":"number","uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"tax_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].tax_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].tax_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].tax_adjustment_money","typeLabel":"object"},"net_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].net_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].net_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX].net_adjustment_money","typeLabel":"object"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0.items.[INDEX]","typeLabel":"OrderLineItemDiscount · object"},"title":"OrderLineItemDiscounts","uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.0","typeLabel":"OrderLineItemDiscount · object[]"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.discounts","typeLabel":"OrderLineItemDiscount · object[] | null"},"duties":{"oneOf":[{"type":"array","items":{"title":"Duty","type":"object","properties":{"hs_code":{"oneOf":[{"type":"string","maxLength":10,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].hs_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":10,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].hs_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].hs_code","typeLabel":"string | null"},"country_of_origin":{"oneOf":[{"type":"string","maxLength":2,"examples":["US","CA"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].country_of_origin.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":2,"examples":["US","CA"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].country_of_origin.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].country_of_origin","typeLabel":"string | null"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].price","typeLabel":"object"},"tax_lines":{"title":"TaxLines","type":"array","items":{"title":"TaxLine","type":"object","required":["title","rate","price"],"properties":{"title":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].title","typeLabel":"string"},"rate":{"type":"number","description":"Tax rate as a decimal (e.g. `0.08` for 8%).","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].rate","typeLabel":"number"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX]","typeLabel":"TaxLine · object"},"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX].tax_lines","typeLabel":"TaxLine · object[]"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0.items.[INDEX]","typeLabel":"Duty · object"},"title":"Duties","uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.0","typeLabel":"Duty · object[]"},{"type":"null","uniqueKey":"line_items.items.[INDEX].oneOf.1.duties.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.duties","typeLabel":"Duty · object[] | null"},"metadata":{"oneOf":[{"type":"array","description":"Key/value metadata to attach to the line item. Providing this array replaces the line item's entire stored metadata set: keys omitted from the array are removed, and included keys are inserted or updated. Omit the field to leave existing metadata unchanged; send an empty array or `null` to clear all metadata. Duplicate keys within a single line item are rejected (422).\n","items":{"title":"LineItemMetadataEntry","type":"object","required":["key","value"],"properties":{"key":{"type":"string","maxLength":512,"description":"The metadata key. Note this differs from order-level metadata, which caps keys at 100 characters.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"oneOf":[{"type":"string","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata.oneOf.0.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"boolean","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata.oneOf.0.items.[INDEX].value.oneOf.1","typeLabel":"boolean"},{"type":"object","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata.oneOf.0.items.[INDEX].value.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata.oneOf.0.items.[INDEX].value","typeLabel":"string | boolean | object"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata.oneOf.0.items.[INDEX]","typeLabel":"LineItemMetadataEntry · object"},"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata.oneOf.0","typeLabel":"LineItemMetadataEntry · object[]"},{"type":"null","description":"Key/value metadata to attach to the line item. Providing this array replaces the line item's entire stored metadata set: keys omitted from the array are removed, and included keys are inserted or updated. Omit the field to leave existing metadata unchanged; send an empty array or `null` to clear all metadata. Duplicate keys within a single line item are rejected (422).\n","items":{"title":"LineItemMetadataEntry","type":"object","required":["key","value"],"properties":{"key":{"type":"string","maxLength":512,"description":"The metadata key. Note this differs from order-level metadata, which caps keys at 100 characters.\n"},"value":{"oneOf":[{"type":"string","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"},{"type":"boolean","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"},{"type":"object","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"}]}}},"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"line_items.items.[INDEX].oneOf.1.metadata","typeLabel":"LineItemMetadataEntry · object[] | null"}},"uniqueKey":"line_items.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"line_items.items.[INDEX]","typeLabel":"object"},"description":"List of order line items associated with the order.","uniqueKey":"line_items","typeLabel":"object[]"},"fulfillments":{"oneOf":[{"type":"array","items":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["success","failure","cancelled","pending","open","error"],"description":"Status of the fulfillment:\n- `success` - The fulfillment was successful.\n- `failure` - The fulfillment request failed.\n- `cancelled` - The fulfillment was cancelled.\n- `pending` - Loop has created the fulfillment and is waiting for the fulfillment\n service to transition it to `open` or `success`.\n\n- `open` - The fulfillment has been acknowledged by the fulfillment service and is being processed.\n- `error` - There was an error with the fulfillment request.\n","isRequired":true,"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"fulfilled_at":{"oneOf":[{"type":"string","format":"date-time","examples":["2023-04-25T13:25:00-05:00"],"description":"Set this field to indicate that the line item has been fulfilled, so it is returnable.","uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfilled_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","examples":["2023-04-25T13:25:00-05:00"],"description":"Set this field to indicate that the line item has been fulfilled, so it is returnable.","uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfilled_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfilled_at","typeLabel":"string\u003cdate-time> | null"},"delivered_at":{"oneOf":[{"type":"string","format":"date-time","examples":["2023-04-27T16:40:00-05:00"],"description":"The delivery time for this fulfillment, as an ATOM timestamp or null. This field is for a Commerce Data order. For a Shopify order, Loop gets the delivery time from Shopify.\nWhen a return policy starts the return window from the delivery date, Loop uses this time. When no delivery time is stored, Loop uses `fulfilled_at`.\nIf you omit this key, Loop keeps the stored time. If you send null, Loop clears the stored time. If you send a timestamp, Loop replaces the stored time, also when it is earlier than `fulfilled_at`. If you send any other value, Loop rejects the request and does not change the order.\n","uniqueKey":"fulfillments.oneOf.0.items.[INDEX].delivered_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","examples":["2023-04-27T16:40:00-05:00"],"description":"The delivery time for this fulfillment, as an ATOM timestamp or null. This field is for a Commerce Data order. For a Shopify order, Loop gets the delivery time from Shopify.\nWhen a return policy starts the return window from the delivery date, Loop uses this time. When no delivery time is stored, Loop uses `fulfilled_at`.\nIf you omit this key, Loop keeps the stored time. If you send null, Loop clears the stored time. If you send a timestamp, Loop replaces the stored time, also when it is earlier than `fulfilled_at`. If you send any other value, Loop rejects the request and does not change the order.\n","uniqueKey":"fulfillments.oneOf.0.items.[INDEX].delivered_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].delivered_at","typeLabel":"string\u003cdate-time> | null"},"shipping_carrier":{"type":"string","uniqueKey":"fulfillments.oneOf.0.items.[INDEX].shipping_carrier","typeLabel":"string"},"location":{"oneOf":[{"type":"null","description":"Set to null to remove a location relationship.","uniqueKey":"fulfillments.oneOf.0.items.[INDEX].location.oneOf.0","typeLabel":"null"},{"type":"object","description":"Set to null to remove a location relationship.","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing location. The id provided must belong to the authenticated user's shop.\n","isRequired":true,"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].location.oneOf.1.id","typeLabel":"integer\u003cint64>"}},"additionalProperties":false,"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].location.oneOf.1","typeLabel":"object"},{"type":"object","description":"Set to null to remove a location relationship.","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing location.","isRequired":true,"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].location.oneOf.2.external_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].location.oneOf.2","typeLabel":"object"}],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].location","typeLabel":"null · object · object"},"fulfillment_line_items":{"title":"FulfillmentLineItems","type":"array","items":{"title":"FulfillmentLineItem","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfillment_line_items.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfillment_line_items.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfillment_line_items.items.[INDEX].external_id","typeLabel":"string | null"},"order_line_item_external_id":{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfillment_line_items.items.[INDEX].order_line_item_external_id","typeLabel":"string"},"quantity":{"type":"integer","uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfillment_line_items.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfillment_line_items.items.[INDEX]","typeLabel":"FulfillmentLineItem · object"},"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].fulfillment_line_items","typeLabel":"FulfillmentLineItem · object[]"},"tracking_numbers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"fulfillments.oneOf.0.items.[INDEX].tracking_numbers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].tracking_numbers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].tracking_numbers.oneOf.1","typeLabel":"null"}],"uniqueKey":"fulfillments.oneOf.0.items.[INDEX].tracking_numbers","typeLabel":"string[] | null"}},"uniqueKey":"fulfillments.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Fulfillment information for the order.","uniqueKey":"fulfillments.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","required":["status"],"properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"]},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"]}]},"status":{"type":"string","enum":["success","failure","cancelled","pending","open","error"],"description":"Status of the fulfillment:\n- `success` - The fulfillment was successful.\n- `failure` - The fulfillment request failed.\n- `cancelled` - The fulfillment was cancelled.\n- `pending` - Loop has created the fulfillment and is waiting for the fulfillment\n service to transition it to `open` or `success`.\n\n- `open` - The fulfillment has been acknowledged by the fulfillment service and is being processed.\n- `error` - There was an error with the fulfillment request.\n"},"fulfilled_at":{"oneOf":[{"type":"string","format":"date-time","examples":["2023-04-25T13:25:00-05:00"],"description":"Set this field to indicate that the line item has been fulfilled, so it is returnable."},{"type":"null","format":"date-time","examples":["2023-04-25T13:25:00-05:00"],"description":"Set this field to indicate that the line item has been fulfilled, so it is returnable."}]},"delivered_at":{"oneOf":[{"type":"string","format":"date-time","examples":["2023-04-27T16:40:00-05:00"],"description":"The delivery time for this fulfillment, as an ATOM timestamp or null. This field is for a Commerce Data order. For a Shopify order, Loop gets the delivery time from Shopify.\nWhen a return policy starts the return window from the delivery date, Loop uses this time. When no delivery time is stored, Loop uses `fulfilled_at`.\nIf you omit this key, Loop keeps the stored time. If you send null, Loop clears the stored time. If you send a timestamp, Loop replaces the stored time, also when it is earlier than `fulfilled_at`. If you send any other value, Loop rejects the request and does not change the order.\n"},{"type":"null","format":"date-time","examples":["2023-04-27T16:40:00-05:00"],"description":"The delivery time for this fulfillment, as an ATOM timestamp or null. This field is for a Commerce Data order. For a Shopify order, Loop gets the delivery time from Shopify.\nWhen a return policy starts the return window from the delivery date, Loop uses this time. When no delivery time is stored, Loop uses `fulfilled_at`.\nIf you omit this key, Loop keeps the stored time. If you send null, Loop clears the stored time. If you send a timestamp, Loop replaces the stored time, also when it is earlier than `fulfilled_at`. If you send any other value, Loop rejects the request and does not change the order.\n"}]},"shipping_carrier":{"type":"string"},"location":{"oneOf":[{"type":"null","description":"Set to null to remove a location relationship."},{"type":"object","description":"Set to null to remove a location relationship.","required":["id"],"properties":{"id":{"type":"integer","format":"int64","description":"The global identifier for an existing location. The id provided must belong to the authenticated user's shop.\n"}},"additionalProperties":false},{"type":"object","description":"Set to null to remove a location relationship.","required":["external_id"],"properties":{"external_id":{"type":"string","maxLength":100,"description":"The external identifier for an existing location."}},"additionalProperties":false}]},"fulfillment_line_items":{"title":"FulfillmentLineItems","type":"array","items":{"title":"FulfillmentLineItem","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"]},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"]}]},"order_line_item_external_id":{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"]},"quantity":{"type":"integer"}}}},"tracking_numbers":{"oneOf":[{"type":"array","items":{"type":"string"}},{"type":"null","items":{"type":"string"}}]}}},"description":"Fulfillment information for the order.","uniqueKey":"fulfillments.oneOf.1","typeLabel":"null"}],"uniqueKey":"fulfillments","typeLabel":"object[] | null"},"tags":{"oneOf":[{"type":"array","items":{"type":"string","description":"A tag used to classify and group orders.","examples":["VIP"],"uniqueKey":"tags.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"tags.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","description":"A tag used to classify and group orders.","examples":["VIP"]},"uniqueKey":"tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"tags","typeLabel":"string[] | null"},"created_at":{"oneOf":[{"type":"string","description":"The date and time the order was created in the source system, in ATOM format (ISO 8601/RFC 3339). Optional in API version `2026-07`, so you can leave it out or send `null`. From `2026-10` this field is required.","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time the order was created in the source system, in ATOM format (ISO 8601/RFC 3339). Optional in API version `2026-07`, so you can leave it out or send `null`. From `2026-10` this field is required.","uniqueKey":"created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time> | null"},"cancelled_at":{"oneOf":[{"type":"string","description":"Timestamp when the order was cancelled. Required when `status` is `cancelled` — include both fields together so Loop can reverse Checkout+ protection coverage.\n","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"cancelled_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"Timestamp when the order was cancelled. Required when `status` is `cancelled` — include both fields together so Loop can reverse Checkout+ protection coverage.\n","uniqueKey":"cancelled_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancelled_at","typeLabel":"string\u003cdate-time> | null"},"financial_status":{"oneOf":[{"type":"string","maxLength":30,"enum":["pending","authorized","partially_paid","paid","partially_refunded","refunded","voided",null],"description":"The financial status of the order.","uniqueKey":"financial_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","maxLength":30,"enum":["pending","authorized","partially_paid","paid","partially_refunded","refunded","voided",null],"description":"The financial status of the order.","uniqueKey":"financial_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"financial_status","typeLabel":"enum\u003cstring> | null"},"cancel_reason":{"oneOf":[{"type":"string","maxLength":30,"enum":["customer","declined","fraud","inventory","other","staff",null],"description":"The reason the order was cancelled, if applicable.","uniqueKey":"cancel_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","maxLength":30,"enum":["customer","declined","fraud","inventory","other","staff",null],"description":"The reason the order was cancelled, if applicable.","uniqueKey":"cancel_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancel_reason","typeLabel":"enum\u003cstring> | null"},"processed_at":{"oneOf":[{"type":"string","description":"The date and time when the order was processed in the source system.","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time when the order was processed in the source system.","uniqueKey":"processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"processed_at","typeLabel":"string\u003cdate-time> | null"},"browser_ip":{"oneOf":[{"type":"string","description":"The IP address of the browser used to place the order.","format":"ipv4","maxLength":45,"uniqueKey":"browser_ip.oneOf.0","typeLabel":"string\u003cipv4>"},{"type":"string","description":"The IP address of the browser used to place the order.","format":"ipv6","maxLength":45,"uniqueKey":"browser_ip.oneOf.1","typeLabel":"string\u003cipv6>"}],"uniqueKey":"browser_ip","typeLabel":"string\u003cipv4> | string\u003cipv6>"},"client_details_user_agent":{"oneOf":[{"type":"string","maxLength":1000,"description":"The user agent string of the browser used to place the order.","uniqueKey":"client_details_user_agent.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":1000,"description":"The user agent string of the browser used to place the order.","uniqueKey":"client_details_user_agent.oneOf.1","typeLabel":"null"}],"uniqueKey":"client_details_user_agent","typeLabel":"string | null"},"total_tip_received":{"oneOf":[{"type":"object","description":"The total tip amount received for the order.","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"total_tip_received.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"total_tip_received.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"total_tip_received.oneOf.0","typeLabel":"object"},{"type":"null","description":"The total tip amount received for the order.","uniqueKey":"total_tip_received.oneOf.1","typeLabel":"null"}],"uniqueKey":"total_tip_received","typeLabel":"object | null"},"metadata":{"oneOf":[{"type":"array","description":"Key/value metadata to attach to the order. A `return_id` key must reference a return that exists for the shop.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"metadata.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"description":"Any value associated with the key.","isRequired":true,"uniqueKey":"metadata.oneOf.0.items.[INDEX].value","typeLabel":"any"}},"uniqueKey":"metadata.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"metadata.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Key/value metadata to attach to the order. A `return_id` key must reference a return that exists for the shop.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","maxLength":100},"value":{"description":"Any value associated with the key."}}},"uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object[] | null"}},"required":["source","sales_channel"],"uniqueKey":"","typeLabel":"UpdateOrderRequest · object"},"examples":{"Example":{"title":"Example","value":{"sales_channel":"shopify","source":{"name":"\u003cstring>"},"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","name":"\u003cstring>","secondary_identifier":"\u003cstring>","customer":{"id":123,"external_id":"\u003cstring>"},"shipping_address":{"name":"John Smith","company":"Acme, Co","address1":"123 Example St","address2":"Box 123","city":"Columbus","region":"OH","postal_code":12345,"country_code":"US"},"billing_address":{"name":"John Smith","company":"Acme, Co","address1":"123 Example St","address2":"Box 123","city":"Columbus","region":"OH","postal_code":12345,"country_code":"US"},"taxes_included":true,"total_price":{"amount":50000,"currency_code":"USD"},"total_price_presentment":{"amount":50000,"currency_code":"USD"},"total_discounts":{"amount":50000,"currency_code":"USD"},"total_discounts_presentment":{"amount":50000,"currency_code":"USD"},"total_taxes":{"amount":50000,"currency_code":"USD"},"total_taxes_presentment":{"amount":50000,"currency_code":"USD"},"shipping_lines":[[{"title":"\u003cstring>","price":{"amount":50000,"currency_code":"USD"},"discounts":{"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","name":"\u003cstring>","code":"\u003cstring>","reason":"\u003cstring>","rate":123,"net_adjustment_money":{"amount":50000,"currency_code":"USD"},"tax_adjustment_money":{"amount":50000,"currency_code":"USD"}},"tax_lines":[{"title":"\u003cstring>","rate":123,"price":{"amount":50000,"currency_code":"USD"}}]}]],"refunds":[[{"external_id":"pos-refund-2026-0807-0042","type":"line_item","amount":{"amount":17600,"currency_code":"USD"},"line_items":[{"external_id":"line-item-a","quantity":1,"restock":true},{"external_id":"line-item-b","quantity":1,"restock":false}],"created_at":"2026-08-07T14:32:00-07:00"}]],"line_items":[{"id":810772123123125,"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","product":{"id":123},"product_variant":{"id":123},"quantity":123,"unit_price":{"amount":50000,"currency_code":"USD"},"unit_price_presentment":{"amount":50000,"currency_code":"USD"},"unit_discounts":{"amount":50000,"currency_code":"USD"},"unit_discounts_presentment":{"amount":50000,"currency_code":"USD"},"taxable":true,"tax_lines":[{"title":"\u003cstring>","rate":123,"price":{"amount":50000,"currency_code":"USD"}}],"refunds":[{"external_id":"pos-refund-2026-0807-0042","type":"line_item","amount":{"amount":17600,"currency_code":"USD"},"line_items":[{"external_id":"line-item-a","quantity":1,"restock":true},{"external_id":"line-item-b","quantity":1,"restock":false}],"created_at":"2026-08-07T14:32:00-07:00"}],"discounts":[{"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","name":"\u003cstring>","code":"\u003cstring>","reason":"\u003cstring>","rate":123,"tax_adjustment_money":{"amount":50000,"currency_code":"USD"},"net_adjustment_money":{"amount":50000,"currency_code":"USD"}}],"duties":[{"hs_code":"\u003cstring>","country_of_origin":"US","price":{"amount":50000,"currency_code":"USD"},"tax_lines":[{"title":"\u003cstring>","rate":123,"price":{"amount":50000,"currency_code":"USD"}}]}],"metadata":[{"key":"\u003cstring>","value":"\u003cstring>"}]}],"fulfillments":[{"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","fulfilled_at":"2023-04-25T13:25:00-05:00","delivered_at":"2023-04-27T16:40:00-05:00","shipping_carrier":"\u003cstring>","location":{"id":123},"fulfillment_line_items":[{"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","order_line_item_external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","quantity":123}],"tracking_numbers":["\u003cstring>"]}],"tags":["VIP"],"created_at":"2023-04-25T13:25:00-05:00","updated_at":"2023-04-25T13:25:00-05:00","cancelled_at":"2023-04-25T13:25:00-05:00","processed_at":"2023-04-25T13:25:00-05:00","browser_ip":"127.0.0.1","client_details_user_agent":"\u003cstring>","total_tip_received":{"amount":50000,"currency_code":"USD"},"metadata":[{"key":"\u003cstring>","value":"\u003cunknown>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a30fb119-7aa8-4531-8871-eec12eca9f0a":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"title":"OrderResponse","type":"object","properties":{"id":{"type":"integer","format":"int64","minimum":1,"examples":[810772123123123],"readOnly":true,"uniqueKey":"order.id","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.external_id.oneOf.0","typeLabel":"string"},{"type":"null","examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.external_id","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"order.name","typeLabel":"string"},"secondary_identifier":{"oneOf":[{"type":"string","uniqueKey":"order.secondary_identifier.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"order.secondary_identifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.secondary_identifier","typeLabel":"string | null"},"source":{"oneOf":[{"type":"string","uniqueKey":"order.source.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"order.source.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.source","typeLabel":"string | null"},"sales_channel":{"oneOf":[{"type":"string","description":"The name of the channel.","examples":["shopify"],"uniqueKey":"order.sales_channel.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the channel.","examples":["shopify"],"uniqueKey":"order.sales_channel.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.sales_channel","typeLabel":"string | null"},"customer":{"type":"object","properties":{"id":{"type":"integer","description":"The global identifier of the customer.","examples":[123123123123123],"uniqueKey":"order.customer.id","typeLabel":"integer"},"external_id":{"oneOf":[{"type":"string","examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.customer.external_id.oneOf.0","typeLabel":"string"},{"type":"null","examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.customer.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.customer.external_id","typeLabel":"string | null"},"sales_channel":{"oneOf":[{"type":"string","description":"The name of the channel associated with the customer.","examples":["shopify"],"uniqueKey":"order.customer.sales_channel.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name of the channel associated with the customer.","examples":["shopify"],"uniqueKey":"order.customer.sales_channel.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.customer.sales_channel","typeLabel":"string | null"},"first_name":{"type":"string","uniqueKey":"order.customer.first_name","typeLabel":"string"},"last_name":{"type":"string","uniqueKey":"order.customer.last_name","typeLabel":"string"},"email":{"type":"string","uniqueKey":"order.customer.email","typeLabel":"string"},"phone":{"type":"string","uniqueKey":"order.customer.phone","typeLabel":"string"}},"uniqueKey":"order.customer","typeLabel":"object"},"status":{"type":"string","enum":["active","archived","cancelled","unknown"],"description":"Status of the Order.","uniqueKey":"order.status","typeLabel":"enum\u003cstring>"},"shipping_address":{"type":"object","properties":{"address1":{"type":"string","maxLength":125,"description":"Address line 1.","isRequired":true,"uniqueKey":"order.shipping_address.address1","typeLabel":"string"},"city":{"type":"string","maxLength":100,"description":"City.","isRequired":true,"uniqueKey":"order.shipping_address.city","typeLabel":"string"},"country_code":{"type":"string","maxLength":2,"description":"Must be a valid 2 character country code.","isRequired":true,"uniqueKey":"order.shipping_address.country_code","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Recipient name.","uniqueKey":"order.shipping_address.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Recipient name.","uniqueKey":"order.shipping_address.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.shipping_address.name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","maxLength":100,"description":"Recipient company.","uniqueKey":"order.shipping_address.company.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Recipient company.","uniqueKey":"order.shipping_address.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.shipping_address.company","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","maxLength":125,"description":"Address line 2.","uniqueKey":"order.shipping_address.address2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":125,"description":"Address line 2.","uniqueKey":"order.shipping_address.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.shipping_address.address2","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","maxLength":100,"description":"State or Region.","uniqueKey":"order.shipping_address.region.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"State or Region.","uniqueKey":"order.shipping_address.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.shipping_address.region","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","maxLength":16,"description":"Postal Code.","uniqueKey":"order.shipping_address.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":16,"description":"Postal Code.","uniqueKey":"order.shipping_address.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.shipping_address.postal_code","typeLabel":"string | null"}},"required":["address1","city","country_code"],"examples":[{"name":"John Smith","company":"Acme, Co","address1":"123 Example St","address2":"Box 123","city":"Columbus","region":"OH","postal_code":12345,"country_code":"US"}],"uniqueKey":"order.shipping_address","typeLabel":"object"},"billing_address":{"type":"object","properties":{"address1":{"type":"string","maxLength":125,"description":"Address line 1.","isRequired":true,"uniqueKey":"order.billing_address.address1","typeLabel":"string"},"city":{"type":"string","maxLength":100,"description":"City.","isRequired":true,"uniqueKey":"order.billing_address.city","typeLabel":"string"},"country_code":{"type":"string","maxLength":2,"description":"Must be a valid 2 character country code.","isRequired":true,"uniqueKey":"order.billing_address.country_code","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Recipient name.","uniqueKey":"order.billing_address.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Recipient name.","uniqueKey":"order.billing_address.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.billing_address.name","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","maxLength":100,"description":"Recipient company.","uniqueKey":"order.billing_address.company.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Recipient company.","uniqueKey":"order.billing_address.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.billing_address.company","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","maxLength":125,"description":"Address line 2.","uniqueKey":"order.billing_address.address2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":125,"description":"Address line 2.","uniqueKey":"order.billing_address.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.billing_address.address2","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","maxLength":100,"description":"State or Region.","uniqueKey":"order.billing_address.region.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"State or Region.","uniqueKey":"order.billing_address.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.billing_address.region","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","maxLength":16,"description":"Postal Code.","uniqueKey":"order.billing_address.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":16,"description":"Postal Code.","uniqueKey":"order.billing_address.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.billing_address.postal_code","typeLabel":"string | null"}},"required":["address1","city","country_code"],"examples":[{"name":"John Smith","company":"Acme, Co","address1":"123 Example St","address2":"Box 123","city":"Columbus","region":"OH","postal_code":12345,"country_code":"US"}],"uniqueKey":"order.billing_address","typeLabel":"object"},"taxes_included":{"type":"boolean","uniqueKey":"order.taxes_included","typeLabel":"boolean"},"total_price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.total_price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.total_price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The price of the order in minor units, such as cents, with its corresponding currency.\n","uniqueKey":"order.total_price","typeLabel":"object"},"total_price_presentment":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.total_price_presentment.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.total_price_presentment.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The price of the order in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","uniqueKey":"order.total_price_presentment","typeLabel":"object"},"total_discounts":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.total_discounts.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.total_discounts.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The deduction from the original order price as a way to promote sales, special offers, or customer loyalty rewards.\n","uniqueKey":"order.total_discounts","typeLabel":"object"},"total_discounts_presentment":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.total_discounts_presentment.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.total_discounts_presentment.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The deduction from the original order price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","uniqueKey":"order.total_discounts_presentment","typeLabel":"object"},"shipping_lines":{"title":"ShippingLines","type":"array","items":{"title":"ShippingLine","type":"object","properties":{"title":{"type":"string","uniqueKey":"order.shipping_lines.items.[INDEX].title","typeLabel":"string"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.shipping_lines.items.[INDEX].price","typeLabel":"object"},"discounts":{"title":"ShippingLineDiscount","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.external_id","typeLabel":"string | null"},"name":{"type":"string","uniqueKey":"order.shipping_lines.items.[INDEX].discounts.name","typeLabel":"string"},"discount_type":{"oneOf":[{"type":"string","description":"Type of discount.","enum":["amount","bonus","bonus_choice","fixed_price","free","percentage","percentage_off_options","price_book_price","total_fixed_price"],"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.discount_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of discount.","enum":["amount","bonus","bonus_choice","fixed_price","free","percentage","percentage_off_options","price_book_price","total_fixed_price"],"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.discount_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.discount_type","typeLabel":"enum\u003cstring> | null"},"code":{"type":"string","uniqueKey":"order.shipping_lines.items.[INDEX].discounts.code","typeLabel":"string"},"reason":{"type":"string","uniqueKey":"order.shipping_lines.items.[INDEX].discounts.reason","typeLabel":"string"},"rate":{"type":"number","uniqueKey":"order.shipping_lines.items.[INDEX].discounts.rate","typeLabel":"number"},"net_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.net_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.net_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.net_adjustment_money","typeLabel":"object"},"tax_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.tax_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.tax_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.shipping_lines.items.[INDEX].discounts.tax_adjustment_money","typeLabel":"object"}},"uniqueKey":"order.shipping_lines.items.[INDEX].discounts","typeLabel":"ShippingLineDiscount · object"},"tax_lines":{"title":"TaxLines","type":"array","items":{"title":"TaxLine","type":"object","required":["title","rate","price"],"properties":{"title":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].tax_lines.items.[INDEX].title","typeLabel":"string"},"rate":{"type":"number","description":"Tax rate as a decimal (e.g. `0.08` for 8%).","isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].tax_lines.items.[INDEX].rate","typeLabel":"number"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].tax_lines.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].tax_lines.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"order.shipping_lines.items.[INDEX].tax_lines.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"order.shipping_lines.items.[INDEX].tax_lines.items.[INDEX]","typeLabel":"TaxLine · object"},"uniqueKey":"order.shipping_lines.items.[INDEX].tax_lines","typeLabel":"TaxLine · object[]"}},"uniqueKey":"order.shipping_lines.items.[INDEX]","typeLabel":"ShippingLine · object"},"description":"The shipping lines for the order.","uniqueKey":"order.shipping_lines","typeLabel":"ShippingLine · object[]"},"order_discounts":{"title":"OrderDiscounts","type":"array","items":{"title":"OrderDiscount","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.order_discounts.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.order_discounts.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.order_discounts.items.[INDEX].external_id","typeLabel":"string | null"},"name":{"type":"string","maxLength":64,"uniqueKey":"order.order_discounts.items.[INDEX].name","typeLabel":"string"},"discount_type":{"type":"string","description":"Type of discount.","enum":["amount","bonus","bonus_choice","fixed_price","free","percentage","percentage_off_options","price_book_price","total_fixed_price"],"uniqueKey":"order.order_discounts.items.[INDEX].discount_type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","maxLength":100,"uniqueKey":"order.order_discounts.items.[INDEX].code","typeLabel":"string"},"reason":{"type":"string","maxLength":512,"uniqueKey":"order.order_discounts.items.[INDEX].reason","typeLabel":"string"},"rate":{"type":"number","uniqueKey":"order.order_discounts.items.[INDEX].rate","typeLabel":"number"},"tax_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.order_discounts.items.[INDEX].tax_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.order_discounts.items.[INDEX].tax_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.order_discounts.items.[INDEX].tax_adjustment_money","typeLabel":"object"},"net_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.order_discounts.items.[INDEX].net_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.order_discounts.items.[INDEX].net_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.order_discounts.items.[INDEX].net_adjustment_money","typeLabel":"object"}},"uniqueKey":"order.order_discounts.items.[INDEX]","typeLabel":"OrderDiscount · object"},"description":"The discounts for the order.","uniqueKey":"order.order_discounts","typeLabel":"OrderDiscount · object[]"},"total_taxes":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.total_taxes.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.total_taxes.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The tax amount for the order.","uniqueKey":"order.total_taxes","typeLabel":"object"},"total_taxes_presentment":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.total_taxes_presentment.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.total_taxes_presentment.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The tax amount for the order according to the customer's local currency.","uniqueKey":"order.total_taxes_presentment","typeLabel":"object"},"tags":{"oneOf":[{"type":"array","items":{"type":"string","description":"A tag used to classify and group orders.","examples":["VIP"],"uniqueKey":"order.tags.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"order.tags.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string","description":"A tag used to classify and group orders.","examples":["VIP"]},"uniqueKey":"order.tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.tags","typeLabel":"string[] | null"},"refunds":{"oneOf":[{"type":"array","items":{"title":"RefundItemsResponse","type":"array","items":{"title":"OrderRefundResponse","type":"object","properties":{"line_items":{"type":"array","description":"Always present on responses. Refunded order line items when `type` is `line_item`; empty otherwise.\n","items":{"title":"RefundLineItemResponse","type":"object","properties":{"id":{"oneOf":[{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the order line item. Write still requires each child to match an order line (`external_id` or `id`); unmatched children are rejected. `null` on read when a stored child cannot be mapped to a current order line (for example the line was removed after ingest). That is not a write-time acceptance of unknown children.\n","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].id.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","readOnly":true,"description":"The global identifier for the order line item. Write still requires each child to match an order line (`external_id` or `id`); unmatched children are rejected. `null` on read when a stored child cannot be mapped to a current order line (for example the line was removed after ingest). That is not a write-time acceptance of unknown children.\n","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].id","typeLabel":"integer\u003cint64> | null"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"The external identifier for the order line item.","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"The external identifier for the order line item.","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].external_id","typeLabel":"string | null"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX].restock","typeLabel":"boolean | null"}},"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items.items.[INDEX]","typeLabel":"RefundLineItemResponse · object"},"isRequired":true,"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_items","typeLabel":"RefundLineItemResponse · object[]"},"line_item":{"oneOf":[{"type":"object","title":"RefundLineItemResponse","description":"Always present. The child object when `line_items` has exactly one entry; `null` when there are zero or more than one.\n","properties":{"id":{"oneOf":[{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the order line item. Write still requires each child to match an order line (`external_id` or `id`); unmatched children are rejected. `null` on read when a stored child cannot be mapped to a current order line (for example the line was removed after ingest). That is not a write-time acceptance of unknown children.\n","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.id.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","readOnly":true,"description":"The global identifier for the order line item. Write still requires each child to match an order line (`external_id` or `id`); unmatched children are rejected. `null` on read when a stored child cannot be mapped to a current order line (for example the line was removed after ingest). That is not a write-time acceptance of unknown children.\n","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.id","typeLabel":"integer\u003cint64> | null"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"The external identifier for the order line item.","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"The external identifier for the order line item.","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.external_id","typeLabel":"string | null"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0.restock","typeLabel":"boolean | null"}},"isRequired":true,"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.0","typeLabel":"RefundLineItemResponse · object"},{"type":"null","description":"Always present. The child object when `line_items` has exactly one entry; `null` when there are zero or more than one.\n","isRequired":true,"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].line_item","typeLabel":"RefundLineItemResponse · object | null"},"id":{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the refund.","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].id","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"External identifier for the refund event.","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"External identifier for the refund event.","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].external_id","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","description":"Type of refund.","enum":["line_item","shipping","other"],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of refund.","enum":["line_item","shipping","other"],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].type","typeLabel":"enum\u003cstring> | null"},"amount":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].amount.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].amount.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].amount","typeLabel":"object"},"created_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX].updated_at","typeLabel":"string\u003cdate-time> | null"}},"required":["line_items","line_item"],"examples":[{"external_id":"pos-refund-2026-0807-0042","type":"line_item","amount":{"amount":17600,"currency_code":"USD"},"line_items":[{"id":810772123123127,"external_id":"line-item-a","quantity":1,"restock":true},{"id":810772123123128,"external_id":"line-item-b","quantity":1,"restock":false}],"line_item":null,"created_at":"2026-08-07T14:32:00-07:00","updated_at":"2026-08-07T14:32:00-07:00"}],"uniqueKey":"order.refunds.oneOf.0.items.[INDEX].items.[INDEX]","typeLabel":"OrderRefundResponse · object"},"uniqueKey":"order.refunds.oneOf.0.items.[INDEX]","typeLabel":"OrderRefundResponse · object[]"},"uniqueKey":"order.refunds.oneOf.0","typeLabel":"OrderRefundResponse · object[][]"},{"type":"null","items":{"title":"RefundItemsResponse","type":"array","items":{"title":"OrderRefundResponse","type":"object","properties":{"id":{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the refund."},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"External identifier for the refund event."},{"type":"null","maxLength":100,"description":"External identifier for the refund event."}]},"type":{"oneOf":[{"type":"string","description":"Type of refund.","enum":["line_item","shipping","other"]},{"type":"null","description":"Type of refund.","enum":["line_item","shipping","other"]}]},"amount":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000]},"currency_code":{"type":"string","default":"USD","examples":["EUR"]}},"required":["amount","currency_code"]},"line_items":{"type":"array","description":"Always present on responses. Refunded order line items when `type` is `line_item`; empty otherwise.\n","items":{"title":"RefundLineItemResponse","type":"object","properties":{"id":{"oneOf":[{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the order line item. Write still requires each child to match an order line (`external_id` or `id`); unmatched children are rejected. `null` on read when a stored child cannot be mapped to a current order line (for example the line was removed after ingest). That is not a write-time acceptance of unknown children.\n"},{"type":"null","format":"int64","readOnly":true,"description":"The global identifier for the order line item. Write still requires each child to match an order line (`external_id` or `id`); unmatched children are rejected. `null` on read when a stored child cannot be mapped to a current order line (for example the line was removed after ingest). That is not a write-time acceptance of unknown children.\n"}]},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"The external identifier for the order line item."},{"type":"null","maxLength":100,"description":"The external identifier for the order line item."}]},"quantity":{"oneOf":[{"type":"integer"},{"type":"null"}]},"restock":{"oneOf":[{"type":"boolean"},{"type":"null"}]}}}},"line_item":{"oneOf":[{"type":"object","title":"RefundLineItemResponse","description":"Always present. The child object when `line_items` has exactly one entry; `null` when there are zero or more than one.\n","properties":{"id":{"oneOf":[{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the order line item. Write still requires each child to match an order line (`external_id` or `id`); unmatched children are rejected. `null` on read when a stored child cannot be mapped to a current order line (for example the line was removed after ingest). That is not a write-time acceptance of unknown children.\n"},{"type":"null","format":"int64","readOnly":true,"description":"The global identifier for the order line item. Write still requires each child to match an order line (`external_id` or `id`); unmatched children are rejected. `null` on read when a stored child cannot be mapped to a current order line (for example the line was removed after ingest). That is not a write-time acceptance of unknown children.\n"}]},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"The external identifier for the order line item."},{"type":"null","maxLength":100,"description":"The external identifier for the order line item."}]},"quantity":{"oneOf":[{"type":"integer"},{"type":"null"}]},"restock":{"oneOf":[{"type":"boolean"},{"type":"null"}]}}},{"type":"null","description":"Always present. The child object when `line_items` has exactly one entry; `null` when there are zero or more than one.\n"}]},"created_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00"},{"type":"null"}]},"updated_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00"},{"type":"null"}]}},"required":["line_items","line_item"],"examples":[{"external_id":"pos-refund-2026-0807-0042","type":"line_item","amount":{"amount":17600,"currency_code":"USD"},"line_items":[{"id":810772123123127,"external_id":"line-item-a","quantity":1,"restock":true},{"id":810772123123128,"external_id":"line-item-b","quantity":1,"restock":false}],"line_item":null,"created_at":"2026-08-07T14:32:00-07:00","updated_at":"2026-08-07T14:32:00-07:00"}]}},"uniqueKey":"order.refunds.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.refunds","typeLabel":"OrderRefundResponse · object[][] | null"},"line_items":{"type":"array","items":{"title":"LineItemResponse","type":"object","properties":{"id":{"type":"integer","format":"int64","minimum":1,"readOnly":true,"uniqueKey":"order.line_items.items.[INDEX].id","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"uniqueKey":"order.line_items.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"uniqueKey":"order.line_items.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].external_id","typeLabel":"string | null"},"product":{"title":"ProductResponse","type":"object","properties":{"id":{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the product.","uniqueKey":"order.line_items.items.[INDEX].product.id","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"The external identifier for the product.","uniqueKey":"order.line_items.items.[INDEX].product.external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"The external identifier for the product.","uniqueKey":"order.line_items.items.[INDEX].product.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].product.external_id","typeLabel":"string | null"}},"uniqueKey":"order.line_items.items.[INDEX].product","typeLabel":"ProductResponse · object"},"product_variant":{"oneOf":[{"type":"object","title":"ProductVariantResponse","properties":{"id":{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the product variant.","uniqueKey":"order.line_items.items.[INDEX].product_variant.oneOf.0.id","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"The external identifier for the product variant.","uniqueKey":"order.line_items.items.[INDEX].product_variant.oneOf.0.external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"The external identifier for the product variant.","uniqueKey":"order.line_items.items.[INDEX].product_variant.oneOf.0.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].product_variant.oneOf.0.external_id","typeLabel":"string | null"}},"uniqueKey":"order.line_items.items.[INDEX].product_variant.oneOf.0","typeLabel":"ProductVariantResponse · object"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].product_variant.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].product_variant","typeLabel":"ProductVariantResponse · object | null"},"quantity":{"oneOf":[{"type":"integer","uniqueKey":"order.line_items.items.[INDEX].quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].quantity","typeLabel":"integer | null"},"unit_price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].unit_price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].unit_price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"description":"The price of the order line item in minor units, such as cents, with its corresponding currency.\n","uniqueKey":"order.line_items.items.[INDEX].unit_price","typeLabel":"object"},"unit_price_presentment":{"oneOf":[{"type":"object","description":"The price of the order line item in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].unit_price_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].unit_price_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"order.line_items.items.[INDEX].unit_price_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The price of the order line item in minor units, such as cents. This is included if the price was shown to the customer in an alternate currency.\n","uniqueKey":"order.line_items.items.[INDEX].unit_price_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].unit_price_presentment","typeLabel":"object | null"},"unit_discounts":{"oneOf":[{"type":"object","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].unit_discounts.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].unit_discounts.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"order.line_items.items.[INDEX].unit_discounts.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards.\n","uniqueKey":"order.line_items.items.[INDEX].unit_discounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].unit_discounts","typeLabel":"object | null"},"unit_discounts_presentment":{"oneOf":[{"type":"object","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].unit_discounts_presentment.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].unit_discounts_presentment.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"order.line_items.items.[INDEX].unit_discounts_presentment.oneOf.0","typeLabel":"object"},{"type":"null","description":"The deduction from the original order line item price as a way to promote sales, special offers, or customer loyalty rewards. This price is discounted from the original price according to the customer's local currency.\n","uniqueKey":"order.line_items.items.[INDEX].unit_discounts_presentment.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].unit_discounts_presentment","typeLabel":"object | null"},"taxable":{"oneOf":[{"type":"boolean","uniqueKey":"order.line_items.items.[INDEX].taxable.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].taxable.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].taxable","typeLabel":"boolean | null"},"tax_lines":{"oneOf":[{"type":"array","items":{"title":"TaxLine","type":"object","required":["title","rate","price"],"properties":{"title":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].tax_lines.oneOf.0.items.[INDEX].title","typeLabel":"string"},"rate":{"type":"number","description":"Tax rate as a decimal (e.g. `0.08` for 8%).","isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].tax_lines.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].tax_lines.oneOf.0.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].tax_lines.oneOf.0.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].tax_lines.oneOf.0.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"order.line_items.items.[INDEX].tax_lines.oneOf.0.items.[INDEX]","typeLabel":"TaxLine · object"},"title":"TaxLines","uniqueKey":"order.line_items.items.[INDEX].tax_lines.oneOf.0","typeLabel":"TaxLine · object[]"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].tax_lines.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].tax_lines","typeLabel":"TaxLine · object[] | null"},"refunds":{"oneOf":[{"type":"array","items":{"title":"LineItemRefundResponse","type":"object","properties":{"id":{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the refund.","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].id","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","description":"Type of refund.","enum":["line_item","shipping","other"],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Type of refund.","enum":["line_item","shipping","other"],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring> | null"},"amount":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].amount.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].amount.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].amount","typeLabel":"object"},"line_item":{"oneOf":[{"type":"object","title":"LineItemRefundLineItem","description":"Present when `type` is `line_item`.","properties":{"quantity":{"oneOf":[{"type":"integer","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.quantity","typeLabel":"integer | null"},"restock":{"oneOf":[{"type":"boolean","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock.oneOf.0","typeLabel":"boolean"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item.oneOf.0.restock","typeLabel":"boolean | null"}},"additionalProperties":false,"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item.oneOf.0","typeLabel":"LineItemRefundLineItem · object"},{"type":"null","description":"Present when `type` is `line_item`.","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].line_item","typeLabel":"LineItemRefundLineItem · object | null"},"created_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0.items.[INDEX]","typeLabel":"LineItemRefundResponse · object"},"title":"LineItemRefundItemsResponse","description":"Refunds nested under a line item in an order response.\n","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.0","typeLabel":"LineItemRefundResponse · object[]"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].refunds.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].refunds","typeLabel":"LineItemRefundResponse · object[] | null"},"discounts":{"oneOf":[{"type":"array","items":{"title":"OrderLineItemDiscount","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].external_id","typeLabel":"string | null"},"discount_type":{"type":"string","description":"Type of discount.","enum":["amount","bonus","bonus_choice","fixed_price","free","percentage","percentage_off_options","price_book_price","total_fixed_price"],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].discount_type","typeLabel":"enum\u003cstring>"},"discount_relation":{"oneOf":[{"type":"string","description":"Discount Relation.","enum":["prereq","entitled","x","y"],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].discount_relation.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Discount Relation.","enum":["prereq","entitled","x","y"],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].discount_relation.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].discount_relation","typeLabel":"enum\u003cstring> | null"},"name":{"type":"string","maxLength":64,"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].name","typeLabel":"string"},"code":{"type":"string","maxLength":100,"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].code","typeLabel":"string"},"reason":{"type":"string","maxLength":512,"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].reason","typeLabel":"string"},"rate":{"type":"number","uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].rate","typeLabel":"number"},"tax_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].tax_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].tax_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].tax_adjustment_money","typeLabel":"object"},"net_adjustment_money":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].net_adjustment_money.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].net_adjustment_money.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX].net_adjustment_money","typeLabel":"object"}},"uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0.items.[INDEX]","typeLabel":"OrderLineItemDiscount · object"},"title":"OrderLineItemDiscounts","uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.0","typeLabel":"OrderLineItemDiscount · object[]"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].discounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].discounts","typeLabel":"OrderLineItemDiscount · object[] | null"},"duties":{"oneOf":[{"type":"array","items":{"title":"Duty","type":"object","properties":{"hs_code":{"oneOf":[{"type":"string","maxLength":10,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].hs_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":10,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].hs_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].hs_code","typeLabel":"string | null"},"country_of_origin":{"oneOf":[{"type":"string","maxLength":2,"examples":["US","CA"],"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].country_of_origin.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":2,"examples":["US","CA"],"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].country_of_origin.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].country_of_origin","typeLabel":"string | null"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].price","typeLabel":"object"},"tax_lines":{"title":"TaxLines","type":"array","items":{"title":"TaxLine","type":"object","required":["title","rate","price"],"properties":{"title":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].title","typeLabel":"string"},"rate":{"type":"number","description":"Tax rate as a decimal (e.g. `0.08` for 8%).","isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].rate","typeLabel":"number"},"price":{"type":"object","examples":[{"amount":50000,"currency_code":"USD"},{"amount":25000},{"amount":1500,"currency_code":"EUR"}],"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price.currency_code","typeLabel":"string"}},"required":["amount","currency_code"],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX].price","typeLabel":"object"}},"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].tax_lines.items.[INDEX]","typeLabel":"TaxLine · object"},"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX].tax_lines","typeLabel":"TaxLine · object[]"}},"uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0.items.[INDEX]","typeLabel":"Duty · object"},"title":"Duties","uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.0","typeLabel":"Duty · object[]"},{"type":"null","uniqueKey":"order.line_items.items.[INDEX].duties.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].duties","typeLabel":"Duty · object[] | null"},"metadata":{"oneOf":[{"type":"array","description":"Key/value metadata stored on the line item, returned as an array of `{ key, value }` entries.\n","items":{"title":"LineItemMetadataEntry","type":"object","required":["key","value"],"properties":{"key":{"type":"string","maxLength":512,"description":"The metadata key. Note this differs from order-level metadata, which caps keys at 100 characters.\n","isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].metadata.oneOf.0.items.[INDEX].key","typeLabel":"string"},"value":{"oneOf":[{"type":"string","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].metadata.oneOf.0.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"boolean","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].metadata.oneOf.0.items.[INDEX].value.oneOf.1","typeLabel":"boolean"},{"type":"object","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n","isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].metadata.oneOf.0.items.[INDEX].value.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"order.line_items.items.[INDEX].metadata.oneOf.0.items.[INDEX].value","typeLabel":"string | boolean | object"}},"uniqueKey":"order.line_items.items.[INDEX].metadata.oneOf.0.items.[INDEX]","typeLabel":"LineItemMetadataEntry · object"},"uniqueKey":"order.line_items.items.[INDEX].metadata.oneOf.0","typeLabel":"LineItemMetadataEntry · object[]"},{"type":"null","description":"Key/value metadata stored on the line item, returned as an array of `{ key, value }` entries.\n","items":{"title":"LineItemMetadataEntry","type":"object","required":["key","value"],"properties":{"key":{"type":"string","maxLength":512,"description":"The metadata key. Note this differs from order-level metadata, which caps keys at 100 characters.\n"},"value":{"oneOf":[{"type":"string","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"},{"type":"boolean","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"},{"type":"object","description":"The value associated with the key. Must be a string, boolean, or object; numbers (including integers such as 0 and 1) are rejected. When the value is an object, it must not contain the reserved key `__scalar_value`.\n"}]}}},"uniqueKey":"order.line_items.items.[INDEX].metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.line_items.items.[INDEX].metadata","typeLabel":"LineItemMetadataEntry · object[] | null"}},"uniqueKey":"order.line_items.items.[INDEX]","typeLabel":"LineItemResponse · object"},"uniqueKey":"order.line_items","typeLabel":"LineItemResponse · object[]"},"fulfillments":{"type":"array","items":{"title":"FulfillmentResponse","type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["success","failure","cancelled","pending","open","error"],"description":"Status of the fulfillment:\n- `success` - The fulfillment was successful.\n- `failure` - The fulfillment request failed.\n- `cancelled` - The fulfillment was cancelled.\n- `pending` - Loop has created the fulfillment and is waiting for the fulfillment\n service to transition it to `open` or `success`.\n\n- `open` - The fulfillment has been acknowledged by the fulfillment service and is being processed.\n- `error` - There was an error with the fulfillment request.\n","isRequired":true,"uniqueKey":"order.fulfillments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"id":{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the fulfillment.","uniqueKey":"order.fulfillments.items.[INDEX].id","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"uniqueKey":"order.fulfillments.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"uniqueKey":"order.fulfillments.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fulfillments.items.[INDEX].external_id","typeLabel":"string | null"},"fulfilled_at":{"oneOf":[{"type":"string","format":"date-time","description":"The date and time the line item was fulfilled.","uniqueKey":"order.fulfillments.items.[INDEX].fulfilled_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"The date and time the line item was fulfilled.","uniqueKey":"order.fulfillments.items.[INDEX].fulfilled_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fulfillments.items.[INDEX].fulfilled_at","typeLabel":"string\u003cdate-time> | null"},"delivered_at":{"oneOf":[{"type":"string","format":"date-time","examples":["2023-04-27T16:40:00-05:00"],"description":"The stored delivery time for this fulfillment, as an ATOM timestamp or null when none is stored.\n","uniqueKey":"order.fulfillments.items.[INDEX].delivered_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","examples":["2023-04-27T16:40:00-05:00"],"description":"The stored delivery time for this fulfillment, as an ATOM timestamp or null when none is stored.\n","uniqueKey":"order.fulfillments.items.[INDEX].delivered_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fulfillments.items.[INDEX].delivered_at","typeLabel":"string\u003cdate-time> | null"},"shipping_carrier":{"type":"string","uniqueKey":"order.fulfillments.items.[INDEX].shipping_carrier","typeLabel":"string"},"location":{"oneOf":[{"type":"null","uniqueKey":"order.fulfillments.items.[INDEX].location.oneOf.0","typeLabel":"null"},{"type":"object","title":"FulfillmentLocationResponse","properties":{"id":{"type":"integer","format":"int64","readOnly":true,"description":"The global identifier for the location.","uniqueKey":"order.fulfillments.items.[INDEX].location.oneOf.1.id","typeLabel":"integer\u003cint64>"},"external_id":{"oneOf":[{"type":"string","maxLength":100,"description":"The external identifier for the location.","uniqueKey":"order.fulfillments.items.[INDEX].location.oneOf.1.external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"The external identifier for the location.","uniqueKey":"order.fulfillments.items.[INDEX].location.oneOf.1.external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fulfillments.items.[INDEX].location.oneOf.1.external_id","typeLabel":"string | null"}},"uniqueKey":"order.fulfillments.items.[INDEX].location.oneOf.1","typeLabel":"FulfillmentLocationResponse · object"}],"uniqueKey":"order.fulfillments.items.[INDEX].location","typeLabel":"null | FulfillmentLocationResponse · object"},"fulfillment_line_items":{"title":"FulfillmentLineItems","type":"array","items":{"title":"FulfillmentLineItem","type":"object","properties":{"external_id":{"oneOf":[{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.fulfillments.items.[INDEX].fulfillment_line_items.items.[INDEX].external_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.fulfillments.items.[INDEX].fulfillment_line_items.items.[INDEX].external_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fulfillments.items.[INDEX].fulfillment_line_items.items.[INDEX].external_id","typeLabel":"string | null"},"order_line_item_external_id":{"type":"string","maxLength":100,"examples":["564400c7-7a6b-4f29-b6a5-7bb580b2992c"],"uniqueKey":"order.fulfillments.items.[INDEX].fulfillment_line_items.items.[INDEX].order_line_item_external_id","typeLabel":"string"},"quantity":{"type":"integer","uniqueKey":"order.fulfillments.items.[INDEX].fulfillment_line_items.items.[INDEX].quantity","typeLabel":"integer"}},"uniqueKey":"order.fulfillments.items.[INDEX].fulfillment_line_items.items.[INDEX]","typeLabel":"FulfillmentLineItem · object"},"uniqueKey":"order.fulfillments.items.[INDEX].fulfillment_line_items","typeLabel":"FulfillmentLineItem · object[]"},"tracking_numbers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"order.fulfillments.items.[INDEX].tracking_numbers.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"order.fulfillments.items.[INDEX].tracking_numbers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"uniqueKey":"order.fulfillments.items.[INDEX].tracking_numbers.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.fulfillments.items.[INDEX].tracking_numbers","typeLabel":"string[] | null"}},"uniqueKey":"order.fulfillments.items.[INDEX]","typeLabel":"FulfillmentResponse · object"},"uniqueKey":"order.fulfillments","typeLabel":"FulfillmentResponse · object[]"},"created_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"order.created_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"order.created_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.created_at","typeLabel":"string\u003cdate-time> | null"},"updated_at":{"oneOf":[{"type":"string","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"order.updated_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"order.updated_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.updated_at","typeLabel":"string\u003cdate-time> | null"},"financial_status":{"oneOf":[{"type":"string","enum":["pending","authorized","partially_paid","paid","partially_refunded","refunded","voided",null],"description":"The financial status of the order.","uniqueKey":"order.financial_status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["pending","authorized","partially_paid","paid","partially_refunded","refunded","voided",null],"description":"The financial status of the order.","uniqueKey":"order.financial_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.financial_status","typeLabel":"enum\u003cstring> | null"},"cancel_reason":{"oneOf":[{"type":"string","enum":["customer","declined","fraud","inventory","other","staff",null],"description":"The reason the order was cancelled, if applicable.","uniqueKey":"order.cancel_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["customer","declined","fraud","inventory","other","staff",null],"description":"The reason the order was cancelled, if applicable.","uniqueKey":"order.cancel_reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.cancel_reason","typeLabel":"enum\u003cstring> | null"},"processed_at":{"oneOf":[{"type":"string","description":"The date and time when the order was processed in the source system.","format":"date-time","example":"2023-04-25T13:25:00-05:00","uniqueKey":"order.processed_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The date and time when the order was processed in the source system.","uniqueKey":"order.processed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.processed_at","typeLabel":"string\u003cdate-time> | null"},"browser_ip":{"oneOf":[{"type":"string","description":"The IP address of the browser used to place the order.","format":"ipv4","maxLength":45,"uniqueKey":"order.browser_ip.oneOf.0","typeLabel":"string\u003cipv4>"},{"type":"string","description":"The IP address of the browser used to place the order.","format":"ipv6","maxLength":45,"uniqueKey":"order.browser_ip.oneOf.1","typeLabel":"string\u003cipv6>"}],"uniqueKey":"order.browser_ip","typeLabel":"string\u003cipv4> | string\u003cipv6>"},"client_details_user_agent":{"oneOf":[{"type":"string","maxLength":1000,"description":"The user agent string of the browser used to place the order.","uniqueKey":"order.client_details_user_agent.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":1000,"description":"The user agent string of the browser used to place the order.","uniqueKey":"order.client_details_user_agent.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.client_details_user_agent","typeLabel":"string | null"},"total_tip_received":{"oneOf":[{"type":"object","description":"The total tip amount received for the order.","required":["amount","currency_code"],"example":{"amount":50000,"currency_code":"USD"},"properties":{"amount":{"type":"integer","format":"int32","examples":[25000],"isRequired":true,"uniqueKey":"order.total_tip_received.oneOf.0.amount","typeLabel":"integer\u003cint32>"},"currency_code":{"type":"string","default":"USD","examples":["EUR"],"isRequired":true,"uniqueKey":"order.total_tip_received.oneOf.0.currency_code","typeLabel":"string"}},"uniqueKey":"order.total_tip_received.oneOf.0","typeLabel":"object"},{"type":"null","description":"The total tip amount received for the order.","uniqueKey":"order.total_tip_received.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.total_tip_received","typeLabel":"object | null"},"warnings":{"oneOf":[{"type":"array","description":"Non-fatal warnings about the order, surfaced after a successful write.","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"order.warnings.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"order.warnings.oneOf.0.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"order.warnings.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"order.warnings.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Non-fatal warnings about the order, surfaced after a successful write.","items":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"uniqueKey":"order.warnings.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.warnings","typeLabel":"object[] | null"}},"uniqueKey":"order","typeLabel":"OrderResponse · object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"order":{"id":810772123123123,"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","name":"\u003cstring>","secondary_identifier":"\u003cstring>","source":"\u003cstring>","sales_channel":"shopify","customer":{"id":123123123123123,"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","sales_channel":"shopify","first_name":"\u003cstring>","last_name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>"},"status":"active","shipping_address":{"name":"John Smith","company":"Acme, Co","address1":"123 Example St","address2":"Box 123","city":"Columbus","region":"OH","postal_code":12345,"country_code":"US"},"billing_address":{"name":"John Smith","company":"Acme, Co","address1":"123 Example St","address2":"Box 123","city":"Columbus","region":"OH","postal_code":12345,"country_code":"US"},"taxes_included":true,"total_price":{"amount":50000,"currency_code":"USD"},"total_price_presentment":{"amount":50000,"currency_code":"USD"},"total_discounts":{"amount":50000,"currency_code":"USD"},"total_discounts_presentment":{"amount":50000,"currency_code":"USD"},"shipping_lines":[{"title":"\u003cstring>","price":{"amount":50000,"currency_code":"USD"},"discounts":{"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","name":"\u003cstring>","discount_type":"amount","code":"\u003cstring>","reason":"\u003cstring>","rate":123,"net_adjustment_money":{"amount":50000,"currency_code":"USD"},"tax_adjustment_money":{"amount":50000,"currency_code":"USD"}},"tax_lines":[{"title":"\u003cstring>","rate":123,"price":{"amount":50000,"currency_code":"USD"}}]}],"order_discounts":[{"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","name":"\u003cstring>","discount_type":"amount","code":"\u003cstring>","reason":"\u003cstring>","rate":123,"tax_adjustment_money":{"amount":50000,"currency_code":"USD"},"net_adjustment_money":{"amount":50000,"currency_code":"USD"}}],"total_taxes":{"amount":50000,"currency_code":"USD"},"total_taxes_presentment":{"amount":50000,"currency_code":"USD"},"tags":["VIP"],"refunds":[[{"external_id":"pos-refund-2026-0807-0042","type":"line_item","amount":{"amount":17600,"currency_code":"USD"},"line_items":[{"id":810772123123127,"external_id":"line-item-a","quantity":1,"restock":true},{"id":810772123123128,"external_id":"line-item-b","quantity":1,"restock":false}],"line_item":null,"created_at":"2026-08-07T14:32:00-07:00","updated_at":"2026-08-07T14:32:00-07:00"}]],"line_items":[{"id":2,"external_id":"\u003cstring>","product":{"id":123,"external_id":"\u003cstring>"},"product_variant":{"id":123,"external_id":"\u003cstring>"},"quantity":123,"unit_price":{"amount":50000,"currency_code":"USD"},"unit_price_presentment":{"amount":50000,"currency_code":"USD"},"unit_discounts":{"amount":50000,"currency_code":"USD"},"unit_discounts_presentment":{"amount":50000,"currency_code":"USD"},"taxable":true,"tax_lines":[{"title":"\u003cstring>","rate":123,"price":{"amount":50000,"currency_code":"USD"}}],"refunds":[{"id":123,"external_id":"\u003cstring>","type":"line_item","amount":{"amount":50000,"currency_code":"USD"},"line_item":{"quantity":123,"restock":true},"created_at":"2023-04-25T13:25:00-05:00","updated_at":"2023-04-25T13:25:00-05:00"}],"discounts":[{"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","discount_type":"amount","discount_relation":"prereq","name":"\u003cstring>","code":"\u003cstring>","reason":"\u003cstring>","rate":123,"tax_adjustment_money":{"amount":50000,"currency_code":"USD"},"net_adjustment_money":{"amount":50000,"currency_code":"USD"}}],"duties":[{"hs_code":"\u003cstring>","country_of_origin":"US","price":{"amount":50000,"currency_code":"USD"},"tax_lines":[{"title":"\u003cstring>","rate":123,"price":{"amount":50000,"currency_code":"USD"}}]}],"metadata":[{"key":"\u003cstring>","value":"\u003cstring>"}]}],"fulfillments":[{"status":"success","id":123,"external_id":"\u003cstring>","fulfilled_at":"2023-11-07T05:31:56Z","delivered_at":"2023-04-27T16:40:00-05:00","shipping_carrier":"\u003cstring>","location":{"id":123,"external_id":"\u003cstring>"},"fulfillment_line_items":[{"external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","order_line_item_external_id":"564400c7-7a6b-4f29-b6a5-7bb580b2992c","quantity":123}],"tracking_numbers":["\u003cstring>"]}],"created_at":"2023-04-25T13:25:00-05:00","updated_at":"2023-04-25T13:25:00-05:00","financial_status":"pending","cancel_reason":"customer","processed_at":"2023-04-25T13:25:00-05:00","browser_ip":"127.0.0.1","client_details_user_agent":"\u003cstring>","total_tip_received":{"amount":50000,"currency_code":"USD"},"warnings":[{"code":"\u003cstring>","message":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"44b717cd-3539-4988-9acb-c8cbcbbb76ab":{"description":"Example response if request submitted without a valid API Key in X-Authorization.","content":{"application/json":{"schema":{"type":"object","required":["errors"],"properties":{"errors":{"type":"string","examples":["Unauthorized."],"isRequired":true,"uniqueKey":"errors","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"errors":"Unauthorized."}}},"exampleType":"generated"}},"headers":{"X-Loop-Request-ID":{"schema":{"type":"string","examples":["5a748e7c-5fcc-4fb0-a777-6a4d28e60d4c"],"format":"uuid"},"description":"UUID to aid in debugging API issues."}},"exampleType":"generated"},"b1bae426-1034-42f8-8db2-db113582ac51":{"description":"The requested entity could not be found.","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","examples":["Resource not found."],"isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Resource not found."}}},"exampleType":"generated"}},"headers":{"X-Loop-Request-ID":{"schema":{"type":"string"},"description":"UUID to aid in debugging API issues."}},"exampleType":"generated"}},"security":{"ff516d31-5a60-410f-b93f-07895507b8da":{"write":{"name":"X-Authorization","type":"apiKey","in":"header","description":"API Scope: \"Order (write)\"","scopes":[],"schemeName":"write"}}},"servers":{"7814cba3-e1c7-4ef2-94c2-96a32eee4840":{"url":"https://api.loopreturns.com/api/2026-07","description":"2026-07"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"name":"X-Authorization","type":"apiKey","in":"header","description":"API Scope: \"Order (write)\"","scopes":[],"schemeName":"write"},"schema":{"title":"X-Authorization","type":"string","description":"API Scope: \"Order (write)\"","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"write","name":"X-Authorization"}],"title":"write"}]},"originalFileLocation":"openapi/orders-api-2026-07.yaml"},"subdomain":"loopreturns","siteName":"Loop Returns Documentation","title":"Update Order - Loop Returns Documentation","navMaps":{"firstHrefInVersion":{"2026-07":{"href":"/api-reference/2026-07/orders/update-order","matchLevel":0},"2026-10":{"href":"/api-reference/latest/orders/update-order","matchLevel":1},"unstable":{"href":"/api-reference/latest/orders/update-order","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-10-29T18:31:28.206Z","originalFileLocation":"api-reference/2026-07/orders/update-order.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=\"Update a specific order.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Loop Returns Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/loopreturns/X0rUYkP1UIsEaMhI/_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/loopreturns/X0rUYkP1UIsEaMhI/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/loopreturns/X0rUYkP1UIsEaMhI/_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/loopreturns/X0rUYkP1UIsEaMhI/_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/loopreturns/X0rUYkP1UIsEaMhI/_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/loopreturns/X0rUYkP1UIsEaMhI/_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/loopreturns/X0rUYkP1UIsEaMhI/_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/loopreturns/X0rUYkP1UIsEaMhI/_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/loopreturns/X0rUYkP1UIsEaMhI/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Order - Loop Returns Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update a specific order.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Loop Returns Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://loopreturns.mintlify.app/_mintlify/api/og/v2?division=Orders\u0026amp;title=Update+Order\u0026amp;description=Update+a+specific+order.\u0026amp;theme=5ccacdea69e246fe33e6ab29\u0026amp;signature=5a9e566947e224b6de8fc44d43aee7daf9e628b77630769f51f3e4fa6a1634d3\">\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=\"Update Order - Loop Returns Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update a specific order.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://loopreturns.mintlify.app/_mintlify/api/og/v2?division=Orders\u0026amp;title=Update+Order\u0026amp;description=Update+a+specific+order.\u0026amp;theme=5ccacdea69e246fe33e6ab29\u0026amp;signature=5a9e566947e224b6de8fc44d43aee7daf9e628b77630769f51f3e4fa6a1634d3\">\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/loopreturns/X0rUYkP1UIsEaMhI/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Loop Returns Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0672FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/2026-07/orders/update-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.loopreturns.com/#organization\",\"name\":\"Loop Returns Documentation\",\"url\":\"https://docs.loopreturns.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/loopreturns/mWP1nZGNp75FiB-l/logo/loop-logo-lapis-charcoal.svg?fit=max\u0026auto=format\u0026n=mWP1nZGNp75FiB-l\u0026q=85\u0026s=5113cc3f8f2d70a65c2c774e471a13c4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.loopreturns.com#website\",\"name\":\"Loop Returns Documentation\",\"url\":\"https://docs.loopreturns.com\",\"publisher\":{\"@id\":\"https://docs.loopreturns.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order#webpage\",\"url\":\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order\",\"name\":\"Update Order\",\"description\":\"Update a specific order.\",\"dateModified\":\"2026-10-29T18:31:28.206Z\",\"isPartOf\":{\"@id\":\"https://docs.loopreturns.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https://docs.loopreturns.com/api-reference/latest/return-actions/process-return\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Commerce Data\",\"item\":\"https://docs.loopreturns.com/api-reference/latest/products/list-products\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Orders\",\"item\":\"https://docs.loopreturns.com/api-reference/latest/orders/list-orders\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Update Order\",\"item\":\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order#apireference\",\"headline\":\"Update Order\",\"name\":\"Update Order\",\"description\":\"Update a specific order.\",\"url\":\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.loopreturns.com/api-reference/2026-07/orders/update-order#webpage\"},\"dateModified\":\"2026-10-29T18:31:28.206Z\",\"publisher\":{\"@id\":\"https://docs.loopreturns.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.loopreturns.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Loop Returns Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Loop Returns Documentation","nav":{"global":{"anchors":[{"anchor":"System Status","icon":"radar","href":"https://status.loopreturns.com"}]},"versions":[{"version":"2026-07","tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/welcome"}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/integration-guides/overview"}]},{"tab":"MCP Server","pages":[{"title":"MCP Server","href":"/mcp/overview"}]},{"tab":"API Reference","groups":[{"group":"Using the API","pages":[{"title":"Getting Started","icon":"play","href":"/api-reference/getting-started"},{"title":"Authentication","version":"2026-07","icon":"lock","href":"/api-reference/authentication"},{"title":"API Versioning","icon":"clock","href":"/api-reference/versioning"},{"title":"Rate limit","icon":"gauge","href":"/api-reference/rate-limit"},{"title":"Pagination","icon":"page","href":"/api-reference/pagination"},{"title":"Error codes","icon":"circle-exclamation","iconType":"regular","href":"/api-reference/error-codes"},{"title":"Postman Collection","icon":"bolt","href":"/api-reference/postman"}]},{"group":"APIs","pages":[{"group":"Return Actions","pages":[{"openapi":"post /warehouse/return/{id}/process","title":"Process Return","href":"/api-reference/latest/return-actions/process-return"},{"openapi":"post /warehouse/return/{id}/remove","title":"Remove Line Items","href":"/api-reference/latest/return-actions/remove-line-items"},{"openapi":"post /warehouse/return/{id}/cancel","title":"Cancel Return","href":"/api-reference/latest/return-actions/cancel-return"},{"openapi":"post /warehouse/return/{id}/flag","title":"Flag Return","href":"/api-reference/latest/return-actions/flag-return"},{"openapi":"post /warehouse/return/{id}/close","title":"Close Return","href":"/api-reference/latest/return-actions/close-return"},{"openapi":"get /warehouse/return/{id}/notes","title":"Get Return Notes","href":"/api-reference/latest/return-actions/get-return-notes"},{"openapi":"post /warehouse/return/{id}/note","title":"Create Return Note","href":"/api-reference/latest/return-actions/create-return-note"},{"openapi":"post /order/link","title":"Create Return Deep Link","href":"/api-reference/latest/return-actions/create-return-deep-link"},{"openapi":"post /order/qr","title":"Create Return Deep Link with QR Code","href":"/api-reference/latest/return-actions/create-return-deep-link-with-qr-code"}]},{"group":"Return Data","pages":[{"openapi":"get /warehouse/return/list","title":"Detailed Returns List","href":"/api-reference/latest/return-data/detailed-returns-list"},{"openapi":"get /warehouse/return/details","title":"Get Return Details","href":"/api-reference/latest/return-data/get-return-details"},{"openapi":"get /warehouse/reporting/asn","title":"Advanced Shipping Notice","href":"/api-reference/latest/return-data/advanced-shipping-notice"}]},{"group":"Programmatic Webhooks","pages":[{"openapi":"get /webhooks","title":"Get Webhooks","href":"/api-reference/latest/programmatic-webhooks/get-webhooks"},{"openapi":"post /webhooks","title":"Create Webhook","href":"/api-reference/latest/programmatic-webhooks/create-webhook"},{"openapi":"put /webhooks/{id}","title":"Update Webhook","href":"/api-reference/latest/programmatic-webhooks/update-webhook"},{"openapi":"delete /webhooks/{id}","title":"Delete Webhook","href":"/api-reference/latest/programmatic-webhooks/delete-webhook"}]},{"group":"Item Grading and Dispositioning","pages":[{"openapi":"post /dispositioning/grade","title":"Grade Items","href":"/api-reference/latest/item-grading-and-disposition/grade-items"},{"openapi":"post /dispositioning/assess","title":"Assess Dispositions","href":"/api-reference/latest/item-grading-and-disposition/assess-dispositions"}]},{"group":"Cart","pages":[{"openapi":"post /cart","title":"Create Cart","href":"/api-reference/latest/cart/create-cart"},{"openapi":"get /cart/{token}","title":null,"href":"/api-reference/latest/cart/get-cart"},{"openapi":"post /cart/{token}","title":null,"href":"/api-reference/latest/cart/update-cart"},{"openapi":"delete /cart/{token}","title":null,"href":"/api-reference/latest/cart/delete-cart"}]},{"group":"Destinations","pages":[{"openapi":"get /destinations","title":"Get All Destinations","href":"/api-reference/latest/destinations/get-all-destinations"},{"openapi":"post /destinations","title":"Create Destination","href":"/api-reference/latest/destinations/create-destination"},{"openapi":"get /destinations/{id}","title":"Get Destination Details","href":"/api-reference/latest/destinations/get-destination-details"},{"openapi":"put /destinations/{id}","title":"Update Destination","href":"/api-reference/latest/destinations/update-destination"},{"openapi":"delete /destinations/{id}","title":"Delete Destination","href":"/api-reference/latest/destinations/delete-destination"}]},{"group":"Blocklist","pages":[{"openapi":"get /blocklists","title":"List Blocklist Items","href":"/api-reference/latest/blocklist/list-blocklist-items"},{"openapi":"post /blocklists","title":"Create Blocklist Item","href":"/api-reference/latest/blocklist/create-blocklist-item"},{"openapi":"get /blocklists/{id}","title":"Get Blocklist Item","href":"/api-reference/latest/blocklist/get-blocklist-item"},{"openapi":"delete /blocklists/{id}","title":"Delete Blocklist Item","href":"/api-reference/latest/blocklist/delete-blocklist-item"}]},{"group":"Allowlist","pages":[{"openapi":"get /allowlists","title":"List Allowlist Items","href":"/api-reference/latest/allowlist/list-allowlist-items"},{"openapi":"post /allowlists","title":"Create Allowlist Item","href":"/api-reference/latest/allowlist/create-allowlist-item"},{"openapi":"get /allowlists/{id}","title":"Get Allowlist Item","href":"/api-reference/latest/allowlist/get-allowlist-item"},{"openapi":"delete /allowlists/{id}","title":"Delete Allowlist Item","href":"/api-reference/latest/allowlist/delete-allowlist-item"}]},{"group":"Fraud Reports","pages":[{"openapi":"post /returns/{id}/fraud-report","title":"Create Fraud Report","href":"/api-reference/latest/return-actions/create-fraud-report"}]},{"group":"Order Return Eligibility","pages":[{"openapi":"post /orders/return-eligibility","title":"Look Up Order Return Eligibility by Order Name","href":"/api-reference/latest/orders/look-up-order-return-eligibility"}]},{"group":"Happy Returns Shipments","pages":[{"openapi":"get /happy-returns/shipments/{happy_returns_shipment_id}","title":"Get Shipment Information","href":"/api-reference/latest/happy-returns-shipment/get-shipment-information"},{"openapi":"get /happy-returns/shipments","title":"Get Shipments","href":"/api-reference/latest/happy-returns-shipment/get-shipments"},{"openapi":"get /happy-returns/shipments/{id}/items","title":"Get Shipment Items","href":"/api-reference/latest/happy-returns-shipment-items/get-shipment-items"}]},{"group":"Label Requests","pages":[{"openapi":"get /label-requests","title":"List Label Requests","href":"/api-reference/latest/label-requests/list-label-requests"},{"openapi":"get /label-requests/{id}","title":"Get Label Request","href":"/api-reference/latest/label-requests/get-label-request"},{"openapi":"post /label-requests/{id}/errors","title":"Create Label Request Error","href":"/api-reference/latest/label-requests/create-a-label-request-error"},{"openapi":"post /labels","title":"Create Label","href":"/api-reference/latest/label-requests/create-label"},{"openapi":"post /returns/{returnId}/labels","title":"Generate Label","href":"/api-reference/latest/label-requests/generate-label"},{"openapi":"put /labels/{id}","title":"Update Label Status","href":"/api-reference/latest/label-requests/update-label-status"}]},{"group":"Return Create","pages":[{"title":"Return Create Overview","href":"/api-reference/latest/draft-returns/overview"},{"openapi":"openapi/draft-returns.yaml get /draft-returns/{draft_return_id}","title":"Get Draft Return","href":"/api-reference/latest/draft-returns/get-draft-return"},{"openapi":"openapi/draft-returns.yaml post /draft-returns","title":"Initialize Draft Return","href":"/api-reference/latest/draft-returns/initialize-draft-return"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/cancel","title":"Cancel Draft Return","href":"/api-reference/latest/draft-returns/cancel-draft-return"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/customer","title":"Set Customer","href":"/api-reference/latest/draft-returns/set-customer"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/address","title":"Set Address","href":"/api-reference/latest/draft-returns/set-address"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/returning-items","title":"Add Returning Item","href":"/api-reference/latest/draft-returns/add-returning-item"},{"openapi":"openapi/draft-returns.yaml delete /draft-returns/{draft_return_id}/returning-items/{returning_item_id}","title":"Remove Returning Item","href":"/api-reference/latest/draft-returns/remove-returning-item"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/returning-items/{returning_item_id}/return-reason","title":"Set Returning Item Return Reason","href":"/api-reference/latest/draft-returns/set-returning-item-return-reason"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/returning-items/{returning_item_id}/user-input/{user_input_id}","title":"Add Returning Item User Input","href":"/api-reference/latest/draft-returns/add-returning-item-user-input"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/returning-items/{returning_item_id}/return-type","title":"Set Returning Item Return Type","href":"/api-reference/latest/draft-returns/set-returning-item-return-type"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/returning-items/{returning_item_id}/exchange-item","title":"Add Returning Item Exchange Item","href":"/api-reference/latest/draft-returns/add-returning-item-exchange-item"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/cart/items","title":"Add Cart Item","href":"/api-reference/latest/draft-returns/add-cart-item"},{"openapi":"openapi/draft-returns.yaml delete /draft-returns/{draft_return_id}/cart/items/{cart_item_id}","title":"Remove Cart Item","href":"/api-reference/latest/draft-returns/remove-cart-item"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/credit-type","title":"Set Credit Type","href":"/api-reference/latest/draft-returns/set-credit-type"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/processing-type","title":"Set Processing Type","href":"/api-reference/latest/draft-returns/set-processing-type"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/finalize-items","title":"Finalize Items","href":"/api-reference/latest/draft-returns/finalize-items"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/unfinalize-items","title":"Unfinalize Items","href":"/api-reference/latest/draft-returns/unfinalize-items"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/return-method","title":"Select Return Method","href":"/api-reference/latest/draft-returns/select-return-method"},{"openapi":"openapi/draft-returns.yaml post /draft-returns/{draft_return_id}/submit","title":"Submit Draft Return","href":"/api-reference/latest/draft-returns/submit-draft-return"}]},{"group":"Commerce Data","pages":[{"group":"Products","pages":[{"openapi":"get /products","title":"List Products","href":"/api-reference/latest/products/list-products"},{"openapi":"post /products","title":"Create Product","href":"/api-reference/latest/products/create-product"},{"openapi":"put /products","title":"Upsert Product","href":"/api-reference/latest/products/upsert-product"},{"openapi":"get /products/{id}","title":"Get Product","href":"/api-reference/latest/products/get-product"},{"openapi":"get /products/external/{externalId}","title":"Get Product by External ID","href":"/api-reference/latest/products/get-product-by-external-id"},{"openapi":"put /products/{id}","title":"Update Product","href":"/api-reference/latest/products/update-product"},{"openapi":"delete /products/{id}","title":"Delete Product","href":"/api-reference/latest/products/delete-product"},{"openapi":"delete /products/external/{externalId}","title":"Delete Product by External ID","href":"/api-reference/latest/products/delete-product-by-external-id"},{"openapi":"get /products/{productId}/product-variants","title":"List Product Variants","href":"/api-reference/latest/products/list-product-variants"},{"openapi":"post /products/{productId}/product-variants","title":"Create Product Variant","href":"/api-reference/latest/products/create-product-variant"},{"openapi":"put /products/{productId}/product-variants","title":"Upsert Product Variant","href":"/api-reference/latest/products/upsert-product-variant"},{"openapi":"put /products/external/{productExternalId}/product-variants","title":"Upsert Product Variant by Product External ID","href":"/api-reference/latest/products/upsert-product-variant-by-product-external-id"},{"openapi":"get /products/{productId}/product-variants/{id}","title":"Get Product Variant","href":"/api-reference/latest/products/get-product-variant"},{"openapi":"get /products/external/{productExternalId}/product-variants/{externalId}","title":"Get Product Variant by External ID","href":"/api-reference/latest/products/get-product-variant-by-external-id"},{"openapi":"patch /products/{productId}/product-variants/{id}","title":"Update Product Variant","href":"/api-reference/latest/products/update-product-variant"},{"openapi":"delete /products/{productId}/product-variants/{id}","title":"Delete Product Variant","href":"/api-reference/latest/products/delete-product-variant"},{"openapi":"delete /products/external/{productExternalId}/product-variants/{externalId}","title":"Delete Product Variant by External ID","href":"/api-reference/latest/products/delete-product-variant-by-external-id"}]},{"group":"Orders","pages":[{"openapi":"get /orders","title":"List Orders","href":"/api-reference/latest/orders/list-orders"},{"openapi":"openapi/orders-api-2026-07.yaml post /orders","title":"Create Order","href":"/api-reference/2026-07/orders/create-order"},{"openapi":"openapi/orders-api-2026-07.yaml put /orders","title":"Upsert Order","href":"/api-reference/2026-07/orders/upsert-order"},{"openapi":"get /orders/{id}","title":"Get Order","href":"/api-reference/latest/orders/get-order"},{"openapi":"get /orders/external/{externalId}","title":"Get Order by External ID","description":"Get details about a specific order by its commerce `external_id`.","href":"/api-reference/latest/orders/get-order-by-external-id"},{"openapi":"openapi/orders-api-2026-07.yaml put /orders/{id}","title":"Update Order","href":"/api-reference/2026-07/orders/update-order"},{"openapi":"delete /orders/{id}","title":"Delete Order","description":"Delete a specific order.","href":"/api-reference/latest/orders/delete-order"},{"openapi":"delete /orders/external/{externalId}","title":"Delete Order by External ID","href":"/api-reference/latest/orders/delete-order-by-external-id"}]},{"group":"Customers","pages":[{"openapi":"get /customers","title":"List Customers","href":"/api-reference/latest/customers/list-customers"},{"openapi":"post /customers","title":"Create Customer","href":"/api-reference/latest/customers/create-customer"},{"openapi":"put /customers","title":"Upsert Customer","href":"/api-reference/latest/customers/upsert-customer"},{"openapi":"get /customers/{id}","title":"Get Customer","href":"/api-reference/latest/customers/get-customer"},{"openapi":"get /customers/external/{externalId}","title":"Get Customer by External ID","href":"/api-reference/latest/customers/get-customer-by-external-id"},{"openapi":"put /customers/{id}","title":"Update Customer","href":"/api-reference/latest/customers/update-customer"},{"openapi":"delete /customers/{id}","title":"Delete Customer","href":"/api-reference/latest/customers/delete-customer"},{"openapi":"delete /customers/external/{externalId}","title":"Delete Customer by External ID","href":"/api-reference/latest/customers/delete-customer-by-external-id"}]},{"group":"Locations","pages":[{"openapi":"get /locations","title":"List Locations","href":"/api-reference/latest/locations/list-locations"},{"openapi":"post /locations","title":"Create Location","href":"/api-reference/latest/locations/create-location"},{"openapi":"put /locations","title":"Upsert Location","href":"/api-reference/latest/locations/upsert-location"},{"openapi":"get /locations/{id}","title":"Get Location","href":"/api-reference/latest/locations/get-location"},{"openapi":"get /locations/external/{externalId}","title":"Get Location by External ID","href":"/api-reference/latest/locations/get-location-by-external-id"},{"openapi":"put /locations/{id}","title":"Update Location","href":"/api-reference/latest/locations/update-location"},{"openapi":"delete /locations/{id}","title":"Delete Location","href":"/api-reference/latest/locations/delete-location"},{"openapi":"delete /locations/external/{externalId}","title":"Delete Location by External ID","href":"/api-reference/latest/locations/delete-location-by-external-id"}]},{"group":"Inventories","pages":[{"openapi":"get /inventories","title":"List Inventories","href":"/api-reference/latest/inventories/list-inventories"},{"openapi":"post /inventories/{productVariantId}/{locationId}","title":"Upsert Inventory","href":"/api-reference/latest/inventories/create-inventory"},{"openapi":"put /inventories/{productVariantId}/{locationId}","title":"Upsert Inventory","href":"/api-reference/latest/inventories/upsert-inventory"},{"openapi":"put /inventories/external/{variantExternalId}/{locationExternalId}","title":"Upsert Inventory by External IDs","href":"/api-reference/latest/inventories/upsert-inventory-by-external-ids"},{"openapi":"get /inventories/{productVariantId}/{locationId}","title":"Get Inventory","href":"/api-reference/latest/inventories/get-inventory"},{"openapi":"get /inventories/external/{variantExternalId}/{locationExternalId}","title":"Get Inventory by External IDs","href":"/api-reference/latest/inventories/get-inventory-by-external-ids"},{"openapi":"delete /inventories/{productVariantId}/{locationId}","title":"Delete Inventory","href":"/api-reference/latest/inventories/delete-inventory"},{"openapi":"delete /inventories/external/{variantExternalId}/{locationExternalId}","title":"Delete Inventory by External IDs","href":"/api-reference/latest/inventories/delete-inventory-by-external-ids"}]},{"group":"Collections","pages":[{"openapi":"get /collections","title":"List Collections","href":"/api-reference/latest/collections/list-collections"},{"openapi":"post /collections","title":"Create Collection","href":"/api-reference/latest/collections/create-collection"},{"openapi":"put /collections","title":"Upsert Collection","href":"/api-reference/latest/collections/upsert-collection"},{"openapi":"get /collections/{id}","title":"Get Collection","href":"/api-reference/latest/collections/get-collection"},{"openapi":"get /collections/external/{externalId}","title":"Get Collection by External ID","href":"/api-reference/latest/collections/get-collection-by-external-id"},{"openapi":"put /collections/{id}","title":"Update Collection","href":"/api-reference/latest/collections/update-collection"},{"openapi":"delete /collections/{id}","title":"Delete Collection","href":"/api-reference/latest/collections/delete-collection"},{"openapi":"delete /collections/external/{externalId}","title":"Delete Collection by External ID","href":"/api-reference/latest/collections/delete-collection-by-external-id"},{"openapi":"post /collections/{id}/products/{productId}","title":"Add Product to Collection","href":"/api-reference/latest/collections/add-product-to-collection"},{"openapi":"delete /collections/{id}/products/{productId}","title":"Delete Product from Collection","href":"/api-reference/latest/collections/delete-product-from-collection"},{"openapi":"post /collections/external/{collectionExternalId}/products/external/{productExternalId}","title":"Add Product to Collection by External ID","href":"/api-reference/latest/collections/add-product-to-collection-by-external-id"},{"openapi":"delete /collections/external/{collectionExternalId}/products/external/{productExternalId}","title":"Delete Product from Collection by External ID","href":"/api-reference/latest/collections/delete-product-from-collection-by-external-id"}]},{"group":"Bulk Operations","pages":[{"openapi":"post /bulk-operations","title":"Create Bulk Operation","href":"/api-reference/latest/bulk-operations/create-bulk-operation"},{"openapi":"get /bulk-operations","title":"List Bulk Operations","href":"/api-reference/latest/bulk-operations/list-bulk-operations"},{"openapi":"get /bulk-operations/{id}","title":"Get Bulk Operation","href":"/api-reference/latest/bulk-operations/get-bulk-operation"},{"openapi":"get /bulk-operations/{id}/jobs","title":"List Bulk Operation Jobs","href":"/api-reference/latest/bulk-operations/list-bulk-operation-jobs"}]}]}]}]},{"tab":"Webhook Reference","pages":[{"title":"Webhook Reference","href":"/webhook-reference/getting-started"}]}]},{"version":"2026-10","default":true,"pages":[{"title":"2026-10","href":"/api-reference/latest/orders/update-order"}]},{"version":"unstable","pages":[{"title":"unstable","href":"/api-reference/latest/orders/update-order"}]}]},"title":"Update Order - Loop Returns Documentation","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}