A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello,
The only possible method to retrieve a variant given its barcode is by doing a GraphQL request:
{products(query: "barcode:value", first: 1) { edges { node { id } } }}
Create a product and variants ( Rest API ) then query the variant/product ( GraphQL ) using previous request it will not find the variant/product but repeating the GraphQL request in a minute would find it.
The only possible solution I see is to total convert to GraphQL which I want to avoid at this time