1. Affiliates
Salla Platform Docs
  • Get Started
  • Create Your First App
  • Authorization
  • App Events
  • Handling Add-On Subscriptions
  • Server-Created Checkouts (Checkout SDK)
  • Root
  • App Snippets
    • Intro to App Snippets
    • HTML to JavaScript Snippet Migration
  • App Details Builder
    • Get Started
    • App Information
    • App Features
    • App Reviews
    • App Brands
    • App FAQ
    • App Statistics
  • Settings
    • App Setting Details
      GET
    • Update App Settings
      POST
  • Subscriptions
    • App Subscription Details
      GET
    • Subscription Renew
      POST
    • Update Subscription Balance
      POST
  • Affiliates
    • List Affiliate Links
      GET
    • Get Affiliate Link
      GET
    • Get Insights
      GET
    • Create Affiliate Link
      POST
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight (React)
  • Twilight SDK
  • Web Components (Deprecated)
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Twilight Engine (Deprecated)
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight (React)
  • Twilight SDK
  • Web Components (Deprecated)
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Twilight Engine (Deprecated)
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Affiliates

List Affiliate Links

Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
GET
https://api.salla.dev/partners/v1/affiliates/opportunities/links
Last modified:2026-12-03 09:46:19
List your partner company's affiliate links, newest first: your main links, or with parent_link_id the sub-links of one of your main links.
Scope
affiliates.read (or affiliates.read_write)
id is opaque; pass it to Get Affiliate Link, as parent_link_id here (to list its sub-links) and when creating a sub-link, and as link_id to Get Insights.
parent_link_id: one of your main links; the response lists its sub-links (parent_link_id, name and email are set on them). Any other id returns 404.
link.short is the URL to share; link.full is the full tracking URL it points to.
opportunity describes the program the link belongs to; opportunity.id is the opportunity_id for Create Affiliate Link. opportunity.product.id and opportunity.excluded_products[].id are the marketplace ids you see in product URLs.
q searches the link URL, coupon code, name, email, product name and product type.
Pagination follows Salla's simple pagination: page (default 1) and per_page (default 15, maximum 60; larger values are capped, not rejected). The cursor block gives current, previous, next and count; request page = cursor.next until it is null. No totals.
Labels and error messages follow Accept-Language (en or ar).
Rate limit: 4 requests per second per API client.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff 'https://api.salla.dev/partners/v1/affiliates/opportunities/links?page=1&per_page=15&parent_link_id=1634268187&q=reports&status[]=active&product_type[]=app&commission_type[]=fixed' \
--header 'Accept-Language: en' \
--header 'Authorization: Bearer <token>'

Responses

🟢200Success
application/json
Your affiliate links (or the sub-links of parent_link_id).
Bodyapplication/json

Example
{
  "status": 200,
  "success": true,
  "data": [
    {
      "id": 1634268187,
      "parent_link_id": null,
      "name": null,
      "email": null,
      "link": {
        "short": "https://salla.link/aff-1634268187",
        "full": "https://apps.salla.sa/en/app/562001483?utm_source=affiliate&utm_campaign=SAVE10"
      },
      "code": "SAVE10",
      "status": { "slug": "active", "label": "Active" },
      "opportunity": {
        "id": 483380186,
        "visibility": "public",
        "product": {
          "id": 562001483,
          "type": { "slug": "app", "label": "App" },
          "name": "Reports App",
          "link": "https://apps.salla.sa/en/app/562001483"
        },
        "excluded_products": [],
        "platform": { "slug": "partner", "label": "Partner Products" }
      }
    }
  ],
  "cursor": {
    "current": 1,
    "previous": null,
    "next": null,
    "count": 1
  }
}
🟠401Unauthorized
🟠403Insufficient scope
🟠404Not found
🟠422Validation failed
🟠429Rate limited
🔴503Auth unavailable
Modified at 2026-12-03 09:46:19
Previous
Update Subscription Balance
Next
Get Affiliate Link