1. Affiliates
Salla Platform Docs
  • Get Started
  • Authorization
  • 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 Management API
  • Partner 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 Management API
  • Partner 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

Get Affiliate Link

Production
Production
GET
https://api.salla.dev/partners/v1/affiliates/opportunities/links/{link}
Last modified:2026-12-03 12:47:42
This endpoint allows you to get one of your affiliate links, a main link or a sub-link, with its commission and the opportunity's terms.
Scopes
affiliates.read - Affiliates Read Only

Request

Path 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 'https://api.salla.dev/partners/v1/affiliates/opportunities/links/1634268187' \
--header 'Authorization: Bearer prtapi_Q2x7mN4pR8sT1vW5yZ0aB3cD6eF9gH2jK5lM8nP1qR4sT7uV'

Responses

🟢200Success
application/json
The link with its terms.
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" },
      "discount": { "type": "percent", "value": 5, "max": 50 },
      "currency": "SAR",
      "start_date": "2026-09-01",
      "end_date": null
    },
    "commission": { "type": "percent", "value": 10 },
    "created_at": "2026-09-01T08:00:00Z"
  }
}
🟠401Unauthorized
🟠403Insufficient scope
🟠404Not found
🟠429Rate limited
🔴503Auth unavailable
Modified at 2026-12-03 12:47:42
Previous
List Affiliate Links
Next
Get Insights