affiliate

patch/admin/affiliates/{id}

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

{"stackTrail":"paths:/admin/affiliates/{id}:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown","example":{"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"}}

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 endpoint across all 1 revision of this API.