Product and Group Best Practices

Products in AIR

Products and product groups are what campaigns and offers qualify against. Eagle Eye AIR gives you two ways to load and maintain them:

  • File ingestion: product and group files that replace the full product list each time they are ingested. See Product and Groups Ingestion.
  • Product Inventory APIs: endpoints to create, update, search and delete individual groups and products, singly or in batches of up to 100. See the Product Inventory API reference.

This guide explains when to use each, how to combine them without losing data, and how to manage day-to-day changes to your catalog.

Where Products Are Managed

Products and groups are managed at the banner (company) unit level, not at the top-level unit. Each banner has its own product list, and both file ingestion and the Product Inventory APIs work against the banner unit.

For example, if Adler Enterprises is the top-level unit with two banners, adlersupermarkets and adlercoffee, products and groups are ingested and managed under adlersupermarkets and under adlercoffee separately. The same applies to the API: every request uses the incomingIdentifier of the banner unit in the path, so repeat each step for each banner.

Choosing an Approach

ApproachHow it worksBest forWatch out for
File ingestion onlyProducts and groups files are ingested on an agreed schedule. Each file replaces the full list for the banner unit.Large catalogs owned by an upstream system (ERP or PIM) that can export on a schedule.There is no delta ingestion. Changes appear only after the next file is ingested.
File ingestion and API togetherFiles load the catalog, and the API handles changes between files. You can send one initial file and then use only the API, or keep sending files on a schedule.Large catalogs with small, frequent changes: a new product, a retired product, a new group or an updated tag. Also catalogs owned by an upstream system where same-day changes are needed.Any later file replaces the whole catalog and overwrites API changes, so each file must include the changes made via the API.
API onlyAll groups and products are created and maintained by API.New or small catalogs, or catalogs changed by events in your own systems.Bulk requests are limited to 100 products, so large loads need batching.

Keeping Products Consistent

A full file ingestion is a complete replacement. It replaces previously ingested products and overwrites any changes made via the API. Product ingestion only runs when the product and product groups files arrives, and API changes apply when you make the call, so you choose your approach by what you send.

Recommended Pattern: Initial Load by File Ingestion, Then Maintain by API

For a large catalog, a file ingestion is the fastest way to load it, and the API is the most convenient way to maintain it.

🚧

Products must be loaded by a recent ingestion

The Product Inventory APIs work with products that were loaded by a file ingestion run on or after April 2026. If your catalog was ingested earlier, or you are setting up a banner for the first time, run a full file ingestion first, then manage changes by API.

  1. Plan the hierarchy. Keep the group hierarchy aligned to the banner's product hierarchy. AIR does not limit the number of grouping levels for a product, allowing for complex hierarchy needs. Plan the hierarchy for each banner.
  2. Prepare and ingest the files. Build the groups file and the product master file to the file format rules. Both files are required. Product rows with an empty or unknown group reference are skipped.
  3. Verify the load. Use Search Inventory Groups and Search Inventory Products to confirm the hierarchy and product counts match your files. Investigate any gap, because skipped rows are not reported back as errors.
  4. Stop sending product files. From this point the API is the source of truth. Do not send further product and group files unless they contain the full current catalog.
  5. Manage changes by API. See the next section.

Products loaded by a recent file ingestion are managed by API using the same identifier. The id in the Product Inventory APIs is the product's UPC or SKU from the file.

Managing Changes with the Product Inventory APIs

Every request uses the incomingIdentifier of the banner (company) unit in the path.

TaskEndpointNotes
Add a groupPOST /products/{incomingIdentifier}/groupsid, name and type are required. A parent group, if used, must already exist. The group id cannot be changed later.
Add productsPOST /products/{incomingIdentifier}/bulk or POST /products/{incomingIdentifier}Maximum 100 products per bulk request. The group must exist first.
Update tags, move a product to another group, or change other product detailsPUT /products/{incomingIdentifier}/{productId} or PUT /products/{incomingIdentifier}/bulkChanges only the fields you send. groupId is required on every update. In bulk requests every entry needs id and groupId. Maximum 100 products per bulk request.
Remove productsDELETE /products/{incomingIdentifier}/{productId} or POST /products/{incomingIdentifier}/bulk/deleteThe bulk request takes 1 to 100 unique product IDs.
Remove a groupDELETE /products/{incomingIdentifier}/groups/{groupId}Returns 204 on success. Returns 400 if the group still contains products. Delete or move the products first.
Find groupsGET /products/{incomingIdentifier}/groupsFilter by groupId, parentGroupId or name.
Find productsGET /products/{incomingIdentifier}Filter by productId, groupId, name or tag. Add expand=group to include the group and its parents.
Change a group's name, type or parentNot supportedTo restructure, create a new group, move the products to it with a PUT, then delete the old group.

Adding a New Group and Products

Create the group first, then add products to it. For a hierarchy, create each parent before its children. The Create Product Groups and Products Recipe walks through this step by step.

Updating Tags in Bulk

Use a PUT to change tags. Search for the products to change, then send the updates in one bulk request. For example, to find every product tagged seasonal in a group: GET /products/{incomingIdentifier}?tag=seasonal&groupId=fresh-fruit&limit=100

Then update them using PUT /products/{incomingIdentifier}/bulk:

