Create a new affiliate

Request body parameters

Response body parameters

Example request

Request POST https://{networkname}.api.offerslook.com/v1/affiliates

Request POST http://{networkname}.api.offerslook.com/v1/affiliates

    {
      "affiliate": {
        "company": "UC Union",
        "country": "Asia/Pacific Region",
        "email": "test@test.com",
        "first_name": "affiliate",
        "instant_message_account": "test@facebook.com",
        "instant_message_type": 3,
        "last_name": "test",
        "manager_id": 7,
        "phone": "11122223333",
        "status": "active",
        "website": "http://www.offerslook.com",
        "password": "test123"
      },
      "affiliate_tag": [
        {
          "name": "Other"
        },
        {
          "name": "FOOD"
        }
      ]
    }

Example response

    {
      "code": 0,
      "message": "Success",
      "data": {
        "affiliate_tag": [
          {
            "id": 21,
            "name": "Other",
            "affiliate_id": 4866
          },
          {
            "id": 22,
            "name": "FOOD",
            "affiliate_id": 4866
          }
        ],
        "affiliate": {
          "id": 4866,
          "email": "test@test.com",
          "first_name": "affiliate",
          "last_name": "test",
          "country": "Asia/Pacific Region",
          "status": "active",
          "website": "http://www.offerslook.com",
          "create_time": 1458650346,
          "company": "UC Union",
          "phone": "11122223333",
          "manager_id": 7,
          "instant_message_type": 3,
          "instant_message_account": "test@facebook.com"
        }
      }
    }

Last updated