Discussions

Ask a Question
Back to All

API problem Request fees and taxes

Hello good afternoon,

I want to request help with the Request rates and taxes API.

When placing all the parameters, I can't get the right answer, you could tell me that I'm doing wrong, please.

Example my Request:

curl --request POST
--url https://api.easyship.com/rate/v1/rates
--header 'Authorization: Bearer MY Token
--header 'Content-Type: application/json'
--data '{"origin_postal_code":"059405","destination_country_alpha2":"US","destination_postal_code":"10030","taxes_duties_paid_by":"Sender","is_insured":false,"items":[{"quantity":"1","actual_weight":10,"height":9,"width":7,"length":10,"category":"health_beauty","declared_currency":"10","declared_customs_value":10}],"apply_shipping_rules":true}'

Response:

{
"rates":[]
"messages":NULL
}