SKU Group Get

GET{{api_url}}/shop/products/sku_group/{{sku_group_id}}

Gets one SKU Inventory Group with every SKU in it. A SKU Inventory Group ties several SKUs to one inventory level: any inventory change to one SKU in the group is applied to every SKU in the group, so setting inventory on any member through Inventory Set sets all of them.

Path

SegmentDescription
{{sku_group_id}}The group id, shop_product_inventory_group_id from SKU Group Search.

Example

{{api_url}}/shop/products/sku_group/4

Response

{
    "shop_product_inventory_group_id": "4",
    "shop_product_inventory_group_siteareaid": "16",
    "group_name": "First Test",
    "products": [
        {
            "shop_product_inventory_group_product_id": "11",
            "spigp_group_id": "4",
            "spigp_product_id": "29",
            "spigp_sku_id": "252",
            "sku": "A76_R_S_R"
        },
        {
            "shop_product_inventory_group_product_id": "14",
            "spigp_group_id": "4",
            "spigp_product_id": "42",
            "spigp_sku_id": null,
            "sku": "VadorTee-1"
        }
    ]
}
FieldTypeDescription
shop_product_inventory_group_idstringThe group id.
shop_product_inventory_group_siteareaidstringThe InfiPlex site area the group belongs to.
group_namestringThe group name as shown in the OMS.
productsarrayOne object per SKU in the group.
products[].shop_product_inventory_group_product_idstringId of this membership row.
products[].spigp_group_idstringThe group id, repeated.
products[].spigp_product_idstringThe InfiPlex product id (shop_productid) the SKU belongs to.
products[].spigp_sku_idstring or nullThe child SKU id. null when the member is a parent product rather than a child SKU.
products[].skustringThe SKU.

A group id that does not exist on the account returns an empty response.

Authorization

Bearer token, sent in the Authorization header. Inherited from the collection.

Example Request

curl --location --request GET '{{api_url}}/shop/products/sku_group/{{sku_group_id}}' \
--header 'Authorization: Bearer {{auth_token}}'

Example Responses

SKU Group Get

Request

curl --location --request GET '{{api_url}}/shop/products/sku_group/4' \
--header 'Authorization: Bearer YOUR_API_KEY'

Response 200 OK

{
    "shop_product_inventory_group_id": "4",
    "shop_product_inventory_group_siteareaid": "16",
    "group_name": "First Test",
    "products": [
        {
            "shop_product_inventory_group_product_id": "11",
            "spigp_group_id": "4",
            "spigp_product_id": "29",
            "spigp_sku_id": "252",
            "sku": "A76_R_S_R"
        },
        {
            "shop_product_inventory_group_product_id": "12",
            "spigp_group_id": "4",
            "spigp_product_id": "29",
            "spigp_sku_id": "251",
            "sku": "A76_R_S_B"
        },
        {
            "shop_product_inventory_group_product_id": "13",
            "spigp_group_id": "4",
            "spigp_product_id": "29",
            "spigp_sku_id": "334",
            "sku": "VadorTee-4"
        },
        {
            "shop_product_inventory_group_product_id": "14",
            "spigp_group_id": "4",
            "spigp_product_id": "42",
            "spigp_sku_id": null,
            "sku": "VadorTee-1"
        }
    ]
}