Create and manage customers in refer-a-friend programs
/v1/customers URL as affiliate programs, but the request and response fields differ.
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | No | Unique customer identifier (auto-generated if not provided) |
id | string | No | Alternative customer identifier |
email | string | No | Customer’s email address |
name | string | No | Customer’s first name |
surname | string | No | Customer’s last name |
metadata.date_of_birth | date | No | Customer’s date of birth |
referring_customer.key | string | No* | Referring customer’s key (from partnero_referral cookie) |
referring_customer.id | string | No* | Referring customer’s ID |
referring_customer field to attribute the new customer to a referrer.
Customer
| Field | Type | Description |
|---|---|---|
id | string | Customer identifier |
email | string | Customer’s email address |
name | string | Customer’s first name |
surname | string | Customer’s last name |
status | string | Customer status (active, deleted) |
approved | boolean | Whether the customer is approved |
referring_customer | object|null | The customer who referred this person |
referrals_count | integer | Number of customers referred by this customer |
metadata | object | Customer metadata (e.g., date_of_birth) |
referral_link | string | Default referral link |
referral_links | array | All referral links for this customer |
custom_fields | object | Custom signup field values |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 15 | Results per page (1-250) |
page | integer | 1 | Page number |
refer_status | string | — | Filter: referred or non_referred |
| Parameter | Type | Required | Description |
|---|---|---|---|
update | object | Yes | Object containing fields to update |
update.email | string | No | New email address |
update.name | string | No | Customer’s first name |
update.surname | string | No | Customer’s last name |
update.key | string | No | New customer key |
update.metadata.date_of_birth | date | No | Customer’s date of birth |
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Customer’s email address |
name | string | No | Customer’s name |
personalization | object | No | Custom personalization data for the invite email |
| Parameter | Type | Description |
|---|---|---|
key | string | Customer key |
id | string | Customer ID |
email | string | Customer’s email address |
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Credit amount |
amount_units | string | Yes | Currency code (e.g., USD) |
is_currency | boolean | Yes | Whether the amount is monetary |