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

Get Insights

Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
GET
https://api.salla.dev/partners/v1/insights/affiliates
Last modified:2026-12-03 09:48:01
The numbers of your partner company, or of one of its links: visits, orders, conversion rate, sales and earnings for a period. The same numbers the Partners Portal statistics cards show.
Scope
affiliates.read (or affiliates.read_write)
Without link_id the numbers are the whole company's: link_id and sales are null, and active_links is added.
link_id is an id from List Affiliate Links: one of your main links, or a sub-link of one. Any other id returns 404.
from_date / to_date are optional and inclusive (all time when omitted) and are echoed back in period.
conversion_rate is completed orders per 100 visits (rounded to 2 decimals, capped at 9999.99; 0 without visits or orders). It can pass 100, since coupon orders have no visit.
sales is 0 when the link's program hides its totals.
earnings.completed.gross is the commission; net is after VAT or the international transfer fee, depending on your company's bank country and tax number.
Amounts are numbers in currency (always SAR); every number is 0, never null, when there is no data.
Labels and error messages follow Accept-Language. 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 'https://api.salla.dev/partners/v1/insights/affiliates?link_id=1634268187&from_date=2026-10-01&to_date=2026-10-17' \
--header 'Accept-Language: en' \
--header 'Authorization: Bearer <token>'

Responses

🟢200Success
application/json
The numbers of the company or of the link.
Bodyapplication/json

Examples
{
  "status": 200,
  "success": true,
  "data": {
    "link_id": 1634268187,
    "period": { "from_date": "2026-10-01", "to_date": "2026-10-17" },
    "currency": "SAR",
    "visits": 1240,
    "orders": { "total": 91, "completed": 80, "pending": 6, "canceled": 5 },
    "conversion_rate": 6.45,
    "sales": 24500.0,
    "earnings": {
      "completed": { "gross": 1700.0, "net": 1450.5 }
    }
  }
}
🟠401Unauthorized
🟠403Insufficient scope
🟠404Not found
🟠422Validation failed
🟠429Rate limited
🔴502Upstream error
🔴503Auth unavailable
🔴504Upstream timeout
Modified at 2026-12-03 09:48:01
Previous
Get Affiliate Link
Next
Create Affiliate Link