# Product feeds

Create, generate and check the product feed files your sales channel reads.

These endpoints are for an installed sales channel app whose release declares a product feed; only its token can use them. Start from `GET /channel-feed/targets`: each target is one country, language and currency the store really sells in, with English names, the country's own currency and whether the store charges it, and the feed unit already serving it. Create one unit per target you need, choose its schedule, and generate it; the platform serves the latest generation at the unit's `public_url`, `https://{store domain}/feeds/{unit id}.xml`, which channels fetch and revalidate by ETag. Field mappings let merchants choose where each feed field takes its value from, among the sources your release allows. Generation jobs report how many items were sent or left out, and diagnostics explain each omission. To keep a channel current between generations, push products as they change: render them with `GET /channel-feed/units/{unitId}/items`, which returns exactly what the feed holds, when product, stock or publication webhooks arrive. Converted prices also move with exchange rates: after `currencies/rates_updated` or `currencies/update`, ask `GET /channel-feed/units/{unitId}/price-changes` which products changed since the rate and rounding rule you last priced with, then render those.

## Endpoints

## Get channel feed contract

`GET /api/2025-01/channel-feed/contract`

Returns the feed fields your app release declares with their default sources, the merchant's changes (`mapping_overrides`), and the result (`effective_mappings`). A field without `merchant_mapping` is set by your release and cannot be changed. Which products a feed holds is decided only by publishing them to your sales channel.

Scope: `read_products`

```curl
curl 'https://api-store.tringify.com/api/2025-01/channel-feed/contract' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"installation_id":"3ee258ba-805d-4f0d-b146-428a05fa195d","sales_channel_id":"6e4f83bf-2583-412d-b276-a479538700b1","formats":["xml"],"fields":[{"name":"title","type":"string","required":true,"label":"Title","merchant_mapping":{"sources":[{"source":"product_field","allowed_field_refs":["product.title"]},{"source":"metafield","allowed_owner_types":["product"]}]}}],"default_mappings":{"title":{"source":"product_field","config":{"field":"product.title"}}},"mapping_overrides":{},"effective_mappings":{"title":{"source":"product_field","config":{"field":"product.title"}}},"field_ref_labels":{"product.title":"Title"},"source_labels":{"product_field":"Product field","metafield":"Metafield"}}}
```

## Set channel feed mappings

`PUT /api/2025-01/channel-feed/mappings`

Send every change you want to keep: a field you leave out goes back to its default source, and an empty object restores all defaults. A field your release does not declare or manages itself, a source the field does not allow, and a metafield or attribute that is not the store's or not for the field's owner type are refused. The change is saved with one entry in the store's activity log.

