Added
Service charge
over 1 year ago by Tomas Morganti
Executive SummaryThis API change introduces a new
servicecharge returned in theprice_breakdownobject.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.
