Discussions
Request rates API is not returning taxes
Hello, no matter what I send, sales tax etc is always zero, why?
curl -X POST "https://public-api.easyship.com/2024-09/rates"
-H "Content-Type: application/json"
-H "Authorization: Bearer YOUR_EASYSHIP_API_KEY"
-H "Accept: application/json"
-d '{
"origin_address": {
"line_1": "2222 Gregor Overlook Ln",
"postal_code": "27502",
"city": "Apex",
"state": "NC",
"country_alpha2": "US"
},
"destination_address": {
"country_alpha2": "US",
"line_1": "1927 McCandless Drive",
"state": "CA",
"city": "Milpitas",
"postal_code": "95035"
},
"incoterms": "DDP",
"insurance": {
"is_insured": false
},
"courier_settings": {
"show_courier_logo_url": false,
"apply_shipping_rules": true
},
"shipping_settings": {
"units": {
"weight": "lb",
"dimensions": "in"
}
},
"parcels": [
{
"box": {
"length": 12,
"width": 18,
"height": 2
},
"items": [
{
"contains_battery_pi966": false,
"contains_battery_pi967": false,
"contains_liquids": false,
"origin_country_alpha2": "US",
"quantity": 1,
"declared_currency": "USD",
"category": "home_decor",
"declared_customs_value": 225.6
},
{
"contains_battery_pi966": false,
"contains_battery_pi967": false,
"contains_liquids": false,
"origin_country_alpha2": "US",
"quantity": 1,
"declared_currency": "USD",
"category": "home_decor",
"declared_customs_value": 225.6
}
],
"total_actual_weight": 5.2
}
]
}'