【发布时间】:2018-07-12 08:48:30
【问题描述】:
我想过滤掉所有带有特定country_id 的订单。
这里是来自json 响应的示例:
{
"items": [{
"total_qty_ordered": 3,
"updated_at": "2018-01-10 15:59:05",
"weight": 0,
"billing_address": {
"city": "Schaffhausen",
"country_id": "CH"
}
}]
}
这是我尝试过的:
url = (
"http://<host>/rest/V1/orders"
"?searchCriteria[filter_groups][0][filters][0][field]=country_id"
"&searchCriteria[filter_groups][0][filters][0][value]=CH"
)
它不起作用,因为country_id 在嵌套实体中。
所以我尝试用billing_address[country_id] 替换country_id,但它也不起作用。
【问题讨论】:
-
您找到解决方案了吗?
-
@RafiqulHasan 不幸的是没有找到解决方案