Create a new affiliate

HTTP method EndPoint
POST api/admin/createaffiliate

Request body parameters

curl -X POST -H 
"X-Api-Key: {key}"
 -H 
"Content-Type: application/json"
 -H 
"Cache-Control: no-cache"
 -H 
"Postman-Token: cc5d7610-80aa-8f1b-983d-fc5712fcfb53"
-d
'{
  "name": "Awesome User",
  "email": "test@gmail.com",
  "password": "somethingCool!!",
  "phone": "9998887776"
}'
"http://{network}/api/admin/createaffiliate"
Field Type Description Nullable
name string Name of the affiliate No
email string Email of the affiliate No
password string Password of the affiliate No
phone string Phone Number of the affiliate Yes
country string Country (Two letter country code) Yes

Response body parameters

{
  "success": true,
  "data": {
    "user": {
      "org_id": "string",
      "username": "Awesome User",
      "name": "Awesome User",
      "email": "test@gmail.com",
      "password": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
      "phone": "9998887776",
      "country": "IN",
      "currency": "USD",
      "type": "publisher",
      "login": null,
      "_id": "5821f9e81d41c86b2e664df3",
      "live": false,
      "created": "2016-11-08",
      "modified": null,
      "meta": []
    },
    "message": "Publisher Added!!"
  }
}

results matching ""

    No results matching ""