Referral links/Id
/referral-links/:id
This endpoint retrieves the referral links list based on the provided filters.
Request
Available filters
-
partner_id
(optional): The ID of the partner associated with the link. -
project_id
(optional): The ID of the project with the link. -
code
(optional): The unique code of the referral link.
Available includes
-
partner
-> The partner associated with the link -
project
-> The project associated with the link -
clicks
-> The clicks associated with the link -
referrals
-> The referrals generated through this link -
rewardRuleSets
-> The reward rule sets associated with this link
GET
/referral-links/{id}
Authorization
Authorization
RequiredBearer <token>In: header
Path Parameters
id
RequiredstringResponse Body
OK
TypeScript Definitions
Use the response body type in TypeScript.
curl -X GET "https://api.nodiref.com/referral-links/9ef54e05-06b0-48ed-a51e-7fd873cf7a4a" \
-H "Authorization: Bearer <token>"
{
"success": true,
"data": {
"id": "9ef54e05-06b0-48ed-a51e-7fd873cf7a4a",
"partner_id": "9ef54e05-03e5-4427-8bea-d2db25b81f96",
"code": "03IKxxtzzC"
}
}