> ## Documentation Index
> Fetch the complete documentation index at: https://feeds.docs.channel3.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Event & Product Schema

> Event types, Google Merchant API ProductInput fields, and example payloads.

## Event Types

| Event | Behavior |
| - | - |
| `product.created` | Creates or replaces an offer |
| `product.updated` | Creates or replaces an offer |
| `product.deleted` | Removes an offer |

## Product & Merchant Identification

Products are uniquely identified per merchant using the same triple as Google's Merchant API:

```text theme={null}
{contentLanguage}~{feedLabel}~{offerId}
```

For example: `en~US~SKU12345`.

* **`merchant.id`**: Your platform's unique identifier for the merchant.
* **`merchant.domain`**: The merchant's storefront domain (e.g., `example.com`), used to verify authorization and associate the offer with the retailer.

## Pricing Format

Prices are expressed in **micros** (1,000,000 micros = 1 unit of currency), matching the Google Merchant API. For example, `"15990000"` represents `$15.99 USD`.

## Required Fields

| Field | Create / Update | Delete |
| - | - | - |
| `type` | Required | Required |
| `merchant.id` | Required | Required |
| `merchant.domain` | Required | Required |
| `product.offerId` | Required | Required |
| `product.contentLanguage` | Required | Required |
| `product.feedLabel` | Required | Required |
| `product.productAttributes.title` | Required | — |
| `product.productAttributes.link` | Required | — |
| `product.productAttributes.imageLink` | Required | — |
| `product.productAttributes.availability` | Required (`IN_STOCK`, `OUT_OF_STOCK`, `PREORDER`, `BACKORDER`) | — |
| `product.productAttributes.price.amountMicros` | Required | — |
| `product.productAttributes.price.currencyCode` | Required (3-letter ISO 4217) | — |

Any additional Google Merchant API `ProductAttributes` fields (`description`, `additionalImageLinks`, `salePrice`, `brand`, `gtins`, `mpn`, `condition`, `itemGroupId`, `color`, `size`, `googleProductCategory`, `productTypes`, physical dimensions, `customLabel0`–`4`, etc.) can be included and will be stored.

## Example Payloads

### Create a Product

```json theme={null}
{
  "type": "product.created",
  "merchant": {
    "id": "fdx_123",
    "domain": "example.com"
  },
  "product": {
    "offerId": "SKU12345",
    "contentLanguage": "en",
    "feedLabel": "US",
    "productAttributes": {
      "title": "Classic Cotton T-Shirt",
      "description": "A comfortable, durable t-shirt made from 100% cotton.",
      "link": "https://www.example.com/p/SKU12345",
      "imageLink": "https://www.example.com/img/SKU12345.jpg",
      "additionalImageLinks": [
        "https://www.example.com/img/SKU12345-2.jpg"
      ],
      "availability": "IN_STOCK",
      "price": {
        "amountMicros": "15990000",
        "currencyCode": "USD"
      },
      "salePrice": {
        "amountMicros": "12990000",
        "currencyCode": "USD"
      },
      "brand": "Example",
      "gtins": ["9780007350896"],
      "mpn": "SKU12345",
      "condition": "NEW",
      "itemGroupId": "TSHIRT-CLASSIC",
      "color": "White",
      "size": "M",
      "googleProductCategory": "Apparel & Accessories > Clothing > Shirts"
    }
  }
}
```

### Update a Product

Create and update use the same body structure. An existing offer is **replaced in full** — any optional field omitted from an update is cleared. Always include the complete set of attributes for the offer, including unchanged fields.

```json theme={null}
{
  "type": "product.updated",
  "merchant": {
    "id": "fdx_123",
    "domain": "example.com"
  },
  "product": {
    "offerId": "SKU12345",
    "contentLanguage": "en",
    "feedLabel": "US",
    "productAttributes": {
      "title": "Classic Cotton T-Shirt",
      "description": "A comfortable, durable t-shirt made from 100% cotton.",
      "link": "https://www.example.com/p/SKU12345",
      "imageLink": "https://www.example.com/img/SKU12345.jpg",
      "availability": "OUT_OF_STOCK",
      "price": {
        "amountMicros": "14990000",
        "currencyCode": "USD"
      },
      "brand": "Example",
      "gtins": ["9780007350896"],
      "condition": "NEW",
      "itemGroupId": "TSHIRT-CLASSIC"
    }
  }
}
```

### Delete a Product

Deletion removes the specified merchant's offer only. Deleting an offer that Channel3 does not currently have still returns `202 Accepted`.

```json theme={null}
{
  "type": "product.deleted",
  "merchant": {
    "id": "fdx_123",
    "domain": "example.com"
  },
  "product": {
    "offerId": "SKU12345",
    "contentLanguage": "en",
    "feedLabel": "US"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.