881 votes
0 answers
python - Is there a way to filter Customers on Shopify by metafield value through the REST Admin API?
Solution:
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.
Undefined asked
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.