affiliate

PATCH /admin/affiliates/{id}

Request

  • Base URL
    https://api.goaffpro.com/v1
  • URL
    https://api.goaffpro.com/v1/admin/affiliates/{id}
  • Auth
    API key in header x-goaffpro-access-token

Request body

namestring
first_namestring
last_namestring
company_namestring
ref_codestring
address_1string
address_2string
citystring
statestring
countrystring
phonestring
zipstring
facebookstring
twitterstring
instagramstring
websitestring
tax_identification_numberstring
personal_messagestring
admin_notestring
extra_1string
extra_2string
extra_3string
profile_photostring
status'pending' | 'approved' | 'rejected'

Response

unknown required

Example response

{
  "password": "new-password",
  "honorific": "Mr",
  "name": "John Doe",
  "gender": "Male",
  "date_of_birth": "28 June 1988",
  "phone": "+1 555 (1220) 1212",
  "company_name": "Acme Inc!",
  "commission": {
    "type": "percentage",
    "amount": "10"
  },
  "ref_code": "refferralcode",
  "coupon": {
    "code": "ABC",
    "discount_type": "percentage",
    "discount_value": 10
  },
  "address_1": "Address line 1",
  "address_2": "Address line 2",
  "city": "City",
  "state": "State or Province",
  "zip": "10011",
  "country": "US",
  "facebook": "fb",
  "instagram": "instagram handle",
  "twitter": "twitter handle",
  "snapchat": "snapchat username",
  "pinterest": "pinterest username",
  "tax_identification_number": "111-2222-333",
  "paypal_email": "jdoe@paypal.com",
  "status": "approved",
  "parent_email": "abc@xyz.com",
  "profile_photo": "https://example.com/profile.jpg"
}

Changes

No recorded changes to this operation across all 7 revisions of this API.