Delivery Quotes

In this section, you can find the endpoint to get delivery quotes.

This endpoint provides you with delivery quotes without the need to create them in the system. It includes the detailed price for each quoted task as well as the available scheduling times depending on the delivery type.

The payload sent is the same as in the delivery creation, you can use the same examples provided there.

Delivery quotes

post

Get quotes for up to 100 deliveries within Shippify

Autorizaciones
Cuerpo
companyIdinteger · mín: 1Opcional

Company identifier where the delivery will be created

Example: 2
typestring · enumOpcional

Type of delivery

Default: slotValores posibles:
Respuestas
200
Successful operation
application/json
post
POST /v2/pricing/quotes/available HTTP/1.1
Host: api.shippify.co
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 766

{
  "companyId": 2,
  "type": "slot",
  "deliveries": [
    {
      "pickup": {
        "contact": {
          "name": "Iliana Bolaños",
          "email": "[email protected]",
          "phonenumber": "0998976565"
        },
        "location": {
          "address": "Vicuna Mackenna 6100, La Florida, Region Metropolitana, Chile",
          "instructions": "Unit 1001",
          "lat": -33.511333999,
          "lng": -70.6102933
        }
      },
      "dropoff": {
        "contact": {
          "name": "Iliana Bolaños",
          "email": "[email protected]",
          "phonenumber": "0998976565"
        },
        "location": {
          "address": "Vicuna Mackenna 6100, La Florida, Region Metropolitana, Chile",
          "instructions": "Unit 1001",
          "lat": -33.511333999,
          "lng": -70.6102933
        }
      },
      "packages": [
        {
          "id": "Product-001",
          "name": "Color box",
          "qty": 4,
          "weight": 5.3,
          "size": "xs",
          "price": 5.3
        }
      ],
      "referenceId": "PO-00012",
      "tags": [
        "Delicate"
      ],
      "extraData": [
        {
          "name": "Invoice",
          "value": "FA-000001"
        }
      ],
      "cod": 22.3
    }
  ]
}
{
  "data": {
    "quotes": {
      "name": "Flex Guayaquil",
      "quoteId": 2067,
      "timeWindows": [
        {
          "pickupStart": 1688682962888,
          "pickupEnd": 1688686562888,
          "dropoffStart": 1688686562888,
          "dropoffEnd": 1688690162888
        }
      ],
      "totalPrice": 12.4,
      "deliveries": [
        {
          "index": 0,
          "price": 12.4,
          "quoteIdReference": 2067,
          "currencySign": "CLP",
          "distance": 10.4,
          "deliveryQuoteId": "scopes:1:SSQ:1688679363143"
        }
      ],
      "type": "flex"
    }
  }
}

Última actualización