SweetRef
HomeLink
Multiple Menus
  • Link1
  • Link2
HomeLink
Multiple Menus
  • Link1
  • Link2
  1. Referrals
  • Get Started
  • Webhooks
  • API
    • Affiliates
      • Get Affiliates
      • Find Affiliate by ID
      • Get Affiliate Referrals
    • Referrals
      • Get Referrals
        GET
      • Get Referral By ID
        GET
    • Referral Payments
      • Get Referrals Payments
      • Get Referral Payment By ID
    • Get Program Information
      GET
  1. Referrals

Get Referral By ID

Developing
Prod Env
https://api.sweetref.com
Prod Env
https://api.sweetref.com
GET
/referrals/{id}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Example:
ref_YVe0q7ozZ2xbEi86W3LQyXkn

Request 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 'https://api.sweetref.com/referrals/ref_YVe0q7ozZ2xbEi86W3LQyXkn'

Responses

🟢200Success
application/json
Body
id
string 
required
ID
first_name
string 
required
last_name
string 
required
email
string 
required
conversion_date
string 
required
affiliate_id
string 
required
The id of the affiliate
total_commission
integer 
required
created_at
string 
required
updated_at
string 
required
Example
{
    "id": "string",
    "first_name": "string",
    "last_name": "string",
    "email": "string",
    "conversion_date": "string",
    "affiliate_id": "string",
    "total_commission": 0,
    "created_at": "string",
    "updated_at": "string"
}
🟠404Record not found
Modified at 2024-11-10 14:58:12
Previous
Get Referrals
Next
Get Referrals Payments
Built with