SKU Group Search

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

Lists the SKU Inventory Groups on the account. A SKU Inventory Group ties several SKUs to one inventory level, for example the same physical product listed under different SKUs on different channels. Any inventory change to one SKU in a group is applied to every SKU in the group. Groups are created at Inventory > SKU Inventory Groups in the OMS or by CSV upload.

Parameters

All parameters are optional.

ParameterTypeDescription
search_termstringPartial match against the group name.
just_countintegerSet to 1 to return only a count of matching groups instead of the groups themselves.
limitintegerMaximum number of groups to return.
limit_startintegerNumber of leading results to skip, for paging. With limit 100 and limit_start 100 you get groups 101 through 200.

Examples

All groups:

{{api_url}}/shop/products/sku_group/search

Groups whose name contains "master":

{{api_url}}/shop/products/sku_group/search?search_term=master

How many groups exist:

{{api_url}}/shop/products/sku_group/search?just_count=1

Response

A JSON array, one object per group:

[
    {
        "shop_product_inventory_group_id": "4",
        "shop_product_inventory_group_siteareaid": "16",
        "group_name": "First Test",
        "product_count": "4"
    },
    {
        "shop_product_inventory_group_id": "9",
        "shop_product_inventory_group_siteareaid": "16",
        "group_name": "use_master_SKU_Number",
        "product_count": "3"
    }
]
FieldTypeDescription
shop_product_inventory_group_idstringThe group id. Pass this to SKU Group Get.
shop_product_inventory_group_siteareaidstringThe InfiPlex site area the group belongs to.
group_namestringThe group name as shown in the OMS.
product_countstringNumber of SKUs in the group.

To see which SKUs are in a group, use SKU Group Get with the group id.

Authorization

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

Query Parameters

KeyValueDescription
just_count optionalSet to 1 to return only a count of matching groups instead of the groups themselves.
limit optionalMaximum number of groups to return.
limit_start optionalNumber of leading results to skip, for paging. With limit 100 and limit_start 100 you get groups 101 through 200.
search_term optionalPartial match against the group name.

Example Request

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

Example Responses

SKU Group Search

Request

curl --location --request GET '{{api_url}}/shop/sku_group/search' \
--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",
        "product_count": "4"
    },
    {
        "shop_product_inventory_group_id": "9",
        "shop_product_inventory_group_siteareaid": "16",
        "group_name": "use_master_SKU_Number",
        "product_count": "3"
    }
]