affiliate

Retrieves list of affiliates.

get/admin/affiliates

Query parameters

idstring

Retrieve only affiliates specified by a comma-separated list of affiliate IDs

ref_codestring

Retrieve only affiliates specified by a comma-separated list of their referral codes

emailstring

Retrieve only affiliates specified by a comma-separated list of their email addresses

couponstring

Retrieve only affiliates specified by a comma-separated list of their coupon codes

status'pending' | 'approved' | 'invited' | 'rejected'

Retrieve only affiliates specified by a comma-separated list of their approval status

since_idstring

Show affiliates after the specified affiliate ID

created_at_maxstring

Show affiliates created at or before date (format: Sun Jul 26 2019 12:10:07 GMT+0530)

created_at_minstring

Show affiliates created at or after date (format: Sun Jul 26 2019 12:10:07 GMT+0530)

updated_at_maxstring

Show affiliates updated at or before date (format: Sun Jul 26 2019 12:10:07 GMT+0530)

updated_at_minstring

Show affiliates updated at or after date (format: Sun Jul 26 2019 12:10:07 GMT+0530)

fieldsstring[] required

Comma separated list of fields to return. See Affiliate Schema to get list of available fields

Limit number of results

Offset of results

Response

Example response

{
  "affiliates": [
    {
      "id": 1,
      "name": "John Doe",
      "avatar": {},
      "first_name": "John",
      "last_name": "Doe",
      "email": "johndoe@example.com",
      "ref_code": "hs692n62d",
      "ref_codes": [
        "referralcode"
      ],
      "coupon": {
        "code": "JOHN10OFF",
        "discount_value": 10,
        "discount_type": "percentage"
      },
      "coupons": [
        {
          "code": "JOHN10OFF",
          "discount_value": 10,
          "discount_type": "percentage"
        }
      ],
      "phone": "1 888 (999) 1234",
      "address_1": "Address line 1",
      "city": "City",
      "state": "State",
      "country": "US",
      "zip_code": "121323232",
      "tax_identification_number": "788-21-1122",
      "comments": "Private comment",
      "personal_message": "Message to the affiliate",
      "payment_method": "paypal",
      "payment_details": {
        "paypal_email": "jdoe@paypal.com"
      },
      "commission": {
        "type": "percentage",
        "amount": 10,
        "on": "product"
      },
      "group_id": 10
    }
  ]
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.