cURL
curl --request POST \ --url https://www.pushlapgrowth.com/api/v1/links \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "link": "<string>", "affiliateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "affiliateEmail": "[email protected]" }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "link": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "affiliate": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "email": "[email protected]" }, "program": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "currency": "<string>" }, "clicks": 123, "referrals": 123, "sales": 123, "totalRevenue": 123, "fullURLs": [ { "baseUrl": "<string>", "fullUrl": "<string>" } ] }
Creates a new affiliate link for the specified affiliate. Note: an Affiliate is required to create an Affiliate Link.
Show child attributes