[英]Is there a way to filter Customers on Shopify by metafield value through the REST Admin API?
I am trying to get Shopify Customers by VAT Number which is a metafield.我正在尝试通过元字段增值税号获取 Shopify 客户。 Apparently there's no way to do it.
显然没有办法做到这一点。
I have gone through the docs and GitHub repository and tried all the possible solutions through REST and GraphQL.我浏览了文档和 GitHub 存储库,并通过 REST 和 GraphQL 尝试了所有可能的解决方案。
So you are given a VAT number.所以你会得到一个增值税号。 You want the customer that has a metafield with the vat number?
您想要具有增值税编号的元字段的客户吗?
Why would you not just ask for the metafield VAT value and search all Customers for a match?您为什么不只询问元字段增值税值并搜索所有客户以进行匹配?
metafield(namespace: "mystore", key: "vat") {
value
}
Sure, it's a bit inefficient to search all Customers, but you do succeed in the end.当然,搜索所有 Customers 的效率有点低,但你最终还是成功了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.