Get the insurance fees

This API call is used to calculate the amount of insurance fees.

Building request

This API call is made through the POST protocol with the sending of a single argument. Authentication is required and works with the rules of HTTP basic access authentication.

Arguments

This API call requires sending a single argument:

Entry Data type Description
parcel_value Integer Required Total value of the order in currency cents.
currency String Currency used for the insurance. Three possible values: "eur", "gbp" or "usd". Default value: "eur".

Response informations

The response data contains two informations :

Entry Data type Description
type String Object type called by the API request.
value Integer Amount of insurance fees in currency cents.
currency String Currency code used for the insurance.
value_eur Integer Converted amount of insurance fees in euro cents.

Request

curl https://developer.secursus.com/api/parcels/price \
-u your_apiKey:your_secretKey \
-d parcel_value=8000 \
-d currency="gbp"

Response

{
"response": {
"success": true,
"status": "200",
"title": "OK",
"detail": ""
},
"data": {
"type": "price",
"value": 500
"currency": "gbp",
"value_eur": 587,
}
}
...
...