[
    {
        "id": "4135",
        "groupId": "fresh-fruit",
        "name": "Gala Apples",
        "tags": [
            "fruit",
            "seasonal",
            "summer"
        ]
    },
    {
        "id": "10024",
        "groupId": "fresh-fruit",
        "name": "Conference Pears",
        "tags": [
            "fruit",
            "seasonal",
            "summer"
        ]
    }
]
{
    "successful": {
        "total": 2,
        "results": [
            {
                "id": "4135",
                "groupId": "fresh-fruit",
                "brand": "",
                "brandType": "",
                "description": "",
                "name": "Gala Apples",
                "supplierId": "",
                "supplierName": "",
                "tags": [
                    "fruit",
                    "seasonal",
                    "summer"
                ],
                "imageUrl": null,
                "group": null,
                "lastSoldDate": null
            },
            {
                "id": "3017",
                "groupId": "fresh-fruit",
                "brand": "",
                "brandType": "",
                "description": "",
                "name": "Conference Pears",
                "supplierId": "",
                "supplierName": "",
                "tags": [
                    "fruit",
                    "seasonal",
                    "summer"
                ],
                "imageUrl": null,
                "group": null,
                "lastSoldDate": null
            }
        ]
    },
    "failed": {
        "total": 0,
        "results": []
    }
}

A PUT replaces the product, so send the complete product definition every time, not only the field you are changing. Include id and groupId, which are required, the full list of tags you want the product to have, and any other values you want to keep, such as name. Anything you leave out is not kept. The search results contain each product's current values, so you can change the tags and send the whole product back..

Removing Discontinued Products

The POST /products/{incomingIdentifier}/bulk/delete API can be used to remove products that are no longer needed.

{
    "ids": [
        "10030",
        "10031",
        "10034"
    ]
}
{
    "successful": {
        "total": 3,
        "results": [
            "10030",
            "10031",
            "10034"
        ]
    },
    "failed": {
        "total": 0,
        "results": []
    }
}

A group that still contains products cannot be deleted. The request fails with a 400 response code. To remove a group, first delete its products, or move them to another group with a PUT (see Moving Products Between Groups), and then delete the group. Work from the bottom of the hierarchy up: products first, then child groups, then parent groups.

Search Results and Paging

Product and group searches return at most 100 results per request. Use limit and offset to page through larger result sets. Product results are always ordered by product ID, ascending.

The name filter accepts an exact value or a prefix match with a single * as the final character and at least three characters before it (for example name=app* to find all apple products).

Additional Best Practices

Choose Stable Identifiers

Group and product id values identify records in every later call, and a group id cannot be changed after creation. Use codes from your merchandising or product system, not display names that may be edited. For products, use the UPC or SKU, so the same identifier works for both file ingestion and the API. Both product and group id values must be unique in a banner unit.

Batch Within the Limits

Bulk create, bulk update and bulk delete each accept a maximum of 100 products per request. Split larger changes into batches of 100 or fewer.

Handle Partial Success on Bulk Endpoints

Bulk endpoints can succeed for some products and fail for others. Create returns 201 when all products are created, 207 when only some are, and 400 when all fail or the payload is invalid. Update and delete return 200 when all succeed, with the same 207 and 400 outcomes. On a 207, review the failed entries, fix the cause and re-submit only the failed products.

{
    "successful": {
        "total": 2,
        "results": [
            "10032",
            "10033"
        ]
    },
    "failed": {
        "total": 1,
        "results": [
            {
                "id": "10030",
                "errorCode": "PNF",
                "errorMessage": "Product Not Found"
            }
        ]
    }
}

The following error codes can help troubleshooting in the below scenarios. Refer to the API reference for a full list.

  • GNF: Group Not Found. Create the group first, or correct the groupId.
  • IPC: Product already exists. Use an update instead of a create.

Common Issues

IssuePossible cause and resolution
Products or groups created by API disappear.A full file ingestion replaced them. Include API changes in every file you send, or stop sending files.
Products are missing after a file ingestion.Rows with an empty or unknown group reference are skipped. Check the group references against the groups file.
Products or groups are missing for one banner.Products are managed per banner unit. Check that the file or the API request was sent for the correct banner. If needed, upload a new file or create new products for the correct banner via API.
409 Conflict when creating a group or product.A record with that id already exists for this banner unit.
400 when deleting a group.The group still contains products. Delete the products or move them to another group, then delete the group.
207 with GNF on a bulk create.The groupId does not match an existing group.
207 with IPC on a bulk create.The product already exists. Use update.
Bulk request rejected for size.More than 100 products were sent. Split into batches of 100 or fewer.
404 Not Found.The incomingIdentifier in the path does not match a unit you manage.

Key Terminology

TermDescription
Banner (Company) UnitThe unit under a top-level unit at which products and groups are ingested and managed. Each banner has its own product list.
Product GroupA node in the product hierarchy. Each group has an id, a name and a type, and may have a parent group.
ProductAn individual item, identified by an id and assigned to a group. Products can carry tags.
incomingIdentifierIdentifies the banner (company) unit whose products and groups you are managing. It is used in the path of every Product Inventory request.
Full ingestionA file ingestion that replaces the complete product list for the banner unit. There is no delta ingestion. Any file you send must include changes made via the API.
Partial successA bulk request in which some products succeeded and others failed, returned as 207.

What's Next


Did this page help you?