Updates the assigned location for a fulfillment order.
location_id (required): The new location ID or location codeThe location is resolved in this order:
partner_location_idlocation_code for the merchantWhen location is updated:
location_id is updated to the new locationNo direct inventory changes occur during location update. If you need to manage inventory reservations when changing locations, you should handle this separately through the Inventory API.
Location updated successfully.
Cannot update location.
Order or fulfillment order not found.
{- "location_id": "string"
}{- "tenant": "string",
- "order_id": "string",
- "merchant": "string",
- "partner_order_reference": "string",
- "language": "string",
- "order_date": "2019-08-24T14:15:22Z",
- "sales_channel": "string",
- "creation_source": {
- "source": "string",
- "user_id": "string",
- "ip_address": "string"
}, - "update_source": {
- "source": "string",
- "user_id": "string",
- "ip_address": "string"
}, - "carriyo_metadata": [
- {
- "key": "string",
- "value": "string"
}
], - "status": "open",
- "auto_allocation_failed": true,
- "cancellation_reason": "CUSTOMER_CANCELLATION",
- "shipping_address": {
- "name": "string",
- "company": "string",
- "email": "user@example.com",
- "phone": "string",
- "alternate_phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string",
- "coords": "string",
- "what3words": "string"
}, - "billing_address": {
- "name": "string",
- "company": "string",
- "email": "user@example.com",
- "phone": "string",
- "alternate_phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string",
- "coords": "string",
- "what3words": "string"
}, - "customer": {
- "name": "string",
- "company": "string",
- "email": "user@example.com",
- "phone": "string",
- "alternate_phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string",
- "coords": "string",
- "what3words": "string"
}, - "payment": {
- "payment_mode": "prepaid",
- "pending_amount": 0,
- "currency": "string"
}, - "redacted": true,
- "taxes_included": true,
- "duties_included": true,
- "discount_applications": [
- {
- "code": "string",
- "type": "string",
- "value": 0,
- "description": "string"
}
], - "line_items": [
- {
- "line_item_id": "string",
- "sku": "string",
- "product_id": "string",
- "name": "string",
- "description": "string",
- "quantity": 0,
- "price": 0,
- "currency": "string",
- "weight": 0,
- "weight_unit": "kg",
- "image_url": "string",
- "properties": {
- "property1": "string",
- "property2": "string"
}
}
], - "fulfillment_orders": [
- {
- "fulfillment_order_id": "string",
- "partner_fulfillment_order_reference": "string",
- "location_id": "string",
- "delivery": {
- "delivery_type": "string",
- "time_slot": {
- "date": "2019-08-24",
- "from": "string",
- "to": "string"
}, - "instructions": "string"
}, - "line_items": [
- {
- "line_item_id": "string",
- "quantity": 0,
- "status": "open",
- "fulfillment_id": "string",
- "shipment_ids": [
- "string"
]
}
], - "carriyo_metadata": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "shipping_lines": [
- {
- "code": "string",
- "title": "string",
- "price": 0,
- "currency": "string"
}
], - "error_details": [
- {
- "code": "string",
- "message": "string",
- "field": "string"
}
], - "creation_date": "2019-08-24T14:15:22Z",
- "update_date": "2019-08-24T14:15:22Z"
}