Quote Shipment

POST {{url}}/ship/rate/

Get a quote with multiple carriers and choose the best one for your shipment! Find pre established examples in the right hand side section.

Important Information:

Carriers and Services:

*Address input vary by country. To obtain the required information for each country you should use the following endpoint.

Address Information.

Custom Keys (optional):

Custom Keys are used when you have a direct account with a carrier. This way you create labels with your rates with an additional small fee for service.

Click here to update your clients keys.

This will automatically change the requests directly to the carrier, using your own account.

FieldOptions
(origin or destination).countryhttps://queries.envia.com/country
(origin or destination).statehttp://queries.envia.com/state?country_code=MX
package.typeenvelope, box, pallet
package.lenghtUnitCM, IN
package.weightUnitKG, LB
shipment.carrierhttp://queries.envia.com/carrier?country_code=MX
shipment.servicehttps://queries.envia.com/service?country_code=MX
shipment.residential (default=true)true, false
shipment.customsTaxes (International Shipments default=recipient)sender, recipient, third_party
shipment.deliverySignature (International Shipments default=nsr)asr (Adult Signature), nsr (No Signature), dsr (Direct Signature), isr (Indirect Signature)
settings.currencyUSD, MXN, CLP, COP, INR(Get full list)
settings.printFormatPDF, PNG, ZPLII
settings.printSizePAPER_7X4.75, STOCK_4X6
settings.cashOnDelivery (Optional)2000.00 (Integer)
settings.comments (Optional)Blue house with big trees.

Request Body

{"origin"=>{"name"=>"Alex", "company"=>"envia", "email"=>"noreply@envia.com", "phone"=>"8110000ewdased000", "street"=>"shreeji sadan 24 bhandarkar rd", "number"=>"opposite matunga kabutar khana", "district"=>"", "city"=>"Monterrey", "state"=>"NL", "category"=>1, "country"=>"MX", "postalCode"=>"66236", "reference"=>"", "coordinates"=>{"latitude"=>"19.027686", "longitude"=>"72.853462"}}, "destination"=>{"name"=>"new delhi", "company"=>"new delhi", "email"=>"new@delhi.com", "phone"=>"8180000000", "street"=>"yashwant place commercial complex", "number"=>"123", "district"=>"", "city"=>"Monterrey", "state"=>"NL", "category"=>1, "country"=>"MX", "postalCode"=>"66236", "reference"=>"", "coordinates"=>{"latitude"=>"28.578938", "longitude"=>"77.165053"}}, "packages"=>[{"content"=>"shoes", "boxCode"=>"", "amount"=>1, "type"=>"box", "weight"=>1, "insurance"=>0, "declaredValue"=>0, "weightUnit"=>"KG", "lengthUnit"=>"CM", "dimensions"=>{"length"=>11, "width"=>15, "height"=>20}}], "shipment"=>{"carrier"=>"fedex", "service"=>"ground", "type"=>1}, "settings"=>{"printFormat"=>"PDF", "printSize"=>"STOCK_4X6", "currency"=>"USD", "cashOnDelivery"=>"1000.00", "comments"=>""}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationnull