--- title: "Add New Products in a Flat Format" slug: "add-new-products-in-a-flat-format" description: "Documents the POST /v2/ingest endpoint for adding new catalog products in flat format, one JSON object per item_id and locale, overwriting existing matches." tags: ["product feed api", "ingest product catalog", "catalog api", "ingest product information", "ingest api"] updated: 2026-11-06T07:41:53Z published: 2026-11-06T07:41:53Z canonical: "academy.insiderone.com/add-new-products-in-a-flat-format" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Add New Products in a Flat Format The Catalog API allows you to insert new products in a flat, non-nested format into your [product catalog](https://academy.insiderone.com/docs/product-catalog). It creates new product records. If a product with the same item_id + locale already exists, it will be overwritten. > [!NOTE] > Give each product and each variant its own **item_id** so that one product doesn’t overwrite another. See [Decide Your Product Catalog Structure](/v1/docs/decide-your-product-catalog-structure). ## Endpoint and Headers > **POST** https://catalog.api.useinsider.com/v2/ingest[](https://developers.insiderone.com/#a59b2c74-4b7f-432b-b4c4-b0b300209e0c) | Header | Sample Value | Description | | --- | --- | --- | | X-PARTNER-NAME | myParterName | This is your partner name. Navigate to **InOne** > **Inone Settings** > [**Account Settings**](https://academy.insiderone.com/docs/inone-account-settings) to copy your partner name. The partner name should be lowercase. | | X-REQUEST-TOKEN | 1a2b3c4d5e6f | This key is required to authorize your request. Refer to [API Authentication Tokens](https://academy.insiderone.com/docs/api-authentication-tokens) to generate your Catalog API token. | ## Body Parameters ### Default Product Attributes The following product fields should be sent as parameters in the object, along with their field name and data type, as stated. If any required fields are not sent through the Catalog API, the product is not updated or inserted. | Field Name | Description | Data Type | Required | | --- | --- | --- | --- | | item_id | Unique product identifier. Max 128 characters. | String | Yes | | locale | ISO locale code (e.g., en_US, pt_BR). Max 64 characters. | String | Yes | | name | Product name. Max 512 characters. | String | Yes | | url | Product page URL. Must include protocol (e.g., https://). Max 512 characters. | String | Yes | | image_url | Product image URL. Must start with http://, https://, or //. | String | Yes | | price | Current selling price per currency. e.g., {"USD": 100, "BRL": 500}. | Object | Required for Stock & Revenue Feed Management Type | | original_price | Original/list price per currency. Same structure as price. | Object | Required for Stock & Revenue Feed Management Type | | omnibus_price | Omnibus directive price per currency. Same structure as price. | Object | No | | in_stock | 1 = in stock, 0 = out of stock. | Number | Required for Stock & Revenue and Availability Feed Management Types | | stock_count | Available quantity. Must be >= 0. | Number | No | | item_update_date | Last update timestamp. Format: YYYY-MM-DD hh:mm:ss | String | Required for Published Time Feed Management Type | | item_start_date | Availability start date. Format: YYYY-MM-DD hh:mm:ss | String | Required for Start & End Time Feed Management Type | | item_end_date | Availability end date. Format: YYYY-MM-DD hh:mm:ss | String | Required for Start & End Time Feed Management Type | | description | Product description. Max 1024 characters. | String | No | | brand | Brand name. Max 512 characters. | String | No | | sku | Stock keeping unit. Max 512 characters. | String | No | | color | Product color. Max 512 characters. | String | No | | size | Product size. Max 512 characters. | String | No | | gender | Gender classification. Max 512 characters. | String | No | | category | Category as an array | String[] | No | | tags | Product tags | String[] | No | | groupcode | Product group identifier | String | No | | variants | Product variants. Max 512 characters per item. | String[] | No | | rating | Product rating, 0–10 | Number | No | | product_attributes | Custom attributes defined in your account. | Object {key:value} | No | | is_status_passive | 1 = passive/hidden in Smart Recommender and Eureka results, 0 = active. | Number | No | ### Custom Product Attributes Custom Product Attributes allow you to define additional details specific to your business. These attributes enrich your catalog with data that supports your unique use cases, personalization logic, and recommendation filters. > [!NOTE] > Before sending Custom Product Attributes in your payload, you must [define](https://academy.insiderone.com/docs/product-attributes-overview#custom-product-attributes) them in your account. > [!WARNING] > If a **Default Product Attribute** already exists for the information you want to include, use the default one instead of creating a custom one. This keeps your catalog structure consistent. Custom attributes are sent inside the product_attributes object: ```json {        "item_id": "velocity-runner-pro-white",        "locale": "en_US",        "name": "Velocity Runner Pro - White",        "product_attributes": {        "material_type": "Leather",        "season": "Winter",        "eco_friendly": true,        "collection": "Winter Collection 2025",        "delivery_type": "Express"        } ``` ### Feed Management Types Your feed management type determines which pricing and stock attributes are required. **Stock & Revenue Based** The Stock and Revenue Based Feed Management Type is the most common type. It requires pricing and stock information. ```bash curl -X POST "https://catalog.api.useinsider.com/v2/ingest" \                    -H "Content-Type: application/json" \                    -H "X-PARTNER-NAME: yourPartnerName" \                    -H "X-REQUEST-TOKEN: your-api-token" \                    -d '[                    {                    "item_id": "velocity-runner-pro-white",                    "locale": "en_US",                    "name": "Velocity Runner Pro - White",                    "url": "https://www.example-insiderone.com/shoes/velocity-runner-pro-white",                    "image_url": "https://cdn.example-insiderone.com/images/velocity-runner-pro-white.jpg",                    "category": ["Shoes", "Running", "Velox"],                    "brand": "Velox",                    "price": { "USD": 129.99 },                    "original_price": { "USD": 149.99 },                    "in_stock": 1                    }                    ]' ``` **Availability Based** For the Availability Based Feed Management Type, only the stock status is required. Pricing is optional. ```bash curl -X POST "https://catalog.api.useinsider.com/v2/ingest" \                    -H "Content-Type: application/json" \                    -H "X-PARTNER-NAME: yourPartnerName" \                    -H "X-REQUEST-TOKEN: your-api-token" \                    -d '[                    {                    "item_id": "velocity-runner-pro-white",                    "locale": "en_US",                    "name": "Velocity Runner Pro - White",                    "url": "https://www.example-insiderone.com/shoes/velocity-runner-pro-white",                    "image_url": "https://cdn.example-insiderone.com/images/velocity-runner-pro-white.jpg",                    "in_stock": 1                    }                    ]' ``` **Published Time Based** The Published Time Based Feed Management Type requires an update timestamp instead of pricing. ```bash curl -X POST "https://catalog.api.useinsider.com/v2/ingest" \                    -H "Content-Type: application/json" \                    -H "X-PARTNER-NAME: yourPartnerName" \                    -H "X-REQUEST-TOKEN: your-api-token" \                    -d '[                    {                    "item_id": "blog-top-running-shoes-2025",                    "locale": "en_US",                    "name": "Top 10 Running Shoes for 2025",                    "url": "https://www.example-insiderone.com/blog/top-running-shoes-2025",                    "image_url": "https://cdn.example-insiderone.com/images/blog/running-shoes-2025.jpg",                    "item_update_date": "2025-01-15 10:30:00"                    }                    ]' ``` **Start & End Time Based** The Start & End Time Based Feed Management Type requires date range attributes for time-bound content. ```bash curl -X POST "https://catalog.api.useinsider.com/v2/ingest" \                    -H "Content-Type: application/json" \                    -H "X-PARTNER-NAME: yourPartnerName" \                    -H "X-REQUEST-TOKEN: your-api-token" \                    -d '[                    {                    "item_id": "promo-summer-clearance-2025",                    "locale": "en_US",                    "name": "Summer Clearance Sale - Up to 50% Off",                    "url": "https://www.example-insiderone.com/campaigns/summer-clearance-2025",                    "image_url": "https://cdn.example-insiderone.com/images/campaigns/summer-clearance.jpg",                    "item_start_date": "2025-06-01 00:00:00",                    "item_end_date": "2025-08-31 23:59:59"                    }                    ]' ``` #### Product Availability by Feed Management Type A product is considered **available** based on criteria that vary by feed management type: | Feed Type | Availability Condition | | --- | --- | | Stock & Revenue Based | in_stock must be 1 | | Availability Based | in_stock must be 1 | | Published Time Based | item_update_date must be within the last 2 days (*default 2 days, adjustable in Smart Recommender campaigns)* | | Start & End Time Based | item_end_date must not be in the past | ### Attribute Specifications **Currencies** Pricing attributes accept an object mapping currency codes to amounts. You can include multiple currencies in a single record. ```json {                    "price": {                    "USD": 129.99,                    "EUR": 119.99,                    "GBP": 104.99,                    "BRL": 899.90                    },                    "original_price": {                    "USD": 149.99,                    "EUR": 139.99,                    "GBP": 119.99,                    "BRL": 999.90                    }                    } ``` **Categories** The category attribute accepts an array of strings. How the array is interpreted depends on your account's category type, which is configured [during onboarding](https://academy.insiderone.com/docs/product-catalog-data-planning). You must choose one of the two types: - **Hierarchical Category Type** Use this if your categories follow a parent-child structure, with subcategories nested under broader categories. Each element in the array represents a level in the hierarchy, ordered from broadest to most specific. ```json {                    "category": ["Clothing", "Men", "Shirts", "Casual Shirts"]                    } ``` This creates the hierarchy: Clothing → Men → Shirts → Casual Shirts. The order matters; the first element is the top-level category and each subsequent element is a child of the previous one. - **Flat Category Type** Use this if your categories are independent and don't follow a parent-child hierarchy. Each element is a standalone category label at the same level. ```json {                    "category": ["Men's Shirts", "Women's Dresses", "Kids' Shoes"]                    } ``` In flat mode, all categories are treated equally; there is no implied nesting or ordering relationship between elements. **Limits:** - Combined length of all category elements: max **1024 characters** - Each element: max **512 characters** **Tags & Merchandising** Tags are used for product grouping and merchandising rules within the Insider One platform. ```json {                    "tags": ["new-arrival", "bestseller", "summer-collection", "free-shipping"]                    } ``` You can use tagsto: - Create product segments for personalization - Trigger merchandising rules - Filter products in recommendation widgets - Define campaign audiences **Limits:** - Combined length of all tags: max **4096 characters** - Each tag: max **512 characters** **Group Code** The groupcode attribute links product variants together as a single product group. Products sharing the same groupcode are treated as variations of the same product (e.g., different sizes or colors). ```json [                    {                    "item_id": "velocity-runner-pro-white",                    "groupcode": "velocity-runner-pro",                    "color": "White",                    "size": "10"                    },                    {                    "item_id": "velocity-runner-pro-black",                    "groupcode": "velocity-runner-pro",                    "color": "Black",                    "size": "10"                    }                    ] ``` ## Sample Request The sample below displays a request to insert new products into the catalog using a flat format. Each **product** is a separate JSON object with all fields inline. Every **locale/store** combination is a separate object. ```bash curl -X POST "https://catalog.api.useinsider.com/v2/ingest" \        -H "Content-Type: application/json" \        -H "X-PARTNER-NAME: yourPartnerName" \        -H "X-REQUEST-TOKEN: your-api-token" \        -d '[        {        "item_id": "velocity-runner-pro-white",        "locale": "en_US",        "name": "Velocity Runner Pro - White",        "url": "https://www.example-insiderone.com/shoes/velocity-runner-pro-white",        "image_url": "https://cdn.example-insiderone.com/images/velocity-runner-pro-white.jpg",        "category": ["Shoes", "Running", "Velox"],        "brand": "Velox",        "color": "White",        "groupcode": "velocity-runner-pro",        "price": { "USD": 129.99 },        "original_price": { "USD": 149.99 },        "in_stock": 1,        "stock_count": 50        },        {        "item_id": "velocity-runner-pro-white",        "locale": "en_US:newyork",        "name": "Velocity Runner Pro - White",        "url": "https://www.example-insiderone.com/shoes/velocity-runner-pro-white",        "image_url": "https://cdn.example-insiderone.com/images/velocity-runner-pro-white.jpg",        "category": ["Shoes", "Running", "Velox"],        "brand": "Velox",        "color": "White",        "groupcode": "velocity-runner-pro",        "price": { "USD": 119.99 },        "original_price": { "USD": 149.99 },        "in_stock": 1,        "stock_count": 12        },        {        "item_id": "velocity-runner-pro-white",        "locale": "en_US:losangeles",        "name": "Velocity Runner Pro - White",        "url": "https://www.example-insiderone.com/shoes/velocity-runner-pro-white",        "image_url": "https://cdn.example-insiderone.com/images/velocity-runner-pro-white.jpg",        "category": ["Shoes", "Running", "Velox"],        "brand": "Velox",        "color": "White",        "groupcode": "velocity-runner-pro",        "price": { "USD": 129.99 },        "original_price": { "USD": 149.99 },        "in_stock": 0,        "stock_count": 0        },        {        "item_id": "velocity-runner-pro-white",        "locale": "pt_BR",        "name": "Velocity Runner Pro - Branco",        "url": "https://www.example-insiderone.com/shoes/velocity-runner-pro-white",        "image_url": "https://cdn.example-insiderone.com/images/velocity-runner-pro-white.jpg",        "category": ["Calçados", "Corrida", "Velox"],        "brand": "Velox",        "color": "White",        "groupcode": "velocity-runner-pro",        "price": { "BRL": 899.90 },        "original_price": { "BRL": 999.90 },        "in_stock": 1,        "stock_count": 30        }        ]' ``` ## Sample Response All ingest endpoints return the same response structure: ```json {        "success": true,        "message": {        "valid": {        "count": 95        },        "invalid": {        "count": 5,        "details": [        {        "field": "original_price",        "message": "Field is invalidated: 'original_price' is required",        "count": 2,        "document_ids": ["item-1", "item-2"]        },        {        "field": "url",        "message": "Field is invalidated: 'url' must match pattern",        "count": 3,        "document_ids": ["item-3", "item-4", "item-5"]        }        ]        },        "warnings": {        "count": 1,        "details": [        {        "field": "image_url",        "message": "Image URL could not be validated",        "count": 1,        "document_ids": ["item-6"]        }        ]        },        "invalidRatio": 0.05        }        } ``` > [!NOTE] > Warnings are informational and do not prevent records from being processed. ## Limitations For all the limits applied, refer to [Limitations](https://academy.insiderone.com/docs/product-catalog-api-introduction#limitations).