Scope: `write_products`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/channel-feed/mappings' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "mapping_overrides": {
    "title": {
      "config": {
        "definition_id": "e687a8f3-2c66-4999-b954-32fc9879eb40",
        "owner_type": "product"
      },
      "source": "metafield"
    }
  }
}'
```

Response:

```json
{"success":true,"data":{"installation_id":"3ee258ba-805d-4f0d-b146-428a05fa195d","sales_channel_id":"6e4f83bf-2583-412d-b276-a479538700b1","formats":["xml"],"fields":[{"name":"title","type":"string","required":true,"label":"Title","merchant_mapping":{"sources":[{"source":"product_field","allowed_field_refs":["product.title"]},{"source":"metafield","allowed_owner_types":["product"]}]}}],"default_mappings":{"title":{"source":"product_field","config":{"field":"product.title"}}},"mapping_overrides":{},"effective_mappings":{"title":{"source":"product_field","config":{"field":"product.title"}}},"field_ref_labels":{"product.title":"Title"},"source_labels":{"product_field":"Product field","metafield":"Metafield"}},"code":"CHANNEL_FEED_MAPPINGS_UPDATED","message":"Feed field mappings updated."}
```

## List channel feed targets

`GET /api/2025-01/channel-feed/targets`

Each target is a country with a language and currency the store really sells in, with the domain and URL its shoppers use: a domain assigned to that country, otherwise the store's primary domain. Use the values exactly as given and never build localized storefront paths yourself. `country_name`, `language_name` and `currency_name` are English display names; show them instead of naming codes yourself. `local_currency_code` is the country's own currency from Unicode CLDR, and `currency_is_local` is false when the store's market charges that country in another currency; ad channels such as Google commonly reject those prices, so warn the merchant and link them to Markets. Countries without a legal tender, such as Antarctica, are never targets. `home_country` marks the store's own country and `primary_market` the store's main market. Targets are ordered for people: the home country first, then targets in their local currency, then the rest, each by country and language name. `unit_id` names the feed unit already serving a target; creating a second one is rejected.

Scope: `read_products`

```curl
curl 'https://api-store.tringify.com/api/2025-01/channel-feed/targets' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"items":[{"country_code":"US","locale":"en","currency_code":"USD","country_name":"United States","language_name":"English","currency_name":"US Dollar","currency_symbol":"$","primary_market":true,"home_country":true,"local_currency_code":"USD","currency_is_local":true,"unit_id":"5b8f8a52-0b1e-4c63-9d8c-1f2a3b4c5d6e","domain":"shop.example.com","canonical_url":"https://shop.example.com/","country_pinned":false,"baseline_country_code":"US","baseline_locale":"en"},{"country_code":"CA","locale":"en","currency_code":"USD","country_name":"Canada","language_name":"English","currency_name":"US Dollar","currency_symbol":"$","primary_market":true,"home_country":false,"local_currency_code":"CAD","currency_is_local":false,"domain":"shop.example.com","canonical_url":"https://shop.example.com/en-ca","country_pinned":false,"baseline_country_code":"US","baseline_locale":"en"}]}}
```

## List channel feed units

`GET /api/2025-01/channel-feed/units`

A unit's country, language, currency, catalog context and format never change; to change one, create a new unit and delete the old. `public_url` is https://{domain}/feeds/{unit id}.{format} on the store's own domain; it always serves the unit's latest successful generation (revalidate with its ETag) and returns 404 while the unit is disabled or before it first generates. next_generation_at, last_success_at, last_failure_at, created_at and updated_at are RFC 3339 in the store's timezone with its offset.

Scope: `read_products`

```curl
curl 'https://api-store.tringify.com/api/2025-01/channel-feed/units' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"items":[{"id":"d6abe47e-3a64-4195-84cc-4a3732788bd9","country_code":"US","locale":"en","currency_code":"USD","format":"xml","domain":"shop.example.com","public_url":"https://shop.example.com/feeds/d6abe47e-3a64-4195-84cc-4a3732788bd9.xml","is_enabled":true,"schedule":"daily","next_generation_at":"2026-07-31T08:00:00-04:00","current_artifact_id":"745744b4-24d4-43ea-a60d-2529137349bf","last_success_at":"2026-07-30T08:00:41-04:00","created_at":"2026-07-01T09:30:00-04:00","updated_at":"2026-07-30T08:00:41-04:00"}]}}
```

## Create channel feed unit

`POST /api/2025-01/channel-feed/units`

The country, locale and currency must match one of List channel feed targets; the unit keeps that target's domain. The format must be one your release declares. A second unit for the same country, locale, currency, format and catalog context is refused. next_generation_at, last_success_at, last_failure_at, created_at and updated_at are RFC 3339 in the store's timezone with its offset.

Scope: `write_products`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/channel-feed/units' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "country_code": "US",
  "currency_code": "USD",
  "format": "xml",
  "locale": "en",
  "schedule": "daily"
}'
```

Response:

```json
{"success":true,"data":{"id":"d6abe47e-3a64-4195-84cc-4a3732788bd9","country_code":"US","locale":"en","currency_code":"USD","format":"xml","domain":"shop.example.com","public_url":"https://shop.example.com/feeds/d6abe47e-3a64-4195-84cc-4a3732788bd9.xml","is_enabled":true,"schedule":"daily","next_generation_at":"2026-07-31T08:00:00-04:00","current_artifact_id":"745744b4-24d4-43ea-a60d-2529137349bf","last_success_at":"2026-07-30T08:00:41-04:00","created_at":"2026-07-01T09:30:00-04:00","updated_at":"2026-07-30T08:00:41-04:00"},"code":"CHANNEL_FEED_UNIT_CREATED","message":"Feed unit created."}
```

## Update channel feed unit

`PUT /api/2025-01/channel-feed/units/{unitId}`

The country, language, currency, catalog context and format cannot be changed here. Disabling a unit removes its public feed file and ends its waiting or running generation, which is marked `failed` with `error_code` `CHANNEL_FEED_UNIT_DISABLED`; after it is enabled again, the next generation publishes it. next_generation_at, last_success_at, last_failure_at, created_at and updated_at are RFC 3339 in the store's timezone with its offset.

