Product
In order to get product information you need to interact with the channel endpoint. You can choose to get:
- All products from a specific channel
- Individual product information by using the product id
- Fetch all products in a specific currency.
- Fetch the Return information for a product or for all products.
- Fecht products with varians or without varians.
Get all products
Retrieve an array of all the products to added to your channels.
Fetching all the products from the channel
Fetching all the products with a specific currency
In this example, a GraphQL query is defined to retrieve all products, filtered by a specific currency. The query includes a currency parameter, which is a string representing the desired currency (in this case, "NOK" for Norwegian Krone). By providing this parameter, the query retrieves only the products priced in the specified currency.
Fetching all the products specifying which type of image you need
Get products by IDs
This GraphQL query allows you to retrieve an array of products that have been added to your channel based on their IDs.
Exemple 1: Fetching a Single product
If you want to fetch a single product, simply pass an array with one product ID to the query:
Example 2: Fetching Multiple Products
To fetch multiple products, expand the array in the query to include all the product IDs you're interested in:
Get products by SKUs
This GraphQL query allows you to retrieve an array of products that have been added to your channel based on their SKUs.
Get products by Barcodes
This GraphQL query allows you to retrieve an array of products that have been added to your channel based on their Barcodes.
Get products by CategoryIDs
This GraphQL query allows you to retrieve an array of products that have been added to your channel based on their CategoryIDs.