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:
- Available Carriers.
- Available Services by Carrier. (Service type = name)
*Address input vary by country. To obtain the required information for each country you should use the following endpoint.
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.
Field | Options |
---|---|
(origin or destination).country | https://queries.envia.com/country |
(origin or destination).state | http://queries.envia.com/state?country_code=MX |
package.type | envelope, box, pallet |
package.lenghtUnit | CM, IN |
package.weightUnit | KG, LB |
shipment.carrier | http://queries.envia.com/carrier?country_code=MX |
shipment.service | https://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.currency | USD, MXN, CLP, COP, INR(Get full list) |
settings.printFormat | PDF, PNG, ZPLII |
settings.printSize | PAPER_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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | null |