Modificar entrega
Endpoint para atualizar dados da entrega, isso inclui o endereço e as informações de contato do ponto de entrega, assim como também propriedades como pacotes, etiquetas, pacotes, cod, identificador de referência, entre outros.
Endpoint que permite editar os dados de uma ou múltiplas entregas.
List of delivery identifiers to be edited, up to 10 deliveries can be edited in a single request
t-pruaas-4973List 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-0001Indicates whether to recalculate the price after modification (recommended)
trueIndicates whether to reorder the route (if the delivery belongs to a route) after modification (recommended)
trueIndicates whether to recalculate the city after modification (recommended)
trueOperação bem-sucedida
Não autorizado
PATCH /v1/deliveries/dropoff HTTP/1.1
Host: api.shippify.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 559
{
"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": "Juan Perez",
"email": "[email protected]",
"phonenumber": "9999999999"
},
"packages": [
{
"id": "Product-001",
"name": "Color box",
"qty": 4,
"weight": 5.3,
"size": "xs",
"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"
}
}Casos de uso
Última actualización