Skip to main content
POST
/
shipments
/
estimate
Create shipment
curl --request POST \
  --url https://api.quivo.co/shipments/estimate \
  --header 'Content-Type: application/json' \
  --data '
{
  "estimateRequests": [
    {
      "shippingServiceGroupId": 123,
      "grossWeightKg": 1,
      "shipTo": {
        "name": "<string>",
        "company": "<string>",
        "phone": "<string>",
        "email": "<string>",
        "zip": "<string>",
        "city": "<string>",
        "state": "<string>",
        "countryIso2": "<string>",
        "street": "<string>",
        "street2": "<string>",
        "latitude": 123,
        "longitude": 123
      },
      "sellerId": 123,
      "requestUUID": "<string>",
      "reference": "<string>",
      "shipFrom": {
        "name": "<string>",
        "company": "<string>",
        "phone": "<string>",
        "email": "<string>",
        "zip": "<string>",
        "city": "<string>",
        "state": "<string>",
        "countryIso2": "<string>",
        "street": "<string>",
        "street2": "<string>",
        "latitude": 123,
        "longitude": 123
      },
      "lengthM": 1,
      "widthM": 1,
      "heightM": 1,
      "customsPositions": [
        {
          "description": "<string>",
          "quantity": 1,
          "pieceNetWeightKg": 1,
          "pieceNetCustomsValue": 1,
          "currency": "<string>",
          "tariffNumber": "<string>",
          "orderedSku": "<string>",
          "unNumber": "<string>"
        }
      ],
      "invoiceNumber": "<string>",
      "invoiceDate": "2023-12-25",
      "transportInsuranceAmount": 1,
      "includeReturnLabel": true,
      "trackingEnabled": true,
      "shipmentDate": "2023-12-25",
      "additionalParcels": [
        {
          "weight": 1,
          "length": 123,
          "width": 123,
          "height": 123,
          "reference": "<string>"
        }
      ],
      "userIdentifier": "<string>",
      "shopOrderIdentifier": "<string>",
      "contentDescription": "<string>",
      "systemReference": "<string>",
      "shipmentAttachments": [
        {
          "fileName": "<string>",
          "fileKey": "<string>",
          "mimeType": "<string>"
        }
      ],
      "cashOnDeliveryAmount": 123,
      "cashOnDeliveryCurrency": "<string>"
    }
  ]
}
'
import requests

url = "https://api.quivo.co/shipments/estimate"

payload = { "estimateRequests": [
        {
            "shippingServiceGroupId": 123,
            "grossWeightKg": 1,
            "shipTo": {
                "name": "<string>",
                "company": "<string>",
                "phone": "<string>",
                "email": "<string>",
                "zip": "<string>",
                "city": "<string>",
                "state": "<string>",
                "countryIso2": "<string>",
                "street": "<string>",
                "street2": "<string>",
                "latitude": 123,
                "longitude": 123
            },
            "sellerId": 123,
            "requestUUID": "<string>",
            "reference": "<string>",
            "shipFrom": {
                "name": "<string>",
                "company": "<string>",
                "phone": "<string>",
                "email": "<string>",
                "zip": "<string>",
                "city": "<string>",
                "state": "<string>",
                "countryIso2": "<string>",
                "street": "<string>",
                "street2": "<string>",
                "latitude": 123,
                "longitude": 123
            },
            "lengthM": 1,
            "widthM": 1,
            "heightM": 1,
            "customsPositions": [
                {
                    "description": "<string>",
                    "quantity": 1,
                    "pieceNetWeightKg": 1,
                    "pieceNetCustomsValue": 1,
                    "currency": "<string>",
                    "tariffNumber": "<string>",
                    "orderedSku": "<string>",
                    "unNumber": "<string>"
                }
            ],
            "invoiceNumber": "<string>",
            "invoiceDate": "2023-12-25",
            "transportInsuranceAmount": 1,
            "includeReturnLabel": True,
            "trackingEnabled": True,
            "shipmentDate": "2023-12-25",
            "additionalParcels": [
                {
                    "weight": 1,
                    "length": 123,
                    "width": 123,
                    "height": 123,
                    "reference": "<string>"
                }
            ],
            "userIdentifier": "<string>",
            "shopOrderIdentifier": "<string>",
            "contentDescription": "<string>",
            "systemReference": "<string>",
            "shipmentAttachments": [
                {
                    "fileName": "<string>",
                    "fileKey": "<string>",
                    "mimeType": "<string>"
                }
            ],
            "cashOnDeliveryAmount": 123,
            "cashOnDeliveryCurrency": "<string>"
        }
    ] }
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    estimateRequests: [
      {
        shippingServiceGroupId: 123,
        grossWeightKg: 1,
        shipTo: {
          name: '<string>',
          company: '<string>',
          phone: '<string>',
          email: '<string>',
          zip: '<string>',
          city: '<string>',
          state: '<string>',
          countryIso2: '<string>',
          street: '<string>',
          street2: '<string>',
          latitude: 123,
          longitude: 123
        },
        sellerId: 123,
        requestUUID: '<string>',
        reference: '<string>',
        shipFrom: {
          name: '<string>',
          company: '<string>',
          phone: '<string>',
          email: '<string>',
          zip: '<string>',
          city: '<string>',
          state: '<string>',
          countryIso2: '<string>',
          street: '<string>',
          street2: '<string>',
          latitude: 123,
          longitude: 123
        },
        lengthM: 1,
        widthM: 1,
        heightM: 1,
        customsPositions: [
          {
            description: '<string>',
            quantity: 1,
            pieceNetWeightKg: 1,
            pieceNetCustomsValue: 1,
            currency: '<string>',
            tariffNumber: '<string>',
            orderedSku: '<string>',
            unNumber: '<string>'
          }
        ],
        invoiceNumber: '<string>',
        invoiceDate: '2023-12-25',
        transportInsuranceAmount: 1,
        includeReturnLabel: true,
        trackingEnabled: true,
        shipmentDate: '2023-12-25',
        additionalParcels: [{weight: 1, length: 123, width: 123, height: 123, reference: '<string>'}],
        userIdentifier: '<string>',
        shopOrderIdentifier: '<string>',
        contentDescription: '<string>',
        systemReference: '<string>',
        shipmentAttachments: [{fileName: '<string>', fileKey: '<string>', mimeType: '<string>'}],
        cashOnDeliveryAmount: 123,
        cashOnDeliveryCurrency: '<string>'
      }
    ]
  })
};

