Creates a new affiliate on your Afffiliate Program.
curl --request POST \
--url https://www.pushlapgrowth.com/api/v1/affiliates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"commissionRate": 123,
"affiliateLink": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"emailVerified": true,
"image": "<string>",
"detailsComplete": true,
"programId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payoutEmail": "jsmith@example.com",
"paymentMethod": "<string>",
"commissionRate": 123,
"link": "<string>",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"numberOfReferredUsers": 123,
"numberOfClicks": 123,
"totalCommissionEarned": 123
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Affiliate details
The body is of type object
.
Affiliate created successfully
The response is of type object
.
curl --request POST \
--url https://www.pushlapgrowth.com/api/v1/affiliates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"commissionRate": 123,
"affiliateLink": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"emailVerified": true,
"image": "<string>",
"detailsComplete": true,
"programId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payoutEmail": "jsmith@example.com",
"paymentMethod": "<string>",
"commissionRate": 123,
"link": "<string>",
"status": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"numberOfReferredUsers": 123,
"numberOfClicks": 123,
"totalCommissionEarned": 123
}