- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
List Affiliates
Production
Production
GET
https://api.salla.dev/admin/v2/affiliates
Affiliates
Last modified:2025-02-26 10:04:22
Scopes
marketing.read
- Marketing Read OnlyRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Request 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 --request GET 'https://api.salla.dev/admin/v2/affiliates'
Responses
🟢200Success
application/json
Body
status
numberÂ
required
success
booleanÂ
required
data
array[object (Affiliate) {11}]Â
required
code
stringÂ
required
Example:
frm11
marketer_name
stringÂ
required
Example:
User Name
marketer_city
stringÂ
required
Example:
Medina
commission_type
enum<string>Â
required
comission_type
is fixed
, then use a numeric value such as 100
. If comission_type
is percentage
, then use a percentage value such as 15
%.Allowed values:
fixedpercentage
Example:
fixed
amount
objectÂ
required
profit
objectÂ
required
links
objectÂ
required
apply_to
stringÂ
required
all_orders
or first_order
Example:
first_order
visits_count
numberÂ
required
Example:
17
notes
stringÂ
required
Example:
Notes Here
pagination
object (Pagination)Â
required
count
numberÂ
required
total
numberÂ
required
perPage
numberÂ
required
<= 65
currentPage
numberÂ
required
totalPages
numberÂ
required
links
objectÂ
required
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 611208326,
"code": "frm11",
"marketer_name": "User Name",
"marketer_city": "Medina",
"commission_type": "fixed",
"amount": {
"amount": 300,
"currency": "SAR"
},
"profit": {
"amount": 150,
"currency": "SAR"
},
"links": {
"affiliate": "https://salla.sa/dev-wofftr4xsra5xtlv?utm_source=aff&utm_campaign=CXNAZ",
"statistics": "https://salla.sa/dev-wofftr4xsra5xtlv/marketing/statistics/1604086218"
},
"apply_to": "first_order",
"visits_count": 17,
"notes": "Notes Here"
}
],
"pagenation": {
"count": 10,
"total": 10,
"perPage": 65,
"currentPage": 10,
"totalPages": 10,
"links": []
}
}
🟠401Unauthorized
Modified at 2025-02-26 10:04:22