The product catalog is your store's private list of products in Partners (Partners › Products). Bring products in from Shopify, from Stripe, from a CSV file, or from your own server with the endpoint below. It is private to your store: it does not publish products to Refermate shoppers, create offers or change your commission rules.
- The catalog stores product-level items: a stable ID, title, availability, and optional image and product links. Variants, prices and inventory are not stored.
- Connected Shopify and Stripe catalogs sync automatically. Products shows the connection's sync status and any setup still needed. Your custom integration sends its catalog through this endpoint and sends updates when products change. To mark a custom product as no longer sold, send it again with
active set to false. Leaving a product out of a batch never deletes or deactivates it. - A product is identified by your store, where it came from and its ID. Sending the same ID again updates that product instead of adding another, so resending a batch is safe and changes nothing (
changed is 0). - In Partners, search the stored catalog and select products to organize into a product set or configure a reward policy. Syncing products does not create reward rules. Named product sets are shared with our Shopify app and need a reward rule to earn commission. A Stripe product ID starts with
prod_ and is never a Price ID. Shopify products use gid://shopify/Product/<number>; CSV also accepts the product's number, never a variant ID. - In Claude or ChatGPT,
merchant_read_products reads the catalog and supports action: syncStatus. merchant_import_products supports source: sync to request a background retry for Shopify or Stripe. Both need the store's separate manage_catalog consent. Imports and sync requests require confirmation; a confirmed sync request does not mean the sync has finished.
Import a CSV
- A CSV holds at most 500 products and 2 MiB. Its first row names the columns:
external_id and title are required; image_url, product_url and active are optional. Other columns are ignored. - Choose the source the IDs come from (Shopify, Stripe or Custom) before you check the file: the IDs must be that source's product IDs. A check lists every row problem and imports nothing; a file with any problem imports nothing.
active takes true or false (also yes, no, 1, 0); a blank cell means active. Quote a cell that holds a comma, quote or line break and double any quote inside it. A leading byte order mark and Windows line endings are fine.
Push products from your server
Send your secret postback key exactly as for the other endpoints, as Authorization: Bearer <key> (or X-Refermate-Postback-Key), from your server only. The body is a JSON object of at most 2 MiB with products and nothing else: your store is the one the key belongs to, so a body that names a store, advertiser or integration is refused. A batch holds 1 to 500 products and is written all or nothing: if any product is invalid, none is saved and the answer lists each problem by its position. Catalog JSON uses camelCase: externalId, imageUrl and productUrl. CSV headers use snake_case. Snake_case aliases and other unknown fields in catalog JSON are rejected.
POST /api/partner-network/postbacks/<public-tracking-key>/v2/catalog/products
Import products into your store's private catalog or revise existing entries. Products from this endpoint are custom products: the ID is yours to choose and stays the product's identity. The answer reports how many products the batch held (imported) and how many were added or changed (changed).
| Field | Description |
|---|
productsRequired | The batch: 1 to 500 products. The same externalId twice in one batch is rejected. |
|---|
products[].externalIdRequired | Your stable product ID, up to 255 characters and without control characters. It is the product's identity within your store: use the product's ID, not a variant, SKU variant or price ID. |
|---|
products[].titleRequired | The product's name, up to 500 characters, on one line. |
|---|
products[].imageUrlOptional | An https link to the product's image, up to 2048 characters and without a username or password. Omit it or send null for none. |
|---|
products[].productUrlOptional | An https link to the product's page, with the same rules. Omit it or send null for none. |
|---|
products[].activeOptional | Whether the product is currently sold. Defaults to true; send false to mark a product as no longer sold. Nothing is deleted. |
|---|
Two products, one with an image and a link
{
"products": [
{
"externalId": "sku-1001",
"title": "Trail Mug",
"imageUrl": "https://cdn.example.com/images/trail-mug.jpg",
"productUrl": "https://shop.example.com/products/trail-mug",
"active": true
},
{
"externalId": "sku-1002",
"title": "Camp Kettle",
"active": false
}
]
}
curl -X POST "https://partners.refermate.com/api/partner-network/postbacks/<public-tracking-key>/v2/catalog/products" \
-H "Authorization: Bearer <postback-key>" \
-H "Content-Type: application/json" \
-d '{"products":[{"externalId":"sku-1001","title":"Trail Mug","active":true}]}'
Catalog answers
| Status | Reason | Meaning |
|---|
| 200 | imported | Saved. imported is the batch size and changed how many products were added or changed; a replay answers changed: 0. |
|---|
| 400 | invalid_payload | The body is not exactly { "products": [...] } with at least one product. Anything else in the body, such as a store or advertiser ID, is refused. |
|---|
| 400 | invalid_json | The body is not a JSON object. json_required and unsupported_content_encoding mean the request is not uncompressed application/json. |
|---|
| 401 | unauthorized | Missing or wrong postback key. |
|---|
| 403 | advertiser_unavailable | The store is archived or no longer has an owner. Nothing was saved. |
|---|
| 409 | integration_changed | The key was revoked or rotated, or the integration was replaced or uninstalled, while the request ran. Nothing was saved; send the batch again with the current key. |
|---|
| 413 | payload_too_large | The body is larger than 2 MiB. Split the batch. |
|---|
| 422 | batch_too_large | The batch has more than 500 products. Split it. |
|---|
| 422 | validation_failed | At least one product is invalid or repeated, so none was saved. errors lists up to 100 problems as { "index", "message" }, where index is the product's position in products, starting at 0. Fix them and resend the whole batch. |
|---|
| 429 | rate_limited | This endpoint allows 60 requests a minute per integration, a budget of its own apart from the 3,000 a minute the seven postback endpoints share; rotating a key does not reset it. Retry after Retry-After: 60. Nothing was saved. |
|---|
| 503 | rate_limit_unavailable | The limit could not be checked, so the request was refused before it was read. Resend the same body. |
|---|
| 500 | internal_error | Nothing was saved. Resend the same body with bounded backoff: a batch is safe to repeat. |
|---|