Create Affiliate
Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
POST
https://api.salla.dev/admin/v2
Affiliates
Last modified:2024-12-29 06:40:32
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/affiliates' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "frm11",
"marketer_name": "User Name",
"marketer_city": "Medina",
"commission_type": "fixed",
"amount": 100,
"apply_to": "first_order",
"notes": "Notes Here"
}'
Response Response Example
200 - 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"
}
}
Request
Body Params application/json
Responses
Modified at 2024-12-29 06:40:32