Product catalog
A catalog of your store's products that partners search for links, synced from Shopify, WooCommerce, BigCommerce or a product feed, or pushed through the API. Catalog categories feed rate-card commissions.
The catalog lists the products partners can promote. Each item has an externalId: the provider's product id, the same value order lines carry as productId and links carry as productRef. Items belong to one program or, with no programId, to every program in the org.
Fill it
Pick any of these; they can be combined.
From your store. POST /v1/catalog/sync imports the active products with your own API credentials (nothing of Referalli's is involved). The billing connection's stored credentials are used when it has them; otherwise send credentials, which are used once and not stored.
Provider | Credentials | Reads |
|---|---|---|
|
| Admin REST |
|
|
|
|
|
|
curl -X POST https://referalli.com/v1/catalog/sync \
-H "Authorization: Bearer $REFERALLI_KEY" -H "Content-Type: application/json" \
-d '{"provider":"shopify","connectionId":"bcn_..."}'A product that is no longer in the store becomes active: false and stops showing to partners; it is never deleted.
From a feed. POST /v1/catalog/feeds registers an https URL in one of three formats: Google Shopping XML (RSS or Atom with g: fields), CSV with a header row (id, title, link, image_link, price, category, availability; sku, currency optional), or a JSON array of products. Feeds sync every day; POST /v1/catalog/feeds/{id}/sync syncs now and a failing feed keeps its lastError. Rows without an id, title or https link are skipped. A product that leaves a feed becomes inactive when it is the only feed for its program scope.
From the API. PUT /v1/catalog/items upserts up to 500 items at a time (source api).
Prices are integer minor units with a currency. GET /v1/catalog/items lists the catalog with q, category and programId filters and cursor paging; DELETE /v1/catalog/items/{id} removes one.
Categories and commissions
When a commission rule has a rate card, each order line is paid by its category. The line's own category wins, then the rate card's productCategories, then the catalog category of the item whose externalId (or sku) matches the line's product. So a store that syncs its catalog gets per-category rates without listing every product in the rule.