Approve apply

HTTP method Endpoint
PATCH /v1/pending_affiliates/{pending_id}/approved

Path parameters

Parameter Description
pending_id The unique id for the pending affiliate.
manager_id Manager id.

Response body parameters

Field Type Description
affiliate
id integer A string that uniquely identifies this affiliate.
first_name string The first_name of the this affiliate.
last_name string The last_name of the this affiliate.
email string The email of the this affiliate.
company string The company of the this affiliate.
country string The country of the affiliate’s physical address.
status string Affiliate’s status.
instant_message_account string Instant message account.
instant_message_type integer Types of instant message.
manager_id integer Manager id.
phone string The phone number of the affiliate.
website string
create_time integer Create time.
pending_affiliate
id integer A string that uniquely identifies this pending affiliate.
first_name string The first_name of the this affiliate.
last_name string The last_name of the this affiliate.
email string The email of the this affiliate.
company string The company of the this affiliate.
country string The country of the affiliate’s physical address.
status string Affiliate’s status.
instant_message_account string Instant message account.
instant_message_type integer Types of instant message.
phone string The phone number of the affiliate.
website string
create_time integer Create time.

Example request

Request PATCH https://{networkname}.api.offerslook.com/v1/pending_affiliates/24/approved?manager_id=1


Request PATCH http://{networkname}.api.offerslook.com/v1/pending_affiliates/24/approved?manager_id=1


Example response


    {
      "code": 0,
      "message": "Success",
      "data": {
        "affiliate": {
          "id": 5380,
          "email": "test@test.com",
          "first_name": "test",
          "last_name": "test",
          "country": "Aland",
          "status": "active",
          "website": "http://test.com",
          "create_time": 1474185755,
          "company": "test",
          "phone": "1111",
          "manager_id": 1,
          "instant_message_type": 0,
          "instant_message_account": "test"
        },
        "pending_affiliate": {
          "id": 24,
          "email": "test@test.com",
          "first_name": "test",
          "last_name": "test",
          "instant_message_type": 0,
          "instant_message_account": "test",
          "phone": "123456789",
          "country": "Aland",
          "status": "approved",
          "website": "http://test.com",
          "create_time": 1474185755,
          "company": "test"
        }
      }
    }

results matching ""

    No results matching ""