Edit pickup

In this endpoint you can fix or change the collection data of a delivery.

Endpoint

PATCH {{SHIPPIFY_API_URL}}/v1/deliveries/pickup

Request

PropertyTypeDescriptionRequiredConstraints

deliveryIds

string

IDs of the task you want to change information

YES

Separated by comma

deliveryChanges

New data information, can have a contact and a location.

YES

lat and lng are required

recalculatePrice

boolean

After the change, the price changes or not.

YES

true/false

reorderRoute

boolean

After the change, the route changes order or not.

YES

true/false

Response

PropertyTypeDescription

code

string

Result code.

message

string

Result description.

Example

curl --location --request PATCH 'https://api.shippify.co/v1/deliveries/pickup' \
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXX=' \
--header 'Content-Type: application/json' \
--header 'Cookie: locale=es' \
--data-raw '{
	"deliveryIds": "t-pruaas-4973",
	"deliveryChanges": {
		"location": {
			"address": "av. echeñique 8861, 7860169 la reina, región metropolitana, chile",
			"instructions": "CLIENTE RETIRA PRODUCTOS EN POLICENTRO 2",
		        "lat": -23.557166,
            		"lng": -46.664559
		},
	        "contact":{
	            "name":"iliana",
	            "email":"iliaan@shippify.co"
	        }
	},
    	"recalculatePrice":true,
	"reorderRoute": false
}'