Hi,
We are a developer new to Shopify and we have two business cases that we would like to implement:
Can you please help us to use appropriate apis for both the cases?
Thanks,
Ok, I did further research and found out these apis could be of use for scenario one for developing self checkout system:
https://shopify.dev/docs/admin-api/rest/reference/products/product#index-2020-07
https://shopify.dev/docs/admin-api/rest/reference/orders/order
https://shopify.dev/docs/admin-api/rest/reference/orders/order#create-2020-07
https://shopify.dev/docs/admin-api/rest/reference/customers/customer
https://shopify.dev/docs/admin-api/rest/reference/products/product-image
https://shopify.dev/docs/admin-api/rest/reference/products/product#index-2020-07
But I couldn't find a direct api to retrieve products from barcode. Appreciate if someone can help us on this part?
If you are just getting started into working with Shopify's API I would suggest looking to the GraphQL API instead of the REST API. The GraphQL (https://shopify.dev/docs/admin-api/graphql/reference) seems to have more functionality comparatively.
Below is an example for pulling the ProductVariant based on the barcode value (assuming only one record has this particular barcode for my example).
{
productVariants(first:1, query: "barcode:012345678901") {
edges {
node {
id
legacyResourceId
title
sku
barcode
}
}
}
}
User | Count |
---|---|
14 | |
12 | |
10 | |
8 | |
7 |