fetch('https://api.quivo.co/shipments/estimate', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.quivo.co/shipments/estimate",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'estimateRequests' => [
        [
                'shippingServiceGroupId' => 123,
                'grossWeightKg' => 1,
                'shipTo' => [
                                'name' => '<string>',
                                'company' => '<string>',
                                'phone' => '<string>',
                                'email' => '<string>',
                                'zip' => '<string>',
                                'city' => '<string>',
                                'state' => '<string>',
                                'countryIso2' => '<string>',
                                'street' => '<string>',
                                'street2' => '<string>',
                                'latitude' => 123,
                                'longitude' => 123
                ],
                'sellerId' => 123,
                'requestUUID' => '<string>',
                'reference' => '<string>',
                'shipFrom' => [
                                'name' => '<string>',
                                'company' => '<string>',
                                'phone' => '<string>',
                                'email' => '<string>',
                                'zip' => '<string>',
                                'city' => '<string>',
                                'state' => '<string>',
                                'countryIso2' => '<string>',
                                'street' => '<string>',
                                'street2' => '<string>',
                                'latitude' => 123,
                                'longitude' => 123
                ],
                'lengthM' => 1,
                'widthM' => 1,
                'heightM' => 1,
                'customsPositions' => [
                                [
                                                                'description' => '<string>',
                                                                'quantity' => 1,
                                                                'pieceNetWeightKg' => 1,
                                                                'pieceNetCustomsValue' => 1,
                                                                'currency' => '<string>',
                                                                'tariffNumber' => '<string>',
                                                                'orderedSku' => '<string>',
                                                                'unNumber' => '<string>'
                                ]
                ],
                'invoiceNumber' => '<string>',
                'invoiceDate' => '2023-12-25',
                'transportInsuranceAmount' => 1,
                'includeReturnLabel' => true,
                'trackingEnabled' => true,
                'shipmentDate' => '2023-12-25',
                'additionalParcels' => [
                                [
                                                                'weight' => 1,
                                                                'length' => 123,
                                                                'width' => 123,
                                                                'height' => 123,
                                                                'reference' => '<string>'
                                ]
                ],
                'userIdentifier' => '<string>',
                'shopOrderIdentifier' => '<string>',
                'contentDescription' => '<string>',
                'systemReference' => '<string>',
                'shipmentAttachments' => [
                                [
                                                                'fileName' => '<string>',
                                                                'fileKey' => '<string>',
                                                                'mimeType' => '<string>'
                                ]
                ],
                'cashOnDeliveryAmount' => 123,
                'cashOnDeliveryCurrency' => '<string>'
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.quivo.co/shipments/estimate"

	payload := strings.NewReader("{\n  \"estimateRequests\": [\n    {\n      \"shippingServiceGroupId\": 123,\n      \"grossWeightKg\": 1,\n      \"shipTo\": {\n        \"name\": \"<string>\",\n        \"company\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"email\": \"<string>\",\n        \"zip\": \"<string>\",\n        \"city\": \"<string>\",\n        \"state\": \"<string>\",\n        \"countryIso2\": \"<string>\",\n        \"street\": \"<string>\",\n        \"street2\": \"<string>\",\n        \"latitude\": 123,\n        \"longitude\": 123\n      },\n      \"sellerId\": 123,\n      \"requestUUID\": \"<string>\",\n      \"reference\": \"<string>\",\n      \"shipFrom\": {\n        \"name\": \"<string>\",\n        \"company\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"email\": \"<string>\",\n        \"zip\": \"<string>\",\n        \"city\": \"<string>\",\n        \"state\": \"<string>\",\n        \"countryIso2\": \"<string>\",\n        \"street\": \"<string>\",\n        \"street2\": \"<string>\",\n        \"latitude\": 123,\n        \"longitude\": 123\n      },\n      \"lengthM\": 1,\n      \"widthM\": 1,\n      \"heightM\": 1,\n      \"customsPositions\": [\n        {\n          \"description\": \"<string>\",\n          \"quantity\": 1,\n          \"pieceNetWeightKg\": 1,\n          \"pieceNetCustomsValue\": 1,\n          \"currency\": \"<string>\",\n          \"tariffNumber\": \"<string>\",\n          \"orderedSku\": \"<string>\",\n          \"unNumber\": \"<string>\"\n        }\n      ],\n      \"invoiceNumber\": \"<string>\",\n      \"invoiceDate\": \"2023-12-25\",\n      \"transportInsuranceAmount\": 1,\n      \"includeReturnLabel\": true,\n      \"trackingEnabled\": true,\n      \"shipmentDate\": \"2023-12-25\",\n      \"additionalParcels\": [\n        {\n          \"weight\": 1,\n          \"length\": 123,\n          \"width\": 123,\n          \"height\": 123,\n          \"reference\": \"<string>\"\n        }\n      ],\n      \"userIdentifier\": \"<string>\",\n      \"shopOrderIdentifier\": \"<string>\",\n      \"contentDescription\": \"<string>\",\n      \"systemReference\": \"<string>\",\n      \"shipmentAttachments\": [\n        {\n          \"fileName\": \"<string>\",\n          \"fileKey\": \"<string>\",\n          \"mimeType\": \"<string>\"\n        }\n      ],\n      \"cashOnDeliveryAmount\": 123,\n      \"cashOnDeliveryCurrency\": \"<string>\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.quivo.co/shipments/estimate")
  .header("Content-Type", "application/json")
  .body("{\n  \"estimateRequests\": [\n    {\n      \"shippingServiceGroupId\": 123,\n      \"grossWeightKg\": 1,\n      \"shipTo\": {\n        \"name\": \"<string>\",\n        \"company\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"email\": \"<string>\",\n        \"zip\": \"<string>\",\n        \"city\": \"<string>\",\n        \"state\": \"<string>\",\n        \"countryIso2\": \"<string>\",\n        \"street\": \"<string>\",\n        \"street2\": \"<string>\",\n        \"latitude\": 123,\n        \"longitude\": 123\n      },\n      \"sellerId\": 123,\n      \"requestUUID\": \"<string>\",\n      \"reference\": \"<string>\",\n      \"shipFrom\": {\n        \"name\": \"<string>\",\n        \"company\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"email\": \"<string>\",\n        \"zip\": \"<string>\",\n        \"city\": \"<string>\",\n        \"state\": \"<string>\",\n        \"countryIso2\": \"<string>\",\n        \"street\": \"<string>\",\n        \"street2\": \"<string>\",\n        \"latitude\": 123,\n        \"longitude\": 123\n      },\n      \"lengthM\": 1,\n      \"widthM\": 1,\n      \"heightM\": 1,\n      \"customsPositions\": [\n        {\n          \"description\": \"<string>\",\n          \"quantity\": 1,\n          \"pieceNetWeightKg\": 1,\n          \"pieceNetCustomsValue\": 1,\n          \"currency\": \"<string>\",\n          \"tariffNumber\": \"<string>\",\n          \"orderedSku\": \"<string>\",\n          \"unNumber\": \"<string>\"\n        }\n      ],\n      \"invoiceNumber\": \"<string>\",\n      \"invoiceDate\": \"2023-12-25\",\n      \"transportInsuranceAmount\": 1,\n      \"includeReturnLabel\": true,\n      \"trackingEnabled\": true,\n      \"shipmentDate\": \"2023-12-25\",\n      \"additionalParcels\": [\n        {\n          \"weight\": 1,\n          \"length\": 123,\n          \"width\": 123,\n          \"height\": 123,\n          \"reference\": \"<string>\"\n        }\n      ],\n      \"userIdentifier\": \"<string>\",\n      \"shopOrderIdentifier\": \"<string>\",\n      \"contentDescription\": \"<string>\",\n      \"systemReference\": \"<string>\",\n      \"shipmentAttachments\": [\n        {\n          \"fileName\": \"<string>\",\n          \"fileKey\": \"<string>\",\n          \"mimeType\": \"<string>\"\n        }\n      ],\n      \"cashOnDeliveryAmount\": 123,\n      \"cashOnDeliveryCurrency\": \"<string>\"\n    }\n  ]\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.quivo.co/shipments/estimate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"estimateRequests\": [\n    {\n      \"shippingServiceGroupId\": 123,\n      \"grossWeightKg\": 1,\n      \"shipTo\": {\n        \"name\": \"<string>\",\n        \"company\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"email\": \"<string>\",\n        \"zip\": \"<string>\",\n        \"city\": \"<string>\",\n        \"state\": \"<string>\",\n        \"countryIso2\": \"<string>\",\n        \"street\": \"<string>\",\n        \"street2\": \"<string>\",\n        \"latitude\": 123,\n        \"longitude\": 123\n      },\n      \"sellerId\": 123,\n      \"requestUUID\": \"<string>\",\n      \"reference\": \"<string>\",\n      \"shipFrom\": {\n        \"name\": \"<string>\",\n        \"company\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"email\": \"<string>\",\n        \"zip\": \"<string>\",\n        \"city\": \"<string>\",\n        \"state\": \"<string>\",\n        \"countryIso2\": \"<string>\",\n        \"street\": \"<string>\",\n        \"street2\": \"<string>\",\n        \"latitude\": 123,\n        \"longitude\": 123\n      },\n      \"lengthM\": 1,\n      \"widthM\": 1,\n      \"heightM\": 1,\n      \"customsPositions\": [\n        {\n          \"description\": \"<string>\",\n          \"quantity\": 1,\n          \"pieceNetWeightKg\": 1,\n          \"pieceNetCustomsValue\": 1,\n          \"currency\": \"<string>\",\n          \"tariffNumber\": \"<string>\",\n          \"orderedSku\": \"<string>\",\n          \"unNumber\": \"<string>\"\n        }\n      ],\n      \"invoiceNumber\": \"<string>\",\n      \"invoiceDate\": \"2023-12-25\",\n      \"transportInsuranceAmount\": 1,\n      \"includeReturnLabel\": true,\n      \"trackingEnabled\": true,\n      \"shipmentDate\": \"2023-12-25\",\n      \"additionalParcels\": [\n        {\n          \"weight\": 1,\n          \"length\": 123,\n          \"width\": 123,\n          \"height\": 123,\n          \"reference\": \"<string>\"\n        }\n      ],\n      \"userIdentifier\": \"<string>\",\n      \"shopOrderIdentifier\": \"<string>\",\n      \"contentDescription\": \"<string>\",\n      \"systemReference\": \"<string>\",\n      \"shipmentAttachments\": [\n        {\n          \"fileName\": \"<string>\",\n          \"fileKey\": \"<string>\",\n          \"mimeType\": \"<string>\"\n        }\n      ],\n      \"cashOnDeliveryAmount\": 123,\n      \"cashOnDeliveryCurrency\": \"<string>\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
{
  "estimateResults": [
    {
      "requestUUID": "<string>",
      "success": true,
      "currency": {
        "currencyCode": "<string>",
        "defaultFractionDigits": 123,
        "numericCode": 123,
        "displayName": "<string>",
        "symbol": "<string>",
        "numericCodeAsString": "<string>"
      },
      "amountLabel": 123,
      "amountInsurance": 123
    }
  ]
}

Body

application/json

Data to create a new resource at /shipments/estimate

Request payload for obtaining shipping cost and service estimates. Contains shipment details (dimensions, weight, addresses) to calculate shipping options and prices.

estimateRequests
object[]
required

Required list of estimate requests.
The value of requestUUID will be returned in the response, so it can be used to match the results to the requests.

Response

Returns shipping cost and service estimates for the requested shipment configuration.

Shipping cost and service estimates. Contains available shipping options with prices, delivery times, and service characteristics.

estimateResults
object[]

Array of estimate result