2017-08-18 35 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]“