Skip to Content
API ReferenceAffiliates

Affiliate products and custom rates

Read or change the product variants and commission rates of one affiliate.

By default every affiliate earns the program's rates from the affiliate program. Give one affiliate custom rates to choose the product variants they earn on and the commission for each: a percentage such as "25", or a fixed amount in integer USD cents such as 550 for $5.50.

PATCH changes only what you send. Turning custom rates on keeps the program's rate on every variant you do not name, unless you also send replace_products: true. enable_specific_products: false removes every custom rate. Turning custom rates on for an affiliate who does not have them emails the affiliate and your store; other changes send no email. Repeating the same request is safe.

Each id in products is a product variant ID, not a product ID.

GET
/v2/affiliates/{affiliate}/products

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

affiliate*integer

The affiliate ID in your store.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v2/affiliates/88/products' \  -H 'X-STORE: launch-lab'
{  "data": {    "affiliate_id": 88,    "enable_specific_products": true,    "products": [      {        "id": 42,        "product_id": 9,        "product_title": "The Cold-Email Warmup Club",        "variant_title": "Definitely Personalised",        "enabled": true,        "commission": {          "type": "percentage",          "percentage": "25",          "amount_usd_cents": null        }      },      {        "id": 43,        "product_id": 9,        "product_title": "The Cold-Email Warmup Club",        "variant_title": "Lifetime Access",        "enabled": true,        "commission": {          "type": "fixed",          "percentage": null,          "amount_usd_cents": 550        }      }    ],    "updated_at": "2026-07-03T09:12:00.000000Z"  }}
PATCH
/v2/affiliates/{affiliate}/products

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

affiliate*integer

The affiliate ID in your store.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
Properties1 <= properties
enable_specific_products?boolean

true gives the affiliate custom rates; false removes them all and the program's rates apply. Leave it out to keep the current setting.

products?array<>

Rates to set or remove, one entry per product variant. Each variant may appear once.

replace_products?boolean

true removes every custom rate not in products, making products the complete list.

Defaultfalse

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://sell.app/api/v2/affiliates/88/products' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "enable_specific_products": true,  "replace_products": true,  "products": [    {      "id": 42,      "enabled": true,      "commission": {        "type": "percentage",        "percentage": "25"      }    },    {      "id": 43,      "enabled": true,      "commission": {        "type": "fixed",        "amount_usd_cents": 550      }    }  ]}'
{  "data": {    "affiliate_id": 88,    "enable_specific_products": true,    "products": [      {        "id": 42,        "product_id": 9,        "product_title": "The Cold-Email Warmup Club",        "variant_title": "Definitely Personalised",        "enabled": true,        "commission": {          "type": "percentage",          "percentage": "25",          "amount_usd_cents": null        }      },      {        "id": 43,        "product_id": 9,        "product_title": "The Cold-Email Warmup Club",        "variant_title": "Lifetime Access",        "enabled": true,        "commission": {          "type": "fixed",          "percentage": null,          "amount_usd_cents": 550        }      }    ],    "updated_at": "2026-07-03T09:12:00.000000Z"  }}