These docs are for v1.0. Click to read the latest docs for v2024.09.

Discussions

Ask a Question
Back to All

Rates API to CN no longer returning UPS, only TNT

This is the command line, which used to return both TNT and UPS rates:

curl -s --request POST --header 'Content-Type: application/json' --header 'Content-Type: application/json' --header 'Authorization: Bearer es_t_prod_ad54fb2536ef167d9c920(truncated)' --data-binary ' { "origin_country_alpha2": "HK", "origin_postal_code": "Hong Kong", "destination_country_alpha2": "CN", "destination_postal_code": "94903", "taxes_duties_paid_by": "Sender", "is_insured": false, "items": [ { "actual_weight": 23, "height": 68, "width": 50, "length": 38, "category": "home_decor", "declared_currency": "USD", "declared_customs_value": 1896.74 } ] } ' https://api.easyship.com/rate/v1/rates

and now only returns TNT, with no UPS rates.

{"rates":[{"courier_id":"d6b5c2cf-d8e9-41ea-9356-43002b0beb7c","courier_name":"TNT - Express","courier_display_name":"TNT - Express","courier_nickname":null,"courier_service_code":"TNT_Express","min_delivery_time":5,"max_delivery_time":11,"cost_rank":1.0,"value_for_money_rank":1.0,"delivery_time_rank":1.0,"shipment_charge":1054.98,"fuel_surcharge":369.24,"remote_area_surcharge":0.0,"additional_services_surcharge":0.0,"oversized_surcharge":0.0,"custom_surcharges":{"total_fee":195.0,"details":[{"name":"Peak Surcharge","admin_name":"TNT_Peak_Surcharge","fee":195.0,"origin_fee":195.0}]},"shipment_charge_total":1619.23,"insurance_fee":0.0,"ddp_handling_fee":100.0,"import_tax_charge":2320.42,"import_duty_charge":2109.92,"import_tax_non_chargeable":0.0,"total_charge":6149.57,"is_above_threshold":true,"effective_incoterms":"DDP","estimated_import_tax":0.0,"estimated_import_duty":0.0,"courier_does_pickup":true,"courier_dropoff_url":null,"available_handover_options":"free_pickup","tracking_rating":2,"courier_remarks":null,"currency":"HKD","box":{"name":null,"length":38.0,"width":50.0,"height":68.0},"minimum_pickup_fee":0.0,"description":"HKD 4530.34 of taxes \u0026 duties are INCLUDED in the cost","sales_tax":0.0,"provincial_sales_tax":0.0,"discount":{"amount":0,"code":null,"percentage":null,"expires_at":null,"origin_amount":0},"full_description":"TNT - Express (5-11 working days) HKD 4530.34 of taxes \u0026 duties are INCLUDED in the cost"}],"messages":[]}