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:
Key | Type | Required | Description |
---|---|---|---|
name | string | Yes | The first name of the customer. |
last_name | string | Yes | The last name of the customer. |
email | string | Yes | The email address of the customer. |
phone | string | Yes | The phone number of the customer. |
password | string | Yes | The password of the customer. |
birthdate | string | Yes | The birthdate of the customer. |
image | string | No | The 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