Scope: `write_products`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/channel-feed/units/unitId' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "is_enabled": true,
  "schedule": "daily"
}'
```

Response:

```json
{"success":true,"data":{"id":"d6abe47e-3a64-4195-84cc-4a3732788bd9","country_code":"US","locale":"en","currency_code":"USD","format":"xml","domain":"shop.example.com","public_url":"https://shop.example.com/feeds/d6abe47e-3a64-4195-84cc-4a3732788bd9.xml","is_enabled":true,"schedule":"daily","next_generation_at":"2026-07-31T08:00:00-04:00","current_artifact_id":"745744b4-24d4-43ea-a60d-2529137349bf","last_success_at":"2026-07-30T08:00:41-04:00","created_at":"2026-07-01T09:30:00-04:00","updated_at":"2026-07-30T08:00:41-04:00"},"code":"CHANNEL_FEED_UNIT_UPDATED","message":"Feed unit updated."}
```

## Delete channel feed unit

`DELETE /api/2025-01/channel-feed/units/{unitId}`

Deletes the unit, its public feed file, and its generation jobs, diagnostics and artifacts.

Scope: `write_products`

```curl
curl -X DELETE 'https://api-store.tringify.com/api/2025-01/channel-feed/units/unitId' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"deleted":true},"code":"CHANNEL_FEED_UNIT_DELETED","message":"Feed unit deleted."}
```

## Generate channel feed

`POST /api/2025-01/channel-feed/units/{unitId}/generate`

A unit has at most one queued or running generation. The generation uses the unit's current field sources, the products published to your channel, and the unit's language, currency, identities, availability and URLs. created_at (with fractional seconds) and completed_at are RFC 3339 in the store's timezone with its offset.

Scope: `write_products`

```curl
curl -X POST 'https://api-store.tringify.com/api/2025-01/channel-feed/units/unitId/generate' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"id":"8a746035-9a21-4b65-a1af-4aef28e79937","unit_id":"d6abe47e-3a64-4195-84cc-4a3732788bd9","trigger":"manual","status":"queued","attempt_count":0,"created_at":"2026-07-30T08:00:00.482113-04:00"},"code":"CHANNEL_FEED_GENERATION_QUEUED","message":"Feed generation queued."}
```

## List channel feed items

`GET /api/2025-01/channel-feed/units/{unitId}/items`

Renders up to 250 products with the same code that builds the unit's feed: field sources, publication version, language, identities, availability, URLs and prices. Prices are what the cart charges for one unit in the unit's currency: the price set in that currency, or the base price converted at the store's current rate and rounded by the currency's rule, with active sales and quantity pricing applied. Use it to send products to a channel one by one as they change instead of fetching the whole feed. `items` holds one entry per offer, keyed by your release's feed field names. `omitted` lists offers left out with the same stable codes as generation diagnostics. `unpublished_product_ids` lists requested products that are not currently published to your channel; remove them from the channel. A response holds at most about 6 MB of items: products that did not fit, which happens only with very large products, are listed in `deferred_product_ids`, lowest ID first; request them again. When one product's offers alone are larger than that, such as thousands of variants with long descriptions, the response holds as many of its offers as fit and `partial_product` names the product and `next_offer_offset`: request that product alone with `offer_offset` set to it, until `partial_product` is null, then request the deferred products. Treat the product as complete only once its last part is read. A value longer than its field's `max_length` is shortened exactly as in the feed file. `conversion_rate` and `rounding_mode` are what the prices used; keep them and pass them to the price-changes read later. Nothing is generated or recorded.

Scope: `read_products`

```curl
curl 'https://api-store.tringify.com/api/2025-01/channel-feed/units/unitId/items' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"unit_id":"d6abe47e-3a64-4195-84cc-4a3732788bd9","country_code":"DE","locale":"de","currency_code":"EUR","conversion_rate":"0.010197","rounding_mode":"nearest_99","items":[{"product_id":326,"variant_id":1201,"publication_id":"a76fbff8-1cac-46fc-870b-cc850ad722a1","publication_version":3,"fields":{"id":"LS-326-1201","title":"Leinenhemd","price":"48.99 EUR","sale_price":"38.99 EUR","availability":"in_stock","link":"https://shop.example.com/de-de/products/leinenhemd?variant=1201"}}],"omitted":[{"product_id":327,"variant_id":null,"field_name":"image_link","code":"REQUIRED_FIELD_MISSING","message":"The product has no image. Add one in Products."}],"unpublished_product_ids":[328],"deferred_product_ids":[],"partial_product":null}}
```

## List channel feed price changes

`GET /api/2025-01/channel-feed/units/{unitId}/price-changes`

Compares, for every product published to your channel, the converted one-unit price at `since_rate` and `since_rounding_mode` with the price at the store's current rate and rounding rule, and returns the products where the regular or current price differs. Prices set explicitly in the unit's currency never change with rates and are never listed; a unit in the base currency lists nothing. Pass the `conversion_rate` and `rounding_mode` an earlier items or price-changes read returned, then render the listed products with the items read. Call it after `currencies/rates_updated` or `currencies/update`. Pages are ordered by product id; pass `next_after` as `after` until it is null. The response's `conversion_rate` and `rounding_mode` are the current values to keep.

Scope: `read_products`

```curl
curl 'https://api-store.tringify.com/api/2025-01/channel-feed/units/unitId/price-changes' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"unit_id":"d6abe47e-3a64-4195-84cc-4a3732788bd9","currency_code":"EUR","conversion_rate":"0.010197","rounding_mode":"nearest_99","product_ids":[326,331],"next_after":null}}
```

## List channel feed jobs

`GET /api/2025-01/channel-feed/jobs`

These are Tringify's generations of the feed file, not the channel's processing of it. At its scheduled time a unit gets a scheduled job only when something its file shows changed (a product, its price or stock, the mappings, the target); otherwise it keeps its current file. A job rebuilds the items of the products that changed and publishes the file built from every product's current items, so `product_count`, `offer_count` and `omitted_count` count the whole file. A generation that fails for a reason a retry cannot fix, such as an identity without a source, fails at once; other failures are tried up to five times in all, with growing waits. A failed job has `error_code` and `error_message`; `CHANNEL_FEED_UNIT_DISABLED` means the unit was turned off before the job finished. created_at and completed_at are RFC 3339 in the store's timezone with its offset; created_at keeps its fractional seconds, so pass the last item's created_at unchanged as before for the next page.

Scope: `read_products`

```curl
curl 'https://api-store.tringify.com/api/2025-01/channel-feed/jobs' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"items":[{"id":"8a746035-9a21-4b65-a1af-4aef28e79937","unit_id":"d6abe47e-3a64-4195-84cc-4a3732788bd9","trigger":"scheduled","status":"success","attempt_count":1,"product_count":12,"offer_count":18,"omitted_count":1,"created_at":"2026-07-30T08:00:00.482113-04:00","completed_at":"2026-07-30T08:00:41-04:00"}]}}
```

## List channel feed diagnostics

`GET /api/2025-01/channel-feed/jobs/{jobId}/diagnostics`

Each row is a product, or one of its offers, left out of the feed, with a stable `code` and a `message` the merchant can act on. A product whose items would pass 16 MB in the file is left out with `OFFERS_TOO_LARGE`. A row with code `VALUE_SHORTENED` is not an omission: a value was longer than the field's `max_length` in your release, so it was cut at the last word break that fits and the offer was still sent; there is one such row per product and field, and it is not counted in `omitted_count`. A missing required value is never filled from another language, currency, identity or field. created_at is RFC 3339 in the store's timezone with its offset.

Scope: `read_products`

```curl
curl 'https://api-store.tringify.com/api/2025-01/channel-feed/jobs/jobId/diagnostics' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"items":[{"id":41,"product_id":326,"field_name":"price","code":"REQUIRED_FIELD_MISSING","message":"Price is empty in English.","created_at":"2026-07-30T08:00:39-04:00"}],"next_cursor":41}}
```

## Get channel feed artifact

`GET /api/2025-01/channel-feed/artifacts/{artifactId}`

A failed generation never replaces a unit's current file. `etag` and `checksum_sha256` identify its exact content. Fetch the current feed from the unit's `public_url`; an artifact ID is not a feed address. generated_at and expires_at are RFC 3339 in the store's timezone with its offset.

Scope: `read_products`

```curl
curl 'https://api-store.tringify.com/api/2025-01/channel-feed/artifacts/artifactId' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{"success":true,"data":{"id":"745744b4-24d4-43ea-a60d-2529137349bf","content_type":"application/xml; charset=utf-8","byte_size":4812,"checksum_sha256":"8fd8d4b975d1bc51b286dd9514f7ea454e4c4434d532c32fcaf76578e6d3d2e8","etag":"\"8fd8d4b975d1bc51b286dd9514f7ea454e4c4434d532c32fcaf76578e6d3d2e8\"","generated_at":"2026-07-30T08:00:40-04:00","expires_at":"2026-08-06T08:00:40-04:00"}}
```

