Skip to Content

Get Rates

POST /rates — rate limit 60 / min

Returns one quote for every contract available for the given destination and packages. Use the contractCode of the chosen quote as serviceType when creating the shipment.

Request body

FieldTypeRequiredDescription
recipient.address.postalCodestringYesDestination postal code
recipient.address.countryCodestringYesDestination country, ISO 3166-1 alpha-2
recipient.address.citystringNo
recipient.address.provincestringNo
shipper.addressAddressNoOrigin; default: the operational address of the account
packages[]Package[]YesAt least one. Each package has its own weight and dimensions
packages[].weightWeightYes{ "value", "units": "KG"|"G" }
packages[].dimensionsDimensionsYes{ "length", "width", "height", "units": "CM"|"MM" }
options.pickupFromAddressbooleanNoInclude the pickup surcharge
options.codMoneyNoCash on delivery amount; type optionally selects the carrier COD code
options.insuranceMoneyNoInsured value

Example

{ "shipper": { "address": { "postalCode": "20100", "countryCode": "IT" } }, "recipient": { "address": { "city": "Roma", "province": "RM", "postalCode": "00100", "countryCode": "IT" } }, "packages": [ { "weight": { "value": 3, "units": "KG" }, "dimensions": { "length": 30, "width": 20, "height": 10, "units": "CM" } } ], "options": { "cod": { "amount": 25.5, "currency": "EUR" }, "insurance": { "amount": 0, "currency": "EUR" } } }

Response fields

Each item of data is one available contract:

FieldTypeDescription
carrierCode, carrierNamestringCarrier
contractCodestringPass it as serviceType to create the shipment. Encrypted for level-1 reseller contracts — pass as received
contractNamestringDisplay name
level, slaveinteger, booleanContract level and reseller flag (see Carriers)
price.totalnumberTotal price for this contract
price.breakdownobjectweight, fuel, insurance, cod, services, extra, pickup components
billableWeightWeightWeight the price is based on (the greater of real and volumetric)
volumetricWeightWeightVolumetric weight computed by the carrier rule
zonestring|nullPrice-list zone matched by the destination
cashOnDeliveryMethodsobjectCOD collection methods accepted by the contract (code → label)
services[]object[]Accessory services available (serviceId, serviceName)
logoUrlstring|nullCarrier logo

Errors

HTTPcodeWhen
404not_foundNo price list is associated to the account
422validation_failedInvalid payload

An empty data array means no contract can serve this destination / package combination. Check the destination, the package limits of your contracts and whether the contracts are paused.

Last updated on