Enquiries
Creates a new enquiry record in your account.
Method: POST
Endpoint:
/enquiriesContent-Type: application/json
Required Fields:
firstname(string): Contact's first namelastname(string): Contact's last name
Optional Fields:
companyName(string): Company namephone(string): Phone numbermobile(string): Mobile phone numberemail(string): Email addressaddress1(string): First line of contact addressaddress2(string): Second line of contact addresstown(string): Town or citycounty(string): County or statepostcode(string): Postal code or ZIP codelocationAddress1(string): First line of job/service location addresslocationAddress2(string): Second line of job/service location addresslocationTown(string): Job/service location town or citylocationCounty(string): Job/service location county or statelocationPostcode(string): Job/service location postal code or ZIP codeenquiryDetails(string): Detailed description of the enquiry (max 2000 characters)archived(boolean): Whether the enquiry is archived (default: false)clientGuid(guid): The Guid of the client the enquiry is assigned to
Success Response:
Status: 200 OK
Body: Complete enquiry object including generated GUID and enquiry number
Retrieves a specific enquiry by its unique identifier.
Method: GET
Endpoint:
/enquiries/{guid}
Parameters:
guid(required): The enquiry's unique identifier in GUID format
Success Response:
Status: 200 OK
Body: Complete enquiry object
Error Response:
Status: 404 Not Found
Body: "Enquiry not found"
Retrieves all enquiries in your account with pagination support.
Method: GET
Endpoint:
/enquiries
Query Parameters (Optional):
page(integer): Page number starting from 1 (default: 1)pageSize(integer): Number of enquiries per page, between 1-100 (default: 100)archived(boolean): Filter by archived status - true for archived enquiries, false for non-archived enquiriesincludeArchived(boolean): When true, returns all enquiries regardless of archived status
Archive Filtering:
By default, the API returns only non-archived (active) enquiries. You can modify this behavior using the filtering parameters:
Default behavior: Shows only active enquiries (archived=false)
Show archived enquiries only: Use
?archived=trueShow all enquiries: Use
?includeArchived=true
Example URLs:
/enquiries- Returns first 100 active enquiries (default)/enquiries?page=2- Returns second page of 100 active enquiries/enquiries?page=1&pageSize=50- Returns first 50 active enquiries/enquiries?archived=true- Returns archived enquiries only/enquiries?archived=false- Returns active enquiries only (explicit)/enquiries?includeArchived=true- Returns all enquiries (both active and archived)/enquiries?page=2&pageSize=50&archived=true- Returns second page of 50 archived enquiries/enquiries?page=1&includeArchived=true- Returns first page of all enquiries
Success Response:
Status: 200 OK
Body: Paginated response with enquiries array and pagination metadata
Response Structure:
{ "enquiries": [ { "guid": "123e4567-e89b-12d3-a456-426614174000", "id": 1001, "enquiryNo": 1, "companyId": 123, "dateAdded": "2024-01-15T10:30:00Z", "firstname": "John", "lastname": "Smith", "companyName": "Smith Construction", "email": "john@smithconstruction.com", "phone": "555-0123", "mobile": "555-0124", "address1": "123 Main St", "address2": "Suite 100", "town": "Anytown", "county": "State", "postcode": "12345", "locationAddress1": "456 Project Site", "locationAddress2": "", "locationTown": "Birmingham", "locationCounty": "West Midlands", "locationPostcode": "B1 1AA", "enquiryDetails": "Need quote for kitchen renovation including cabinets and appliances", "archived": false, "clientGuid": "123e4567-e89b-12d3-a456-426614174000" } ], "pagination": { "currentPage": 1, "pageSize": 100, "totalItems": 150, "totalPages": 2, "hasNextPage": true, "hasPreviousPage": false } }
Pagination Fields:
currentPage: The current page numberpageSize: Number of items per pagetotalItems: Total number of enquiries in your accounttotalPages: Total number of pages availablehasNextPage: Boolean indicating if there are more pageshasPreviousPage: Boolean indicating if there are previous pages
Error Responses:
Status: 400 Bad Request
Body: "Page must be a positive integer" (if page < 1)
Body: "PageSize must be between 1 and 100" (if pageSize is invalid)
Updates an existing enquiry record. Supports partial updates - only include fields you want to change.
Method: PUT
Endpoint:
/enquiries/{guid}Content-Type: application/json
Parameters:
guid(required): The enquiry's unique identifier in GUID format
Updatable Fields:
Any of the fields from the Create Enquiry endpoint can be updated except dateAdded, and enquiryNo. You only need to include the fields you want to change.
Field Validation:
firstname: Cannot be empty if providedlastname: Cannot be empty if providedenquiryDetails: Maximum 4000 characters
Success Response:
Status: 200 OK
Body: Updated enquiry object
Error Response:
Status: 404 Not Found
Body: "Enquiry not found"
