added
Service charge
5 months ago by Tomas Morganti
Executive Summary
This API change introduces a new
service
charge returned in theprice_breakdown
object.See more about understanding delivery costs in our help centre article.
Sendle has introduced a new service
charge to the price_breakdown
returned by the API's GET /quote, GET /products, POST /orders, and GET /orders/:id endpoints response.
Example:
"price_breakdown":
{
"base":
{
"amount": 15,
"currency": "USD"
},
"discount":
{
"amount": 0,
"currency": "USD"
},
"cover":
{
"amount": 0,
"currency": "USD"
},
"fuel_surcharge":
{
"amount": 0,
"currency": "USD"
},
"base_tax":
{
"amount": 0,
"currency": "USD"
},
"discount_tax":
{
"amount": 0,
"currency": "USD"
},
"cover_tax":
{
"amount": 0,
"currency": "USD"
},
"fuel_surcharge_tax":
{
"amount": 0,
"currency": "USD"
},
"service":
{
"amount": 0.2,
"currency": "USD"
}
}
If your integration to the Sendle API calculates total cost from the price_breakdown
, please include the service
amount in the calculation.