2017-08-18 51 views
1

我想獲取來自magento2所有的稅率,我試圖 http://magento2url/rest/default/V1/taxRates/2」,在這裏它提供了perticular ID的稅率資料,但我希望所有如何通過休息api從Magento2獲得所有稅率?

我嘗試了以下網址:。 http://magento2url/index.php/rest/V1/taxRates?searchCriteria[currentPage]

這裏響應是:

stdClass的對象 ( [消息] =>請求不匹配任何路線 。)

在SAM e網址,如果我給產品 http://magento2url/index.php/rest/V1/products?searchCriteria[currentPage]工作正常。

請建議如果任何人知道答案或給出任何建議我該如何在這裏繼續?

回答

1

,如果你想具體的領域,你可以使用 「/ V1/taxRates /搜索,請試試這個終點 「/ V1/taxRates /搜索?searchCriteria」, ?searchCriteria &欄=項目[tax_country_id, tax_region_id,region_name,rate]「