Returns 200 with the shipment wrapped in data.A shipment that belongs to another workspace returns 404.An invalid jump (for example pending to delivered) returns 422:
{ "message": "This status change is not allowed for the shipment.", "errors": { "status": ["This status change is not allowed for the shipment."] }}
Payment status is separate. Marking a shipment awaiting_pickup through this endpoint does not collect payment. Use it when your own process (or a rider) needs to move delivery state.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kasiye","description":"Quote, create, and manage shipments with the Kasiye workspace API.","colors":{"primary":"#E05A1B","light":"#EA580C","dark":"#FB923C"},"logo":{"light":"https://mintcdn.com/kasiye/qha5jz8BGYkeFbVr/logo/light.svg?fit=max\u0026auto=format\u0026n=qha5jz8BGYkeFbVr\u0026q=85\u0026s=5f460b4f56e75a569d8f86e795ee1da2","dark":"https://mintcdn.com/kasiye/qha5jz8BGYkeFbVr/logo/dark.svg?fit=max\u0026auto=format\u0026n=qha5jz8BGYkeFbVr\u0026q=85\u0026s=5c3c2bb25cabe0c25c9b78f8c5a1ebdf"},"favicon":"https://mintcdn.com/kasiye/qha5jz8BGYkeFbVr/favicon.svg?fit=max\u0026auto=format\u0026n=qha5jz8BGYkeFbVr\u0026q=85\u0026s=9843a43a2846eb72b8b3da244e92f059","api":{"playground":{"display":"interactive"},"examples":{"languages":["bash","javascript","python"]},"url":"full","mdx":{"auth":{"method":"bearer"},"server":["https://api.kasiye.com/v1","http://api.localhost:8000/v1"]}},"navbar":{"links":[{"href":"https://kasiye.com","label":"Dashboard"}],"primary":{"type":"button","label":"Get started","href":"https://app.kasiye.com/register"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kasiye","hasAudioNarration":false,"actualSubdomain":"kasiye","customDomains":["docs.kasiye.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-paychangu-3b44c321","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aea221fe5156d044f1adf74:success","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API reference","count":7},{"language":"default","tag":"Shipments","count":7},{"language":"default","tag":"Documentation","count":6},{"language":"default","tag":"Getting started","count":3},{"language":"default","tag":"Guides","count":3}]},"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":false},"customCss":[],"page":{"pagePath":"api-reference/update-shipment-status","slug":"/api-reference/update-shipment-status","pageMetadata":{"title":"Update shipment status","description":"Advance delivery status along pending, awaiting pickup, in transit, and delivered.","api":"PATCH /shipments/{shipment}/status","icon":"truck","keywords":["status","in_transit","delivered","awaiting_pickup"],"href":"/api-reference/update-shipment-status"},"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: \"Advance delivery status along pending, awaiting pickup, in transit, and delivered.\"\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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Advance a shipment one step along the delivery path. You cannot skip statuses, go backwards, or set `,_jsx(_components.code,{children:`cancelled`}),` here — use `,_jsx(_components.a,{href:`/api-reference/cancel-shipment`,children:`cancel`}),` for that.`]}),`\n`,_jsx(Heading,{level:`2`,id:`allowed-transitions`,children:`Allowed transitions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Current status`}),_jsx(_components.th,{children:`Next status you can send`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`awaiting_pickup`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`awaiting_pickup`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`in_transit`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`in_transit`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`delivered`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`delivered`})}),_jsx(_components.td,{children:`None`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cancelled`})}),_jsx(_components.td,{children:`None`})]})]})]}),`\n`,_jsx(ParamField,{path:`shipment`,type:`string`,required:true,id:`param-shipment`,children:_jsxs(_components.p,{children:[`Shipment reference, for example `,_jsx(_components.code,{children:`SHP-12345`}),`.`]})}),`\n`,_jsx(ParamField,{body:`status`,type:`string`,required:true,id:`param-status`,children:_jsx(_components.p,{children:`The next delivery status. Must be the single allowed next value for the shipment’s current status.`})}),`\n`,`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`200`}),` with the shipment wrapped in `,_jsx(_components.code,{children:`data`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A shipment that belongs to another workspace returns `,_jsx(_components.code,{children:`404`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`An invalid jump (for example `,_jsx(_components.code,{children:`pending`}),` to `,_jsx(_components.code,{children:`delivered`}),`) returns `,_jsx(_components.code,{children:`422`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This status change is not allowed for the shipment.\"`}),_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:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This status change is not allowed for the shipment.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Payment status is separate. Marking a shipment `,_jsx(_components.code,{children:`awaiting_pickup`}),` through this endpoint does not collect payment. Use it when your own process (or a rider) needs to move delivery state.`]})})]})}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 status","description":"Advance delivery status along pending, awaiting pickup, in transit, and delivered.","api":"PATCH /shipments/{shipment}/status","icon":"truck","keywords":["status","in_transit","delivered","awaiting_pickup"],"href":"/api-reference/update-shipment-status"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Advance a shipment one step along the delivery path. You cannot skip statuses, go backwards, or set `,_jsx(_components.code,{children:`cancelled`}),` here — use `,_jsx(_components.a,{href:`/api-reference/cancel-shipment`,children:`cancel`}),` for that.`]}),`\n`,_jsx(Heading,{level:`2`,id:`allowed-transitions`,children:`Allowed transitions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Current status`}),_jsx(_components.th,{children:`Next status you can send`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`awaiting_pickup`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`awaiting_pickup`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`in_transit`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`in_transit`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`delivered`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`delivered`})}),_jsx(_components.td,{children:`None`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cancelled`})}),_jsx(_components.td,{children:`None`})]})]})]}),`\n`,_jsx(ParamField,{path:`shipment`,type:`string`,required:true,id:`param-shipment`,children:_jsxs(_components.p,{children:[`Shipment reference, for example `,_jsx(_components.code,{children:`SHP-12345`}),`.`]})}),`\n`,_jsx(ParamField,{body:`status`,type:`string`,required:true,id:`param-status`,children:_jsx(_components.p,{children:`The next delivery status. Must be the single allowed next value for the shipment’s current status.`})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.kasiye.com/v1/shipments/SHP-12345/status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer shp_your_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"status\": \"awaiting_pickup\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`200`}),` with the shipment wrapped in `,_jsx(_components.code,{children:`data`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A shipment that belongs to another workspace returns `,_jsx(_components.code,{children:`404`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`An invalid jump (for example `,_jsx(_components.code,{children:`pending`}),` to `,_jsx(_components.code,{children:`delivered`}),`) returns `,_jsx(_components.code,{children:`422`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This status change is not allowed for the shipment.\"`}),_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:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This status change is not allowed for the shipment.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Payment status is separate. Marking a shipment `,_jsx(_components.code,{children:`awaiting_pickup`}),` through this endpoint does not collect payment. Use it when your own process (or a rider) needs to move delivery state.`]})})]})}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 status","description":"Advance delivery status along pending, awaiting pickup, in transit, and delivered.","api":"PATCH /shipments/{shipment}/status","icon":"truck","keywords":["status","in_transit","delivered","awaiting_pickup"],"href":"/api-reference/update-shipment-status"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Allowed transitions","slug":"allowed-transitions","depth":2,"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=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> PATCH\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.kasiye.com/v1/shipments/SHP-12345/status\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer shp_your_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"status\": \"awaiting_pickup\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Update shipment status","path":"/shipments/{shipment}/status","servers":[{"url":"https://api.kasiye.com/v1"},{"url":"http://api.localhost:8000/v1"}],"method":"patch","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"shipment":{"schema":[{"type":"string","description":"Shipment reference, for example `SHP-12345` .","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"status":[{"type":"string","description":"The next delivery status. Must be the single allowed next value for the shipment’s current status.","required":true}]}}],"examples":{"example":{"value":{"status":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"kasiye","siteName":"Kasiye","title":"Update shipment status - Kasiye","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-13T10:51:22.795Z","originalFileLocation":"api-reference/update-shipment-status.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=\"Advance delivery status along pending, awaiting pickup, in transit, and delivered.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kasiye\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_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/kasiye/Qo2-dNWDS3LCCoaX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update shipment status - Kasiye\">\u003cmeta data-mint-head property=\"og:description\" content=\"Advance delivery status along pending, awaiting pickup, in transit, and delivered.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kasiye\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kasiye.com/api-reference/update-shipment-status\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kasiye.mintlify.site/_mintlify/api/og/v2?division=Shipments\u0026amp;title=Update+shipment+status\u0026amp;description=Advance+delivery+status+along+pending%2C+awaiting+pickup%2C+in+transit%2C+and+delivered.\u0026amp;theme=17b12ddd23548fc387d67bba\u0026amp;signature=14f3f4373ff28cb62980ac0d82fd2a92d6bb792d3fd029f45af888c064df59d3\">\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 status - Kasiye\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Advance delivery status along pending, awaiting pickup, in transit, and delivered.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kasiye.mintlify.site/_mintlify/api/og/v2?division=Shipments\u0026amp;title=Update+shipment+status\u0026amp;description=Advance+delivery+status+along+pending%2C+awaiting+pickup%2C+in+transit%2C+and+delivered.\u0026amp;theme=17b12ddd23548fc387d67bba\u0026amp;signature=14f3f4373ff28cb62980ac0d82fd2a92d6bb792d3fd029f45af888c064df59d3\">\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/kasiye/Qo2-dNWDS3LCCoaX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kasiye\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E05A1B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kasiye.com/api-reference/update-shipment-status\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/update-shipment-status.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kasiye.com/#organization\",\"name\":\"Kasiye\",\"url\":\"https://docs.kasiye.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kasiye/qha5jz8BGYkeFbVr/logo/light.svg?fit=max\u0026auto=format\u0026n=qha5jz8BGYkeFbVr\u0026q=85\u0026s=5f460b4f56e75a569d8f86e795ee1da2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kasiye.com#website\",\"name\":\"Kasiye\",\"url\":\"https://docs.kasiye.com\",\"publisher\":{\"@id\":\"https://docs.kasiye.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kasiye.com/api-reference/update-shipment-status#webpage\",\"url\":\"https://docs.kasiye.com/api-reference/update-shipment-status\",\"name\":\"Update shipment status\",\"description\":\"Advance delivery status along pending, awaiting pickup, in transit, and delivered.\",\"dateModified\":\"2026-08-13T10:51:22.795Z\",\"isPartOf\":{\"@id\":\"https://docs.kasiye.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kasiye.com/api-reference/update-shipment-status#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kasiye.com/api-reference/update-shipment-status#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Shipments\",\"item\":\"https://docs.kasiye.com/api-reference/list-shipments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update shipment status\",\"item\":\"https://docs.kasiye.com/api-reference/update-shipment-status\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.kasiye.com/api-reference/update-shipment-status#apireference\",\"headline\":\"Update shipment status\",\"name\":\"Update shipment status\",\"description\":\"Advance delivery status along pending, awaiting pickup, in transit, and delivered.\",\"url\":\"https://docs.kasiye.com/api-reference/update-shipment-status\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kasiye.com/api-reference/update-shipment-status#webpage\"},\"dateModified\":\"2026-08-13T10:51:22.795Z\",\"keywords\":\"status, in_transit, delivered, awaiting_pickup\",\"publisher\":{\"@id\":\"https://docs.kasiye.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kasiye.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kasiye\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Kasiye","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Shipments","icon":"box","pages":[{"title":"List shipments","api":"GET /shipments","icon":"list","href":"/api-reference/list-shipments"},{"title":"Quote a shipment","api":"POST /shipments/quote","icon":"calculator","href":"/api-reference/quote-shipment"},{"title":"Create a shipment","api":"POST /shipments","icon":"plus","href":"/api-reference/create-shipment"},{"title":"Retrieve a shipment","api":"GET /shipments/{shipment}","icon":"box","href":"/api-reference/retrieve-shipment"},{"title":"Update a shipment","description":"Change customer, addresses, and weight while the shipment is unpaid.","api":"PATCH /shipments/{shipment}","icon":"pen","href":"/api-reference/update-shipment"},{"title":"Update shipment status","api":"PATCH /shipments/{shipment}/status","icon":"truck","href":"/api-reference/update-shipment-status"},{"title":"Cancel a shipment","description":"Cancel a shipment that has not started delivery.","api":"POST /shipments/{shipment}/cancel","icon":"ban","href":"/api-reference/cancel-shipment"}]}]}]},"basePath":"","title":"Update shipment status - Kasiye","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js"]}