Create Affiliate
POST
/affiliatesThis endpoint allows you to create a marketing affiliate.
Request
Affiliate Code. It must be 5 characters, only English letters or Numbers are valid.
Marketer name.
Marketer city.
Commission type, which can be either fixed
or percentage
.
Marketing amount.
Where the affiliatelink should be applied to. Available values are all_orders
or first_order
.
Additional notes.
{
"code": "frm11",
"marketer_name": "User Name",
"marketer_city": "Medina",
"commission_type": "fixed",
"amount": 100,
"apply_to": "first_order",
"notes": "Notes Here"
}
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
Affiliate Code
Affiliate Marketing Name
Affiliate Marketing City
If 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
%.
Where the affiliate link should be applied. Available values are all_orders
or first_order
Link Visit Counts
Additional Notes
{
"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"
}
}