Referrals
Get a referral profile
GET
/
api
/
v1
/
app
/
referrals
/
profiles
/
{id}
Get a referral profile
curl --request GET \
--url https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}import requests
url = "https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "0b0abfba-18a4-4b7e-9179-e0cec1f2994f",
"member": {
"id": "f804cfec-39ec-45cc-845a-4fe51b80d2f0",
"name": "John Doe"
},
"invite": "ABC123",
"reward": {
"id": "d9f8a7c6-5b4e-4c3d-9a2b-1e0f2a3b4c5d",
"type": "coupon",
"name": "10% Off Coupon",
"description": "Get 10% off your next purchase.",
"image": "https://example.com/reward.jpg",
"code": "10-OFF",
"expires_at": "2026-12-31T23:59:59Z",
"revoked_at": null,
"created_at": "2026-01-01T12:00:00Z"
},
"enabled": true,
"created_at": "2026-01-01T12:00:00Z"
}
}{
"error": "<string>"
}⌘I
Get a referral profile
curl --request GET \
--url https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}import requests
url = "https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.easyflows.io/api/v1/app/referrals/profiles/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "0b0abfba-18a4-4b7e-9179-e0cec1f2994f",
"member": {
"id": "f804cfec-39ec-45cc-845a-4fe51b80d2f0",
"name": "John Doe"
},
"invite": "ABC123",
"reward": {
"id": "d9f8a7c6-5b4e-4c3d-9a2b-1e0f2a3b4c5d",
"type": "coupon",
"name": "10% Off Coupon",
"description": "Get 10% off your next purchase.",
"image": "https://example.com/reward.jpg",
"code": "10-OFF",
"expires_at": "2026-12-31T23:59:59Z",
"revoked_at": null,
"created_at": "2026-01-01T12:00:00Z"
},
"enabled": true,
"created_at": "2026-01-01T12:00:00Z"
}
}{
"error": "<string>"
}