Search products to promote

Embed
Preview of the card
<a href="https://referalli.com/docs/ref-getv1partnercatalog"><img src="https://referalli.com/docs/_api/public/orgs/07f432f4-34b9-46a7-aaad-c0e395d2e4f9/spaces/2bf4f614-3630-4fbf-85f9-5ecafa6b7d97/pages/b2c2eac0-a73b-427c-b8dc-62d100347b6c/social-card.svg?v=3e7ae33eec8b" alt="Search products to promote" width="600" height="315"></a>
GET https://referalli.com/v1/partner/catalog

Catalog products of the programs the partner is approved in (a product with no program of its own appears once per program), each with commission (bps and a display label from the program's published rule: the rate card's rate for the product's category, else the base percent or fixed amount; null for a draft rule) and link, the partner's existing link for it. Filters orgId, programId, q (title or SKU), category; keyset paging with limit (1-100) and cursor.

Auth: a partner session.

Parameters

orgId
string
query
programId
string
query
q
string
query
category
string
query
limit
integer
query
= 24
cursor
string
query

Code samples

cURL
curl -X GET "https://referalli.com/v1/partner/catalog"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{
  "items": [
    {
      "id": "string",
      "orgId": "string",
      "programId": "string",
      "source": "string",
      "externalId": "string",
      "sku": "string",
      "title": "string",
      "url": "string",
      "imageUrl": "string",
      "priceMinor": 0,
      "currency": "string",
      "category": "string",
      "inStock": true,
      "updatedAt": "2024-01-01T00:00:00Z",
      "commission": {
        "bps": 0,
        "label": "string"
      },
      "link": {
        "id": "string",
        "shortUrl": "string"
      }
    }
  ],
  "nextCursor": "string"
}
Schema
items
object[]
required
Show child parameters
id
string
required
orgId
string
required
programId
string
required
source
string
required
externalId
string
required
sku
string
required
title
string
required
url
string
required
imageUrl
string
required
priceMinor
integer
required
currency
string
required
category
string
required
inStock
boolean
required
updatedAt
string
required
commission
object
required
Show child parameters
bps
integer
required
The item's percentage in basis points; null for a fixed amount or a rule not yet published.
label
string
required
Display text, e.g. 12% or $5.00 per sale; null when the program has no published rule.
link
object
required
The partner's existing link for this product, or null.
Show child parameters
id
string
required
shortUrl
string
required
nextCursor
string
required
400 The request is invalid. error.code is one of:
Example
{
  "error": {
    "code": "validation_error",
    "message": "the body or query failed validation, an unknown field was sent, the body is not valid json, or a session call has no `x-org-id`",
    "details": [
      {
        "code": "invalid_format",
        "path": [
          "destinationUrl"
        ],
        "message": "Invalid URL"
      }
    ],
    "docs_url": "https://referalli.com/docs/errors-and-limits#validation_error"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
401 Missing or invalid credentials. error.code is one of:
Example
{
  "error": {
    "code": "unauthorized",
    "message": "no credentials, an unknown, revoked or expired api key or session, or a signature that did not verify",
    "docs_url": "https://referalli.com/docs/errors-and-limits#unauthorized"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
403 Authenticated, but not allowed. error.code is one of:
Example
{
  "error": {
    "code": "forbidden",
    "message": "the wrong role, a key without the needed scope (the message names it",
    "docs_url": "https://referalli.com/docs/errors-and-limits#forbidden"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
404 No such resource. error.code is one of:
Example
{
  "error": {
    "code": "not_found",
    "message": "the resource does not exist in this org (ids from other orgs look the same), a referenced id does not exist, a list cursor is not in the list, or the endpoint does not exist",
    "docs_url": "https://referalli.com/docs/errors-and-limits#not_found"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
429 Rate limited. error.code is one of:
Example
{
  "error": {
    "code": "rate_limited",
    "message": "an endpoint limit or the per-key quota was exceeded",
    "docs_url": "https://referalli.com/docs/errors-and-limits#rate_limited"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
Retry-After
integer
Seconds until a retry can succeed.
RateLimit-Limit
integer
The quota bucket's size (the burst).
RateLimit-Remaining
integer
Requests that can be made right now.
RateLimit-Reset
integer
Seconds until the bucket is full again.
500 Unexpected server error. error.code is one of:
Example
{
  "error": {
    "code": "internal_error",
    "message": "retry with backoff",
    "requestId": "req_8f2c1d4e5a6b7c8d",
    "docs_url": "https://referalli.com/docs/errors-and-limits#internal_error"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
default Any other error, in the same envelope.
Example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {},
    "requestId": "string",
    "docs_url": "string"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Updated