Create a customer and attribute them to an affiliate partner for commission tracking
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Unique customer identifier (use account ID or email) |
email | string | No | Customer’s email address |
name | string | No | Customer’s first name |
surname | string | No | Customer’s last name |
tags | array | No | Tags to associate with the customer |
partner.key | string | Yes* | Partner’s referral key (from partnero_partner cookie or URL) |
partner.id | string | Yes* | Partner’s ID (alternative to key) |
partner.email | string | Yes* | Partner’s email (alternative to key) |
options.referral_url | string | No | Referral URL for custom link attribution |
partner.key, partner.id, or partner.email.
| Status | Error | Solution |
|---|---|---|
| 400 | Invalid partner key | Verify the partner exists in your program |
| 422 | Validation error | Check required fields (key, partner identification) |
| 422 | Duplicate key | Customer with this key already exists |