- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2020
02:27 AM
06-09-2020
02:27 AM
REST API get configurable options (variations) of a product
Hi guys
how can i get all configurable options (Variations) of a product using the REST API?
Preferably not by using GraphQL, since my current solution to sync Magento Shops to our solution is not using GraphQL.
I'm getting a product like this (using Experius' Magento 2 API Client)
$dataArray = [
"searchCriteria" => [
"filterGroups" => [
[
"filters" => [
[
"field" => "entity_id",
"value" => "260",
"condition_type" => "eq"
]
]
]
]
]
];
$result = $service->call('products', $dataArray);
Alternatively an GraphQL solution would also server i guess.
Thanks!
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2020
02:34 AM
06-09-2020
02:34 AM
Re: REST API get configurable options (variations) of a product
Hi @brichlizap52d3
have you tried the below method?
https://devdocs.magento.com/swagger/index_23.html#/catalogProductRepositoryV1/catalogProductReposito...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2022
10:31 AM
09-24-2022
10:31 AM
Re: REST API get configurable options (variations) of a product
Hi @Vimal Kumar,
I want to confirm one thing.
The options for the product object are the variants of the product. They are not different. Right?