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.

Embed
Preview of the card
<a href="https://referalli.com/docs/product-catalog"><img src="https://referalli.com/docs/_api/public/orgs/07f432f4-34b9-46a7-aaad-c0e395d2e4f9/spaces/2bf4f614-3630-4fbf-85f9-5ecafa6b7d97/pages/c87e039e-eb21-4ed5-a125-595ff87b25d1/social-card.svg?v=3e7ae33eec8b" alt="Product catalog" width="600" height="315"></a>

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

shopify

shopDomain, accessToken

Admin REST products.json, link is https://{shop}/products/{handle}, category is the product type

woocommerce

siteUrl, consumerKey, consumerSecret

/wp-json/wc/v3/products, link is the product permalink, category is the first category

bigcommerce

storeHash, apiToken (optional storeUrl)

/v3/catalog/products, link is the product's custom URL (BigCommerce returns category ids, not names, so categories stay empty)

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.

Updated