Update Affiliate

PUT {{baseUrl}}/affiliates/:affiliates_id

This endpoint allows you to update details regarding an affiliate via its ID.

OAuth Scopes


marketing.read_write

Request Body

{"code"=>"frm11", "marketer_name"=>"User Name", "marketer_city"=>"Medina", "commission_type"=>"fixed", "amount"=>100, "apply_to"=>"first_order", "notes"=>"Notes Here"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"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\u0026utm_campaign=CXNAZ","statistics":"https://salla.sa/dev-wofftr4xsra5xtlv/marketing/statistics/1604086218"},"apply_to":"first_order","visits_count":17,"notes":"Notes Here"}}