Create a custom affiliate link for a specific digital product with commission percentage.
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
cURL
curl --request POST \ --url https://backend.codedamn.com/api/public/create-custom-affiliate-link \ --header 'Content-Type: application/json' \ --header 'FERMION-API-KEY: <api-key>' \ --data ' { "data": [ { "data": { "userData": { "userId": "<string>", "userEmail": "<string>" }, "fermionDigitalProductId": "<string>", "commissionPercentage": 50 } } ] } '
[ { "output": { "status": "ok", "data": { "affiliateLinkSlug": "<string>" } } } ]
API Request Body
Show child attributes
API Response Body