Update Affiliate
Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
PUT
https://api.salla.dev/admin/v2
Affiliates
Last modified:2025-02-26 10:04:22
affiliate_id
as a path parameter.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '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
Path Params
affiliates_id
string
required
Body Params application/json
Responses
Modified at 2025-02-26 10:04:22