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 Insights

Production
Production
GET
https://api.salla.dev/partners/v1/insights/marketing/affiliates
Last modified:2026-12-03 12:47:42
This endpoint allows you to get the visits, orders, conversion rate, sales and earnings of your partner company, or of one of its links with link_id, for a period.
Scopes
affiliates.read - Affiliates Read Only

Request

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/marketing/affiliates' \
--header 'Authorization: Bearer prtapi_Q2x7mN4pR8sT1vW5yZ0aB3cD6eF9gH2jK5lM8nP1qR4sT7uV'

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 12:47:42
Previous
Get Affiliate Link
Next
Create Affiliate Link