This API call is used to calculate the amount of insurance fees.
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.
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". |
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. |
curl https://developer.secursus.com/api/parcels/price \
-u your_apiKey:your_secretKey \
-d parcel_value=8000 \
-d currency="gbp"
{
"response": {
"success": true,
"status": "200",
"title": "OK",
"detail": ""
},
"data": {
"type": "price",
"value": 500
"currency": "gbp",
"value_eur": 587,
}
}