{
"type": "https://api.drophub.example/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}
{
"type": "https://api.drophub.example/problems/authentication-required",
"title": "Authentication required",
"status": 401,
"detail": "Authentication is required for this resource.",
"instance": "/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "AUTHENTICATION_REQUIRED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}
{
"type": "https://api.drophub.example/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}
{
"type": "https://api.drophub.example/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}
{
"type": "https://api.drophub.example/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}
{
"type": "https://api.drophub.example/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}
{
"type": "https://api.drophub.example/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}
{
"type": "https://api.drophub.example/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}
External Shipments
Change the destination or recipient of an own Direct API shipment
If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant’s agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location’s opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).
PATCH
/
api
/
v2
/
external
/
shipments
/
{shipmentId}
Change the destination or recipient of an own Direct API shipment
ASSIGNED covers an offer awaiting the driver's acceptance and an accepted one. NO_DRIVER_AVAILABLE means the bounded driver search ended without a driver; the shipment can still be cancelled.
The driver who accepted the shipment, while it is still moving. Phone number, surname, licence and identifiers are not disclosed; contact goes through the shipment conversation.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DropHub External API","colors":{"primary":"#F0630F","light":"#F0630F","dark":"#D95609"},"logo":{"light":"https://mintcdn.com/drophub/qYk8Wm8U0QVU5HCy/images/logo.png?fit=max\u0026auto=format\u0026n=qYk8Wm8U0QVU5HCy\u0026q=85\u0026s=826b10e7d04c91ac183ed0c95172b175","dark":"https://mintcdn.com/drophub/qYk8Wm8U0QVU5HCy/images/logo.png?fit=max\u0026auto=format\u0026n=qYk8Wm8U0QVU5HCy\u0026q=85\u0026s=826b10e7d04c91ac183ed0c95172b175"},"favicon":{"light":"https://mintcdn.com/drophub/qYk8Wm8U0QVU5HCy/images/favicon.png?fit=max\u0026auto=format\u0026n=qYk8Wm8U0QVU5HCy\u0026q=85\u0026s=6d3f7b6ccb71216f430060104028f185","dark":"https://mintcdn.com/drophub/qYk8Wm8U0QVU5HCy/images/favicon.png?fit=max\u0026auto=format\u0026n=qYk8Wm8U0QVU5HCy\u0026q=85\u0026s=6d3f7b6ccb71216f430060104028f185"},"api":{"openapi":"openapi.yaml"},"navbar":{"links":[{"href":"mailto:hi@mintlify.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.mintlify.com"}},"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":"drophub","hasAudioNarration":false,"actualSubdomain":"drophub","customDomains":["docs.drop-hub.com"],"gitSource":{"type":"github","owner":"abdualziz-techsea","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6a900253862b58b209399b2f","collectionId":"34b5af8c-ab9d-460f-a755-912fd58eb088","liveDeploymentHistoryId":"6a900253862b58b209399b2f","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae6376bf0613c360e9966b0","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API reference","count":11},{"language":"default","tag":"External Webhooks","count":5},{"language":"default","tag":"Shipments","count":3},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"External Shipments","count":3},{"language":"default","tag":"Authentication","count":2},{"language":"default","tag":"Request semantics","count":2},{"language":"default","tag":"External Tracking","count":2},{"language":"default","tag":"Events","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment","slug":"/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment","pageMetadata":{"title":"Change the destination or recipient of an own Direct API shipment","description":"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant's agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location's opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /api/v2/external/shipments/{shipmentId}","href":"/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment","autogeneratedByOpenApi":true},"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: \"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant’s agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location’s opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Change the destination or recipient of an own Direct API shipment","description":"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant's agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location's opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /api/v2/external/shipments/{shipmentId}","href":"/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["External Shipments"],"operationId":"changeExternalShipment","summary":"Change the destination or recipient of an own Direct API shipment","description":"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant's agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location's opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).","security":["319803aa-79e9-4403-ad78-392799db8146"],"parameters":["10c13dbe-24c9-4f9b-95aa-8b5a2e21f293","41ce4a84-d070-4abd-9071-50f144e3b886"],"requestBody":"58804610-6d07-45c1-8fc4-7f00114ad6ef","responses":{"200":"7549a543-cb02-4185-ba8e-d0a3663f4b2f","400":"2409d348-9120-47bf-b893-59ad3417331e","401":"d28848e4-530b-40dc-9261-eb1e85aa2fb7","403":"337b7056-e30a-4e49-96fa-c3efd17ec226","404":"9cb379e8-0b22-447c-a9cf-a4cbe80c68db","409":"3fa3a84b-51b7-4e48-96ad-38f2c19b8eac","412":"d8bbbb57-64bf-43da-a487-7daed1ba4c6f","422":"ce9f5292-9ef9-47c3-b235-7cda84cf44c4","428":"6e752f0b-0c10-4a42-a5eb-6fd41a6a5df5"},"method":"patch","type":"path","servers":["75971e53-b119-43d6-8592-4776264cb4c7","ab621a2f-9f82-4625-8803-7357fcdb35eb"],"path":"/api/v2/external/shipments/{shipmentId}","baseUrlOptions":["https://api-test.drop-hub.com","https://api.drop-hub.com"],"title":"Change the destination or recipient of an own Direct API shipment","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"10c13dbe-24c9-4f9b-95aa-8b5a2e21f293":{"name":"shipmentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cuuid>"}},"41ce4a84-d070-4abd-9071-50f144e3b886":{"name":"If-Match","in":"header","required":true,"schema":{"type":"string","example":"\"3\"","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"description":"Include destination, recipient, pickupWindow, or any combination. Absent parts are not changed.","properties":{"destination":{"type":"object","additionalProperties":false,"required":["latitude","longitude"],"properties":{"latitude":{"type":"number","minimum":-90,"maximum":90,"multipleOf":0.000001,"isRequired":true,"uniqueKey":"destination.latitude","typeLabel":"number"},"longitude":{"type":"number","minimum":-180,"maximum":180,"multipleOf":0.000001,"isRequired":true,"uniqueKey":"destination.longitude","typeLabel":"number"}},"uniqueKey":"destination","typeLabel":"object"},"recipient":{"type":"object","additionalProperties":false,"required":["name","mobile"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120,"isRequired":true,"uniqueKey":"recipient.name","typeLabel":"string"},"mobile":{"type":"string","pattern":"^(?:05|5|\\\\+9665)[0-9]{8}$","description":"Saudi mobile; DropHub stores canonical +9665XXXXXXXX.","isRequired":true,"uniqueKey":"recipient.mobile","typeLabel":"string"}},"uniqueKey":"recipient","typeLabel":"object"},"pickupWindow":{"type":"object","additionalProperties":false,"required":["start","end"],"properties":{"start":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"pickupWindow.start","typeLabel":"string\u003cdate-time>"},"end":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"pickupWindow.end","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"pickupWindow","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"newDestinationAndRecipient":{"title":"newDestinationAndRecipient","value":{"destination":{"latitude":24.775,"longitude":46.739},"recipient":{"name":"Noura","mobile":559876543}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"7549a543-cb02-4185-ba8e-d0a3663f4b2f":{"description":"Minimal partner-safe shipment","headers":{"ETag":{"description":"Strong numeric entity version for the next state-changing request.","schema":{"type":"string","pattern":"^\"[0-9]+\"$"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["id","reference","status","trackingUrl","createdAt","version"],"properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"reference":{"type":"string","isRequired":true,"uniqueKey":"reference","typeLabel":"string"},"status":{"type":"string","enum":["CREATED","ASSIGNED","PICKED_UP","OUT_FOR_DELIVERY","DELIVERED","FAILED","NO_DRIVER_AVAILABLE","CANCELLED"],"description":"ASSIGNED covers an offer awaiting the driver's acceptance and an accepted one. NO_DRIVER_AVAILABLE means the bounded driver search ended without a driver; the shipment can still be cancelled.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"trackingUrl":{"type":"string","format":"uri-reference","isRequired":true,"uniqueKey":"trackingUrl","typeLabel":"string\u003curi-reference>"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"version":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"version","typeLabel":"integer\u003cint64>"},"codAmount":{"oneOf":[{"type":"number","format":"decimal","minimum":0,"uniqueKey":"codAmount.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","minimum":0,"uniqueKey":"codAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"codAmount","typeLabel":"number\u003cdecimal> | null"},"deliveryFeeAmount":{"oneOf":[{"type":"number","format":"decimal","minimum":0,"uniqueKey":"deliveryFeeAmount.oneOf.0","typeLabel":"number\u003cdecimal>"},{"type":"null","format":"decimal","minimum":0,"uniqueKey":"deliveryFeeAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"deliveryFeeAmount","typeLabel":"number\u003cdecimal> | null"},"deliveryFeeCurrency":{"oneOf":[{"type":"string","example":"SAR","uniqueKey":"deliveryFeeCurrency.oneOf.0","typeLabel":"string"},{"type":"null","example":"SAR","uniqueKey":"deliveryFeeCurrency.oneOf.1","typeLabel":"null"}],"uniqueKey":"deliveryFeeCurrency","typeLabel":"string | null"},"eta":{"oneOf":[{"type":"object","required":["target","estimatedArrivalAt","estimatedMinutes","calculatedAt","distanceMetres"],"properties":{"target":{"type":"string","enum":["PICKUP","DELIVERY"],"isRequired":true,"uniqueKey":"eta.oneOf.0.target","typeLabel":"enum\u003cstring>"},"estimatedArrivalAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"eta.oneOf.0.estimatedArrivalAt","typeLabel":"string\u003cdate-time>"},"estimatedMinutes":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"eta.oneOf.0.estimatedMinutes","typeLabel":"integer\u003cint64>"},"calculatedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"eta.oneOf.0.calculatedAt","typeLabel":"string\u003cdate-time>"},"distanceMetres":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"eta.oneOf.0.distanceMetres","typeLabel":"integer\u003cint64>"}},"additionalProperties":false,"uniqueKey":"eta.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"eta.oneOf.1","typeLabel":"null"}],"uniqueKey":"eta","typeLabel":"object | null"},"proofAvailable":{"type":"boolean","uniqueKey":"proofAvailable","typeLabel":"boolean"},"proofType":{"oneOf":[{"type":"string","enum":["PHOTO","SIGNATURE",null],"uniqueKey":"proofType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["PHOTO","SIGNATURE",null],"uniqueKey":"proofType.oneOf.1","typeLabel":"null"}],"uniqueKey":"proofType","typeLabel":"enum\u003cstring> | null"},"deliveredAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"deliveredAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","uniqueKey":"deliveredAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"deliveredAt","typeLabel":"string\u003cdate-time> | null"},"failureReasonCode":{"oneOf":[{"type":"string","uniqueKey":"failureReasonCode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"failureReasonCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"failureReasonCode","typeLabel":"string | null"},"cancellationReasonCode":{"oneOf":[{"type":"string","uniqueKey":"cancellationReasonCode.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"cancellationReasonCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancellationReasonCode","typeLabel":"string | null"},"driver":{"oneOf":[{"type":"object","description":"The driver who accepted the shipment, while it is still moving. Phone number, surname, licence and identifiers are not disclosed; contact goes through the shipment conversation.","properties":{"firstName":{"oneOf":[{"type":"string","uniqueKey":"driver.oneOf.0.firstName.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"driver.oneOf.0.firstName.oneOf.1","typeLabel":"null"}],"uniqueKey":"driver.oneOf.0.firstName","typeLabel":"string | null"},"vehicleType":{"oneOf":[{"type":"string","enum":["MOTORCYCLE","CAR","VAN","TRUCK",null],"uniqueKey":"driver.oneOf.0.vehicleType.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["MOTORCYCLE","CAR","VAN","TRUCK",null],"uniqueKey":"driver.oneOf.0.vehicleType.oneOf.1","typeLabel":"null"}],"uniqueKey":"driver.oneOf.0.vehicleType","typeLabel":"enum\u003cstring> | null"},"vehiclePlate":{"oneOf":[{"type":"string","uniqueKey":"driver.oneOf.0.vehiclePlate.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"driver.oneOf.0.vehiclePlate.oneOf.1","typeLabel":"null"}],"uniqueKey":"driver.oneOf.0.vehiclePlate","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"driver.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"driver.oneOf.1","typeLabel":"null"}],"uniqueKey":"driver","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","reference":"\u003cstring>","status":"CREATED","trackingUrl":"\u003cstring>","createdAt":"2023-11-07T05:31:56Z","version":1,"codAmount":1,"deliveryFeeAmount":1,"deliveryFeeCurrency":"SAR","eta":{"target":"PICKUP","estimatedArrivalAt":"2023-11-07T05:31:56Z","estimatedMinutes":123,"calculatedAt":"2023-11-07T05:31:56Z","distanceMetres":123},"proofAvailable":true,"proofType":"PHOTO","deliveredAt":"2023-11-07T05:31:56Z","failureReasonCode":"\u003cstring>","cancellationReasonCode":"\u003cstring>","driver":{"firstName":"\u003cstring>","vehicleType":"MOTORCYCLE","vehiclePlate":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"2409d348-9120-47bf-b893-59ad3417331e":{"description":"The request syntax, path parameter, query parameter, or JSON document is malformed.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details with stable DropHub extensions","additionalProperties":true,"required":["type","title","status","code","timestamp","correlationId","requestId"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","format":"int32","minimum":400,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer\u003cint32>"},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"correlationId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"correlationId","typeLabel":"string\u003cuuid>"},"requestId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"requestId","typeLabel":"string\u003cuuid>"},"detail":{"type":"string","maxLength":512,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["field","code","message"],"properties":{"field":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"violations.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"violations.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","maxLength":256,"isRequired":true,"uniqueKey":"violations.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"violations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations","typeLabel":"object[]"}},"example":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"}}},"exampleType":"generated"}},"exampleType":"generated"},"d28848e4-530b-40dc-9261-eb1e85aa2fb7":{"description":"Authentication failed without account, token, or tenant enumeration.","headers":{"WWW-Authenticate":{"description":"Bearer challenge for an unauthenticated or invalid-token request.","schema":{"type":"string","example":"Bearer"}}},"content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details with stable DropHub extensions","additionalProperties":true,"required":["type","title","status","code","timestamp","correlationId","requestId"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","format":"int32","minimum":400,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer\u003cint32>"},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"correlationId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"correlationId","typeLabel":"string\u003cuuid>"},"requestId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"requestId","typeLabel":"string\u003cuuid>"},"detail":{"type":"string","maxLength":512,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["field","code","message"],"properties":{"field":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"violations.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"violations.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","maxLength":256,"isRequired":true,"uniqueKey":"violations.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"violations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations","typeLabel":"object[]"}},"example":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"uniqueKey":"","typeLabel":"object"},"example":{"type":"https://api.drophub.example/problems/authentication-required","title":"Authentication required","status":401,"detail":"Authentication is required for this resource.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"AUTHENTICATION_REQUIRED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.drophub.example/problems/authentication-required","title":"Authentication required","status":401,"detail":"Authentication is required for this resource.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"AUTHENTICATION_REQUIRED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"}}},"exampleType":"examples"}},"exampleType":"examples"},"337b7056-e30a-4e49-96fa-c3efd17ec226":{"description":"Access denied without exposing internal policy or resource ownership. No operation requires a second factor or a fresher live session.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details with stable DropHub extensions","additionalProperties":true,"required":["type","title","status","code","timestamp","correlationId","requestId"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","format":"int32","minimum":400,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer\u003cint32>"},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"correlationId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"correlationId","typeLabel":"string\u003cuuid>"},"requestId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"requestId","typeLabel":"string\u003cuuid>"},"detail":{"type":"string","maxLength":512,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["field","code","message"],"properties":{"field":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"violations.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"violations.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","maxLength":256,"isRequired":true,"uniqueKey":"violations.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"violations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations","typeLabel":"object[]"}},"example":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"}}},"exampleType":"generated"}},"exampleType":"generated"},"9cb379e8-0b22-447c-a9cf-a4cbe80c68db":{"description":"Resource not found; existence is hidden across authorization boundaries.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details with stable DropHub extensions","additionalProperties":true,"required":["type","title","status","code","timestamp","correlationId","requestId"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","format":"int32","minimum":400,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer\u003cint32>"},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"correlationId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"correlationId","typeLabel":"string\u003cuuid>"},"requestId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"requestId","typeLabel":"string\u003cuuid>"},"detail":{"type":"string","maxLength":512,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["field","code","message"],"properties":{"field":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"violations.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"violations.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","maxLength":256,"isRequired":true,"uniqueKey":"violations.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"violations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations","typeLabel":"object[]"}},"example":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"}}},"exampleType":"generated"}},"exampleType":"generated"},"3fa3a84b-51b7-4e48-96ad-38f2c19b8eac":{"description":"Current state prevents the requested transition.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details with stable DropHub extensions","additionalProperties":true,"required":["type","title","status","code","timestamp","correlationId","requestId"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","format":"int32","minimum":400,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer\u003cint32>"},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"correlationId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"correlationId","typeLabel":"string\u003cuuid>"},"requestId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"requestId","typeLabel":"string\u003cuuid>"},"detail":{"type":"string","maxLength":512,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["field","code","message"],"properties":{"field":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"violations.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"violations.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","maxLength":256,"isRequired":true,"uniqueKey":"violations.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"violations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations","typeLabel":"object[]"}},"example":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"}}},"exampleType":"generated"}},"exampleType":"generated"},"d8bbbb57-64bf-43da-a487-7daed1ba4c6f":{"description":"The supplied strong entity version is stale.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details with stable DropHub extensions","additionalProperties":true,"required":["type","title","status","code","timestamp","correlationId","requestId"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","format":"int32","minimum":400,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer\u003cint32>"},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"correlationId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"correlationId","typeLabel":"string\u003cuuid>"},"requestId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"requestId","typeLabel":"string\u003cuuid>"},"detail":{"type":"string","maxLength":512,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["field","code","message"],"properties":{"field":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"violations.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"violations.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","maxLength":256,"isRequired":true,"uniqueKey":"violations.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"violations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations","typeLabel":"object[]"}},"example":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"}}},"exampleType":"generated"}},"exampleType":"generated"},"ce9f5292-9ef9-47c3-b235-7cda84cf44c4":{"description":"The request fails strict syntax or semantic validation.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details with stable DropHub extensions","additionalProperties":true,"required":["type","title","status","code","timestamp","correlationId","requestId"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","format":"int32","minimum":400,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer\u003cint32>"},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"correlationId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"correlationId","typeLabel":"string\u003cuuid>"},"requestId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"requestId","typeLabel":"string\u003cuuid>"},"detail":{"type":"string","maxLength":512,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["field","code","message"],"properties":{"field":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"violations.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"violations.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","maxLength":256,"isRequired":true,"uniqueKey":"violations.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"violations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations","typeLabel":"object[]"}},"example":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"}}},"exampleType":"generated"}},"exampleType":"generated"},"6e752f0b-0c10-4a42-a5eb-6fd41a6a5df5":{"description":"A strong If-Match precondition is required.","content":{"application/problem+json":{"schema":{"type":"object","description":"RFC 9457 Problem Details with stable DropHub extensions","additionalProperties":true,"required":["type","title","status","code","timestamp","correlationId","requestId"],"properties":{"type":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","format":"int32","minimum":400,"maximum":599,"isRequired":true,"uniqueKey":"status","typeLabel":"integer\u003cint32>"},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{1,63}$","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"correlationId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"correlationId","typeLabel":"string\u003cuuid>"},"requestId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"requestId","typeLabel":"string\u003cuuid>"},"detail":{"type":"string","maxLength":512,"uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","format":"uri-reference","uniqueKey":"instance","typeLabel":"string\u003curi-reference>"},"violations":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["field","code","message"],"properties":{"field":{"type":"string","maxLength":128,"isRequired":true,"uniqueKey":"violations.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","maxLength":64,"isRequired":true,"uniqueKey":"violations.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","maxLength":256,"isRequired":true,"uniqueKey":"violations.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"violations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"violations","typeLabel":"object[]"}},"example":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"https://api.drophub.example/problems/access-denied","title":"Access denied","status":403,"detail":"Access to this resource is denied.","instance":"/api/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206","code":"ACCESS_DENIED","timestamp":"2026-08-22T18:30:00Z","correlationId":"018f2d8a-1f00-7000-8000-000000000207","requestId":"018f2d8a-1f00-7000-8000-000000000208"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"319803aa-79e9-4403-ad78-392799db8146":{"oauthClientCredentials":{"type":"oauth2","description":"OAuth 2.0 client-credentials flow for external machine-to-machine integrations.","flows":{"clientCredentials":{"tokenUrl":"/api/v2/oauth/token","scopes":{"quotes:write":"Calculate shipment quotes without creating shipments","shipments:read":"Read Merchant-owned shipments","shipments:write":"Create and cancel Merchant-owned shipments","tracking:read":"Read merchant-owned shipment tracking projections","webhooks:manage":"Configure and rotate the merchant's single signed shipment webhook"}}},"scopes":["shipments:write"],"schemeName":"oauthClientCredentials"}}},"servers":{"75971e53-b119-43d6-8592-4776264cb4c7":{"url":"https://api-test.drop-hub.com","description":"Sandbox. Isolated data and credentials."},"ab621a2f-9f82-4625-8803-7357fcdb35eb":{"url":"https://api.drop-hub.com","description":"Production. Production credentials only."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"oauth2","description":"OAuth 2.0 client-credentials flow for external machine-to-machine integrations.","flows":{"clientCredentials":{"tokenUrl":"/api/v2/oauth/token","scopes":{"quotes:write":"Calculate shipment quotes without creating shipments","shipments:read":"Read Merchant-owned shipments","shipments:write":"Create and cancel Merchant-owned shipments","tracking:read":"Read merchant-owned shipment tracking projections","webhooks:manage":"Configure and rotate the merchant's single signed shipment webhook"}}},"scopes":["shipments:write"],"schemeName":"oauthClientCredentials"},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"OAuth 2.0 client-credentials flow for external machine-to-machine integrations.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"oauthClientCredentials","name":"Authorization"}],"title":"oauthClientCredentials"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"drophub","siteName":"DropHub External API","title":"Change the destination or recipient of an own Direct API shipment - DropHub External API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-31T18:46:07.672Z","originalFileLocation":"api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment.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=\"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant\u0026#x27;s agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location\u0026#x27;s opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).\">\u003cmeta data-mint-head name=\"application-name\" content=\"DropHub External API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/drophub/-u0AZn-QTgeIsg7H/_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/drophub/-u0AZn-QTgeIsg7H/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/drophub/-u0AZn-QTgeIsg7H/_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/drophub/-u0AZn-QTgeIsg7H/_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/drophub/-u0AZn-QTgeIsg7H/_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/drophub/-u0AZn-QTgeIsg7H/_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/drophub/-u0AZn-QTgeIsg7H/_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/drophub/-u0AZn-QTgeIsg7H/_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/drophub/-u0AZn-QTgeIsg7H/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Change the destination or recipient of an own Direct API shipment - DropHub External API\">\u003cmeta data-mint-head property=\"og:description\" content=\"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant\u0026#x27;s agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location\u0026#x27;s opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DropHub External API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://drophub.mintlify.app/_mintlify/api/og/v2?division=External+Shipments\u0026amp;title=Change+the+destination+or+recipient+of+an+own+Direct+API+shipment\u0026amp;description=If-Match+carries+the+shipment+version+from+its+ETag.+A+new+destination+is+accepted+before+pickup+%28CREATED%2C+ASSIGNED%2C+NO_DRIVER_AVAILABLE%29+when+it+is+inside+the+\u0026amp;theme=5002099e9da6e761d875299b\u0026amp;signature=a775ae6b95132c51f97b5b4db0754d3ee422e20d897d91ebbe9e551068cb4e01\">\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=\"Change the destination or recipient of an own Direct API shipment - DropHub External API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant\u0026#x27;s agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location\u0026#x27;s opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://drophub.mintlify.app/_mintlify/api/og/v2?division=External+Shipments\u0026amp;title=Change+the+destination+or+recipient+of+an+own+Direct+API+shipment\u0026amp;description=If-Match+carries+the+shipment+version+from+its+ETag.+A+new+destination+is+accepted+before+pickup+%28CREATED%2C+ASSIGNED%2C+NO_DRIVER_AVAILABLE%29+when+it+is+inside+the+\u0026amp;theme=5002099e9da6e761d875299b\u0026amp;signature=a775ae6b95132c51f97b5b4db0754d3ee422e20d897d91ebbe9e551068cb4e01\">\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/drophub/-u0AZn-QTgeIsg7H/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DropHub External API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F0630F\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.drop-hub.com/#organization\",\"name\":\"DropHub External API\",\"url\":\"https://docs.drop-hub.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/drophub/qYk8Wm8U0QVU5HCy/images/logo.png?fit=max\u0026auto=format\u0026n=qYk8Wm8U0QVU5HCy\u0026q=85\u0026s=826b10e7d04c91ac183ed0c95172b175\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.drop-hub.com#website\",\"name\":\"DropHub External API\",\"url\":\"https://docs.drop-hub.com\",\"publisher\":{\"@id\":\"https://docs.drop-hub.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment#webpage\",\"url\":\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment\",\"name\":\"Change the destination or recipient of an own Direct API shipment\",\"description\":\"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant's agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location's opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).\",\"dateModified\":\"2026-10-31T18:46:07.672Z\",\"isPartOf\":{\"@id\":\"https://docs.drop-hub.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://docs.drop-hub.com/api-reference/authentication/oauth-20-client-credentials-token-issuance-for-machine-integrations\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"External Shipments\",\"item\":\"https://docs.drop-hub.com/api-reference/external-shipments/quote-a-merchant-delivery-fee-that-is-honoured-for-15-minutes\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Change the destination or recipient of an own Direct API shipment\",\"item\":\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment#apireference\",\"headline\":\"Change the destination or recipient of an own Direct API shipment\",\"name\":\"Change the destination or recipient of an own Direct API shipment\",\"description\":\"If-Match carries the shipment version from its ETag. A new destination is accepted before pickup (CREATED, ASSIGNED, NO_DRIVER_AVAILABLE) when it is inside the same coverage checkout serviceability applies and the merchant's agreement prices the new route exactly as the frozen delivery fee; the fee is never restated. A new recipient is accepted until the shipment is delivered, failed or cancelled. The assigned driver keeps the assignment and sees the new destination; a shipment.updated webhook is sent. A new pickupWindow is accepted until a driver accepts the shipment and must fit the pickup location's opening hours (422 PICKUP_OUTSIDE_OPERATING_HOURS); the price does not depend on it. Shipments that came from a store platform (Salla, Zid) are changed in that platform: 409 SHIPMENT_CHANGE_NOT_SUPPORTED. Other refusals: 412 PRECONDITION_FAILED (stale If-Match), 409 SHIPMENT_CHANGE_NOT_ALLOWED (state), 409 SHIPMENT_PRICE_WOULD_CHANGE, 422 OUTSIDE_MERCHANT_COVERAGE or NO_PROVIDER_AVAILABLE, 422 SHIPMENT_VALIDATION_FAILED (nothing to change).\",\"url\":\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.drop-hub.com/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment#webpage\"},\"dateModified\":\"2026-10-31T18:46:07.672Z\",\"publisher\":{\"@id\":\"https://docs.drop-hub.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.drop-hub.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DropHub External API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"DropHub External API","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Quickstart","href":"/quickstart"},{"title":"DropHub External API","sidebarTitle":"Overview","href":"/overview"},{"title":"Environments","href":"/environments"},{"title":"Sandbox","href":"/sandbox"}]},{"group":"Authentication","pages":[{"title":"Authentication","href":"/authentication"}]},{"group":"Shipments","pages":[{"title":"Shipments","href":"/shipments"},{"title":"Locations, quotes, and availability","href":"/availability"},{"title":"Tracking","href":"/tracking"},{"title":"Cancellation","href":"/cancellation"}]},{"group":"Events","pages":[{"title":"Webhooks","href":"/webhooks"}]},{"group":"Request semantics","pages":[{"title":"Idempotency and ETags","href":"/idempotency-and-etags"},{"title":"Errors","href":"/errors"}]},{"group":"API reference","pages":[{"group":"Authentication","pages":[{"title":"OAuth 2.0 client-credentials token issuance for machine integrations","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/oauth/token","href":"/api-reference/authentication/oauth-20-client-credentials-token-issuance-for-machine-integrations"},{"title":"Public OAuth token verification keys (RFC 7517)","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/oauth/jwks.json","href":"/api-reference/authentication/public-oauth-token-verification-keys-rfc-7517"}]},{"group":"Sandbox","pages":[{"title":"Idempotently provision this merchant's complete sandbox fixture","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/sandbox/bootstrap","href":"/api-reference/sandbox/idempotently-provision-this-merchants-complete-sandbox-fixture"},{"title":"Read this merchant's sandbox readiness checklist","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/sandbox/readiness","href":"/api-reference/sandbox/read-this-merchants-sandbox-readiness-checklist"},{"title":"Reset only the calling merchant's sandbox integration fixtures","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/sandbox/reset","href":"/api-reference/sandbox/reset-only-the-calling-merchants-sandbox-integration-fixtures"},{"title":"Keep the next sandbox shipment before the driver-offer boundary","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/sandbox/dispatch-holds","href":"/api-reference/sandbox/keep-the-next-sandbox-shipment-before-the-driver-offer-boundary"},{"title":"Have the sandbox driver report a delivery as failed","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/sandbox/shipments/{shipmentId}/delivery-failures","href":"/api-reference/sandbox/have-the-sandbox-driver-report-a-delivery-as-failed"}]},{"group":"External Shipments","pages":[{"title":"Quote a merchant delivery fee that is honoured for 15 minutes","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/quotes","href":"/api-reference/external-shipments/quote-a-merchant-delivery-fee-that-is-honoured-for-15-minutes"},{"title":"Create one shipment from a merchant reference and two location pins","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/shipments","href":"/api-reference/external-shipments/create-one-shipment-from-a-merchant-reference-and-two-location-pins"},{"title":"Check current pickup, merchant coverage and carrier availability","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/serviceability","href":"/api-reference/external-shipments/check-current-pickup-merchant-coverage-and-carrier-availability"},{"title":"Read one merchant-owned shipment","description":null,"deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/shipments/{shipmentId}","href":"/api-reference/external-shipments/read-one-merchant-owned-shipment"},{"title":"Change the destination or recipient of an own Direct API shipment","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /api/v2/external/shipments/{shipmentId}","href":"/api-reference/external-shipments/change-the-destination-or-recipient-of-an-own-direct-api-shipment"},{"title":"Loss, damage and failed-delivery incidents of an owned shipment","description":null,"deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/shipments/{shipmentId}/incidents","href":"/api-reference/external-shipments/loss-damage-and-failed-delivery-incidents-of-an-owned-shipment"},{"title":"Read one evidence file attached to an incident of an owned shipment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/shipments/{shipmentId}/incidents/evidence/{assetId}","href":"/api-reference/external-shipments/read-one-evidence-file-attached-to-an-incident-of-an-owned-shipment"},{"title":"Where DropHub's delivery companies deliver, combined","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/coverage/areas","href":"/api-reference/external-shipments/where-drophubs-delivery-companies-deliver-combined"},{"title":"List the merchant's pickup locations and their collection hours","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/pickup-locations","href":"/api-reference/external-shipments/list-the-merchants-pickup-locations-and-their-collection-hours"},{"title":"Cancel before physical pickup","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/shipments/{shipmentId}/cancel","href":"/api-reference/external-shipments/cancel-before-physical-pickup"},{"title":"Read protected proof metadata for an owned shipment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/shipments/{shipmentId}/proof","href":"/api-reference/external-shipments/read-protected-proof-metadata-for-an-owned-shipment"},{"title":"Read one protected proof asset for an owned shipment","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/shipments/{shipmentId}/proof/{stage}/content","href":"/api-reference/external-shipments/read-one-protected-proof-asset-for-an-owned-shipment"}]},{"group":"External Tracking","pages":[{"title":"Read partner-safe shipment progress and available driver location","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/shipments/{shipmentId}/tracking","href":"/api-reference/external-tracking/read-partner-safe-shipment-progress-and-available-driver-location"},{"title":"Read customer-safe progress through a time-bound bearer link","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/public/tracking/{code}","href":"/api-reference/external-tracking/read-customer-safe-progress-through-a-time-bound-bearer-link"},{"title":"Read customer-safe progress through the waybill number printed on the label","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/public/tracking/waybills/{shipmentNumber}","href":"/api-reference/external-tracking/read-customer-safe-progress-through-the-waybill-number-printed-on-the-label"}]},{"group":"External Webhooks","pages":[{"title":"Read the merchant's webhook configuration","deprecated":null,"version":null,"openapi":"/openapi.yaml get /api/v2/external/webhook","href":"/api-reference/external-webhooks/read-the-merchants-webhook-configuration"},{"title":"Configure the merchant's single shipment webhook","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/webhook","href":"/api-reference/external-webhooks/configure-the-merchants-single-shipment-webhook"},{"title":"Remove the merchant's webhook configuration","deprecated":null,"version":null,"openapi":"/openapi.yaml delete /api/v2/external/webhook","href":"/api-reference/external-webhooks/remove-the-merchants-webhook-configuration"},{"title":"Change callback URL, events, or pause state","deprecated":null,"version":null,"openapi":"/openapi.yaml patch /api/v2/external/webhook","href":"/api-reference/external-webhooks/change-callback-url-events-or-pause-state"},{"title":"Rotate the HMAC secret with a 24-hour overlap","deprecated":null,"version":null,"openapi":"/openapi.yaml post /api/v2/external/webhook/secret-rotations","href":"/api-reference/external-webhooks/rotate-the-hmac-secret-with-a-24-hour-overlap"}]}]}]},"basePath":"","title":"Change the destination or recipient of an own Direct API shipment - DropHub External API","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}