Get Rates
Generate rates for all enabled carriers by providing a route (A to B)
Get Rates
POST
https://api-sandbox.shiplemon.com/v1/rates
This method returns all the rates available in order to create a shipment
Request Body
items
array
This is an array that describes more details about the items that will be sent in the shipment and that you want to get rates for.
Each item in this array is an object in the following format (all the dimensions are in cm and the weight in grams)
For domestic and EU shipments the value
parameter is optional.
{"weight":1000,
"height":20,
"width":20,
"length":20,
"value":20,
"notes":"nike air max"}
address_from
object
This object describes where the pickup of the item will happen. This is the starting point (point A) of the shipment.
This object requires the following details:
{"country": "GR","zip": "14451"}
OR
{"country": "AE","city": "Dubai"}
In cases where zip is available, zip is required. If country doesn't support zip code or postal code, then the city parameter is required.
Here's a list that we adhere to for zip rules per country:
https://cfg.weship.gr/countries-postal-rules.json
In the country parameter we accept the ALPHA-2 code format. You can find more here:
https://www.iban.com/country-codes)
address_to
object
The same format as the address_from in order to define the destination of the shipment (point B)
Specific examples per language
Example data for request
Weight : Weight of package in grams (int)
Height : Height of package in cm (int)
Width : Widht of package in cm (int)
Lenght : Length of package in cm (int)
Value : Value of package in designated currency (int)
Currency : Designated currency. Supports all of ISO currency strings. Default is EUR
Example response
Returns an array of rates for each carrier.
Last updated