Contacts


List Contacts

GET /api/contacts

Parameters: (optional)

  • client_id - Client ID

Response:

  • id - Contact ID
  • contact_name - Contact name
  • email - Email
  • tel - Tel
  • fax - Fax
  • mobile - Mobile
  • address - Address
  • role - Role
  • company_name - Company name
  • client_id - Client ID
  • date_created - Date created
  • user_id - Creator user ID

Get Contact

GET /api/contact/id/:id

Response:

  • id - Contact ID
  • contact_name - Contact name
  • email - Email
  • tel - Tel
  • fax - Fax
  • mobile - Mobile
  • address - Address
  • role - Role
  • company_name - Company name
  • client_id - Client ID
  • date_created - Date created
  • user_id - Creator user ID

Create Contact

POST /api/contacts

Parameters:

  • contact_name - Contact name
  • email - Email
  • tel - Tel
  • fax - Fax
  • mobile - Mobile
  • address - Address
  • role - Role
  • company_name - Company name
  • client_id - Client ID
  • user_id - Creator user ID

Response:

  • id - Contact ID

Update Contact

POST /api/contact/id/:id

Parameters:

  • contact_name - Contact name
  • email - Email
  • tel - Tel
  • fax - Fax
  • mobile - Mobile
  • address - Address
  • role - Role
  • company_name - Company name
  • client_id - Client ID
  • user_id - Creator user ID

Response:

  • message - Updated successfully

Delete Contact

DELETE /api/contact/id/:id

Response:

  • message - Deleted successfully