Read a variant group
GET/v1/product-groups/{externalGroupId}
scope products.read
By your own group id.
Response#
| Field | Type | Description |
|---|---|---|
external_group_id | string | Your own id for the parent product. |
group_id | integer|null | Our id for the group. |
count | integer | How many variants are in it. |
variants | array | The products in the group. |
variants[]. | integer | Our product id. |
variants[]. | string|null | Your product id. |
variants[]. | string|null | Your SKU. |
variants[]. | string | The listing title. |
variants[]. | object | Its price. |
variants[]. | integer|null | Minor units. Variants may be priced differently — a group does not force one price. |
variants[]. | integer|null | Units available for this variant. |
variants[]. | string|null | Its size axis, as you set it. |
variants[]. | string|null | Its colour axis. |
variants[]. | string|null | Its gender axis. |
variants[]. | boolean | The one variant the storefront shows as the group's card. The others are reachable through the picker on it. |
Example
{
"external_group_id": "ERP-1001-GROUP",
"group_id": 904,
"count": 2,
"variants": [
{
"product_id": 237224,
"external_id": "ERP-1001",
"sku": "MTB-29-001-S",
"title": "Bicicleta MTB Hardtail 29 inch",
"price": {
"amount": 249900
},
"stock": 4,
"size": "S",
"color": "Negru",
"gender": null,
"is_representative": true
},
{
"product_id": 237225,
"external_id": "ERP-1001-M",
"sku": "MTB-29-001-M",
"title": "Bicicleta MTB Hardtail 29 inch",
"price": {
"amount": 249900
},
"stock": 2,
"size": "M",
"color": "Negru",
"gender": null,
"is_representative": false
}
]
}