Overview
The Contacts API allows you to manage customers, suppliers, optometrists, and other contacts in your system. Contacts are used in invoices, quotations, purchases, and prescriptions.Contact Object
Unique identifier for the contact
Contact name or company name
Primary email address
Primary phone number
Primary phone
Secondary phone
Mobile phone
Fax number
Contact type:
customer, supplier, optometrist, bothID type:
rnc, cedula, passport, otherID or tax number
Contact status:
active, inactiveCredit limit for customer contacts
Additional notes or observations
Date of birth (for individual contacts)
Gender:
male, female, otherArray of contact addresses
Related contacts (family members, etc.)
List Contacts
Retrieve a paginated list of contacts.Query Parameters
Page number for pagination
Number of items per page
Filter by type:
customer, supplier, optometristFilter by status:
active, inactiveSearch by name, email, phone, or ID number
Sort field:
name, email, -created_atResponse
Example
Get Contact
Retrieve a specific contact by ID, including related invoices, quotations, and prescriptions.Path Parameters
Contact ID
Response
Create Contact
Create a new contact.Request Body
Contact name or company name
Email address
Primary phone number
Secondary phone number
Mobile phone number
Contact type:
customer, supplier, optometrist, bothID type:
rnc, cedula, passport, otherID or tax number
Status:
active, inactiveCredit limit (for customers)
Additional notes
Date of birth (YYYY-MM-DD)
Gender:
male, female, otherPrimary address information
Street address
City
State or province
Postal code
Country
Response
Example
Update Contact
Update an existing contact.Path Parameters
Contact ID
Request Body
Same as Create Contact. All fields are optional.Response
Delete Contact
Delete a contact.Path Parameters
Contact ID
Response
Check Duplicates
Check if a contact with the same email or identification number already exists.Query Parameters
Email to check
ID number to check
Response
Manage Relationships
Contacts can be related to other contacts (useful for family members, business partners, etc.).Add Relationship
Link a related contact.Request Body
ID of the contact to relate
Relationship description (e.g., “Spouse”, “Parent”, “Business Partner”)
Remove Relationship
Remove a contact relationship.Contact Import
Bulk import contacts from CSV files.Create Import
Upload a CSV file for import.Process Import
Process the uploaded file and create contacts.Search Contacts
The search functionality works across multiple fields:- Name
- Phone numbers
- Identification number
Related Resources
Invoices
Create invoices for contacts
Quotations
Send quotations to contacts
Payments
Track customer payments