Customers
Get customer
Retrieve a specific customer’s details and tags in your affiliate program
GET
/
v1
/
customers
/
{key}
Get customer
curl --request GET \
--url https://api.example.com/v1/customers/{key}import requests
url = "https://api.example.com/v1/customers/{key}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/customers/{key}', 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/{key}",
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/{key}"
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/{key}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/customers/{key}")
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]",
"status": "active",
"created_at": "2025-05-02T16:12:39.000000Z",
"updated_at": "2025-05-02T16:12:39.000000Z",
"deleted_at": null,
"tags": [
{
"value": "premium"
}
]
},
"status": 1
}
Endpoint
GET https://api.partnero.com/v1/customers/{key}
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Customer’s unique key |
Request
cURL
curl --location 'https://api.partnero.com/v1/customers/customer_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]",
"status": "active",
"created_at": "2025-05-02T16:12:39.000000Z",
"updated_at": "2025-05-02T16:12:39.000000Z",
"deleted_at": null,
"tags": [
{
"value": "premium"
}
]
},
"status": 1
}
Response fields
Customer — data
Customer — 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 referring partner |
status | string | Customer status |
deleted | boolean | Whether customer is soft-deleted |
tags | array | Customer tags (each with a value key) |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
deleted_at | string|null | Deletion timestamp if deleted |
Get customer transactions
Retrieve all transactions for a specific customer:GET https://api.partnero.com/v1/customers/{key}/transactions
cURL
curl --location 'https://api.partnero.com/v1/customers/customer_123/transactions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'
⌘I
Get customer
curl --request GET \
--url https://api.example.com/v1/customers/{key}import requests
url = "https://api.example.com/v1/customers/{key}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/customers/{key}', 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/{key}",
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/{key}"
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/{key}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/customers/{key}")
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]",
"status": "active",
"created_at": "2025-05-02T16:12:39.000000Z",
"updated_at": "2025-05-02T16:12:39.000000Z",
"deleted_at": null,
"tags": [
{
"value": "premium"
}
]
},
"status": 1
}
