eBay Get Rate Tables Done
eBay have introduced additional logic for the Rate Tables and we can have multiple rate tables and assign them per policy (Shipping template). In order to be able to control this from Hemi we will need to change the Use Domestic Rate Table and Use International Rate Table in shipping template table under Rate tables tab. The fields need to become dropdowns with the relevant IDs get from eBay
The fields need to download the rate table ids from eBay using AJAX like we do for the Shipping Discount Profile ID and Ship To Location Exclusions. In order to do so we have to use getRateTables request from the new SELLs API. https://developer.ebay.com/api-docs/sell/account/resources/rate_table/methods/getRateTables
Basically we need to check how to incorporate the request in the HUB.
We do not need the country parameter
GET https://api.ebay.com/sell/account/v1/rate_table
this way we will get all the infor for the account. From the response we will need to store the name and the rateTableId
We need to push the Rate Table Ids only when selected.
In the payload the new fields need to be pushed like: