Customers
List customers
Retrieve a paginated list of all customers in your affiliate program
GET
/
v1
/
customers
List customers
curl --request GET \
--url https://api.example.com/v1/customersimport requests
url = "https://api.example.com/v1/customers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/customers', 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://api.example.com/v1/customers",
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://api.example.com/v1/customers"
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://api.example.com/v1/customers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/customers")
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": [
{
"key": "customer_123",
"partner": "partner_123",
"deleted": false,
"name": "Alice",
"surname": "Brown",
"email": "[email protected]",
"created_at": "2025-05-02T16:12:39.000000Z",
"updated_at": "2025-05-02T16:12:39.000000Z",
"deleted_at": null
}
],
"links": {
"first": "https://api.partnero.com/v1/customers?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "https://api.partnero.com/v1/customers",
"per_page": 15,
"to": 1
},
"status": 1
}
Endpoint
GET https://api.partnero.com/v1/customers
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 10 | Number of results per page (10-100) |
page | integer | 1 | Page number for pagination |
partner.key | string | — | Filter by partner’s referral key |
partner.email | string | — | Filter by partner’s email |
Request
cURL
curl --location 'https://api.partnero.com/v1/customers' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'
Filter by partner
curl --location 'https://api.partnero.com/v1/customers?partner.key=ref_123' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'
Response
{
"data": [
{
"key": "customer_123",
"partner": "partner_123",
"deleted": false,
"name": "Alice",
"surname": "Brown",
"email": "[email protected]",
"created_at": "2025-05-02T16:12:39.000000Z",
"updated_at": "2025-05-02T16:12:39.000000Z",
"deleted_at": null
}
],
"links": {
"first": "https://api.partnero.com/v1/customers?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "https://api.partnero.com/v1/customers",
"per_page": 15,
"to": 1
},
"status": 1
}
Response fields
Customers — data[]
Customers — data[]
| Field | Type | Description |
|---|---|---|
key | string | Unique customer identifier |
email | string | Customer’s email address |
name | string | Customer’s first name |
surname | string | Customer’s last name |
partner | string | Key of the partner who referred this customer |
deleted | boolean | Whether customer is soft-deleted |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
deleted_at | string|null | Deletion timestamp if deleted |
Pagination — links, meta
Pagination — links, meta
| Field | Type | Description |
|---|---|---|
links.first | string | URL to the first page |
links.last | string|null | URL to the last page |
links.prev | string|null | URL to the previous page |
links.next | string|null | URL to the next page |
meta.current_page | integer | Current page number |
meta.from | integer | First item number on this page |
meta.per_page | integer | Items per page |
meta.to | integer | Last item number on this page |
meta.path | string | Base URL for the endpoint |
Search customers
Use the search endpoint to find customers by key, email, or ID:GET https://api.partnero.com/v1/customers:search
| Parameter | Type | Description |
|---|---|---|
id | string | Customer ID |
email | string | Customer’s email address |
cURL
curl --location 'https://api.partnero.com/v1/customers:[email protected]' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'
⌘I
List customers
curl --request GET \
--url https://api.example.com/v1/customersimport requests
url = "https://api.example.com/v1/customers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/customers', 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://api.example.com/v1/customers",
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://api.example.com/v1/customers"
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://api.example.com/v1/customers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/customers")
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": [
{
"key": "customer_123",
"partner": "partner_123",
"deleted": false,
"name": "Alice",
"surname": "Brown",
"email": "[email protected]",
"created_at": "2025-05-02T16:12:39.000000Z",
"updated_at": "2025-05-02T16:12:39.000000Z",
"deleted_at": null
}
],
"links": {
"first": "https://api.partnero.com/v1/customers?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "https://api.partnero.com/v1/customers",
"per_page": 15,
"to": 1
},
"status": 1
}
