Create

This process is asynchronous, you can enter the system to see its progress or the route created.

Endpoint

POST {{SHIPPIFY_API_URL}}/v1/routes/create

Request

PropertyTypeDescriptionRequiredConstraints

routes

array of objects

Object with routes data

YES

routes[n].deliveries

array of strings

List all the deliveries you want to create a route.

YES

iterations

number

Optimization level

YES

It can be 1-10, when it is 1 the route takes the order of the list

Response

PropertyTypeDescription

code

string

Result code.

message

string

Result description.

data

object

Execution process data.

Example

curl --location --request POST 'https://api.shippify.co/v1/routes/create' \
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXX=' \
--header 'Content-Type: application/json' \
--header 'Cookie: locale=es' \
--data-raw '{
    "routes": [
        {
            "deliveries": [
              "t-pruaas-4973",
              "t-pruaas-4972"
            ]
        }
    ],
    "iterations": 1
}'