Buyers API
Base path: https://gateway.useyona.com/i/v1/buyers
A buyer is the entity receiving invoices. Same structure as Sellers with two differences: taxNumber is optional (supporting B2C), and default partyType is individual.
Create buyer
POST /i/v1/buyers
Register a new buyer entity.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
partyName | string | Yes | Name, max 255 chars |
tradingName | string | No | Trading/brand name, max 255 chars |
partyType | string | No | individual | company | partnership | non_profit | government. Default: individual |
taxNumber | string | No | Tax ID, max 50 chars. Optional for B2C. |
email | string | Yes | Valid email |
phoneNumber | string | Yes | Valid phone number |
postalAddress | object | Yes | Must include line1, city, country (ISO 2-letter) |
notes | string | No | Max 1000 chars |
| Status | Code | Trigger |
|---|---|---|
| 400 | VAL001 | Missing or invalid required fields |
List buyers
GET /i/v1/buyers
Get buyer
GET /i/v1/buyers/:id
| Status | Code | Trigger |
|---|---|---|
| 404 | RES001 | Buyer not found |
Update buyer
PATCH /i/v1/buyers/:id
| Status | Code | Trigger |
|---|---|---|
| 400 | VAL001 | Invalid field values |
| 404 | RES001 | Buyer not found |
Delete buyer
DELETE /i/v1/buyers/:id
Bulk delete buyers
DELETE /i/v1/buyers/bulk
Search buyers
GET /i/v1/buyers/search
Verify tax number
POST /i/v1/buyers/:id/verify-tax-number
Get verification status
GET /i/v1/buyers/:id/verification-status
Last updated on