Request Quotes

List the quotes available for a given delivery(or set of deliveries).

Endpoint

POST {{SHIPPIFY_API_URL}}/v2/pricing/quotes/available

Request

For the request, you can send one or more deliveries in an array to list the quotes available for them. For more details on the delivery structure, you can see here Delivery

Headers

PropertyTypeDescriptionExample value

Content-Type

string

"application/json"

Authorization

string

Company basic auth

"Basic XXXXXXXXXXXXXXXXXXXXXXXX"

Body

PropertyTypeDescriptionRequiredConstraints

companyId

string

In the case of having daughter companies, you can query each of them with the same auth but changing this field. In case of having only one associated company, this field is not necessary.

NO

deliveries

array of Delivery

Arrangement of deliveries which requires consulting fees.

YES

Response

After a Quote is retrieved, the following payload is received and you can use the `deliveryQuoteId` in order to create a delivery. For more details on quote structure, you can see here Quote

PropertyTypeDescription

data.quotes

array of Quote

Arrangement of quotas available for the deliveries consulted.

Example

curl --location --request POST 'https://api.shippify.co/v2/pricing/quotes/available' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXXX' \
--header 'Cookie: locale=en' \
--data-raw '{
    "deliveries": [
        {
            "pickup": {
                "contact": {
                    "name": "jus",
                    "clientId": 422197,
                    "email": "jus@mail.com",
                    "phonenumber": "+5511961234567"
                },
                "location": {
                    "address": "R4W6+522, 3º Callejón 14 NE, Guayaquil 090513, Ecuador",
                    "lat": -2.1554118300130938,
                    "lng": -79.88941404843996,
                    "instructions": "nuevo"
                },
                "date": 1678211269182
            },
            "dropoff": {
                "contact": {
                    "name": "jus",
                    "clientId": 422197,
                    "email": "jus@mail.com",
                    "phonenumber": "+5511961234567"
                },
                "location": {
                    "address": "Gral. Julio Andrade Rodriguez, 502, Febrés Cordero,     Guayaquil-Guayas, 090414, Ecuador",
                    "lat": -2.198311566902902,
                    "lng": -79.92514860845964,
                    "instructions": "atras de la casa"
                }
            },
            "tags": ["PRIME"],
            "tagsToShow": [],
            "packages": [
                {
                    "name": "-",
                    "qty": "1",
                    "size": 2,
                    "price": 0,
                    "weight": 0,
                    "id": "-"
                }
            ]
        }
    ]
}'