Skip to main content

Affiliate Request

Join Affiliate Request

The "Create Affiliate Request" API allows users to create an affiliate. Affiliates are individuals who promote a company's products in exchange for a commission on sales.

  • Endpoint: api/customer/affiliate/requests

  • Http Method: POST

tip

Ensure that the system's configuration includes the enable_affiliate setting, which should be enabled. This setting determines whether the affiliate functionality is active or not.

  • Request Body:
KeyTypeRequiredDescription
namestringYesThe first name of the customer.
last_namestringYesThe last name of the customer.
emailstringYesThe email address of the customer.
phonestringYesThe phone number of the customer.
passwordstringYesThe password of the customer.
birthdatestringYesThe birthdate of the customer.
imagestringNoThe URL image of the customer. (Optional)
  • Success Response:
{
"code": 200,
"message": "Success",
"data": {
"name": "Test",
"last_name": "Documentation",
"email": "doc@supercommerce.io",
"phone": "01111111111",
"birthdate": "2000-02-01",
"image": null,
"user_id": 32,
"updated_at": "2023-09-07T13:55:25.000000Z",
"created_at": "2023-09-07T13:55:25.000000Z",
"id": 1
},
"meta": []
}
info

Check the following section to learn more about the Create Affiliate Request API Reference