Update delivery
Endpoint to update delivery details, including the address and contact information of the delivery point, as well as other properties such as packages, tags, COD (cash on delivery), reference identifier, among others.
Endpoint that allows editing the data of one or multiple deliveries.
List of delivery identifiers to be edited, up to 10 deliveries can be edited in a single request
t-pruaas-4973
List of reference identifiers of orders to be edited, up to 10 deliveries can be edited in a single request. If this property is used, do not include deliveryIds
FACT-0001
Indicates whether to recalculate the price after modification (recommended)
true
Indicates whether to reorder the route (if the delivery belongs to a route) after modification (recommended)
true
Indicates whether to recalculate the city after modification (recommended)
true
PATCH /v1/deliveries/dropoff HTTP/1.1
Host: api.shippify.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 567
{
"deliveryIds": [
"t-pruaas-4973"
],
"referenceIds": [
"FACT-0001"
],
"deliveryChanges": {
"location": {
"address": "Vicuna Mackenna 6100, La Florida, Region Metropolitana, Chile",
"instructions": "Unit 1001",
"lat": -33.511333999,
"lng": -70.6102933
},
"contact": {
"name": "Iliana Bolaños",
"email": "[email protected]",
"phonenumber": "0998976565"
},
"packages": [
{
"id": "Product-001",
"name": "Color box",
"qty": 4,
"weight": 5.3,
"size": "slot",
"price": 5.3
}
],
"cod": 10.4,
"referenceId": "PO-00012",
"addTags": [
1003
],
"removeTags": [
1003
]
},
"recalculatePrice": true,
"reorderRoute": true,
"recalculateCity": true
}
{
"code": "OK",
"message": "Success",
"data": {
"jobs": "JOB-1234"
}
}
Use cases
Última actualización