Getting StartedAPI Reference
Getting StartedAPI Reference
Help Center
Login
  1. Affiliates
  • Campaigns
    • Get All Campaigns
      GET
    • Get Campaign By ID
      GET
    • Create campaign
      POST
    • Update campaign
      PUT
    • Delete campaign
      DELETE
  • Affiliates
    • List affiliates
      GET
    • Get Affiliate By ID
      GET
    • Create Affiliate
      POST
    • Update Affiliate
      PUT
    • Delete Affiliate
      DELETE
  • Affiliate Links
    • Get Affiliate Link By Affiliate ID
      GET
    • Create Affiliate Link
      POST
    • Delete Affiliate Link
      DELETE
  • Comissions
    • Get All Commissions
      GET
    • Get Commission By ID
      GET
    • Create Commision
      POST
    • Update Commision
      PUT
    • Delete Commision
      DELETE
  • Referred Users
    • Get All Referred Users
      GET
    • Get Referred User by Email
      GET
    • Create Referred User
      POST
    • Update Referred User
      PUT
    • Delete Referred User
      DELETE
Getting StartedAPI Reference
Getting StartedAPI Reference
Help Center
Login
  1. Affiliates

Get Affiliate By ID

GET
/affiliates
Last modified:2025-12-29 12:33:00
Retrieve detailed information about a specific affiliate using its unique identifier.

Request

Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/affiliates?affiliateId=d3a1153d-cb87-4644-8429-7ecf1a7c3257' \
--header 'x-auth-referralstack: rs_live_e6761c15744c9be53be18802278fd3da751d03ce'

Responses

🟢200Success
application/json
Body

Example
{
    "status": 200,
    "message": "Affiliate fetched successfully",
    "data": {
        "id": "d3a1153d-cb87-4644-8429-7ecf1a7c3257",
        "email": "john@example.com",
        "firstName": "john",
        "lastName": "doe",
        "notes": "Hello hi",
        "workspaceId": "5bb8cbe6-67dc-4b07-853e-7ca5454f8512",
        "campaignId": "37548b3d-1c53-4c01-a217-5525c5518008",
        "payoutEmail": "john@example.com",
        "payoutMethod": "WISE",
        "details": null,
        "isActive": true,
        "isBanned": false,
        "totalOpens": 0,
        "totalClicks": 0,
        "totalSignups": 0,
        "totalEarnings": 0,
        "createdAt": "2025-12-13T04:29:11.975Z",
        "updatedAt": "2025-12-13T04:29:11.975Z"
    }
}
🟠404Not Found (Incorrect AffiliateId)
🟠401Unauthorized (Missing API Key)
🟠400Bad Request (Missing AffiliateId)
Modified at 2025-12-29 12:33:00
Previous
List affiliates
Next
Create Affiliate
Built with