Use this endpoint to update a previously submitted order. Order will be matched by the source_reference field.
Supported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.
A shipment groups the items sent from a specific origin warehouse to the order's destination address.
While a shipment originates from one location, it can be fulfilled in multiple batches (fulfillments), each potentially having a different tracking number, ship date, and carrier.
To add a new shipment, provide a new shipment object with a new shipment_id
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"OpenBorder API Documentation","colors":{"primary":"#0540f4","light":"#070707","dark":"#051130"},"logo":{"light":"https://mintcdn.com/openborder-2b51b6dd/S0NizTekLQ6ttVRZ/images/Logo-48px.png?fit=max\u0026auto=format\u0026n=S0NizTekLQ6ttVRZ\u0026q=85\u0026s=bce3b91de865573b8550ef923ea21b25","dark":"https://mintcdn.com/openborder-2b51b6dd/S0NizTekLQ6ttVRZ/images/Logo-48px.png?fit=max\u0026auto=format\u0026n=S0NizTekLQ6ttVRZ\u0026q=85\u0026s=bce3b91de865573b8550ef923ea21b25"},"favicon":"https://mintcdn.com/openborder-2b51b6dd/ZfGRmbNr7AFdJzOY/images/favicon.png?fit=max\u0026auto=format\u0026n=ZfGRmbNr7AFdJzOY\u0026q=85\u0026s=0bff9fc4120aee640ae1aca8104bb2a6","appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"mailto:richard@openborder.com","label":"Support"}],"primary":{"type":"button","label":"Get Access","href":"https://openborder.com"}},"footer":{"socials":{}},"fonts":{"family":"DM Sans"},"styling":{"codeblocks":"system","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"openborder-2b51b6dd","hasAudioNarration":false,"actualSubdomain":"openborder-2b51b6dd","customDomains":["developers.openborder.com"],"gitSource":{"type":"gitlab","owner":"pangaea-holdings","repo":"openborder-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"projectId":86063915,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aedfbbded2e00f2f0020b1b","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"Documentation","count":8},{"language":"default","tag":"Integration Guides","count":7},{"language":"default","tag":"Landed Cost Integration","count":3},{"language":"default","tag":"Tracking","count":3},{"language":"default","tag":"Landed Cost","count":2},{"language":"default","tag":"Orders","count":2},{"language":"default","tag":"Get Started","count":1},{"language":"default","tag":"Label Compliance","count":1},{"language":"default","tag":"Shipping Labels","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/orders/update-an-order","slug":"/api-reference/orders/update-an-order","pageMetadata":{"title":"Update an order","description":"## What this endpoint does\nUse this endpoint to update a previously submitted order. Order will be matched by the `source_reference` field.\n\nSupported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.","deprecated":null,"version":null,"openapi":"/api-reference/landed-cost.json put /v1/orders","href":"/api-reference/orders/update-an-order","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n h2: \"h2\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.h2, {\n children: \"What this endpoint does\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Use this endpoint to update a previously submitted order. Order will be matched by the \", _jsx(_components.code, {\n children: \"source_reference\"\n }), \" field.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Supported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Update an order","description":"## What this endpoint does\nUse this endpoint to update a previously submitted order. Order will be matched by the `source_reference` field.\n\nSupported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.","deprecated":null,"version":null,"openapi":"/api-reference/landed-cost.json put /v1/orders","href":"/api-reference/orders/update-an-order","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"## What this endpoint does\nUse this endpoint to update a previously submitted order. Order will be matched by the `source_reference` field.\n\nSupported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.","operationId":"OrdersController_updateOrder","parameters":["b3b5eaa2-04c7-4eb2-82fb-0f19c6dd2984"],"requestBody":"9fecf278-d4ee-4d10-afe8-73ee3811f3b7","responses":{"204":"9716c131-a444-41dd-b706-46174cf52a8e","400":"47bbfb96-9c69-43b6-8f74-811517081953","401":"78a44f00-ac37-442d-99a5-b2d023c887de","403":"7ccd7fbc-6191-4979-953a-24091d902746","422":"93dcc4bd-b909-44b7-9998-7d5acc260c09","429":"2c8f0ec8-7340-4472-b534-5d8944aeab51","500":"ce37382e-842f-425e-a9a0-759c3991496c"},"summary":"Update an order","tags":["Orders"],"method":"put","type":"path","servers":["eed9f8e2-78a0-44e9-9900-cdc72222afb4","b9ddf667-3f0b-49bc-93d7-faff79974329"],"security":[],"path":"/v1/orders","baseUrlOptions":["https://api.openborder.com/api/direct/","https://api.staging.openborder.com/api/direct/"],"title":"Update an order","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b3b5eaa2-04c7-4eb2-82fb-0f19c6dd2984":{"name":"x-openborder-direct-api-key","in":"header","description":"OpenBorder merchant API token","required":true,"schema":{"type":"string","isRequired":true,"description":"OpenBorder merchant API token","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source_reference":{"type":"number","description":"Reference ID from the source system. This is the unique identifier to reference the order on subsequent calls and cannot be updated.","isRequired":true,"uniqueKey":"source_reference","typeLabel":"number"},"source_updated_at":{"type":"string","description":"Timestamp in ISO format when the order was last updated in the source system.","isRequired":true,"uniqueKey":"source_updated_at","typeLabel":"string"},"ship_to":{"type":"object","description":"Address to which the order is shipped.","required":["country_code"],"properties":{"country_code":{"type":"string","description":"The two-letter country code (ISO 3166-1 alpha-2) for the destination country (e.g. \"CA\" for Canada).\n\nImportant: For United States of America (US) and Canada (CA) the `province` and `postal_code` fields are required.","isRequired":true,"uniqueKey":"ship_to.country_code","typeLabel":"string"},"province":{"oneOf":[{"type":"string","description":"The state, province, or region within the destination country. Include this if your destination country has one (e.g.\"ON\" for Ontario).\n\nImportant: Required for United States of America (US) and Canada (CA).","uniqueKey":"ship_to.province.oneOf.0","typeLabel":"string"},{"type":"null","description":"The state, province, or region within the destination country. Include this if your destination country has one (e.g.\"ON\" for Ontario).\n\nImportant: Required for United States of America (US) and Canada (CA).","uniqueKey":"ship_to.province.oneOf.1","typeLabel":"null"}],"uniqueKey":"ship_to.province","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","description":"The ZIP code or postal code for the shipping address.\n\nImportant: Required for United States of America (US) and Canada (CA).","uniqueKey":"ship_to.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ZIP code or postal code for the shipping address.\n\nImportant: Required for United States of America (US) and Canada (CA).","uniqueKey":"ship_to.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"ship_to.postal_code","typeLabel":"string | null"},"address1":{"oneOf":[{"type":"string","description":"The primary street address line, such as the house number and street name. Example: \"123 Main Street\".","uniqueKey":"ship_to.address1.oneOf.0","typeLabel":"string"},{"type":"null","description":"The primary street address line, such as the house number and street name. Example: \"123 Main Street\".","uniqueKey":"ship_to.address1.oneOf.1","typeLabel":"null"}],"uniqueKey":"ship_to.address1","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","description":"A secondary address line, such as an apartment, suite, or unit number. Example: \"Apt 4B\".","uniqueKey":"ship_to.address2.oneOf.0","typeLabel":"string"},{"type":"null","description":"A secondary address line, such as an apartment, suite, or unit number. Example: \"Apt 4B\".","uniqueKey":"ship_to.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"ship_to.address2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","description":"The city or locality for the delivery address.","uniqueKey":"ship_to.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"The city or locality for the delivery address.","uniqueKey":"ship_to.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"ship_to.city","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","description":"The full name of the recipient at the destination address.","uniqueKey":"ship_to.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The full name of the recipient at the destination address.","uniqueKey":"ship_to.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"ship_to.name","typeLabel":"string | null"}},"uniqueKey":"ship_to","typeLabel":"object"},"billing_address":{"type":"object","description":"Billing address for the order.","required":["country_code"],"properties":{"country_code":{"type":"string","description":"The two-letter country code (ISO 3166-1 alpha-2) for the billing address (e.g. \"CA\" for Canada).","isRequired":true,"uniqueKey":"billing_address.country_code","typeLabel":"string"},"province":{"oneOf":[{"type":"string","description":"The state, province, or region within the billing country. Include this if your billing country has one (e.g.\"ON\" for Ontario).","uniqueKey":"billing_address.province.oneOf.0","typeLabel":"string"},{"type":"null","description":"The state, province, or region within the billing country. Include this if your billing country has one (e.g.\"ON\" for Ontario).","uniqueKey":"billing_address.province.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.province","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","description":"The ZIP code or postal code for the billing address.","uniqueKey":"billing_address.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ZIP code or postal code for the billing address.","uniqueKey":"billing_address.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.postal_code","typeLabel":"string | null"},"address1":{"oneOf":[{"type":"string","description":"The primary street address line for billing, such as the house number and street name. Example: \"123 Main Street\".","uniqueKey":"billing_address.address1.oneOf.0","typeLabel":"string"},{"type":"null","description":"The primary street address line for billing, such as the house number and street name. Example: \"123 Main Street\".","uniqueKey":"billing_address.address1.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.address1","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","description":"A secondary billing address line, such as an apartment, suite, or unit number. Example: \"Apt 4B\".","uniqueKey":"billing_address.address2.oneOf.0","typeLabel":"string"},{"type":"null","description":"A secondary billing address line, such as an apartment, suite, or unit number. Example: \"Apt 4B\".","uniqueKey":"billing_address.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.address2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","description":"The city or locality for the billing address.","uniqueKey":"billing_address.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"The city or locality for the billing address.","uniqueKey":"billing_address.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.city","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","description":"The full name of the person or entity responsible for billing at this address.","uniqueKey":"billing_address.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The full name of the person or entity responsible for billing at this address.","uniqueKey":"billing_address.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"billing_address.name","typeLabel":"string | null"}},"uniqueKey":"billing_address","typeLabel":"object"},"order_discount":{"type":"number","description":"Total order-level discount in major currency units (e.g., 10.00 means $10 off). Discount is split proportionally across products for duties/taxes.","uniqueKey":"order_discount","typeLabel":"number"},"shipments":{"description":"A shipment groups the items sent from a specific origin warehouse to the order's destination address.\nWhile a shipment originates from one location, it can be fulfilled in multiple batches (`fulfillments`), each potentially having a different tracking number, ship date, and carrier.\nTo add a new shipment, provide a new shipment object with a new `shipment_id`","type":"array","items":{"type":"object","properties":{"shipment_id":{"type":"string","description":"Unique identifier for shipment. If this ID matches a previously submitted shipment, it will be updated, otherwise a new shipment will be added to the order.","isRequired":true,"uniqueKey":"shipments.items.[INDEX].shipment_id","typeLabel":"string"},"shipping_rate_id":{"type":"string","description":"A unique ID for the shipping rate option (e.g., \"EXPRESS_UPS\").","isRequired":true,"uniqueKey":"shipments.items.[INDEX].shipping_rate_id","typeLabel":"string"},"shipping_rate":{"type":"number","description":"The cost of the shipping rate in major currency units (e.g., dollars). Up to two decimal places.","isRequired":true,"uniqueKey":"shipments.items.[INDEX].shipping_rate","typeLabel":"number"},"ship_from":{"type":"object","description":"Address from which the order is shipped. Will be updated for existing shipments if provided.","required":["country_code"],"properties":{"country_code":{"type":"string","description":"The two-letter country code (ISO 3166-1 alpha-2) for the shipping origin (e.g., \"US\").","isRequired":true,"uniqueKey":"shipments.items.[INDEX].ship_from.country_code","typeLabel":"string"},"province":{"oneOf":[{"type":"string","description":"The state, province, or region within the country.","uniqueKey":"shipments.items.[INDEX].ship_from.province.oneOf.0","typeLabel":"string"},{"type":"null","description":"The state, province, or region within the country.","uniqueKey":"shipments.items.[INDEX].ship_from.province.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipments.items.[INDEX].ship_from.province","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","description":"The postal or ZIP code for the origin address.","uniqueKey":"shipments.items.[INDEX].ship_from.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The postal or ZIP code for the origin address.","uniqueKey":"shipments.items.[INDEX].ship_from.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipments.items.[INDEX].ship_from.postal_code","typeLabel":"string | null"},"address1":{"oneOf":[{"type":"string","description":"TThe primary street address line (e.g., \"123 Warehouse Ave\").","uniqueKey":"shipments.items.[INDEX].ship_from.address1.oneOf.0","typeLabel":"string"},{"type":"null","description":"TThe primary street address line (e.g., \"123 Warehouse Ave\").","uniqueKey":"shipments.items.[INDEX].ship_from.address1.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipments.items.[INDEX].ship_from.address1","typeLabel":"string | null"},"address2":{"oneOf":[{"type":"string","description":"A secondary address line (e.g., unit or suite number).","uniqueKey":"shipments.items.[INDEX].ship_from.address2.oneOf.0","typeLabel":"string"},{"type":"null","description":"A secondary address line (e.g., unit or suite number).","uniqueKey":"shipments.items.[INDEX].ship_from.address2.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipments.items.[INDEX].ship_from.address2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","description":"The city or locality for the delivery address.","uniqueKey":"shipments.items.[INDEX].ship_from.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"The city or locality for the delivery address.","uniqueKey":"shipments.items.[INDEX].ship_from.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipments.items.[INDEX].ship_from.city","typeLabel":"string | null"},"name":{"oneOf":[{"type":"string","description":"The full name for the shipping origin, if needed for labeling.","uniqueKey":"shipments.items.[INDEX].ship_from.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The full name for the shipping origin, if needed for labeling.","uniqueKey":"shipments.items.[INDEX].ship_from.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipments.items.[INDEX].ship_from.name","typeLabel":"string | null"}},"uniqueKey":"shipments.items.[INDEX].ship_from","typeLabel":"object"},"status":{"type":"string","description":"Current status of the shipment. Will be updated for existing shipments if provided.\nImportant: If `status` is set to `partially_fulfilled` or `fulfilled`, at least one fulfillment must exists under the shipment's `fulfillments` field.","enum":["pending","canceled","returned","refunded","partially_fulfilled","fulfilled"],"uniqueKey":"shipments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"fulfillments":{"description":"Fulfillment batches associated to the shipment. If an existing tracking number is provided for an existing fulfillment, it will be updated, otherwise a new fulfillment will be added to the shipment's fulfillments list.","type":"array","items":{"type":"object","properties":{"tracking_number":{"type":"string","description":"Tracking number from the carrier.","isRequired":true,"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].tracking_number","typeLabel":"string"},"status":{"type":"string","description":"Current status of the fulfillment.","enum":["pending","in_transit","delivered","failed"],"isRequired":true,"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"location":{"type":"string","description":"Location from which the item was shipped.","uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].location","typeLabel":"string"},"carrier":{"type":"string","description":"Carrier from which the item was shipped.","uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].carrier","typeLabel":"string"},"shipped_at":{"type":"string","description":"Shipped timestamp in ISO format.","uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].shipped_at","typeLabel":"string"},"items":{"description":"Items included in the shipment.","type":"array","items":{"type":"object","properties":{"source_line_id":{"type":"string","description":"Your internal unique ID for this specific line item within the order.\n","isRequired":true,"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items.items.[INDEX].source_line_id","typeLabel":"string"},"source_product_id":{"type":"number","description":"Your internal unique ID for the product.","isRequired":true,"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items.items.[INDEX].source_product_id","typeLabel":"number"},"source_variant_id":{"type":"number","description":"Your internal unique ID for the variant of the product.","isRequired":true,"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items.items.[INDEX].source_variant_id","typeLabel":"number"},"quantity":{"type":"number","description":"The number of units of this product in the shipment.","isRequired":true,"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items.items.[INDEX].quantity","typeLabel":"number"},"hs_code":{"oneOf":[{"type":"string","description":"Optional merchant-provided HS6 code. When provided, used as the basis for landed cost and classification.","uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items.items.[INDEX].hs_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional merchant-provided HS6 code. When provided, used as the basis for landed cost and classification.","uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items.items.[INDEX].hs_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items.items.[INDEX].hs_code","typeLabel":"string | null"}},"required":["source_line_id","source_product_id","source_variant_id","quantity"],"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX].\\items","typeLabel":"object[]"}},"required":["tracking_number","status"],"uniqueKey":"shipments.items.[INDEX].fulfillments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipments.items.[INDEX].fulfillments","typeLabel":"object[]"},"refunded_amount":{"type":"number","description":"Total amount refunded for the shipment in major currency units (e.g., dollars). Up to two decimal places are allowed. Will be updated for existing shipments if provided.","uniqueKey":"shipments.items.[INDEX].refunded_amount","typeLabel":"number"},"items":{"description":"Items included in the shipment.\nFor new items added you must provide all fields.\nFor items update (matches by `source_line_id` field) only `quantity`, `fulfillment_status`, `fulfillments` and `refunded_quantity` fields may be updated. To remove an item set its `quantity` to `0`.","type":"array","items":{"type":"object","properties":{"source_line_id":{"type":"string","description":"Your internal unique ID for this specific line item within the order.\n","isRequired":true,"uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].source_line_id","typeLabel":"string"},"hs_code":{"oneOf":[{"type":"string","description":"Optional merchant-provided HS6 code. When provided, used as the basis for landed cost and classification.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].hs_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional merchant-provided HS6 code. When provided, used as the basis for landed cost and classification.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].hs_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].hs_code","typeLabel":"string | null"},"quantity":{"type":"number","description":"Quantity of the product in the order.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].quantity","typeLabel":"number"},"unit_price":{"type":"number","description":"The per-unit price in major currency units (e.g., dollars).","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].unit_price","typeLabel":"number"},"unit_discount":{"type":"number","description":"The total discount applied per unit in major currency units. This amount will be deducted from the unit price when calculating duties/taxes.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].unit_discount","typeLabel":"number"},"sku":{"type":"string","description":"The SKU code for the variant.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].sku","typeLabel":"string"},"product_name":{"type":"string","description":"The name of the product (e.g., \"Cotton T-Shirt\").","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].product_name","typeLabel":"string"},"variant_name":{"type":"string","description":"A descriptive variant name, such as \"Medium / Blue\" — identifies the unique combination of attributes.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].variant_name","typeLabel":"string"},"description":{"type":"string","description":"A clear description of the product.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].description","typeLabel":"string"},"origin_country_code":{"type":"string","description":"ISO 3166-1 alpha-2 country code for where the product was manufactured.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].origin_country_code","typeLabel":"string"},"category":{"type":"string","description":"The product category or taxonomy for classification (e.g., \"Apparel\").","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].category","typeLabel":"string"},"requires_shipping":{"type":"boolean","description":"true if the product physically ships; false for digital/non-physical items.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].requires_shipping","typeLabel":"boolean"},"weight":{"type":"object","description":"Weight information for the item.","required":["per_unit","unit"],"properties":{"per_unit":{"type":"number","description":"Weight per individual item unit. Must be greater than 0, except for items with `requires_shipping: false` (e.g. digital products), which can use 0.","isRequired":true,"uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].weight.per_unit","typeLabel":"number"},"unit":{"type":"string","description":"Measurement unit for weight (g = grams, lb = pounds).","enum":["g","lb"],"isRequired":true,"uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].weight.unit","typeLabel":"enum\u003cstring>"}},"uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].weight","typeLabel":"object"},"source_product_id":{"type":"number","description":"Your internal unique ID for the product. If provided, it must match the `source_product_id` initially submitted for the item matching this line `source_line_id`.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].source_product_id","typeLabel":"number"},"source_variant_id":{"type":"number","description":"Your internal unique ID for the variant of the product. If provided, it must match the `source_variant_id` initially submitted for the item matching this line `source_line_id`.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].source_variant_id","typeLabel":"number"},"refunded_quantity":{"type":"number","description":"Quantity of the item that was refunded.","uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX].refunded_quantity","typeLabel":"number"}},"required":["source_line_id"],"uniqueKey":"shipments.items.[INDEX].\\items.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipments.items.[INDEX].\\items","typeLabel":"object[]"}},"required":["shipment_id","shipping_rate_id","shipping_rate"],"uniqueKey":"shipments.items.[INDEX]","typeLabel":"object"},"uniqueKey":"shipments","typeLabel":"object[]"},"custom_properties":{"oneOf":[{"type":"object","description":"Optional custom metadata or structured properties. Object max. size is 4 KB.","uniqueKey":"custom_properties.oneOf.0","typeLabel":"object"},{"type":"null","description":"Optional custom metadata or structured properties. Object max. size is 4 KB.","uniqueKey":"custom_properties.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_properties","typeLabel":"object | null"}},"required":["source_reference","source_updated_at"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"source_reference":123,"source_updated_at":"\u003cstring>","order_discount":123,"shipments":[{"shipment_id":"\u003cstring>","shipping_rate_id":"\u003cstring>","shipping_rate":123,"fulfillments":[{"tracking_number":"\u003cstring>","location":"\u003cstring>","carrier":"\u003cstring>","shipped_at":"\u003cstring>","items":[{"source_line_id":"\u003cstring>","source_product_id":123,"source_variant_id":123,"quantity":123,"hs_code":"\u003cstring>"}]}],"refunded_amount":123,"items":[{"source_line_id":"\u003cstring>","hs_code":"\u003cstring>","quantity":123,"unit_price":123,"unit_discount":123,"sku":"\u003cstring>","product_name":"\u003cstring>","variant_name":"\u003cstring>","description":"\u003cstring>","origin_country_code":"\u003cstring>","category":"\u003cstring>","requires_shipping":true,"source_product_id":123,"source_variant_id":123,"refunded_quantity":123}]}],"custom_properties":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9716c131-a444-41dd-b706-46174cf52a8e":{"description":"Order successfully updated. No content returned.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"47bbfb96-9c69-43b6-8f74-811517081953":{"description":"Invalid order payload received. `message` carries the reason returned by the order system.","content":{"application/json":{"schema":{"type":"object","description":"The body returned for Direct API errors.","properties":{"message":{"type":"string","description":"A description of what went wrong.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"statusCode":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"type":"string","description":"The HTTP status text. Omitted when `message` is the status text itself, such as `Forbidden`.","uniqueKey":"error","typeLabel":"string"}},"required":["message","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","statusCode":123,"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"78a44f00-ac37-442d-99a5-b2d023c887de":{"description":"The API key is missing, invalid or inactive.","content":{"application/json":{"schema":{"type":"object","description":"The body returned for Direct API errors.","properties":{"message":{"type":"string","description":"A description of what went wrong.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"statusCode":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"type":"string","description":"The HTTP status text. Omitted when `message` is the status text itself, such as `Forbidden`.","uniqueKey":"error","typeLabel":"string"}},"required":["message","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"missingApiKey":{"title":"missingApiKey","value":{"message":"API key required in header: x-openborder-direct-api-key","error":"Unauthorized","statusCode":401}},"invalidApiKey":{"title":"invalidApiKey","value":{"message":"Invalid or inactive API key","error":"Unauthorized","statusCode":401}}},"exampleType":"examples"}},"exampleType":"examples"},"7ccd7fbc-6191-4979-953a-24091d902746":{"description":"The API key is valid but the brand it belongs to is not active.","content":{"application/json":{"schema":{"type":"object","description":"The body returned for Direct API errors.","properties":{"message":{"type":"string","description":"A description of what went wrong.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"statusCode":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"type":"string","description":"The HTTP status text. Omitted when `message` is the status text itself, such as `Forbidden`.","uniqueKey":"error","typeLabel":"string"}},"required":["message","statusCode"],"uniqueKey":"","typeLabel":"object"},"example":{"message":"Forbidden","statusCode":403},"examples":{"Example":{"title":"Example","value":{"message":"Forbidden","statusCode":403}}},"exampleType":"examples"}},"exampleType":"examples"},"93dcc4bd-b909-44b7-9998-7d5acc260c09":{"description":"Order data failed validation rules.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A summary of the error.","example":"Request payload validation error","uniqueKey":"message","typeLabel":"string"},"error":{"description":"Validation errors","type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"Field name","example":"ship_from","isRequired":true,"uniqueKey":"error.items.[INDEX].field","typeLabel":"string"},"error":{"type":"string","description":"Error message","example":"Name is required","isRequired":true,"uniqueKey":"error.items.[INDEX].error","typeLabel":"string"}},"required":["field","error"],"uniqueKey":"error.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error","typeLabel":"object[]"},"statusCode":{"type":"integer","description":"The HTTP status code.","example":422,"uniqueKey":"statusCode","typeLabel":"integer"}},"description":"The body returned when the request payload fails validation.","uniqueKey":"","typeLabel":"object"},"example":{"message":"Request payload validation error","error":[{"field":"ship_to.country_code","error":"country_code must be uppercase, country_code should not be empty, country_code must be shorter than or equal to 2 characters, country_code must be a string"}],"statusCode":422},"examples":{"Example":{"title":"Example","value":{"message":"Request payload validation error","error":[{"field":"ship_to.country_code","error":"country_code must be uppercase, country_code should not be empty, country_code must be shorter than or equal to 2 characters, country_code must be a string"}],"statusCode":422}}},"exampleType":"examples"}},"exampleType":"examples"},"2c8f0ec8-7340-4472-b534-5d8944aeab51":{"description":"More than the per-minute request limit was sent with this API key (100 by default). The body is plain text.","content":{"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"example":"Too many requests received from this API key, please try again after 1 minute","examples":{"Example":{"title":"Example","value":"Too many requests received from this API key, please try again after 1 minute"}},"exampleType":"examples"}},"exampleType":"examples"},"ce37382e-842f-425e-a9a0-759c3991496c":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"type":"object","description":"The body returned for Direct API errors.","properties":{"message":{"type":"string","description":"A description of what went wrong.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"statusCode":{"type":"integer","description":"The HTTP status code.","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"type":"string","description":"The HTTP status text. Omitted when `message` is the status text itself, such as `Forbidden`.","uniqueKey":"error","typeLabel":"string"}},"required":["message","statusCode"],"uniqueKey":"","typeLabel":"object"},"example":{"statusCode":500,"message":"Internal server error"},"examples":{"Example":{"title":"Example","value":{"statusCode":500,"message":"Internal server error"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"eed9f8e2-78a0-44e9-9900-cdc72222afb4":{"url":"https://api.openborder.com/api/direct/","description":"Production"},"b9ddf667-3f0b-49bc-93d7-faff79974329":{"url":"https://api.staging.openborder.com/api/direct/","description":"Sandbox"}}},"originalFileLocation":"api-reference/landed-cost.json"},"subdomain":"openborder-2b51b6dd","siteName":"OpenBorder API Documentation","title":"Update an order - OpenBorder API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-06T16:10:25.190Z","originalFileLocation":"api-reference/orders/update-an-order.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"## What this endpoint does Use this endpoint to update a previously submitted order. Order will be matched by the source_reference field. Supported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OpenBorder API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/openborder-2b51b6dd/3hdiynWgMBovETCn/_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/openborder-2b51b6dd/3hdiynWgMBovETCn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/openborder-2b51b6dd/3hdiynWgMBovETCn/_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/openborder-2b51b6dd/3hdiynWgMBovETCn/_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/openborder-2b51b6dd/3hdiynWgMBovETCn/_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/openborder-2b51b6dd/3hdiynWgMBovETCn/_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/openborder-2b51b6dd/3hdiynWgMBovETCn/_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/openborder-2b51b6dd/3hdiynWgMBovETCn/_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/openborder-2b51b6dd/3hdiynWgMBovETCn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update an order - OpenBorder API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"## What this endpoint does Use this endpoint to update a previously submitted order. Order will be matched by the source_reference field. Supported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OpenBorder API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.openborder.com/api-reference/orders/update-an-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://openborder-2b51b6dd.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Update+an+order\u0026amp;description=%23%23+What+this+endpoint+does%0AUse+this+endpoint+to+update+a+previously+submitted+order.+Order+will+be+matched+by+the+%60source_reference%60+field.%0A%0ASupported+updates+m\u0026amp;theme=ceaa7336a9dd6f17f8756e7f\u0026amp;signature=aa28a8b0590ac351c0c1db0f1f33a5d09bee875f16ec1fb536604634205280f8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update an order - OpenBorder API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"## What this endpoint does Use this endpoint to update a previously submitted order. Order will be matched by the source_reference field. Supported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://openborder-2b51b6dd.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Update+an+order\u0026amp;description=%23%23+What+this+endpoint+does%0AUse+this+endpoint+to+update+a+previously+submitted+order.+Order+will+be+matched+by+the+%60source_reference%60+field.%0A%0ASupported+updates+m\u0026amp;theme=ceaa7336a9dd6f17f8756e7f\u0026amp;signature=aa28a8b0590ac351c0c1db0f1f33a5d09bee875f16ec1fb536604634205280f8\">\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/openborder-2b51b6dd/3hdiynWgMBovETCn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OpenBorder API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0540f4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.openborder.com/api-reference/orders/update-an-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/orders/update-an-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.openborder.com/#organization\",\"name\":\"OpenBorder API Documentation\",\"url\":\"https://developers.openborder.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/openborder-2b51b6dd/S0NizTekLQ6ttVRZ/images/Logo-48px.png?fit=max\u0026auto=format\u0026n=S0NizTekLQ6ttVRZ\u0026q=85\u0026s=bce3b91de865573b8550ef923ea21b25\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.openborder.com#website\",\"name\":\"OpenBorder API Documentation\",\"url\":\"https://developers.openborder.com\",\"publisher\":{\"@id\":\"https://developers.openborder.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.openborder.com/api-reference/orders/update-an-order#webpage\",\"url\":\"https://developers.openborder.com/api-reference/orders/update-an-order\",\"name\":\"Update an order\",\"description\":\"## What this endpoint does Use this endpoint to update a previously submitted order. Order will be matched by the source_reference field. Supported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.\",\"dateModified\":\"2026-11-06T16:10:25.190Z\",\"isPartOf\":{\"@id\":\"https://developers.openborder.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.openborder.com/api-reference/orders/update-an-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.openborder.com/api-reference/orders/update-an-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orders\",\"item\":\"https://developers.openborder.com/api-reference/orders/submit-a-new-order\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update an order\",\"item\":\"https://developers.openborder.com/api-reference/orders/update-an-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.openborder.com/api-reference/orders/update-an-order#apireference\",\"headline\":\"Update an order\",\"name\":\"Update an order\",\"description\":\"## What this endpoint does Use this endpoint to update a previously submitted order. Order will be matched by the source_reference field. Supported updates may include order and shipment status changes, shipment product changes (for example refunds, product changes or new shipments added), or corrections to customer addresses.\",\"url\":\"https://developers.openborder.com/api-reference/orders/update-an-order\",\"mainEntityOfPage\":{\"@id\":\"https://developers.openborder.com/api-reference/orders/update-an-order#webpage\"},\"dateModified\":\"2026-11-06T16:10:25.190Z\",\"publisher\":{\"@id\":\"https://developers.openborder.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.openborder.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OpenBorder API Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"OpenBorder API Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/orders/update-an-order.md","siteName":"OpenBorder API Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"code","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Shipping Labels","pages":[{"title":"Get Label","deprecated":null,"version":null,"openapi":"/api-reference/shipping-labels.yaml post /api/post/fc/labels","href":"/api-reference/shipping-labels/get-label"}]},{"group":"Landed Cost","pages":[{"title":"Calculate Landed Cost\n","deprecated":null,"version":null,"openapi":"/api-reference/landed-cost.json post /v1/landed-cost","href":"/api-reference/landed-cost/calculate-landed-cost"},{"title":"Retrieve Landed Cost Calculation\n\n","deprecated":null,"version":null,"openapi":"/api-reference/landed-cost.json get /v1/landed-cost/{landedcost_request_id}","href":"/api-reference/landed-cost/retrieve-landed-cost-calculation"}]},{"group":"Orders","pages":[{"title":"Submit a new order","description":"## What this endpoint does\nThis endpoint **creates a final order in OpenBorder’s Order Management System (OMS)** once your customer has **selected their shipping option and agreed to the calculated landed cost**.\nThis call ensures the order is registered in OpenBorder’s OMS so we can:\n- Record the exact **duties \u0026 taxes** to be remitted to authorities\n- Guarantee the correct shipping rate is linked to the shipment\n- Generate accurate billing and settlement for your international shipments\n","deprecated":null,"version":null,"openapi":"/api-reference/landed-cost.json post /v1/orders","href":"/api-reference/orders/submit-a-new-order"},{"title":"Update an order","deprecated":null,"version":null,"openapi":"/api-reference/landed-cost.json put /v1/orders","href":"/api-reference/orders/update-an-order"}]},{"group":"Label Compliance","pages":[{"title":"Label Compliance","description":"This endpoint provides compliance information for label generation.","deprecated":null,"version":null,"openapi":"/api-reference/label-compliance.yaml post /api/v1/{partnerId}/label-compliance","href":"/api-reference/label-compliance/label-compliance"}]},{"group":"Tracking","pages":[{"title":"Get tracking","deprecated":null,"version":null,"openapi":"/api-reference/tracking.json get /api/v1/tracking/{tracking_code}","href":"/api-reference/tracking/get-the-tracking-events-of-one-shipment-by-openborder-label-or-carrier-tracking-code"},{"title":"Batch tracking lookup","deprecated":null,"version":null,"openapi":"/api-reference/tracking.json post /api/v1/tracking/lookup","href":"/api-reference/tracking/get-the-tracking-events-of-several-shipments-in-one-call"},{"title":"Get API key details","deprecated":null,"version":null,"openapi":"/api-reference/tracking.json get /api/v1/me","href":"/api-reference/api-key/what-this-api-key-is-and-which-brands-it-covers"}]}]}]},"basePath":"","title":"Update an order - OpenBorder API Documentation","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-C4GwDT3_.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}