UUID of one of the organization's couriers. Assigns it to the order; carrier then defaults to the courier's name and trackingUrl to its tracking URL template. An order whose courier the buyer chose at checkout keeps it: a different courierId or carrier fails with ROUTE_COURIER_LOCKED.
Lifecycle status: PLACED, CANCELLED, or AWAITING_REVIEW — a credit order that exceeded the customer's available credit, held until the merchant approves it (then PLACED) or rejects it (then CANCELLED). An AWAITING_REVIEW order cannot be fulfilled, paid or invoiced.
Payment state: UNPAID, PARTIALLY_PAID, PAID, PENDING (a charge attempt is open and resolving on its own), or ERROR (it never resolved; the merchant has to check the gateway).
Free-text note the buyer wrote for the whole order at checkout. Distinct from shippingAddress.instructions (about the address) and cancellation.note (written by an operator). Null when none was given.
Per-rate breakdown of taxTotal: one entry per distinct tax rate on the order, shipping folded into the rate it was taxed at (the org default). Amounts sum to taxTotal; ordered by rate descending.
Goods + order discount as the buyer saw it. Informational; not an addend. Shipping discounts surface as a reduced shippingTotal plus a SHIPPING promotion.
Price list that governed this order's prices, resolved from the buyer's commercial policy at placement and snapshotted. Null when no policy applied to the order.
Segment the buyer belonged to at placement, snapshotted: the individual's on a storefront order, the company's on a purchase order. Null for guests and buyers without a segment.
Where the order is fulfilled from, whatever its shipping type: the point the buyer collects at on PICKUP, the dispatch origin on DELIVERY. Null when placement carried no fulfillment selection.
The transport company the order ships with, when the method offered couriers — decided by the buyer's branch pick at checkout, or assigned by the merchant at dispatch. Null on own-fleet deliveries and pickups.
The courier office the buyer collects at (COURIER_PICKUP) or that does the last mile to shippingAddress (DELIVERY with a destination branch). Null otherwise.
Invoicing details the buyer requested. Null when no invoice was requested. Distinct from buyer.documentType / buyer.documentNumber, which are the buyer's own ID.
Shipments of the order — carrier, tracking and the timestamps behind fulfillmentStatus. Empty while the order is UNFULFILLED; currently at most one element, since an order is prepared and dispatched as a single shipment.
Fiscal document references registered for the order, oldest first. Empty until invoiced; an order split across several facturas carries one element per document.
Every gateway charge attempt on this order, oldest first — declines and errors included. Empty for orders paid without a gateway.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Riqra","colors":{"primary":"#15803D","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/riqra-6746389f/Aa-uIMMYqqxhWO2d/logo/light.svg?fit=max\u0026auto=format\u0026n=Aa-uIMMYqqxhWO2d\u0026q=85\u0026s=08f5ba317750e9cffbfc4fe1c4a68e75","dark":"https://mintcdn.com/riqra-6746389f/Aa-uIMMYqqxhWO2d/logo/dark.svg?fit=max\u0026auto=format\u0026n=Aa-uIMMYqqxhWO2d\u0026q=85\u0026s=4fccb496dc355ca2e389a7c6ea163a42"},"favicon":"https://mintcdn.com/riqra-6746389f/Aa-uIMMYqqxhWO2d/favicon.svg?fit=max\u0026auto=format\u0026n=Aa-uIMMYqqxhWO2d\u0026q=85\u0026s=d6bf656cd9f5aae6bbe2358fa95e06bc","contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"es","href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"riqra-6746389f","hasAudioNarration":false,"actualSubdomain":"riqra-6746389f","customDomains":["docs.riqra.com"],"gitSource":{"type":"github","owner":"riqra","repo":"bitubi","deployBranch":"main","contentDirectory":"platform/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ada8ab8ffa8949d4bb74ee6","collectionId":"7d6bc4c7-6f47-47c7-b7ef-7165c52d2f44","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ada8ab8ffa8949d4bb74ee6"},"entitlements":{},"buildId":"6ada8ab8ffa8949d4bb74ee6","clientVersion":"0.0.3964","searchFilterCounts":[{"language":"es","tag":"Ecommerce","count":121},{"language":"es","tag":"API","count":115},{"language":"es","tag":"Referencia","count":106},{"language":"es","tag":"Plataforma","count":71},{"language":"es","tag":"Panel administrador","count":47},{"language":"es","tag":"Desarrolladores","count":35},{"language":"es","tag":"Aplicaciones","count":33},{"language":"es","tag":"Artículos de interés","count":17},{"language":"es","tag":"Herramientas de marketing digital","count":16},{"language":"es","tag":"Productos","count":14}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/fulfillment/mark-delivered-or-picked-up","slug":"/api-reference/fulfillment/mark-delivered-or-picked-up","pageMetadata":{"title":"Mark delivered (or picked up)","description":"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the `fulfillment:write` scope.","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/fulfillment/deliver","href":"/api-reference/fulfillment/mark-delivered-or-picked-up","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the \", _jsx(_components.code, {\n children: \"fulfillment:write\"\n }), \" scope.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Mark delivered (or picked up)","description":"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the `fulfillment:write` scope.","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/fulfillment/deliver","href":"/api-reference/fulfillment/mark-delivered-or-picked-up","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Fulfillment"],"summary":"Mark delivered (or picked up)","description":"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the `fulfillment:write` scope.","security":["e94b070d-1bc5-4ef0-a3f2-ce85237f70a8"],"parameters":["ab87dfbc-a1e3-4055-ae7f-444557f06a92"],"requestBody":"0d1ced83-d569-4c3f-bfc4-a791841196f2","responses":{"200":"5dd0dc51-6b9c-4cd6-8edc-ceda3bdf2454","400":"dc9d2dea-5714-49a9-9178-42e6bd0857d9","401":"f331bdbb-eefe-45f1-8adb-af620887c661","403":"605e7d3a-94f6-4ddf-b96d-f5a18d7b3892","404":"e5590ef6-3693-40dc-95aa-6cdfa9baeac3","409":"075a0bdd-69e4-4f5c-8083-8117b3d1d4f0","422":"e3de93d0-5ddd-4b2d-951f-b79316d767d0"},"method":"post","type":"path","servers":["8e666894-3acd-42a8-ab6d-a0e3d39cef99"],"path":"/orders/{id}/fulfillment/deliver","baseUrlOptions":["https://api-v2.riqra.com/public/v1"],"title":"Mark delivered (or picked up)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"ab87dfbc-a1e3-4055-ae7f-444557f06a92":{"schema":{"type":"string","format":"uuid","example":"0b2e9f5a-1c3d-4e6f-8a9b-0c1d2e3f4a5b","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"},"required":true,"name":"id","in":"path"}},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"courierId":{"oneOf":[{"type":"string","format":"uuid","description":"UUID of one of the organization's couriers. Assigns it to the order; `carrier` then defaults to the courier's name and `trackingUrl` to its tracking URL template. An order whose courier the buyer chose at checkout keeps it: a different `courierId` or `carrier` fails with `ROUTE_COURIER_LOCKED`.","uniqueKey":"courierId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"UUID of one of the organization's couriers. Assigns it to the order; `carrier` then defaults to the courier's name and `trackingUrl` to its tracking URL template. An order whose courier the buyer chose at checkout keeps it: a different `courierId` or `carrier` fails with `ROUTE_COURIER_LOCKED`.","uniqueKey":"courierId.oneOf.1","typeLabel":"null"}],"uniqueKey":"courierId","typeLabel":"string\u003cuuid> | null"},"carrier":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"description":"Carrier name. Required together with `trackingNumber` unless the order carries a courier, whose name is then used.","uniqueKey":"carrier.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"description":"Carrier name. Required together with `trackingNumber` unless the order carries a courier, whose name is then used.","uniqueKey":"carrier.oneOf.1","typeLabel":"null"}],"uniqueKey":"carrier","typeLabel":"string | null"},"trackingNumber":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"description":"Carrier tracking/guide number. Required together with `carrier`.","uniqueKey":"trackingNumber.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"description":"Carrier tracking/guide number. Required together with `carrier`.","uniqueKey":"trackingNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"trackingNumber","typeLabel":"string | null"},"trackingUrl":{"oneOf":[{"type":"string","maxLength":2000,"format":"uri","description":"URL to track the shipment. Optional.","uniqueKey":"trackingUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","maxLength":2000,"format":"uri","description":"URL to track the shipment. Optional.","uniqueKey":"trackingUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"trackingUrl","typeLabel":"string\u003curi> | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"courierId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","carrier":"\u003cstring>","trackingNumber":"\u003cstring>","trackingUrl":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"5dd0dc51-6b9c-4cd6-8edc-ceda3bdf2454":{"description":"The updated order.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Order UUID. Stable primary key; use it for lookups.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"code":{"type":"string","description":"Display code assigned at creation from the organization's configured prefix and padding (e.g. `#1042`, `P001042`). Never changes after creation.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"status":{"type":"string","enum":["AWAITING_REVIEW","PLACED","CANCELLED"],"description":"Lifecycle status: `PLACED`, `CANCELLED`, or `AWAITING_REVIEW` — a credit order that exceeded the customer's available credit, held until the merchant approves it (then `PLACED`) or rejects it (then `CANCELLED`). An `AWAITING_REVIEW` order cannot be fulfilled, paid or invoiced.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"paymentStatus":{"type":"string","enum":["UNPAID","PARTIALLY_PAID","PAID","PENDING","ERROR"],"description":"Payment state: `UNPAID`, `PARTIALLY_PAID`, `PAID`, `PENDING` (a charge attempt is open and resolving on its own), or `ERROR` (it never resolved; the merchant has to check the gateway).","isRequired":true,"uniqueKey":"paymentStatus","typeLabel":"enum\u003cstring>"},"fulfillmentStatus":{"type":"string","enum":["UNFULFILLED","IN_PROGRESS","FULFILLED","DELIVERED"],"description":"Preparation state, forward-only: `UNFULFILLED` → `IN_PROGRESS` → `FULFILLED` → `DELIVERED`.","isRequired":true,"uniqueKey":"fulfillmentStatus","typeLabel":"enum\u003cstring>"},"source":{"type":"string","enum":["STOREFRONT","PURCHASE_ORDER","MIGRATION","ASSISTED"],"description":"Channel the order came from (currently always `STOREFRONT`).","isRequired":true,"uniqueKey":"source","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the order record was created.","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string"},"updatedAt":{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the order was last modified. Use as the watermark for incremental sync.","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string"},"placedAt":{"oneOf":[{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the customer placed the order. Set by every placement path; null only on legacy rows.","isRequired":true,"uniqueKey":"placedAt.oneOf.0","typeLabel":"string"},{"type":"null","example":"2026-06-30T14:12:00Z","description":"When the customer placed the order. Set by every placement path; null only on legacy rows.","isRequired":true,"uniqueKey":"placedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"placedAt","typeLabel":"string | null"},"cancelledAt":{"oneOf":[{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the order was cancelled. Null unless `status` is `CANCELLED`.","isRequired":true,"uniqueKey":"cancelledAt.oneOf.0","typeLabel":"string"},{"type":"null","example":"2026-06-30T14:12:00Z","description":"When the order was cancelled. Null unless `status` is `CANCELLED`.","isRequired":true,"uniqueKey":"cancelledAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"cancelledAt","typeLabel":"string | null"},"placedAsGuest":{"type":"boolean","description":"The buyer had no session at placement. This is the guest signal — `buyer.customerId` is set either way.","isRequired":true,"uniqueKey":"placedAsGuest","typeLabel":"boolean"},"comment":{"oneOf":[{"type":"string","description":"Free-text note the buyer wrote for the whole order at checkout. Distinct from `shippingAddress.instructions` (about the address) and `cancellation.note` (written by an operator). Null when none was given.","isRequired":true,"uniqueKey":"comment.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text note the buyer wrote for the whole order at checkout. Distinct from `shippingAddress.instructions` (about the address) and `cancellation.note` (written by an operator). Null when none was given.","isRequired":true,"uniqueKey":"comment.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"comment","typeLabel":"string | null"},"currencyCode":{"type":"string","example":"USD","description":"ISO 4217 currency code for all money fields.","isRequired":true,"uniqueKey":"currencyCode","typeLabel":"string"},"subtotal":{"type":"string","example":"1234.56","description":"Net of everything (goods + shipping), post-discount. Equals total − taxTotal. subtotal + taxTotal = total in both tax modes.","isRequired":true,"uniqueKey":"subtotal","typeLabel":"string"},"taxTotal":{"type":"string","example":"1234.56","description":"Aggregate of all taxes on the order.","isRequired":true,"uniqueKey":"taxTotal","typeLabel":"string"},"taxLines":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Tax rate name as the buyer sees it (e.g. IVA, IGV, Exento).","isRequired":true,"uniqueKey":"taxLines.items.[INDEX].name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The tax authority's per-rate fiscal code, when the country has one. Null otherwise.","isRequired":true,"uniqueKey":"taxLines.items.[INDEX].code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The tax authority's per-rate fiscal code, when the country has one. Null otherwise.","isRequired":true,"uniqueKey":"taxLines.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"taxLines.items.[INDEX].code","typeLabel":"string | null"},"ratePercent":{"type":"string","description":"Rate as a decimal percent string. A 0.00 line is a declared exempt amount.","example":"19.00","isRequired":true,"uniqueKey":"taxLines.items.[INDEX].ratePercent","typeLabel":"string"},"base":{"type":"string","example":"1234.56","description":"Net amount this rate applied to (Σ line bases, plus shipping when taxed at it).","isRequired":true,"uniqueKey":"taxLines.items.[INDEX].base","typeLabel":"string"},"amount":{"type":"string","example":"1234.56","description":"Tax at this rate.","isRequired":true,"uniqueKey":"taxLines.items.[INDEX].amount","typeLabel":"string"}},"required":["name","code","ratePercent","base","amount"],"uniqueKey":"taxLines.items.[INDEX]","typeLabel":"object"},"description":"Per-rate breakdown of taxTotal: one entry per distinct tax rate on the order, shipping folded into the rate it was taxed at (the org default). Amounts sum to taxTotal; ordered by rate descending.","isRequired":true,"uniqueKey":"taxLines","typeLabel":"object[]"},"shippingTotal":{"type":"string","example":"1234.56","description":"Shipping charge as the buyer saw it. Informational — already reflected in subtotal/total; not an addend.","isRequired":true,"uniqueKey":"shippingTotal","typeLabel":"string"},"shippingTaxTotal":{"type":"string","example":"1234.56","description":"Tax on the shipping charge, at the org's default rate. Part of taxTotal; 0 on pickup or free shipping.","isRequired":true,"uniqueKey":"shippingTaxTotal","typeLabel":"string"},"discountTotal":{"type":"string","example":"1234.56","description":"Goods + order discount as the buyer saw it. Informational; not an addend. Shipping discounts surface as a reduced shippingTotal plus a SHIPPING promotion.","isRequired":true,"uniqueKey":"discountTotal","typeLabel":"string"},"total":{"type":"string","example":"1234.56","description":"Amount owed: subtotal + taxTotal.","isRequired":true,"uniqueKey":"total","typeLabel":"string"},"priceList":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Price list UUID as resolved at placement.","isRequired":true,"uniqueKey":"priceList.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Price list name snapshotted at placement.","isRequired":true,"uniqueKey":"priceList.oneOf.0.name","typeLabel":"string"}},"required":["id","name"],"description":"Price list that governed this order's prices, resolved from the buyer's commercial policy at placement and snapshotted. Null when no policy applied to the order.","isRequired":true,"uniqueKey":"priceList.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","description":"Price list UUID as resolved at placement."},"name":{"type":"string","description":"Price list name snapshotted at placement."}},"required":["id","name"],"description":"Price list that governed this order's prices, resolved from the buyer's commercial policy at placement and snapshotted. Null when no policy applied to the order.","isRequired":true,"uniqueKey":"priceList.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"priceList","typeLabel":"object | null"},"segment":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Segment UUID as resolved at placement.","isRequired":true,"uniqueKey":"segment.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Segment name snapshotted at placement.","isRequired":true,"uniqueKey":"segment.oneOf.0.name","typeLabel":"string"}},"required":["id","name"],"description":"Segment the buyer belonged to at placement, snapshotted: the individual's on a storefront order, the company's on a purchase order. Null for guests and buyers without a segment.","isRequired":true,"uniqueKey":"segment.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","description":"Segment UUID as resolved at placement."},"name":{"type":"string","description":"Segment name snapshotted at placement."}},"required":["id","name"],"description":"Segment the buyer belonged to at placement, snapshotted: the individual's on a storefront order, the company's on a purchase order. Null for guests and buyers without a segment.","isRequired":true,"uniqueKey":"segment.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"segment","typeLabel":"object | null"},"location":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"Location UUID. Resolvable against `GET /stock/locations`.","isRequired":true,"uniqueKey":"location.oneOf.0.id","typeLabel":"string"},"name":{"type":"string","description":"Location name.","isRequired":true,"uniqueKey":"location.oneOf.0.name","typeLabel":"string"}},"required":["id","name"],"description":"Where the order is fulfilled from, whatever its shipping type: the point the buyer collects at on `PICKUP`, the dispatch origin on `DELIVERY`. Null when placement carried no fulfillment selection.","isRequired":true,"uniqueKey":"location.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"type":"string","description":"Location UUID. Resolvable against `GET /stock/locations`."},"name":{"type":"string","description":"Location name."}},"required":["id","name"],"description":"Where the order is fulfilled from, whatever its shipping type: the point the buyer collects at on `PICKUP`, the dispatch origin on `DELIVERY`. Null when placement carried no fulfillment selection.","isRequired":true,"uniqueKey":"location.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"location","typeLabel":"object | null"},"shippingMethod":{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Shipping method UUID. Null once that method is deleted — `type` and `label` are snapshots and still hold.","isRequired":true,"uniqueKey":"shippingMethod.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Shipping method UUID. Null once that method is deleted — `type` and `label` are snapshots and still hold.","isRequired":true,"uniqueKey":"shippingMethod.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingMethod.id","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","enum":["DELIVERY","PICKUP","COURIER_PICKUP",null],"description":"`DELIVERY` (ship to address), `PICKUP` (collect at `location`) or `COURIER_PICKUP` (collect at `courierBranch`). Snapshotted at placement. Null only on orders placed with no shipping rail at all. Treat unknown values as a shipped order — the set may grow.","isRequired":true,"uniqueKey":"shippingMethod.type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["DELIVERY","PICKUP","COURIER_PICKUP",null],"description":"`DELIVERY` (ship to address), `PICKUP` (collect at `location`) or `COURIER_PICKUP` (collect at `courierBranch`). Snapshotted at placement. Null only on orders placed with no shipping rail at all. Treat unknown values as a shipped order — the set may grow.","isRequired":true,"uniqueKey":"shippingMethod.type.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingMethod.type","typeLabel":"enum\u003cstring> | null"},"label":{"oneOf":[{"type":"string","description":"Shipping method name chosen at checkout, snapshotted.","isRequired":true,"uniqueKey":"shippingMethod.label.oneOf.0","typeLabel":"string"},{"type":"null","description":"Shipping method name chosen at checkout, snapshotted.","isRequired":true,"uniqueKey":"shippingMethod.label.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingMethod.label","typeLabel":"string | null"},"payment":{"type":"string","enum":["PREPAID","COLLECT"],"description":"Who pays the courier. `PREPAID`: the merchant charged shipping at checkout (`shippingTotal`). `COLLECT` (\"flete por pagar\"): the buyer pays the courier on receipt or collection, so `shippingTotal` is 0.","isRequired":true,"uniqueKey":"shippingMethod.payment","typeLabel":"enum\u003cstring>"}},"required":["id","type","label","payment"],"description":"The shipping method snapshot. `type` is the delivery/pickup discriminator.","isRequired":true,"uniqueKey":"shippingMethod","typeLabel":"object"},"courier":{"oneOf":[{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Courier UUID. Null once the courier is deleted — `name` is a snapshot and still holds.","isRequired":true,"uniqueKey":"courier.oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Courier UUID. Null once the courier is deleted — `name` is a snapshot and still holds.","isRequired":true,"uniqueKey":"courier.oneOf.0.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courier.oneOf.0.id","typeLabel":"string | null"},"name":{"type":"string","description":"Courier name at placement or dispatch, snapshotted.","isRequired":true,"uniqueKey":"courier.oneOf.0.name","typeLabel":"string"}},"required":["id","name"],"description":"The transport company the order ships with, when the method offered couriers — decided by the buyer's branch pick at checkout, or assigned by the merchant at dispatch. Null on own-fleet deliveries and pickups.","isRequired":true,"uniqueKey":"courier.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"oneOf":[{"type":"string","description":"Courier UUID. Null once the courier is deleted — `name` is a snapshot and still holds."},{"type":"null","description":"Courier UUID. Null once the courier is deleted — `name` is a snapshot and still holds."}]},"name":{"type":"string","description":"Courier name at placement or dispatch, snapshotted."}},"required":["id","name"],"description":"The transport company the order ships with, when the method offered couriers — decided by the buyer's branch pick at checkout, or assigned by the merchant at dispatch. Null on own-fleet deliveries and pickups.","isRequired":true,"uniqueKey":"courier.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courier","typeLabel":"object | null"},"courierBranch":{"oneOf":[{"type":"object","properties":{"id":{"oneOf":[{"type":"string","description":"Courier branch UUID. Null once the branch is deleted — the fields beside it are snapshots.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Courier branch UUID. Null once the branch is deleted — the fields beside it are snapshots.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.id","typeLabel":"string | null"},"name":{"type":"string","description":"Branch (agencia) name, snapshotted.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.name","typeLabel":"string"},"addressLine":{"oneOf":[{"type":"string","description":"Branch street address, snapshotted.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.addressLine.oneOf.0","typeLabel":"string"},{"type":"null","description":"Branch street address, snapshotted.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.addressLine.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.addressLine","typeLabel":"string | null"},"geoLevel1":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel1.oneOf.0.name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel1.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel1.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel1.oneOf.0.code","typeLabel":"string | null"}},"required":["name","code"],"description":"Broadest administrative division of the branch. `COURIER_PICKUP` only.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel1.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Broadest administrative division of the branch. `COURIER_PICKUP` only.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel1.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel1","typeLabel":"object | null"},"geoLevel2":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel2.oneOf.0.name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel2.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel2.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel2.oneOf.0.code","typeLabel":"string | null"}},"required":["name","code"],"description":"Second administrative division of the branch. `COURIER_PICKUP` only.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel2.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Second administrative division of the branch. `COURIER_PICKUP` only.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel2.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel2","typeLabel":"object | null"},"geoLevel3":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel3.oneOf.0.name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel3.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel3.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel3.oneOf.0.code","typeLabel":"string | null"}},"required":["name","code"],"description":"Third administrative division of the branch. `COURIER_PICKUP` only.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel3.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Third administrative division of the branch. `COURIER_PICKUP` only.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel3.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel3","typeLabel":"object | null"},"geoLevel4":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel4.oneOf.0.name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel4.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel4.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel4.oneOf.0.code","typeLabel":"string | null"}},"required":["name","code"],"description":"Fourth administrative division of the branch. `COURIER_PICKUP` only.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel4.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Fourth administrative division of the branch. `COURIER_PICKUP` only.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel4.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch.oneOf.0.geoLevel4","typeLabel":"object | null"}},"required":["id","name","addressLine","geoLevel1","geoLevel2","geoLevel3","geoLevel4"],"description":"The courier office the buyer collects at (`COURIER_PICKUP`) or that does the last mile to `shippingAddress` (`DELIVERY` with a destination branch). Null otherwise.","isRequired":true,"uniqueKey":"courierBranch.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"id":{"oneOf":[{"type":"string","description":"Courier branch UUID. Null once the branch is deleted — the fields beside it are snapshots."},{"type":"null","description":"Courier branch UUID. Null once the branch is deleted — the fields beside it are snapshots."}]},"name":{"type":"string","description":"Branch (agencia) name, snapshotted."},"addressLine":{"oneOf":[{"type":"string","description":"Branch street address, snapshotted."},{"type":"null","description":"Branch street address, snapshotted."}]},"geoLevel1":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Broadest administrative division of the branch. `COURIER_PICKUP` only."},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Broadest administrative division of the branch. `COURIER_PICKUP` only."}]},"geoLevel2":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Second administrative division of the branch. `COURIER_PICKUP` only."},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Second administrative division of the branch. `COURIER_PICKUP` only."}]},"geoLevel3":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Third administrative division of the branch. `COURIER_PICKUP` only."},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Third administrative division of the branch. `COURIER_PICKUP` only."}]},"geoLevel4":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Fourth administrative division of the branch. `COURIER_PICKUP` only."},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Fourth administrative division of the branch. `COURIER_PICKUP` only."}]}},"required":["id","name","addressLine","geoLevel1","geoLevel2","geoLevel3","geoLevel4"],"description":"The courier office the buyer collects at (`COURIER_PICKUP`) or that does the last mile to `shippingAddress` (`DELIVERY` with a destination branch). Null otherwise.","isRequired":true,"uniqueKey":"courierBranch.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"courierBranch","typeLabel":"object | null"},"buyer":{"type":"object","properties":{"firstName":{"type":"string","description":"First name the buyer gave at checkout, snapshotted.","isRequired":true,"uniqueKey":"buyer.firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Last name the buyer gave at checkout, snapshotted.","isRequired":true,"uniqueKey":"buyer.lastName","typeLabel":"string"},"email":{"oneOf":[{"type":"string","description":"Buyer email as given at checkout, if provided.","isRequired":true,"uniqueKey":"buyer.email.oneOf.0","typeLabel":"string"},{"type":"null","description":"Buyer email as given at checkout, if provided.","isRequired":true,"uniqueKey":"buyer.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"buyer.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","description":"Buyer phone in E.164 format (e.g. `+51999100001`) as given at checkout, if provided.","isRequired":true,"uniqueKey":"buyer.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Buyer phone in E.164 format (e.g. `+51999100001`) as given at checkout, if provided.","isRequired":true,"uniqueKey":"buyer.phone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"buyer.phone","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","description":"The buyer's merchant-assigned customer code at placement, snapshotted. In a code-login store this can be the only buyer identifier — email and phone may both be absent. Null on guest checkouts and orders placed before the buyer had a code.","isRequired":true,"uniqueKey":"buyer.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The buyer's merchant-assigned customer code at placement, snapshotted. In a code-login store this can be the only buyer identifier — email and phone may both be absent. Null on guest checkouts and orders placed before the buyer had a code.","isRequired":true,"uniqueKey":"buyer.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"buyer.code","typeLabel":"string | null"},"customerId":{"oneOf":[{"type":"string","description":"Registered customer UUID, and the value `GET /orders`'s `customerId` filter takes. This is the live link; the fields beside it are frozen at checkout and may no longer match what that customer record says today. Set on every order — a guest checkout finds or creates a customer record from the checkout email, so it is not a guest signal; `placedAsGuest` is. Null only on legacy orders and once the customer is deleted.","isRequired":true,"uniqueKey":"buyer.customerId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Registered customer UUID, and the value `GET /orders`'s `customerId` filter takes. This is the live link; the fields beside it are frozen at checkout and may no longer match what that customer record says today. Set on every order — a guest checkout finds or creates a customer record from the checkout email, so it is not a guest signal; `placedAsGuest` is. Null only on legacy orders and once the customer is deleted.","isRequired":true,"uniqueKey":"buyer.customerId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"buyer.customerId","typeLabel":"string | null"},"documentType":{"oneOf":[{"type":"string","description":"Buyer's personal ID document type (e.g. `DNI`). Not the invoice document — that is `billing.documentType`. Null if not collected.","isRequired":true,"uniqueKey":"buyer.documentType.oneOf.0","typeLabel":"string"},{"type":"null","description":"Buyer's personal ID document type (e.g. `DNI`). Not the invoice document — that is `billing.documentType`. Null if not collected.","isRequired":true,"uniqueKey":"buyer.documentType.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"buyer.documentType","typeLabel":"string | null"},"documentNumber":{"oneOf":[{"type":"string","description":"Buyer's personal ID document number. Null if not collected.","isRequired":true,"uniqueKey":"buyer.documentNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Buyer's personal ID document number. Null if not collected.","isRequired":true,"uniqueKey":"buyer.documentNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"buyer.documentNumber","typeLabel":"string | null"}},"required":["firstName","lastName","email","phone","code","customerId","documentType","documentNumber"],"description":"Who placed the order, as they identified themselves at checkout.","isRequired":true,"uniqueKey":"buyer","typeLabel":"object"},"billing":{"oneOf":[{"type":"object","properties":{"documentType":{"oneOf":[{"type":"string","description":"Invoice document type requested by the buyer (e.g. `FACTURA`).","isRequired":true,"uniqueKey":"billing.oneOf.0.documentType.oneOf.0","typeLabel":"string"},{"type":"null","description":"Invoice document type requested by the buyer (e.g. `FACTURA`).","isRequired":true,"uniqueKey":"billing.oneOf.0.documentType.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.documentType","typeLabel":"string | null"},"documentNumber":{"oneOf":[{"type":"string","description":"Tax ID for the invoice (e.g. a `RUC` number).","isRequired":true,"uniqueKey":"billing.oneOf.0.documentNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Tax ID for the invoice (e.g. a `RUC` number).","isRequired":true,"uniqueKey":"billing.oneOf.0.documentNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.documentNumber","typeLabel":"string | null"},"legalName":{"oneOf":[{"type":"string","description":"Legal name for the invoice.","isRequired":true,"uniqueKey":"billing.oneOf.0.legalName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Legal name for the invoice.","isRequired":true,"uniqueKey":"billing.oneOf.0.legalName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.legalName","typeLabel":"string | null"},"businessActivity":{"oneOf":[{"type":"string","description":"Business activity (giro) for Chilean invoices.","isRequired":true,"uniqueKey":"billing.oneOf.0.businessActivity.oneOf.0","typeLabel":"string"},{"type":"null","description":"Business activity (giro) for Chilean invoices.","isRequired":true,"uniqueKey":"billing.oneOf.0.businessActivity.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.businessActivity","typeLabel":"string | null"},"geoDivisionId":{"oneOf":[{"type":"string","description":"Selected fiscal geographic division; a Chilean comuna.","isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Selected fiscal geographic division; a Chilean comuna.","isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionId","typeLabel":"string | null"},"geoDivisionName":{"oneOf":[{"type":"string","description":"Fiscal comuna name frozen when the order was placed.","isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Fiscal comuna name frozen when the order was placed.","isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionName","typeLabel":"string | null"},"geoDivisionCode":{"oneOf":[{"type":"string","description":"Official fiscal comuna code frozen when the order was placed.","isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Official fiscal comuna code frozen when the order was placed.","isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionCode","typeLabel":"string | null"},"geoDivisionDisplayPath":{"oneOf":[{"type":"string","description":"Fiscal comuna and its administrative ancestors, frozen at placement.","isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionDisplayPath.oneOf.0","typeLabel":"string"},{"type":"null","description":"Fiscal comuna and its administrative ancestors, frozen at placement.","isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionDisplayPath.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.geoDivisionDisplayPath","typeLabel":"string | null"},"addressLine":{"oneOf":[{"type":"string","description":"Fiscal address for the invoice.","isRequired":true,"uniqueKey":"billing.oneOf.0.addressLine.oneOf.0","typeLabel":"string"},{"type":"null","description":"Fiscal address for the invoice.","isRequired":true,"uniqueKey":"billing.oneOf.0.addressLine.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.oneOf.0.addressLine","typeLabel":"string | null"}},"required":["documentType","documentNumber","legalName","businessActivity","geoDivisionId","geoDivisionName","geoDivisionCode","geoDivisionDisplayPath","addressLine"],"description":"Invoicing details the buyer requested. Null when no invoice was requested. Distinct from `buyer.documentType` / `buyer.documentNumber`, which are the buyer's own ID.","isRequired":true,"uniqueKey":"billing.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"documentType":{"oneOf":[{"type":"string","description":"Invoice document type requested by the buyer (e.g. `FACTURA`)."},{"type":"null","description":"Invoice document type requested by the buyer (e.g. `FACTURA`)."}]},"documentNumber":{"oneOf":[{"type":"string","description":"Tax ID for the invoice (e.g. a `RUC` number)."},{"type":"null","description":"Tax ID for the invoice (e.g. a `RUC` number)."}]},"legalName":{"oneOf":[{"type":"string","description":"Legal name for the invoice."},{"type":"null","description":"Legal name for the invoice."}]},"businessActivity":{"oneOf":[{"type":"string","description":"Business activity (giro) for Chilean invoices."},{"type":"null","description":"Business activity (giro) for Chilean invoices."}]},"geoDivisionId":{"oneOf":[{"type":"string","description":"Selected fiscal geographic division; a Chilean comuna."},{"type":"null","description":"Selected fiscal geographic division; a Chilean comuna."}]},"geoDivisionName":{"oneOf":[{"type":"string","description":"Fiscal comuna name frozen when the order was placed."},{"type":"null","description":"Fiscal comuna name frozen when the order was placed."}]},"geoDivisionCode":{"oneOf":[{"type":"string","description":"Official fiscal comuna code frozen when the order was placed."},{"type":"null","description":"Official fiscal comuna code frozen when the order was placed."}]},"geoDivisionDisplayPath":{"oneOf":[{"type":"string","description":"Fiscal comuna and its administrative ancestors, frozen at placement."},{"type":"null","description":"Fiscal comuna and its administrative ancestors, frozen at placement."}]},"addressLine":{"oneOf":[{"type":"string","description":"Fiscal address for the invoice."},{"type":"null","description":"Fiscal address for the invoice."}]}},"required":["documentType","documentNumber","legalName","businessActivity","geoDivisionId","geoDivisionName","geoDivisionCode","geoDivisionDisplayPath","addressLine"],"description":"Invoicing details the buyer requested. Null when no invoice was requested. Distinct from `buyer.documentType` / `buyer.documentNumber`, which are the buyer's own ID.","isRequired":true,"uniqueKey":"billing.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing","typeLabel":"object | null"},"shippingAddress":{"oneOf":[{"type":"object","properties":{"addressLine1":{"oneOf":[{"type":"string","description":"Primary delivery street address.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.addressLine1.oneOf.0","typeLabel":"string"},{"type":"null","description":"Primary delivery street address.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.addressLine1.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.addressLine1","typeLabel":"string | null"},"addressLine2":{"oneOf":[{"type":"string","description":"Secondary address line (apartment, reference). Optional.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.addressLine2.oneOf.0","typeLabel":"string"},{"type":"null","description":"Secondary address line (apartment, reference). Optional.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.addressLine2.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.addressLine2","typeLabel":"string | null"},"geoLevel1":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel1.oneOf.0.name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel1.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel1.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel1.oneOf.0.code","typeLabel":"string | null"}},"required":["name","code"],"description":"Broadest administrative division of the address (e.g. departamento in Peru).","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel1.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Broadest administrative division of the address (e.g. departamento in Peru).","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel1.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel1","typeLabel":"object | null"},"geoLevel2":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel2.oneOf.0.name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel2.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel2.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel2.oneOf.0.code","typeLabel":"string | null"}},"required":["name","code"],"description":"Second administrative division (e.g. provincia in Peru). Null when the country uses fewer levels.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel2.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Second administrative division (e.g. provincia in Peru). Null when the country uses fewer levels.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel2.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel2","typeLabel":"object | null"},"geoLevel3":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel3.oneOf.0.name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel3.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel3.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel3.oneOf.0.code","typeLabel":"string | null"}},"required":["name","code"],"description":"Third administrative division (e.g. distrito in Peru). Null when the country uses fewer levels.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel3.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Third administrative division (e.g. distrito in Peru). Null when the country uses fewer levels.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel3.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel3","typeLabel":"object | null"},"geoLevel4":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel4.oneOf.0.name","typeLabel":"string"},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel4.oneOf.0.code.oneOf.0","typeLabel":"string"},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel4.oneOf.0.code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel4.oneOf.0.code","typeLabel":"string | null"}},"required":["name","code"],"description":"Fourth administrative division. Null when the country uses fewer levels.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel4.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Fourth administrative division. Null when the country uses fewer levels.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel4.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.geoLevel4","typeLabel":"object | null"},"coordinates":{"oneOf":[{"type":"object","properties":{"latitude":{"type":"number","example":-12.046374,"description":"Latitude in decimal degrees (WGS84).","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.coordinates.oneOf.0.latitude","typeLabel":"number"},"longitude":{"type":"number","example":-77.042793,"description":"Longitude in decimal degrees (WGS84).","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.coordinates.oneOf.0.longitude","typeLabel":"number"}},"required":["latitude","longitude"],"description":"Confirmed drop-off point. Null when the buyer didn't pin one.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.coordinates.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"latitude":{"type":"number","example":-12.046374,"description":"Latitude in decimal degrees (WGS84)."},"longitude":{"type":"number","example":-77.042793,"description":"Longitude in decimal degrees (WGS84)."}},"required":["latitude","longitude"],"description":"Confirmed drop-off point. Null when the buyer didn't pin one.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.coordinates.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.coordinates","typeLabel":"object | null"},"recipientName":{"oneOf":[{"type":"string","description":"Person receiving the delivery, if different from the buyer.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.recipientName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Person receiving the delivery, if different from the buyer.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.recipientName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.recipientName","typeLabel":"string | null"},"recipientPhone":{"oneOf":[{"type":"string","description":"Recipient phone in E.164 format, if provided.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.recipientPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Recipient phone in E.164 format, if provided.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.recipientPhone.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.recipientPhone","typeLabel":"string | null"},"instructions":{"oneOf":[{"type":"string","description":"Free-text delivery notes from the buyer.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.instructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text delivery notes from the buyer.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.instructions.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.instructions","typeLabel":"string | null"},"customerAddressId":{"oneOf":[{"type":"string","description":"UUID of the customer's saved address this snapshot was copied from. Null for guest or one-off addresses. The snapshot stays frozen even if that address later changes.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.customerAddressId.oneOf.0","typeLabel":"string"},{"type":"null","description":"UUID of the customer's saved address this snapshot was copied from. Null for guest or one-off addresses. The snapshot stays frozen even if that address later changes.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.customerAddressId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress.oneOf.0.customerAddressId","typeLabel":"string | null"}},"required":["addressLine1","addressLine2","geoLevel1","geoLevel2","geoLevel3","geoLevel4","coordinates","recipientName","recipientPhone","instructions","customerAddressId"],"description":"Delivery address snapshot. Null on `PICKUP` and `COURIER_PICKUP` orders.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"addressLine1":{"oneOf":[{"type":"string","description":"Primary delivery street address."},{"type":"null","description":"Primary delivery street address."}]},"addressLine2":{"oneOf":[{"type":"string","description":"Secondary address line (apartment, reference). Optional."},{"type":"null","description":"Secondary address line (apartment, reference). Optional."}]},"geoLevel1":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Broadest administrative division of the address (e.g. departamento in Peru)."},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Broadest administrative division of the address (e.g. departamento in Peru)."}]},"geoLevel2":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Second administrative division (e.g. provincia in Peru). Null when the country uses fewer levels."},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Second administrative division (e.g. provincia in Peru). Null when the country uses fewer levels."}]},"geoLevel3":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Third administrative division (e.g. distrito in Peru). Null when the country uses fewer levels."},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Third administrative division (e.g. distrito in Peru). Null when the country uses fewer levels."}]},"geoLevel4":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Fourth administrative division. Null when the country uses fewer levels."},{"type":"null","properties":{"name":{"type":"string","example":"Miraflores","description":"Division name."},"code":{"oneOf":[{"type":"string","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."},{"type":"null","example":"150122","description":"Official code the country's statistical agency assigns to this division — in Peru the INEI ubigeo, whose digits accumulate down the levels (`15` departamento, `1501` provincia, `150122` distrito). Null for countries that publish no code system."}]}},"required":["name","code"],"description":"Fourth administrative division. Null when the country uses fewer levels."}]},"coordinates":{"oneOf":[{"type":"object","properties":{"latitude":{"type":"number","example":-12.046374,"description":"Latitude in decimal degrees (WGS84)."},"longitude":{"type":"number","example":-77.042793,"description":"Longitude in decimal degrees (WGS84)."}},"required":["latitude","longitude"],"description":"Confirmed drop-off point. Null when the buyer didn't pin one."},{"type":"null","properties":{"latitude":{"type":"number","example":-12.046374,"description":"Latitude in decimal degrees (WGS84)."},"longitude":{"type":"number","example":-77.042793,"description":"Longitude in decimal degrees (WGS84)."}},"required":["latitude","longitude"],"description":"Confirmed drop-off point. Null when the buyer didn't pin one."}]},"recipientName":{"oneOf":[{"type":"string","description":"Person receiving the delivery, if different from the buyer."},{"type":"null","description":"Person receiving the delivery, if different from the buyer."}]},"recipientPhone":{"oneOf":[{"type":"string","description":"Recipient phone in E.164 format, if provided."},{"type":"null","description":"Recipient phone in E.164 format, if provided."}]},"instructions":{"oneOf":[{"type":"string","description":"Free-text delivery notes from the buyer."},{"type":"null","description":"Free-text delivery notes from the buyer."}]},"customerAddressId":{"oneOf":[{"type":"string","description":"UUID of the customer's saved address this snapshot was copied from. Null for guest or one-off addresses. The snapshot stays frozen even if that address later changes."},{"type":"null","description":"UUID of the customer's saved address this snapshot was copied from. Null for guest or one-off addresses. The snapshot stays frozen even if that address later changes."}]}},"required":["addressLine1","addressLine2","geoLevel1","geoLevel2","geoLevel3","geoLevel4","coordinates","recipientName","recipientPhone","instructions","customerAddressId"],"description":"Delivery address snapshot. Null on `PICKUP` and `COURIER_PICKUP` orders.","isRequired":true,"uniqueKey":"shippingAddress.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"shippingAddress","typeLabel":"object | null"},"payment":{"type":"object","properties":{"methodKind":{"oneOf":[{"type":"string","enum":["MANUAL","CARD","CREDIT","CASH","WALLET",null],"description":"How the chosen method settles: `MANUAL` (out-of-band), `CARD` (gateway charge), `CASH` (deferred gateway code), `WALLET` (gateway wallet charge, e.g. Yape) or `CREDIT` (the buyer's credit line).","isRequired":true,"uniqueKey":"payment.methodKind.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["MANUAL","CARD","CREDIT","CASH","WALLET",null],"description":"How the chosen method settles: `MANUAL` (out-of-band), `CARD` (gateway charge), `CASH` (deferred gateway code), `WALLET` (gateway wallet charge, e.g. Yape) or `CREDIT` (the buyer's credit line).","isRequired":true,"uniqueKey":"payment.methodKind.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.methodKind","typeLabel":"enum\u003cstring> | null"},"methodName":{"oneOf":[{"type":"string","description":"Payment method the buyer chose at checkout, snapshotted.","isRequired":true,"uniqueKey":"payment.methodName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Payment method the buyer chose at checkout, snapshotted.","isRequired":true,"uniqueKey":"payment.methodName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.methodName","typeLabel":"string | null"},"paidVia":{"oneOf":[{"type":"string","enum":["CARD","CASH","BANK_TRANSFER","CARD_OFFLINE","YAPE","OTHER",null],"description":"Channel the money was actually received through. Set when the merchant records a payment or a card charge succeeds, so it can legitimately differ from `methodName` — a buyer picks a transfer, the merchant records `CASH`. Null while nothing is received.","isRequired":true,"uniqueKey":"payment.paidVia.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["CARD","CASH","BANK_TRANSFER","CARD_OFFLINE","YAPE","OTHER",null],"description":"Channel the money was actually received through. Set when the merchant records a payment or a card charge succeeds, so it can legitimately differ from `methodName` — a buyer picks a transfer, the merchant records `CASH`. Null while nothing is received.","isRequired":true,"uniqueKey":"payment.paidVia.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.paidVia","typeLabel":"enum\u003cstring> | null"},"installments":{"oneOf":[{"type":"integer","example":12,"description":"Instalment count (`cuotas`) on the attempt in flight — rewritten on every retry, whether or not it was approved. For the approved plan read the `SUCCESS` entry in `transactions`. Null for a single payment.","isRequired":true,"uniqueKey":"payment.installments.oneOf.0","typeLabel":"integer"},{"type":"null","example":12,"description":"Instalment count (`cuotas`) on the attempt in flight — rewritten on every retry, whether or not it was approved. For the approved plan read the `SUCCESS` entry in `transactions`. Null for a single payment.","isRequired":true,"uniqueKey":"payment.installments.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.installments","typeLabel":"integer | null"},"installmentsInterest":{"oneOf":[{"type":"string","enum":["WITH_INTEREST","WITHOUT_INTEREST",null],"description":"Whether the in-flight instalment plan carries issuer interest. Null when there is no plan.","isRequired":true,"uniqueKey":"payment.installmentsInterest.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["WITH_INTEREST","WITHOUT_INTEREST",null],"description":"Whether the in-flight instalment plan carries issuer interest. Null when there is no plan.","isRequired":true,"uniqueKey":"payment.installmentsInterest.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.installmentsInterest","typeLabel":"enum\u003cstring> | null"},"reference":{"oneOf":[{"type":"string","description":"Buyer-supplied reconciliation reference (transfer/voucher id).","isRequired":true,"uniqueKey":"payment.reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Buyer-supplied reconciliation reference (transfer/voucher id).","isRequired":true,"uniqueKey":"payment.reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.reference","typeLabel":"string | null"},"paidAt":{"oneOf":[{"type":"string","example":"2026-06-30T14:12:00Z","description":"When payment was recorded. Null while unpaid.","isRequired":true,"uniqueKey":"payment.paidAt.oneOf.0","typeLabel":"string"},{"type":"null","example":"2026-06-30T14:12:00Z","description":"When payment was recorded. Null while unpaid.","isRequired":true,"uniqueKey":"payment.paidAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"payment.paidAt","typeLabel":"string | null"},"amountPaid":{"type":"string","example":"1234.56","description":"Amount recorded as paid so far.","isRequired":true,"uniqueKey":"payment.amountPaid","typeLabel":"string"}},"required":["methodKind","methodName","paidVia","installments","installmentsInterest","reference","paidAt","amountPaid"],"description":"The method the buyer chose and what has been received against `paymentStatus`. Per-attempt gateway facts live in `transactions`.","isRequired":true,"uniqueKey":"payment","typeLabel":"object"},"cancellation":{"oneOf":[{"type":"object","properties":{"reason":{"oneOf":[{"type":"string","description":"Why the order was cancelled: an operator code (`CUSTOMER`, `INVENTORY`, `FRAUD`, `STAFF_ERROR`, `OTHER`, `REVIEW_REJECTED`) or an automatic payment cancel (`PAYMENT_EXPIRED`, and on older orders `PAYMENT_DECLINED` / `PAYMENT_3DS_UNSUPPORTED`). Migrated orders may carry the source platform's own text. Treat unknown values as `OTHER` — the set grows.","isRequired":true,"uniqueKey":"cancellation.oneOf.0.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the order was cancelled: an operator code (`CUSTOMER`, `INVENTORY`, `FRAUD`, `STAFF_ERROR`, `OTHER`, `REVIEW_REJECTED`) or an automatic payment cancel (`PAYMENT_EXPIRED`, and on older orders `PAYMENT_DECLINED` / `PAYMENT_3DS_UNSUPPORTED`). Migrated orders may carry the source platform's own text. Treat unknown values as `OTHER` — the set grows.","isRequired":true,"uniqueKey":"cancellation.oneOf.0.reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"cancellation.oneOf.0.reason","typeLabel":"string | null"},"note":{"oneOf":[{"type":"string","description":"Free-text note the operator wrote when cancelling. Internal — never shown to the buyer. Null when none was given.","isRequired":true,"uniqueKey":"cancellation.oneOf.0.note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free-text note the operator wrote when cancelling. Internal — never shown to the buyer. Null when none was given.","isRequired":true,"uniqueKey":"cancellation.oneOf.0.note.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"cancellation.oneOf.0.note","typeLabel":"string | null"},"byMemberId":{"oneOf":[{"type":"string","description":"Member UUID of the operator who cancelled. Null for automatic payment-failure cancels, for cancellations made through this API (a key is the organization, not a person), and once that member is removed — `byName` still holds.","isRequired":true,"uniqueKey":"cancellation.oneOf.0.byMemberId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Member UUID of the operator who cancelled. Null for automatic payment-failure cancels, for cancellations made through this API (a key is the organization, not a person), and once that member is removed — `byName` still holds.","isRequired":true,"uniqueKey":"cancellation.oneOf.0.byMemberId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"cancellation.oneOf.0.byMemberId","typeLabel":"string | null"},"byName":{"oneOf":[{"type":"string","description":"Operator name, snapshotted at cancellation time. Null when no person cancelled.","isRequired":true,"uniqueKey":"cancellation.oneOf.0.byName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Operator name, snapshotted at cancellation time. Null when no person cancelled.","isRequired":true,"uniqueKey":"cancellation.oneOf.0.byName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"cancellation.oneOf.0.byName","typeLabel":"string | null"}},"required":["reason","note","byMemberId","byName"],"description":"Why and by whom the order was cancelled. Null unless `status` is `CANCELLED`.","isRequired":true,"uniqueKey":"cancellation.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"reason":{"oneOf":[{"type":"string","description":"Why the order was cancelled: an operator code (`CUSTOMER`, `INVENTORY`, `FRAUD`, `STAFF_ERROR`, `OTHER`, `REVIEW_REJECTED`) or an automatic payment cancel (`PAYMENT_EXPIRED`, and on older orders `PAYMENT_DECLINED` / `PAYMENT_3DS_UNSUPPORTED`). Migrated orders may carry the source platform's own text. Treat unknown values as `OTHER` — the set grows."},{"type":"null","description":"Why the order was cancelled: an operator code (`CUSTOMER`, `INVENTORY`, `FRAUD`, `STAFF_ERROR`, `OTHER`, `REVIEW_REJECTED`) or an automatic payment cancel (`PAYMENT_EXPIRED`, and on older orders `PAYMENT_DECLINED` / `PAYMENT_3DS_UNSUPPORTED`). Migrated orders may carry the source platform's own text. Treat unknown values as `OTHER` — the set grows."}]},"note":{"oneOf":[{"type":"string","description":"Free-text note the operator wrote when cancelling. Internal — never shown to the buyer. Null when none was given."},{"type":"null","description":"Free-text note the operator wrote when cancelling. Internal — never shown to the buyer. Null when none was given."}]},"byMemberId":{"oneOf":[{"type":"string","description":"Member UUID of the operator who cancelled. Null for automatic payment-failure cancels, for cancellations made through this API (a key is the organization, not a person), and once that member is removed — `byName` still holds."},{"type":"null","description":"Member UUID of the operator who cancelled. Null for automatic payment-failure cancels, for cancellations made through this API (a key is the organization, not a person), and once that member is removed — `byName` still holds."}]},"byName":{"oneOf":[{"type":"string","description":"Operator name, snapshotted at cancellation time. Null when no person cancelled."},{"type":"null","description":"Operator name, snapshotted at cancellation time. Null when no person cancelled."}]}},"required":["reason","note","byMemberId","byName"],"description":"Why and by whom the order was cancelled. Null unless `status` is `CANCELLED`.","isRequired":true,"uniqueKey":"cancellation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"cancellation","typeLabel":"object | null"},"fulfillments":{"type":"array","items":{"type":"object","properties":{"carrier":{"oneOf":[{"type":"string","description":"Carrier handling the shipment. Delivery orders only.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].carrier.oneOf.0","typeLabel":"string"},{"type":"null","description":"Carrier handling the shipment. Delivery orders only.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].carrier.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].carrier","typeLabel":"string | null"},"trackingNumber":{"oneOf":[{"type":"string","description":"Carrier tracking/guide number. Delivery orders only.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].trackingNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Carrier tracking/guide number. Delivery orders only.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].trackingNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].trackingNumber","typeLabel":"string | null"},"trackingUrl":{"oneOf":[{"type":"string","description":"URL to track the shipment. Delivery orders only.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].trackingUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL to track the shipment. Delivery orders only.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].trackingUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].trackingUrl","typeLabel":"string | null"},"preparingAt":{"oneOf":[{"type":"string","example":"2026-06-30T14:12:00Z","description":"When preparation started. Null when it was skipped.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].preparingAt.oneOf.0","typeLabel":"string"},{"type":"null","example":"2026-06-30T14:12:00Z","description":"When preparation started. Null when it was skipped.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].preparingAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].preparingAt","typeLabel":"string | null"},"fulfilledAt":{"oneOf":[{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the shipment was dispatched. Null until then.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].fulfilledAt.oneOf.0","typeLabel":"string"},{"type":"null","example":"2026-06-30T14:12:00Z","description":"When the shipment was dispatched. Null until then.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].fulfilledAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].fulfilledAt","typeLabel":"string | null"},"deliveredAt":{"oneOf":[{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the shipment was delivered. Null until then.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].deliveredAt.oneOf.0","typeLabel":"string"},{"type":"null","example":"2026-06-30T14:12:00Z","description":"When the shipment was delivered. Null until then.","isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].deliveredAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"fulfillments.items.[INDEX].deliveredAt","typeLabel":"string | null"}},"required":["carrier","trackingNumber","trackingUrl","preparingAt","fulfilledAt","deliveredAt"],"uniqueKey":"fulfillments.items.[INDEX]","typeLabel":"object"},"description":"Shipments of the order — carrier, tracking and the timestamps behind `fulfillmentStatus`. Empty while the order is `UNFULFILLED`; currently at most one element, since an order is prepared and dispatched as a single shipment.","isRequired":true,"uniqueKey":"fulfillments","typeLabel":"object[]"},"invoiceStatus":{"type":"string","enum":["NOT_INVOICED","INVOICED"],"description":"Whether the order carries at least one registered fiscal document. Independent of `status`, `paymentStatus`, and `fulfillmentStatus`.","isRequired":true,"uniqueKey":"invoiceStatus","typeLabel":"enum\u003cstring>"},"invoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Invoice UUID. Use it to address this specific invoice.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].id","typeLabel":"string"},"number":{"type":"string","description":"External invoice number as the issuer formats it.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].number","typeLabel":"string"},"issuedAt":{"oneOf":[{"type":"string","example":"2026-06-30T14:12:00Z","description":"Fiscal issuance date reported by the issuer. Null when not reported.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].issuedAt.oneOf.0","typeLabel":"string"},{"type":"null","example":"2026-06-30T14:12:00Z","description":"Fiscal issuance date reported by the issuer. Null when not reported.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].issuedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"invoices.items.[INDEX].issuedAt","typeLabel":"string | null"},"registeredAt":{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the invoice was registered on the platform.","isRequired":true,"uniqueKey":"invoices.items.[INDEX].registeredAt","typeLabel":"string"}},"required":["id","number","issuedAt","registeredAt"],"uniqueKey":"invoices.items.[INDEX]","typeLabel":"object"},"description":"Fiscal document references registered for the order, oldest first. Empty until invoiced; an order split across several facturas carries one element per document.","isRequired":true,"uniqueKey":"invoices","typeLabel":"object[]"},"promotions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Promotion application id. Reference key for a line's `discountAllocations[].promotionId`.","isRequired":true,"uniqueKey":"promotions.items.[INDEX].id","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"Entered promotion code. Null for automatic promotions.","isRequired":true,"uniqueKey":"promotions.items.[INDEX].code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Entered promotion code. Null for automatic promotions.","isRequired":true,"uniqueKey":"promotions.items.[INDEX].code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"promotions.items.[INDEX].code","typeLabel":"string | null"},"title":{"type":"string","description":"Human-readable promotion label.","isRequired":true,"uniqueKey":"promotions.items.[INDEX].title","typeLabel":"string"},"class":{"type":"string","enum":["GOODS","ORDER","SHIPPING"],"description":"What the promotion discounted: `GOODS`, `ORDER`, or `SHIPPING`. GOODS and ORDER are summed into the order `discountTotal`; SHIPPING shows as a reduced `shippingTotal`.","isRequired":true,"uniqueKey":"promotions.items.[INDEX].class","typeLabel":"enum\u003cstring>"},"amount":{"type":"string","example":"1234.56","description":"Discount amount, as the buyer saw it.","isRequired":true,"uniqueKey":"promotions.items.[INDEX].amount","typeLabel":"string"}},"required":["id","code","title","class","amount"],"uniqueKey":"promotions.items.[INDEX]","typeLabel":"object"},"description":"Applied promotions on the order, including SHIPPING-class ones.","isRequired":true,"uniqueKey":"promotions","typeLabel":"object[]"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Line item identifier.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string"},"variantId":{"oneOf":[{"type":"string","description":"Product variant UUID. Null if the line isn't tied to a variant.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variantId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Product variant UUID. Null if the line isn't tied to a variant.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variantId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variantId","typeLabel":"string | null"},"variantSku":{"oneOf":[{"type":"string","description":"Variant SKU. Null if the line isn't tied to a variant.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variantSku.oneOf.0","typeLabel":"string"},{"type":"null","description":"Variant SKU. Null if the line isn't tied to a variant.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].variantSku.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].variantSku","typeLabel":"string | null"},"productId":{"oneOf":[{"type":"string","description":"Product UUID. Null if the product was later removed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].productId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Product UUID. Null if the product was later removed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].productId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].productId","typeLabel":"string | null"},"productName":{"type":"string","description":"Product name, snapshotted at order time.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].productName","typeLabel":"string"},"productImageUrl":{"oneOf":[{"type":"string","description":"Image URL of the ordered variant, or the product cover when the variant has none, snapshotted at order time. Null if neither exists.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].productImageUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"Image URL of the ordered variant, or the product cover when the variant has none, snapshotted at order time. Null if neither exists.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].productImageUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].productImageUrl","typeLabel":"string | null"},"quantity":{"type":"number","description":"Units ordered. Fractional for weight-sold goods entered via purchase-order intake (e.g. 3.9).","example":2,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"number"},"price":{"type":"string","example":"1234.56","description":"Unit price charged, before promotions.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].price","typeLabel":"string"},"listPrice":{"oneOf":[{"type":"string","example":"1234.56","description":"The variant's list price when the order was placed. Null when the variant carries none.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].listPrice.oneOf.0","typeLabel":"string"},{"type":"null","example":"1234.56","description":"The variant's list price when the order was placed. Null when the variant carries none.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].listPrice.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].listPrice","typeLabel":"string | null"},"discountTotal":{"type":"string","example":"1234.56","description":"Promotion discount on this line, as the buyer saw it. Not the list-vs-charged gap ((listPrice − price) × quantity), which is derivable.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].discountTotal","typeLabel":"string"},"discountAllocations":{"type":"array","items":{"type":"object","properties":{"promotionId":{"type":"string","description":"References an order-level `promotions[].id`.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].discountAllocations.items.[INDEX].promotionId","typeLabel":"string"},"amount":{"type":"string","example":"1234.56","description":"That promotion's slice of this line's discount.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].discountAllocations.items.[INDEX].amount","typeLabel":"string"}},"required":["promotionId","amount"],"uniqueKey":"\\items.items.[INDEX].discountAllocations.items.[INDEX]","typeLabel":"object"},"description":"Per-line breakdown of `discountTotal` by promotion (Shopify DiscountAllocation). Each entry references an order-level `promotions[].id`; allocations of one promotion across all lines sum to that promotion's `amount`. `discountTotal` remains the aggregate for this line.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].discountAllocations","typeLabel":"object[]"},"taxName":{"type":"string","description":"Name of the tax rate this line was charged at, snapshotted at placement (e.g. IVA, Exento).","isRequired":true,"uniqueKey":"\\items.items.[INDEX].taxName","typeLabel":"string"},"taxCode":{"oneOf":[{"type":"string","description":"The tax authority's per-rate fiscal code, when the country has one (SUNAT catálogo 07: 10, 20, 30). Null otherwise.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].taxCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The tax authority's per-rate fiscal code, when the country has one (SUNAT catálogo 07: 10, 20, 30). Null otherwise.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].taxCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].taxCode","typeLabel":"string | null"},"taxRatePercent":{"type":"string","description":"Rate applied to this line, as a decimal percent string.","example":"18.00","isRequired":true,"uniqueKey":"\\items.items.[INDEX].taxRatePercent","typeLabel":"string"},"subtotal":{"type":"string","example":"1234.56","description":"Net goods base for this line, on the discounted amount at the line's own rate. subtotal + taxTotal = total.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].subtotal","typeLabel":"string"},"taxTotal":{"type":"string","example":"1234.56","description":"Goods tax for this line, at taxRatePercent.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].taxTotal","typeLabel":"string"},"total":{"type":"string","example":"1234.56","description":"subtotal + taxTotal.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].total","typeLabel":"string"},"components":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Component snapshot identifier.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].id","typeLabel":"string"},"variantId":{"oneOf":[{"type":"string","description":"Component variant UUID. Null if the variant was later removed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].variantId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Component variant UUID. Null if the variant was later removed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].variantId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].variantId","typeLabel":"string | null"},"variantSku":{"oneOf":[{"type":"string","description":"Component variant SKU. Null if none.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].variantSku.oneOf.0","typeLabel":"string"},{"type":"null","description":"Component variant SKU. Null if none.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].variantSku.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].variantSku","typeLabel":"string | null"},"productId":{"oneOf":[{"type":"string","description":"Component product UUID. Null if the product was later removed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].productId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Component product UUID. Null if the product was later removed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].productId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].productId","typeLabel":"string | null"},"productName":{"type":"string","description":"Component product name, snapshotted at order time.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].productName","typeLabel":"string"},"quantityPerBundle":{"type":"integer","description":"Units of this component inside one bundle. Multiply by the line's `quantity` for the total units to fulfill.","example":3,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX].quantityPerBundle","typeLabel":"integer"}},"required":["id","variantId","variantSku","productId","productName","quantityPerBundle"],"uniqueKey":"\\items.items.[INDEX].components.items.[INDEX]","typeLabel":"object"},"description":"Bundle composition frozen at order time, in stable display order. Empty for standard (non-bundle) lines.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].components","typeLabel":"object[]"}},"required":["id","variantId","variantSku","productId","productName","productImageUrl","quantity","price","listPrice","discountTotal","discountAllocations","taxName","taxCode","taxRatePercent","subtotal","taxTotal","total","components"],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"description":"Line items in the order, in stable display order. Array position is the line's order — there is no separate position field.","isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"},"transactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Transaction identifier.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].id","typeLabel":"string"},"kind":{"type":"string","enum":["AUTHORIZATION","SALE"],"description":"`SALE` (authorize + capture) or `AUTHORIZATION` (hold only).","isRequired":true,"uniqueKey":"transactions.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"status":{"type":"string","enum":["PENDING","SUCCESS","FAILURE","ERROR"],"description":"`PENDING` (awaiting the gateway), `SUCCESS`, `FAILURE` (declined), or `ERROR` (the call itself failed — outcome unknown, reconcile against the gateway).","isRequired":true,"uniqueKey":"transactions.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"amount":{"type":"string","example":"1234.56","description":"Amount charged, in the order's `currencyCode`.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].amount","typeLabel":"string"},"provider":{"type":"string","enum":["OPENPAY","CULQI","MERCADO_PAGO","WEBPAY"],"description":"Gateway that processed it.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].provider","typeLabel":"enum\u003cstring>"},"gatewayTransactionId":{"oneOf":[{"type":"string","description":"The gateway's own charge id — the reconciliation key. Null when the attempt never reached the gateway.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].gatewayTransactionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The gateway's own charge id — the reconciliation key. Null when the attempt never reached the gateway.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].gatewayTransactionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].gatewayTransactionId","typeLabel":"string | null"},"cardBrand":{"oneOf":[{"type":"string","description":"Card brand, lowercase (e.g. `visa`). Null for non-card methods.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardBrand.oneOf.0","typeLabel":"string"},{"type":"null","description":"Card brand, lowercase (e.g. `visa`). Null for non-card methods.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardBrand.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardBrand","typeLabel":"string | null"},"cardLast4":{"oneOf":[{"type":"string","description":"Last 4 digits of the card. Null if the gateway didn't report them.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardLast4.oneOf.0","typeLabel":"string"},{"type":"null","description":"Last 4 digits of the card. Null if the gateway didn't report them.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardLast4.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardLast4","typeLabel":"string | null"},"cardType":{"oneOf":[{"type":"string","enum":["CREDIT","DEBIT","PREPAID","UNKNOWN",null],"description":"Card funding type. Null if the gateway doesn't report one.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["CREDIT","DEBIT","PREPAID","UNKNOWN",null],"description":"Card funding type. Null if the gateway doesn't report one.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardType.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].cardType","typeLabel":"enum\u003cstring> | null"},"installments":{"oneOf":[{"type":"integer","example":12,"description":"Instalment count (`cuotas`) asked of the gateway on this attempt — on the `SUCCESS` entry, the approved plan. Null for a single payment.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].installments.oneOf.0","typeLabel":"integer"},{"type":"null","example":12,"description":"Instalment count (`cuotas`) asked of the gateway on this attempt — on the `SUCCESS` entry, the approved plan. Null for a single payment.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].installments.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].installments","typeLabel":"integer | null"},"installmentsInterest":{"oneOf":[{"type":"string","enum":["WITH_INTEREST","WITHOUT_INTEREST",null],"description":"Whether this attempt's instalment plan carries issuer interest. Null when the attempt had no plan.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].installmentsInterest.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["WITH_INTEREST","WITHOUT_INTEREST",null],"description":"Whether this attempt's instalment plan carries issuer interest. Null when the attempt had no plan.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].installmentsInterest.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].installmentsInterest","typeLabel":"enum\u003cstring> | null"},"authorizationCode":{"oneOf":[{"type":"string","description":"Processor authorization code. Null on declines.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].authorizationCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Processor authorization code. Null on declines.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].authorizationCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].authorizationCode","typeLabel":"string | null"},"gatewayResultCode":{"oneOf":[{"type":"string","description":"The gateway's raw outcome/decline code, as it reported it.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].gatewayResultCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"The gateway's raw outcome/decline code, as it reported it.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].gatewayResultCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].gatewayResultCode","typeLabel":"string | null"},"errorCode":{"oneOf":[{"type":"string","description":"Gateway-independent failure code (e.g. `CARD_DECLINED`, `INSUFFICIENT_FUNDS`). Null on success. Treat unknown values as a generic failure — the set grows.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].errorCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Gateway-independent failure code (e.g. `CARD_DECLINED`, `INSUFFICIENT_FUNDS`). Null on success. Treat unknown values as a generic failure — the set grows.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].errorCode.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].errorCode","typeLabel":"string | null"},"test":{"type":"boolean","description":"The charge ran against the gateway's test mode.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].test","typeLabel":"boolean"},"processedAt":{"oneOf":[{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the attempt was processed.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].processedAt.oneOf.0","typeLabel":"string"},{"type":"null","example":"2026-06-30T14:12:00Z","description":"When the attempt was processed.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].processedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transactions.items.[INDEX].processedAt","typeLabel":"string | null"},"createdAt":{"type":"string","example":"2026-06-30T14:12:00Z","description":"When the attempt was recorded.","isRequired":true,"uniqueKey":"transactions.items.[INDEX].createdAt","typeLabel":"string"}},"required":["id","kind","status","amount","provider","gatewayTransactionId","cardBrand","cardLast4","cardType","installments","installmentsInterest","authorizationCode","gatewayResultCode","errorCode","test","processedAt","createdAt"],"uniqueKey":"transactions.items.[INDEX]","typeLabel":"object"},"description":"Every gateway charge attempt on this order, oldest first — declines and errors included. Empty for orders paid without a gateway.","isRequired":true,"uniqueKey":"transactions","typeLabel":"object[]"}},"required":["id","code","status","paymentStatus","fulfillmentStatus","source","createdAt","updatedAt","placedAt","cancelledAt","placedAsGuest","comment","currencyCode","subtotal","taxTotal","taxLines","shippingTotal","shippingTaxTotal","discountTotal","total","priceList","segment","location","shippingMethod","courier","courierBranch","buyer","billing","shippingAddress","payment","cancellation","fulfillments","invoiceStatus","invoices","promotions","items","transactions"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","code":"\u003cstring>","status":"AWAITING_REVIEW","paymentStatus":"UNPAID","fulfillmentStatus":"UNFULFILLED","source":"STOREFRONT","createdAt":"2026-06-30T14:12:00Z","updatedAt":"2026-06-30T14:12:00Z","placedAt":"2026-06-30T14:12:00Z","cancelledAt":"2026-06-30T14:12:00Z","placedAsGuest":true,"comment":"\u003cstring>","currencyCode":"USD","subtotal":"1234.56","taxTotal":"1234.56","taxLines":[{"name":"\u003cstring>","code":"\u003cstring>","ratePercent":"19.00","base":"1234.56","amount":"1234.56"}],"shippingTotal":"1234.56","shippingTaxTotal":"1234.56","discountTotal":"1234.56","total":"1234.56","priceList":{"id":"\u003cstring>","name":"\u003cstring>"},"segment":{"id":"\u003cstring>","name":"\u003cstring>"},"location":{"id":"\u003cstring>","name":"\u003cstring>"},"shippingMethod":{"id":"\u003cstring>","type":"DELIVERY","label":"\u003cstring>","payment":"PREPAID"},"courier":{"id":"\u003cstring>","name":"\u003cstring>"},"courierBranch":{"id":"\u003cstring>","name":"\u003cstring>","addressLine":"\u003cstring>","geoLevel1":{"name":"Miraflores","code":"150122"},"geoLevel2":{"name":"Miraflores","code":"150122"},"geoLevel3":{"name":"Miraflores","code":"150122"},"geoLevel4":{"name":"Miraflores","code":"150122"}},"buyer":{"firstName":"\u003cstring>","lastName":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","code":"\u003cstring>","customerId":"\u003cstring>","documentType":"\u003cstring>","documentNumber":"\u003cstring>"},"billing":{"documentType":"\u003cstring>","documentNumber":"\u003cstring>","legalName":"\u003cstring>","businessActivity":"\u003cstring>","geoDivisionId":"\u003cstring>","geoDivisionName":"\u003cstring>","geoDivisionCode":"\u003cstring>","geoDivisionDisplayPath":"\u003cstring>","addressLine":"\u003cstring>"},"shippingAddress":{"addressLine1":"\u003cstring>","addressLine2":"\u003cstring>","geoLevel1":{"name":"Miraflores","code":"150122"},"geoLevel2":{"name":"Miraflores","code":"150122"},"geoLevel3":{"name":"Miraflores","code":"150122"},"geoLevel4":{"name":"Miraflores","code":"150122"},"coordinates":{"latitude":-12.046374,"longitude":-77.042793},"recipientName":"\u003cstring>","recipientPhone":"\u003cstring>","instructions":"\u003cstring>","customerAddressId":"\u003cstring>"},"payment":{"methodKind":"MANUAL","methodName":"\u003cstring>","paidVia":"CARD","installments":12,"installmentsInterest":"WITH_INTEREST","reference":"\u003cstring>","paidAt":"2026-06-30T14:12:00Z","amountPaid":"1234.56"},"cancellation":{"reason":"\u003cstring>","note":"\u003cstring>","byMemberId":"\u003cstring>","byName":"\u003cstring>"},"fulfillments":[{"carrier":"\u003cstring>","trackingNumber":"\u003cstring>","trackingUrl":"\u003cstring>","preparingAt":"2026-06-30T14:12:00Z","fulfilledAt":"2026-06-30T14:12:00Z","deliveredAt":"2026-06-30T14:12:00Z"}],"invoiceStatus":"NOT_INVOICED","invoices":[{"id":"\u003cstring>","number":"\u003cstring>","issuedAt":"2026-06-30T14:12:00Z","registeredAt":"2026-06-30T14:12:00Z"}],"promotions":[{"id":"\u003cstring>","code":"\u003cstring>","title":"\u003cstring>","class":"GOODS","amount":"1234.56"}],"items":[{"id":"\u003cstring>","variantId":"\u003cstring>","variantSku":"\u003cstring>","productId":"\u003cstring>","productName":"\u003cstring>","productImageUrl":"\u003cstring>","quantity":2,"price":"1234.56","listPrice":"1234.56","discountTotal":"1234.56","discountAllocations":[{"promotionId":"\u003cstring>","amount":"1234.56"}],"taxName":"\u003cstring>","taxCode":"\u003cstring>","taxRatePercent":"18.00","subtotal":"1234.56","taxTotal":"1234.56","total":"1234.56","components":[{"id":"\u003cstring>","variantId":"\u003cstring>","variantSku":"\u003cstring>","productId":"\u003cstring>","productName":"\u003cstring>","quantityPerBundle":3}]}],"transactions":[{"id":"\u003cstring>","kind":"AUTHORIZATION","status":"PENDING","amount":"1234.56","provider":"OPENPAY","gatewayTransactionId":"\u003cstring>","cardBrand":"\u003cstring>","cardLast4":"\u003cstring>","cardType":"CREDIT","installments":12,"installmentsInterest":"WITH_INTEREST","authorizationCode":"\u003cstring>","gatewayResultCode":"\u003cstring>","errorCode":"\u003cstring>","test":true,"processedAt":"2026-06-30T14:12:00Z","createdAt":"2026-06-30T14:12:00Z"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"dc9d2dea-5714-49a9-9178-42e6bd0857d9":{"description":"Invalid request body or order id.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f331bdbb-eefe-45f1-8adb-af620887c661":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"605e7d3a-94f6-4ddf-b96d-f5a18d7b3892":{"description":"Missing required scope.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e5590ef6-3693-40dc-95aa-6cdfa9baeac3":{"description":"No order with that id in this organization.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"075a0bdd-69e4-4f5c-8083-8117b3d1d4f0":{"description":"The order is `AWAITING_REVIEW` (`ORDER_AWAITING_REVIEW`): the merchant has to approve it before it can be fulfilled.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e3de93d0-5ddd-4b2d-951f-b79316d767d0":{"description":"The transition is not allowed from the order's current state.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"error.requestId","typeLabel":"string"}},"required":["code","message","requestId"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","requestId":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e94b070d-1bc5-4ef0-a3f2-ce85237f70a8":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Public API key presented as `Authorization: Bearer rq_live_…`.","scopes":[]}}},"servers":{"8e666894-3acd-42a8-ab6d-a0e3d39cef99":{"url":"https://api-v2.riqra.com/public/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Public API key presented as `Authorization: Bearer rq_live_…`.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Public API key presented as `Authorization: Bearer rq_live_…`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"desarrolladores/api/openapi.json"},"subdomain":"riqra-6746389f","siteName":"Riqra","title":"Mark delivered (or picked up) - Riqra","navMaps":{"firstHrefInVersion":{"Nueva plataforma":{"href":"/api-reference/fulfillment/mark-delivered-or-picked-up","matchLevel":0},"Legacy":{"href":"/api/authentication","matchLevel":4}},"firstHrefInLanguage":{"es":{"href":"/api-reference/fulfillment/mark-delivered-or-picked-up","matchLevel":0}}},"lastModified":"2026-07-01T10:43:37.988Z","originalFileLocation":"api-reference/fulfillment/mark-delivered-or-picked-up.mdx","locale":"es"},"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=\"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the fulfillment:write scope.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Riqra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Mark delivered (or picked up) - Riqra\">\u003cmeta data-mint-head property=\"og:description\" content=\"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the fulfillment:write scope.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Riqra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://riqra-6746389f.mintlify.app/_mintlify/api/og/v2?division=Fulfillment\u0026amp;title=Mark+delivered+%28or+picked+up%29\u0026amp;description=Advance+the+order+to+DELIVERED.+A+delivery+order+may+include+one-shot+tracking+here+when+it+skipped+fulfill.+Requires+the+%60fulfillment%3Awrite%60+scope.\u0026amp;theme=43c3dbef77fc7da3a647b4dc\u0026amp;signature=4af013fef2e3a0ace819bc6ed5653bbf6baec5685baba787ba3d95c5834ae0f5\">\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=\"Mark delivered (or picked up) - Riqra\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the fulfillment:write scope.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://riqra-6746389f.mintlify.app/_mintlify/api/og/v2?division=Fulfillment\u0026amp;title=Mark+delivered+%28or+picked+up%29\u0026amp;description=Advance+the+order+to+DELIVERED.+A+delivery+order+may+include+one-shot+tracking+here+when+it+skipped+fulfill.+Requires+the+%60fulfillment%3Awrite%60+scope.\u0026amp;theme=43c3dbef77fc7da3a647b4dc\u0026amp;signature=4af013fef2e3a0ace819bc6ed5653bbf6baec5685baba787ba3d95c5834ae0f5\">\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/riqra-6746389f/pVXZGs-_v2RjJBKg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Riqra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#15803D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/fulfillment/mark-delivered-or-picked-up.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.riqra.com/#organization\",\"name\":\"Riqra\",\"url\":\"https://docs.riqra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/riqra-6746389f/Aa-uIMMYqqxhWO2d/logo/light.svg?fit=max\u0026auto=format\u0026n=Aa-uIMMYqqxhWO2d\u0026q=85\u0026s=08f5ba317750e9cffbfc4fe1c4a68e75\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.riqra.com#website\",\"name\":\"Riqra\",\"url\":\"https://docs.riqra.com\",\"publisher\":{\"@id\":\"https://docs.riqra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up#webpage\",\"url\":\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up\",\"name\":\"Mark delivered (or picked up)\",\"description\":\"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the fulfillment:write scope.\",\"dateModified\":\"2026-07-01T10:43:37.988Z\",\"isPartOf\":{\"@id\":\"https://docs.riqra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API\",\"item\":\"https://docs.riqra.com/desarrolladores/api/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Referencia\",\"item\":\"https://docs.riqra.com/api-reference/identity/identify-the-authenticated-api-key\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Fulfillment\",\"item\":\"https://docs.riqra.com/api-reference/fulfillment/start-preparation\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Mark delivered (or picked up)\",\"item\":\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up#apireference\",\"headline\":\"Mark delivered (or picked up)\",\"name\":\"Mark delivered (or picked up)\",\"description\":\"Advance the order to DELIVERED. A delivery order may include one-shot tracking here when it skipped fulfill. Requires the fulfillment:write scope.\",\"url\":\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up\",\"mainEntityOfPage\":{\"@id\":\"https://docs.riqra.com/api-reference/fulfillment/mark-delivered-or-picked-up#webpage\"},\"dateModified\":\"2026-07-01T10:43:37.988Z\",\"publisher\":{\"@id\":\"https://docs.riqra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.riqra.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Riqra\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Riqra","nav":{"global":null,"languages":[{"language":"es","versions":[{"version":"Nueva plataforma","default":true,"tag":"Actual","tabs":[{"tab":"Plataforma","pages":[{"title":"Plataforma","href":""}]},{"tab":"Tienda online","pages":[{"title":"Tienda online","href":"/tienda-online/introduccion"}]},{"tab":"WhatsApp","pages":[{"title":"WhatsApp","href":"/whatsapp/introduccion"}]},{"tab":"PedidosIA","pages":[{"title":"PedidosIA","href":"/pedidos-ia/introduccion"}]},{"tab":"Desarrolladores","groups":[{"group":"Introducción","pages":[{"title":"Desarrolla sobre Riqra","sidebarTitle":"Introducción","href":"/desarrolladores/introduccion"}]},{"group":"API","pages":[{"title":"Introducción","href":"/desarrolladores/api/introduction"},{"title":"Inicio rápido","href":"/desarrolladores/api/quickstart"},{"title":"Autenticación","href":"/desarrolladores/api/authentication"},{"title":"Permisos","href":"/desarrolladores/api/scopes"},{"title":"Paginación","href":"/desarrolladores/api/pagination"},{"title":"Errores","href":"/desarrolladores/api/errors"},{"title":"Montos y moneda","href":"/desarrolladores/api/money"},{"title":"Versionado","href":"/desarrolladores/api/versioning"},{"group":"Guías","pages":[{"title":"Leer pedidos","href":"/desarrolladores/api/guides/reading-orders"},{"title":"Preparación y entrega","href":"/desarrolladores/api/guides/fulfillment"},{"title":"Cancelar pedidos","href":"/desarrolladores/api/guides/cancelling-orders"},{"title":"Sincronizar stock","href":"/desarrolladores/api/guides/stock"},{"title":"Sincronizar precios","href":"/desarrolladores/api/guides/prices"}]},{"group":"Referencia","pages":[{"group":"Identity","pages":[{"title":"Identify the authenticated API key","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /whoami","href":"/api-reference/identity/identify-the-authenticated-api-key"}]},{"group":"Stock","pages":[{"title":"List active locations","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /stock/locations","href":"/api-reference/stock/list-active-locations"},{"title":"Set stock for many SKUs","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /stock/levels/set","href":"/api-reference/stock/set-stock-for-many-skus"}]},{"group":"Prices","pages":[{"title":"List active price lists","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /prices/lists","href":"/api-reference/prices/list-active-price-lists"},{"title":"Set prices for many SKUs","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /prices/set","href":"/api-reference/prices/set-prices-for-many-skus"}]},{"group":"Orders","pages":[{"title":"List orders","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /orders","href":"/api-reference/orders/list-orders"},{"title":"Get an order by id","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /orders/{id}","href":"/api-reference/orders/get-an-order-by-id"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/cancel","href":"/api-reference/orders/cancel-an-order"}]},{"group":"Fulfillment","pages":[{"title":"Start preparation","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/fulfillment/start","href":"/api-reference/fulfillment/start-preparation"},{"title":"Fulfill (dispatch / mark ready)","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/fulfillment/fulfill","href":"/api-reference/fulfillment/fulfill-dispatch-mark-ready"},{"title":"Update tracking","description":"Overwrite carrier + tracking on a FULFILLED delivery order. Requires the `fulfillment:write` scope.","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json patch /orders/{id}/fulfillment/tracking","href":"/api-reference/fulfillment/update-tracking"},{"title":"Mark delivered (or picked up)","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/fulfillment/deliver","href":"/api-reference/fulfillment/mark-delivered-or-picked-up"}]},{"group":"Invoicing","pages":[{"title":"Register the invoice of an order","description":"Record the reference of the fiscal document (factura/boleta) your ERP or invoicing system emitted for the order. Registration is independent of the order lifecycle: it does not change `status`, `paymentStatus`, or `fulfillmentStatus`, and may happen before or after payment or fulfillment. An order split across several documents takes one call per document; every registered reference rides on the order's `invoices` array under `orders:read`, and the order's `invoiceStatus` flips to `INVOICED` on the first one. Repeating a number already registered on the order responds 409 `ORDER_ALREADY_INVOICED` — a retry receiving that 409 can treat that invoice as already registered. Cancelling an invoiced order keeps its references. Pass `invoiceUrl` to have the file ingested into our storage: the 200 confirms the registration only, and the file appears once the asynchronous download completes. A failed download never undoes the registration and is not reported back — the merchant can attach the file from the admin. Requires the `invoices:write` scope.","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/invoice","href":"/api-reference/invoicing/register-the-invoice-of-an-order"}]}]}]},{"group":"Temas","pages":[{"title":"Introducción","href":"/desarrolladores/temas/introduccion"},{"title":"Primeros pasos","href":"/desarrolladores/temas/primeros-pasos"},{"title":"Ciclo de desarrollo","href":"/desarrolladores/temas/ciclo-de-desarrollo"},{"title":"Anatomía de un tema","href":"/desarrolladores/temas/anatomia-de-un-tema"},{"group":"Referencia","pages":[{"title":"Secciones y schema","href":"/desarrolladores/temas/secciones-y-schema"},{"title":"Carrito AJAX y secciones","href":"/desarrolladores/temas/cart-ajax-y-secciones"},{"title":"Viniendo de Shopify","href":"/desarrolladores/temas/viniendo-de-shopify"},{"title":"Referencia del CLI","href":"/desarrolladores/temas/referencia-cli"}]}]}]}]},{"version":"Legacy","tag":"Anterior","pages":[{"title":"Legacy","href":"/api/authentication"}]}]}]},"title":"Mark delivered (or picked up) - Riqra","buildId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","deploymentId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BRm_l__d.js","utils-f1l1Oc-G.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BlhqDhJO.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DHCB7rsC.js","snippetPresets-CYXLx6Hv.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-B78P2dEq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C4YLPVAh.js","shallow-vlLnTDkQ.js","getApiPlaygroundDisplay-D_98hhvf.js","CodeSnippet-DtnZHGqq.js","CodeSnippets-CLFb8KJt.js","Page-kQh739Uz.js","getPastedJson-Cq-zlbnU.js","icon-sN3t983t.js","MethodPill-P_YQ2s09.js","DuplicateIcon-BVzyNsGJ.js","createIcon-B3jqgqC6.js","DynamicMarkdown-Crwq6WG_.js","SectionHeading-C7pGS2Bb.js","axios-vUo_bRtp.js","Markdown-BuPH8yuW.js","clsx-CCOYKgaU.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BnkC_6oA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BM4S31-f.js"]}