Create Affiliate

POST {{baseUrl}}/affiliates

This endpoint allows you to create a marketing affiliate.

Request Body

{"marketer_name"=>"<string>", "marketer_city"=>"<string>", "commission_type"=>"percentage", "amount"=>"<number>", "apply_to"=>"first_order", "code"=>"<string>", "notes"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;marketer_name&quot;:&quot;\u003cstring\u003e&quot;,&quot;marketer_city&quot;:&quot;\u003cstring\u003e&quot;,&quot;commission_type&quot;:&quot;fixed&quot;,&quot;amount&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;profit&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;links&quot;:{&quot;affiliate&quot;:&quot;\u003cstring\u003e&quot;,&quot;statistics&quot;:&quot;\u003cstring\u003e&quot;},&quot;apply_to&quot;:&quot;\u003cstring\u003e&quot;,&quot;visits_count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;notes&quot;:&quot;\u003cstring\u003e&quot;}}