{"docsConfig":{"theme":"willow","$schema":"https://mintlify.com/docs.json","name":"ReturnQueen Connect","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/returnqueen/DCCTquik69ik7lJD/logo/light.svg?fit=max\u0026auto=format\u0026n=DCCTquik69ik7lJD\u0026q=85\u0026s=898a1963f20b7841e497319ccdf3bebc","dark":"https://mintcdn.com/returnqueen/DCCTquik69ik7lJD/logo/dark.svg?fit=max\u0026auto=format\u0026n=DCCTquik69ik7lJD\u0026q=85\u0026s=6557a9f56a0b94212f5131c0d75a48ef"},"favicon":"/favicon.svg","navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"returnqueen","hasAudioNarration":false,"actualSubdomain":"returnqueen","customDomains":["docs.returnqueen.dev"],"gitSource":{"type":"github","owner":"returnqueen","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e6d733a4518725aac19f","collectionId":"d426eb54-9a46-48a9-8999-14a8774c7092","schemaVersion":"v2"},"entitlements":{},"buildId":"6ae927d2f5d453616651b106:success","clientVersion":"0.0.4071","searchFilterCounts":[{"language":"default","tag":"API Reference","count":16},{"language":"default","tag":"Webhooks","count":9},{"language":"default","tag":"Shipments","count":6},{"language":"default","tag":"Documentation","count":2},{"language":"default","tag":"Availability","count":1},{"language":"default","tag":"API Overview","count":1},{"language":"default","tag":"Get Started","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"vite-origin","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":"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},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api-reference/shipments/update","slug":"/api-reference/shipments/update","pageMetadata":{"title":"Update Shipment","api":"PUT /api/shipments/{id}","description":"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.","href":"/api-reference/shipments/update"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The unique identifier of the shipment to update`})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`order_number`,type:`string`,id:`param-order-number`,children:_jsx(_components.p,{children:`Order reference number`})}),`\n`,_jsx(ParamField,{body:`shipment_date`,type:`string`,id:`param-shipment-date`,children:_jsx(_components.p,{children:`Date and time for the shipment in ISO 8601 format`})}),`\n`,_jsx(ParamField,{body:`shipment_type`,type:`string`,id:`param-shipment-type`,children:_jsxs(_components.p,{children:[`Type of shipment. Must be one of: `,_jsx(_components.code,{children:`delivery`}),`, `,_jsx(_components.code,{children:`return`}),`, `,_jsx(_components.code,{children:`exchange`})]})}),`\n`,_jsx(ParamField,{body:`complete_at_start`,type:`string`,id:`param-complete-at-start`,children:_jsx(_components.p,{children:`Start of pickup window in ISO 8601 format`})}),`\n`,_jsx(ParamField,{body:`complete_at_end`,type:`string`,id:`param-complete-at-end`,children:_jsx(_components.p,{children:`End of pickup window in ISO 8601 format`})}),`\n`,_jsx(ParamField,{body:`carrier_service_level_id`,type:`string`,id:`param-carrier-service-level-id`,children:_jsx(_components.p,{children:`UUID of the carrier service level`})}),`\n`,_jsxs(ParamField,{body:`shipper`,type:`object`,id:`param-shipper`,children:[_jsx(_components.p,{children:`Shipper address information`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Shipper name`})}),_jsx(ParamField,{body:`street`,type:`string`,id:`param-street`,children:_jsx(_components.p,{children:`Street address`})}),_jsx(ParamField,{body:`city`,type:`string`,id:`param-city`,children:_jsx(_components.p,{children:`City`})}),_jsx(ParamField,{body:`state`,type:`string`,id:`param-state`,children:_jsx(_components.p,{children:`State/Province code`})}),_jsx(ParamField,{body:`zip`,type:`string`,id:`param-zip`,children:_jsx(_components.p,{children:`ZIP/Postal code`})}),_jsx(ParamField,{body:`country`,type:`string`,id:`param-country`,children:_jsx(_components.p,{children:`Country code (default: US)`})}),_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone`,children:_jsx(_components.p,{children:`Contact phone number`})}),_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`Contact email`})})]})]}),`\n`,_jsxs(ParamField,{body:`receiver`,type:`object`,id:`param-receiver`,children:[_jsx(_components.p,{children:`Receiver address information`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`Receiver name`})}),_jsx(ParamField,{body:`street`,type:`string`,id:`param-street-1`,children:_jsx(_components.p,{children:`Street address`})}),_jsx(ParamField,{body:`city`,type:`string`,id:`param-city-1`,children:_jsx(_components.p,{children:`City`})}),_jsx(ParamField,{body:`state`,type:`string`,id:`param-state-1`,children:_jsx(_components.p,{children:`State/Province code`})}),_jsx(ParamField,{body:`zip`,type:`string`,id:`param-zip-1`,children:_jsx(_components.p,{children:`ZIP/Postal code`})}),_jsx(ParamField,{body:`country`,type:`string`,id:`param-country-1`,children:_jsx(_components.p,{children:`Country code (default: US)`})}),_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone-1`,children:_jsx(_components.p,{children:`Contact phone number`})}),_jsx(ParamField,{body:`email`,type:`string`,id:`param-email-1`,children:_jsx(_components.p,{children:`Contact email`})}),_jsx(ParamField,{body:`receiver_is_residential`,type:`boolean`,id:`param-receiver-is-residential`,children:_jsx(_components.p,{children:`Is this a residential address? (default: false)`})})]})]}),`\n`,_jsx(ParamField,{body:`update_reason`,type:`string`,id:`param-update-reason`,children:_jsx(_components.p,{children:`Reason for the update (for audit trail)`})}),`\n`,_jsx(ParamField,{body:`timezone`,type:`string`,id:`param-timezone`,children:_jsx(_components.p,{children:`IANA timezone identifier (default: America/New_York)`})}),`\n`,_jsx(ParamField,{body:`label_url`,type:`string`,id:`param-label-url`,children:_jsx(_components.p,{children:`URL to the shipping label`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Additional metadata for the shipment`})}),`\n`,_jsxs(ParamField,{body:`items`,type:`array`,id:`param-items`,children:[_jsx(_components.p,{children:`List of items in the shipment`}),_jsxs(Expandable,{title:`item properties`,children:[_jsx(ParamField,{body:`value`,type:`number`,id:`param-value`,children:_jsx(_components.p,{children:`Declared value of the item`})}),_jsx(ParamField,{body:`weight`,type:`number`,id:`param-weight`,children:_jsx(_components.p,{children:`Weight of the item`})}),_jsx(ParamField,{body:`length`,type:`number`,id:`param-length`,children:_jsx(_components.p,{children:`Length of the item`})}),_jsx(ParamField,{body:`width`,type:`number`,id:`param-width`,children:_jsx(_components.p,{children:`Width of the item`})}),_jsx(ParamField,{body:`height`,type:`number`,id:`param-height`,children:_jsx(_components.p,{children:`Height of the item`})}),_jsx(ParamField,{body:`distance_unit`,type:`string`,id:`param-distance-unit`,children:_jsx(_components.p,{children:`Unit for dimensions (in, cm)`})}),_jsx(ParamField,{body:`mass_unit`,type:`string`,id:`param-mass-unit`,children:_jsx(_components.p,{children:`Unit for weight (lb, kg)`})}),_jsx(ParamField,{body:`currency`,type:`string`,id:`param-currency`,children:_jsx(_components.p,{children:`Currency for the value (default: USD)`})}),_jsx(ParamField,{body:`image_url`,type:`string`,id:`param-image-url`,children:_jsx(_components.p,{children:`URL to item image`})}),_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`Additional item metadata`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update Shipment","api":"PUT /api/shipments/{id}","description":"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.","href":"/api-reference/shipments/update"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`request-parameters`,children:`Request Parameters`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The unique identifier of the shipment to update`})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`order_number`,type:`string`,id:`param-order-number`,children:_jsx(_components.p,{children:`Order reference number`})}),`\n`,_jsx(ParamField,{body:`shipment_date`,type:`string`,id:`param-shipment-date`,children:_jsx(_components.p,{children:`Date and time for the shipment in ISO 8601 format`})}),`\n`,_jsx(ParamField,{body:`shipment_type`,type:`string`,id:`param-shipment-type`,children:_jsxs(_components.p,{children:[`Type of shipment. Must be one of: `,_jsx(_components.code,{children:`delivery`}),`, `,_jsx(_components.code,{children:`return`}),`, `,_jsx(_components.code,{children:`exchange`})]})}),`\n`,_jsx(ParamField,{body:`complete_at_start`,type:`string`,id:`param-complete-at-start`,children:_jsx(_components.p,{children:`Start of pickup window in ISO 8601 format`})}),`\n`,_jsx(ParamField,{body:`complete_at_end`,type:`string`,id:`param-complete-at-end`,children:_jsx(_components.p,{children:`End of pickup window in ISO 8601 format`})}),`\n`,_jsx(ParamField,{body:`carrier_service_level_id`,type:`string`,id:`param-carrier-service-level-id`,children:_jsx(_components.p,{children:`UUID of the carrier service level`})}),`\n`,_jsxs(ParamField,{body:`shipper`,type:`object`,id:`param-shipper`,children:[_jsx(_components.p,{children:`Shipper address information`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Shipper name`})}),_jsx(ParamField,{body:`street`,type:`string`,id:`param-street`,children:_jsx(_components.p,{children:`Street address`})}),_jsx(ParamField,{body:`city`,type:`string`,id:`param-city`,children:_jsx(_components.p,{children:`City`})}),_jsx(ParamField,{body:`state`,type:`string`,id:`param-state`,children:_jsx(_components.p,{children:`State/Province code`})}),_jsx(ParamField,{body:`zip`,type:`string`,id:`param-zip`,children:_jsx(_components.p,{children:`ZIP/Postal code`})}),_jsx(ParamField,{body:`country`,type:`string`,id:`param-country`,children:_jsx(_components.p,{children:`Country code (default: US)`})}),_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone`,children:_jsx(_components.p,{children:`Contact phone number`})}),_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`Contact email`})})]})]}),`\n`,_jsxs(ParamField,{body:`receiver`,type:`object`,id:`param-receiver`,children:[_jsx(_components.p,{children:`Receiver address information`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`Receiver name`})}),_jsx(ParamField,{body:`street`,type:`string`,id:`param-street-1`,children:_jsx(_components.p,{children:`Street address`})}),_jsx(ParamField,{body:`city`,type:`string`,id:`param-city-1`,children:_jsx(_components.p,{children:`City`})}),_jsx(ParamField,{body:`state`,type:`string`,id:`param-state-1`,children:_jsx(_components.p,{children:`State/Province code`})}),_jsx(ParamField,{body:`zip`,type:`string`,id:`param-zip-1`,children:_jsx(_components.p,{children:`ZIP/Postal code`})}),_jsx(ParamField,{body:`country`,type:`string`,id:`param-country-1`,children:_jsx(_components.p,{children:`Country code (default: US)`})}),_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone-1`,children:_jsx(_components.p,{children:`Contact phone number`})}),_jsx(ParamField,{body:`email`,type:`string`,id:`param-email-1`,children:_jsx(_components.p,{children:`Contact email`})}),_jsx(ParamField,{body:`receiver_is_residential`,type:`boolean`,id:`param-receiver-is-residential`,children:_jsx(_components.p,{children:`Is this a residential address? (default: false)`})})]})]}),`\n`,_jsx(ParamField,{body:`update_reason`,type:`string`,id:`param-update-reason`,children:_jsx(_components.p,{children:`Reason for the update (for audit trail)`})}),`\n`,_jsx(ParamField,{body:`timezone`,type:`string`,id:`param-timezone`,children:_jsx(_components.p,{children:`IANA timezone identifier (default: America/New_York)`})}),`\n`,_jsx(ParamField,{body:`label_url`,type:`string`,id:`param-label-url`,children:_jsx(_components.p,{children:`URL to the shipping label`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`Additional metadata for the shipment`})}),`\n`,_jsxs(ParamField,{body:`items`,type:`array`,id:`param-items`,children:[_jsx(_components.p,{children:`List of items in the shipment`}),_jsxs(Expandable,{title:`item properties`,children:[_jsx(ParamField,{body:`value`,type:`number`,id:`param-value`,children:_jsx(_components.p,{children:`Declared value of the item`})}),_jsx(ParamField,{body:`weight`,type:`number`,id:`param-weight`,children:_jsx(_components.p,{children:`Weight of the item`})}),_jsx(ParamField,{body:`length`,type:`number`,id:`param-length`,children:_jsx(_components.p,{children:`Length of the item`})}),_jsx(ParamField,{body:`width`,type:`number`,id:`param-width`,children:_jsx(_components.p,{children:`Width of the item`})}),_jsx(ParamField,{body:`height`,type:`number`,id:`param-height`,children:_jsx(_components.p,{children:`Height of the item`})}),_jsx(ParamField,{body:`distance_unit`,type:`string`,id:`param-distance-unit`,children:_jsx(_components.p,{children:`Unit for dimensions (in, cm)`})}),_jsx(ParamField,{body:`mass_unit`,type:`string`,id:`param-mass-unit`,children:_jsx(_components.p,{children:`Unit for weight (lb, kg)`})}),_jsx(ParamField,{body:`currency`,type:`string`,id:`param-currency`,children:_jsx(_components.p,{children:`Currency for the value (default: USD)`})}),_jsx(ParamField,{body:`image_url`,type:`string`,id:`param-image-url`,children:_jsx(_components.p,{children:`URL to item image`})}),_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata-1`,children:_jsx(_components.p,{children:`Additional item metadata`})})]})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UPDATED-ORD-12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"complete_at_start\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-09T09:00:00-05:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"complete_at_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-09T17:00:00-05:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"receiver\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jane Doe Updated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"street\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"789 New Street\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"city\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Los Angeles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CA\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"zip\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"90001\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"update_reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer requested address change\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"123e4567-e89b-12d3-a456-426614174000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UPDATED-ORD-12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shipment_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"delivery\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shipment_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-09T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"complete_at_start\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-09T14:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"complete_at_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-09T22:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"carrier_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"660e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"carrier_service_level_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"550e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pickup_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"770e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"America/New_York\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inserted_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-07T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-11-08T15:30:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update Shipment","api":"PUT /api/shipments/{id}","description":"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.","href":"/api-reference/shipments/update"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request Parameters","slug":"request-parameters","depth":2,"children":[{"title":"Path Parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Request Body","slug":"request-body","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"order_number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"UPDATED-ORD-12345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"complete_at_start\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-09T09:00:00-05:00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"complete_at_end\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-09T17:00:00-05:00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"receiver\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Jane Doe Updated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"street\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"789 New Street\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"city\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Los Angeles\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"state\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CA\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"zip\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"90001\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"update_reason\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Customer requested address change\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"14\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"123e4567-e89b-12d3-a456-426614174000\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"order_number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"UPDATED-ORD-12345\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"shipment_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"delivery\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"shipment_date\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-09T10:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"complete_at_start\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-09T14:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"complete_at_end\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-09T22:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"carrier_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"660e8400-e29b-41d4-a716-446655440000\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"carrier_service_level_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"550e8400-e29b-41d4-a716-446655440000\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"pickup_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"770e8400-e29b-41d4-a716-446655440000\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timezone\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"America/New_York\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"inserted_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-07T10:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2023-11-08T15:30:00Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Update Shipment","path":"/api/shipments/{id}","method":"put","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{"id":{"schema":[{"type":"string","description":"The unique identifier of the shipment to update","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"order_number":[{"type":"string","description":"Order reference number"}],"shipment_date":[{"type":"string","description":"Date and time for the shipment in ISO 8601 format"}],"shipment_type":[{"type":"string","description":"Type of shipment. Must be one of: `delivery` , `return` , `exchange`"}],"complete_at_start":[{"type":"string","description":"Start of pickup window in ISO 8601 format"}],"complete_at_end":[{"type":"string","description":"End of pickup window in ISO 8601 format"}],"carrier_service_level_id":[{"type":"string","description":"UUID of the carrier service level"}],"shipper":[{"type":"object","properties":{"name":[{"type":"string","description":"Shipper name"}],"street":[{"type":"string","description":"Street address"}],"city":[{"type":"string","description":"City"}],"state":[{"type":"string","description":"State/Province code"}],"zip":[{"type":"string","description":"ZIP/Postal code"}],"country":[{"type":"string","description":"Country code (default: US)"}],"phone":[{"type":"string","description":"Contact phone number"}],"email":[{"type":"string","description":"Contact email"}]},"description":"Shipper address information"}],"receiver":[{"type":"object","properties":{"name":[{"type":"string","description":"Receiver name"}],"street":[{"type":"string","description":"Street address"}],"city":[{"type":"string","description":"City"}],"state":[{"type":"string","description":"State/Province code"}],"zip":[{"type":"string","description":"ZIP/Postal code"}],"country":[{"type":"string","description":"Country code (default: US)"}],"phone":[{"type":"string","description":"Contact phone number"}],"email":[{"type":"string","description":"Contact email"}],"receiver_is_residential":[{"type":"boolean","description":"Is this a residential address? (default: false)"}]},"description":"Receiver address information"}],"update_reason":[{"type":"string","description":"Reason for the update (for audit trail)"}],"timezone":[{"type":"string","description":"IANA timezone identifier (default: America/New_York)"}],"label_url":[{"type":"string","description":"URL to the shipping label"}],"metadata":[{"type":"object","properties":{},"description":"Additional metadata for the shipment"}],"items":[{"type":"array","items":[{"type":"object","properties":{"value":[{"type":"number","description":"Declared value of the item"}],"weight":[{"type":"number","description":"Weight of the item"}],"length":[{"type":"number","description":"Length of the item"}],"width":[{"type":"number","description":"Width of the item"}],"height":[{"type":"number","description":"Height of the item"}],"distance_unit":[{"type":"string","description":"Unit for dimensions (in, cm)"}],"mass_unit":[{"type":"string","description":"Unit for weight (lb, kg)"}],"currency":[{"type":"string","description":"Currency for the value (default: USD)"}],"image_url":[{"type":"string","description":"URL to item image"}],"metadata":[{"type":"object","properties":{},"description":"Additional item metadata"}]}}],"description":"List of items in the shipment"}]}}],"examples":{"example":{"value":{"order_number":"\u003cstring>","shipment_date":"\u003cstring>","shipment_type":"\u003cstring>","complete_at_start":"\u003cstring>","complete_at_end":"\u003cstring>","carrier_service_level_id":"\u003cstring>","shipper":{"name":"\u003cstring>","street":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","zip":"\u003cstring>","country":"\u003cstring>","phone":"\u003cstring>","email":"\u003cstring>"},"receiver":{"name":"\u003cstring>","street":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","zip":"\u003cstring>","country":"\u003cstring>","phone":"\u003cstring>","email":"\u003cstring>","receiver_is_residential":true},"update_reason":"\u003cstring>","timezone":"\u003cstring>","label_url":"\u003cstring>","metadata":{},"items":[{"value":123,"weight":123,"length":123,"width":123,"height":123,"distance_unit":"\u003cstring>","mass_unit":"\u003cstring>","currency":"\u003cstring>","image_url":"\u003cstring>","metadata":{}}]}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"returnqueen","siteName":"ReturnQueen Connect","title":"Update Shipment - ReturnQueen Connect","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T08:00:34.400Z","originalFileLocation":"api-reference/shipments/update.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ReturnQueen Connect\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/returnqueen/aGMRmBTJQLpJiUWp/_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/returnqueen/aGMRmBTJQLpJiUWp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/returnqueen/aGMRmBTJQLpJiUWp/_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/returnqueen/aGMRmBTJQLpJiUWp/_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/returnqueen/aGMRmBTJQLpJiUWp/_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/returnqueen/aGMRmBTJQLpJiUWp/_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/returnqueen/aGMRmBTJQLpJiUWp/_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/returnqueen/aGMRmBTJQLpJiUWp/_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/returnqueen/aGMRmBTJQLpJiUWp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Shipment - ReturnQueen Connect\">\u003cmeta data-mint-head property=\"og:description\" content=\"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ReturnQueen Connect\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.returnqueen.dev/api-reference/shipments/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://returnqueen.mintlify.app/_mintlify/api/og/v2?division=Shipments\u0026amp;title=Update+Shipment\u0026amp;description=Updates+a+shipment+including+addresses+and+items.+Only+pending+or+scheduled+shipments+can+be+updated.\u0026amp;theme=eb16ad4c3f37442f9a5b4866\u0026amp;signature=cd124cf49a86631ae5a6dfc13eb466909c893f7b9efbc71e8f207ac563660194\">\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 Shipment - ReturnQueen Connect\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://returnqueen.mintlify.app/_mintlify/api/og/v2?division=Shipments\u0026amp;title=Update+Shipment\u0026amp;description=Updates+a+shipment+including+addresses+and+items.+Only+pending+or+scheduled+shipments+can+be+updated.\u0026amp;theme=eb16ad4c3f37442f9a5b4866\u0026amp;signature=cd124cf49a86631ae5a6dfc13eb466909c893f7b9efbc71e8f207ac563660194\">\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/returnqueen/aGMRmBTJQLpJiUWp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ReturnQueen Connect\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.returnqueen.dev/api-reference/shipments/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/shipments/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.returnqueen.dev/#organization\",\"name\":\"ReturnQueen Connect\",\"url\":\"https://docs.returnqueen.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/returnqueen/DCCTquik69ik7lJD/logo/light.svg?fit=max\u0026auto=format\u0026n=DCCTquik69ik7lJD\u0026q=85\u0026s=898a1963f20b7841e497319ccdf3bebc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.returnqueen.dev#website\",\"name\":\"ReturnQueen Connect\",\"url\":\"https://docs.returnqueen.dev\",\"publisher\":{\"@id\":\"https://docs.returnqueen.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.returnqueen.dev/api-reference/shipments/update#webpage\",\"url\":\"https://docs.returnqueen.dev/api-reference/shipments/update\",\"name\":\"Update Shipment\",\"description\":\"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.\",\"dateModified\":\"2026-01-07T08:00:34.400Z\",\"isPartOf\":{\"@id\":\"https://docs.returnqueen.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.returnqueen.dev/api-reference/shipments/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.returnqueen.dev/api-reference/shipments/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Shipments\",\"item\":\"https://docs.returnqueen.dev/api-reference/shipments/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update Shipment\",\"item\":\"https://docs.returnqueen.dev/api-reference/shipments/update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.returnqueen.dev/api-reference/shipments/update#apireference\",\"headline\":\"Update Shipment\",\"name\":\"Update Shipment\",\"description\":\"Updates a shipment including addresses and items. Only pending or scheduled shipments can be updated.\",\"url\":\"https://docs.returnqueen.dev/api-reference/shipments/update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.returnqueen.dev/api-reference/shipments/update#webpage\"},\"dateModified\":\"2026-01-07T08:00:34.400Z\",\"publisher\":{\"@id\":\"https://docs.returnqueen.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.returnqueen.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ReturnQueen Connect\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"ReturnQueen Connect","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Shipments","pages":[{"title":"Create a Shipment","api":"POST /api/shipments","href":"/api-reference/shipments/create"},{"title":"Get Shipment Details","api":"GET /api/shipments/{id}","description":"Retrieves detailed information about a specific shipment","href":"/api-reference/shipments/show"},{"title":"Update Shipment","api":"PUT /api/shipments/{id}","href":"/api-reference/shipments/update"},{"title":"Cancel Shipment","api":"DELETE /api/shipments/{id}","description":"Cancels a shipment by setting its status to cancelled","href":"/api-reference/shipments/delete"},{"title":"Create Batch of Shipments","api":"POST /api/shipments/batch","href":"/api-reference/shipments/batch-create"},{"title":"Get Shipment Audit History","api":"GET /api/shipments/{id}/versions","href":"/api-reference/shipments/versions"}]},{"group":"Availability","pages":[{"title":"Check Availability","api":"GET /api/availability","href":"/api-reference/availability/show"}]},{"group":"Webhooks","pages":[{"title":"List Webhooks","api":"GET /api/partner_webhooks","href":"/api-reference/webhooks/list"},{"title":"Create Webhook","api":"POST /api/partner_webhooks","href":"/api-reference/webhooks/create"},{"title":"Get Webhook Details","api":"GET /api/partner_webhooks/{id}","href":"/api-reference/webhooks/show"},{"title":"Update Webhook","api":"PUT /api/partner_webhooks/{id}","href":"/api-reference/webhooks/update"},{"title":"Delete Webhook","api":"DELETE /api/partner_webhooks/{id}","href":"/api-reference/webhooks/delete"},{"title":"Disable Webhook","api":"POST /api/partner_webhooks/{partner_webhooks_id}/disable","href":"/api-reference/webhooks/disable"},{"title":"Enable Webhook","api":"POST /api/partner_webhooks/{partner_webhooks_id}/enable","href":"/api-reference/webhooks/enable"},{"title":"List Webhook Event Types","api":"GET /api/webhooks/event-types","href":"/api-reference/webhooks/event-types"},{"title":"Send Test Event","api":"POST /api/webhooks/test","href":"/api-reference/webhooks/test"}]}]}]},"basePath":"","title":"Update Shipment - ReturnQueen Connect","buildId":"dpl_GZsjphRpnhWkstV12jxWNcMHFyox","deploymentId":"dpl_GZsjphRpnhWkstV12jxWNcMHFyox","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-B5zPa4Vr.js","utils-CVjrr8Yd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DTgURWzl.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DxTHtkdZ.js","snippetPresets-Cx47o5Vx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-4Fr6y9N_.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Dq2ElbEk.js","shallow-BfYl9r69.js","getApiPlaygroundDisplay-Ch3xc7i1.js","CodeSnippet-BsBxuJ1v.js","CodeSnippets-CetzeDL8.js","Page-CYZot51e.js","getPastedJson-BxPKFSJx.js","icon-o0J1Ochb.js","MethodPill-Du3usO5m.js","DuplicateIcon-DJypyMzl.js","createIcon-YMA6N8KJ.js","DynamicMarkdown-CWvhfcZc.js","SectionHeading-BdLVaXCd.js","axios-vUo_bRtp.js"]}