#API Reference:
[GET]
/api/v1/self/shipments/sent
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of Object containing shipment data
[GET]
/api/v1/self/shipments/incoming
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of Object containing shipment data
[GET]
/api/v1/countries
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of object with properties of ID, name, long and lat
[GET]
/api/v1/country/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the country |
JSON response, expect an object with properties of ID, name, long and lat
[POST]
/api/v1/country/:id/location
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the country |
long | yes | encoded text | in body | the new longitude as a float |
lat | yes | encoded text | in body | the new latitude as a float |
Empty response, expect no response but a 200 status.
[POST]
/api/v1/country/:id/name
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the country |
name | yes | encoded text | in body | the new name |
Empty response, expect no response but a 200 status.
[PUT]
/api/v1/country
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
name | yes | encoded text | in body | the name |
long | yes | encoded text | in body | the longitude as a float |
lat | yes | encoded text | in body | the latitude as a float |
JSON response, expect a number that represents the ID.
[DELETE]
/api/v1/country/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the country |
Empty response, expect just a simple 200 status message.
[GET]
/api/v1/cities
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
country | no | encoded text | in querystring | the id of the country that's parent of the city |
JSON response, expect an array of object with properties of ID, country, name, long and lat
[GET]
/api/v1/city/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the city |
JSON response, expect an object with properties of ID, name, long and lat
[POST]
/api/v1/city/:id/location
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the city |
long | yes | encoded text | in body | the new longitude as a float |
lat | yes | encoded text | in body | the new latitude as a float |
Empty response, expect no response but a 200 status.
[POST]
/api/v1/country/:id/name
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the city |
name | yes | encoded text | in body | the new name |
Empty response, expect no response but a 200 status.
[POST]
/api/v1/city/:id/country
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the city |
country | yes | encoded text | in body | the country's id parent |
Empty response, expect no response but a 200 status.
[PUT]
/api/v1/city
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
country | yes | encoded text | in body | the parent country's id |
name | yes | encoded text | in body | the name |
long | yes | encoded text | in body | the longitude as a float |
lat | yes | encoded text | in body | the latitude as a float |
JSON response, expect a number that represents the ID.
[DELETE]
/api/v1/city/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the city |
Empty response, expect just a simple 200 status message.
[GET]
/api/v1/cargos
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of object with all the cargo types
[PUT]
/api/v1/cargo
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
name | yes | encoded text | in body | the name of the cargo type (eg. food, electronics) |
description | yes | encoded text | in body | the description of the cargo type |
amount | yes | encoded text | in body | a float with refers to a cargo type charge |
factor | yes | encoded text | in body | can only be '%' or '+' which refers to a multiplication value or adddition |
JSON response, expect a numeric id
[POST]
/api/v1/cargo/:id/name
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the cargo type |
name | yes | encoded text | in body | the new name |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/cargo/:id/description
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the cargo type |
description | yes | encoded text | in body | the new description |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/cargo/:id/amount
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the cargo type |
amount | yes | encoded text | in body | the new amount as a float |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/cargo/:id/factor
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the cargo type |
factor | yes | encoded text | in body | the new factor as '%' or '+' |
Empty response, expect just a simple 200 status message.
[DELETE]
/api/v1/cargo/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the cargo type |
Empty response, expect just a simple 200 status message.
[GET]
/api/v1/npds
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of object with data of an ID, price and distance
[GET]
/api/v1/npd/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the npd |
JSON response, Expect an object with data of an ID, price and distance
[PUT]
/api/v1/npd
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
price | yes | encoded text | in body | the price as a float value |
distance | yes | encoded text | in body | the distance as a float value |
JSON response, expect a numeric identifier
[POST]
/api/v1/npd/:id/price
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the npd |
price | yes | encoded text | in body | the price as a float value |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/npd/:id/distance
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the npd |
distance | yes | encoded text | in body | the distance as a float value |
Empty response, expect just a simple 200 status message.
[DELETE]
/api/v1/npd/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the npd |
Empty response, expect just a simple 200 status message.
[GET]
/api/v1/ipds
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of object with data of an ID, price and distance
[GET]
/api/v1/ipd/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the ipd |
JSON response, Expect an object with data of an ID, price and distance
[PUT]
/api/v1/ipd
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
price | yes | encoded text | in body | the price as a float value |
distance | yes | encoded text | in body | the distance as a float value |
JSON response, expect a numeric identifier
[POST]
/api/v1/ipd/:id/price
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the ipd |
price | yes | encoded text | in body | the price as a float value |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/ipd/:id/distance
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the ipd |
distance | yes | encoded text | in body | the distance as a float value |
Empty response, expect just a simple 200 status message.
[DELETE]
/api/v1/ipd/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the ipd |
Empty response, expect just a simple 200 status message.
[GET]
/api/v1/duties
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
country | no | encoded text | in querystring | the id of the country |
JSON response, expect an array of object with data of an ID, country, code, name, description and amount
[GET]
/api/v1/duty/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the duty |
JSON response, expect an object with data of an ID, country, code, name, description and amount
[PUT]
/api/v1/duty
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
name | yes | encoded text | in body | a human readable name for the duty |
description | yes | encoded text | in body | a human readable description |
code | yes | encoded text | in body | the code of the duty |
country | yes | encoded text | in body | the numeric identifier for the country |
amount | yes | encoded text | in body | a float which is used to calculate the duty price by mutiplying with the value of the item |
JSON response, expect a numeric id
[POST]
/api/v1/duty/:id/name
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
name | yes | encoded text | in body | the new name |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/duty/:id/description
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
description | yes | encoded text | in body | the new description |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/duty/:id/amount
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
amount | yes | encoded text | in body | the new amount |
Empty response, expect just a simple 200 status message.
[DELETE]
/api/v1/duty/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the duty |
Empty response, expect just a simple 200 status message.
[GET]
/api/v1/lpds
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of object with data of an ID, price and distance
[GET]
/api/v1/lpd/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the lpd |
JSON response, Expect an object with data of an ID, price and distance
[PUT]
/api/v1/lpd
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
price | yes | encoded text | in body | the price as a float value |
distance | yes | encoded text | in body | the distance as a float value |
JSON response, expect a numeric identifier
[POST]
/api/v1/lpd/:id/price
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the lpd |
price | yes | encoded text | in body | the price as a float value |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/lpd/:id/distance
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the lpd |
distance | yes | encoded text | in body | the distance as a float value |
Empty response, expect just a simple 200 status message.
[DELETE]
/api/v1/lpd/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the lpd |
Empty response, expect just a simple 200 status message.
[GET]
/api/v1/pws
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of object with data of an ID, price and weight
[GET]
/api/v1/pw/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the pw |
JSON response, Expect an object with data of an ID, price and weight
[PUT]
/api/v1/pw
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
price | yes | encoded text | in body | the price as a float value |
weight | yes | encoded text | in body | the weight as a float value |
JSON response, expect a numeric identifier
[POST]
/api/v1/pw/:id/price
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the pw |
price | yes | encoded text | in body | the price as a float value |
Empty response, expect just a simple 200 status message.
[POST]
/api/v1/pw/:id/weight
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the pw |
weight | yes | encoded text | in body | the weight as a float value |
Empty response, expect just a simple 200 status message.
[DELETE]
/api/v1/pw/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the pw |
Empty response, expect just a simple 200 status message.
[GET]
/api/v1/surcharges
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
JSON response, expect an array of objects containing ID, type, name, from, to, on, amount, amount_factor
[GET]
/api/v1/surcharge/:id
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the surcharge |
JSON response, expect an object containing ID, type, name, from, to, on, amount, amount_factor
[PUT]
/api/v1/surcharge
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
name | yes | encoded text | in body | the name for the surcharge |
amount | yes | encoded text | in body | the amount for the surcharge as a float |
factor | yes | encoded text | in body | the factor as '%' or '+' |
by | yes | encoded text | in body | can only be 'range', 'month' or 'day' |
from | if by is 'range' | encoded text | in body | the date from in which the surcharge applies, as an integer |
to | if by is 'range' | encoded text | in body | the date to in which the surcharge applies, as an integer |
month | if by is 'month' | encoded text | in body | an integer from 0 to 11 |
day | if by is 'day' | encoded text | in body | an integer from 0 to 6 |
JSON response, expect a numeric ID
[POST]
/api/v1/surcharge/:id/name
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the surcharge |
name | yes | encoded text | in body | the name for the surcharge |
Empty response, expect a simple 200 status.
[POST]
/api/v1/surcharge/:id/amount
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the surcharge |
amount | yes | encoded text | in body | the amount for the surcharge as a float |
Empty response, expect a simple 200 status.
[POST]
/api/v1/surcharge/:id/amount
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the surcharge |
factor | yes | encoded text | in body | the factor as '%' or '+' |
Empty response, expect a simple 200 status.
[POST]
/api/v1/surcharge/:id/range
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the surcharge |
from | yes | encoded text | in body | the date from in which the surcharge applies, as an integer |
to | yes | encoded text | in body | the date to in which the surcharge applies, as an integer |
Empty response, expect a simple 200 status.
[POST]
/api/v1/surcharge/:id/month
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the surcharge |
month | yes | encoded text | in body | an integer from 0 to 11 |
Empty response, expect a simple 200 status.
[POST]
/api/v1/surcharge/:id/month
Variable | required | type | method | description |
---|---|---|---|---|
authtoken | yes | encoded text | in querystring | the auth token |
id | yes | encoded text | in url | the id of the surcharge |
day | yes | encoded text | in body | an integer from 0 to 6 |
Empty response, expect a simple 200 status.