Address Book
Counterparties and contacts
Authentication
Requires session cookie (web app) or API key (x-api-key header). All endpoints are tenant-scoped via entityId.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/address-book?entityId= | List counterparties/contacts |
| POST | /api/address-book | Create contact |
| PUT | /api/address-book | Update contact |
List counterparties
GET /api/address-book?entityId={entityId}
Returns counterparties and contacts for the entity. Supports type, search, and other filters.
Create contact
POST /api/address-book
Body: { "entityId", "name", "type?", "email?", "address?", "bankDetails?", ... }
Update contact
PUT /api/address-book
Body: { "entityId", "contactId", ...fields }