API for managing contacts in the accounting system
Method | Endpoint | Description |
---|---|---|
POST | /contacts | Create a new contact |
GET | /contacts | Retrieve a list of contacts with filtering |
GET | /contacts/:contact_id | Retrieve a specific contact by ID |
PATCH | /contacts/:contact_id | Update an existing contact |
DELETE | /contacts/:contact_id | Delete a contact |
Type | Description |
---|---|
customer | A customer contact for invoicing and billing |
vendor | A vendor contact for expense tracking |
Code | Description |
---|---|
API_KEY_REQUIRED | The API key is required |
INVALID_API_KEY | The API key is invalid |
ACCESS_DENIED | The API key does not have permission to access the requested resource |
RATE_LIMIT_EXCEEDED | Rate limit exceeded |
INVALID_REQUEST | The request is invalid or missing required fields |
VALIDATION_FAILED | The request failed validation |
COMPANY_NOT_FOUND | The requested company could not be found |
CONTACT_NOT_FOUND | The requested contact could not be found |
INTERNAL_ERROR | An internal server error occurred |