Search Office
### Search Office API
This endpoint allows users to search for offices based on a query string. The search is conducted using the provided query parameter, which can include keywords related to the office name or location.
#### Request
- **Method**: `GET`
- **Endpoint**: `{{host}}/apis/external/search/searchOffice`
- **Query Parameters**:
- `q` (string): The search query that includes keywords to filter the offices. For example, `srinivas office new`.
#### Response
The response will return a JSON object containing a list of offices that match the search criteria.
- { "offices": \[ { "id": 74549, "name": "srinivas office new", "coords": { "name": "srinivas office new", "lat": 18.5245986, "lng": 73.7805654 }, "createdAt": 1719219356513, "updatedAt": 1749476189498, "gstIn": "23AAZCS7239P1Z9", "registeredName": "SRINIVAS OFFICE", "registeredAddress": "SRINIVAS OFFICE", "tags": { "manager@5": "E0001", "gin_owner": "E0009", "account.upi": "Eka Virtual Account", "cvbv": "b nb", "fghj": "hjk", "ds": "ds", "invoice_owner#1960": "EMP004", "zone": "NORTH", "grn_owner#1961": "E0001", "ro": "PATNA", "grn_owner#1960": "E0001", "gin_owner#1960": "E0001", "gin_owner#1961": "EMP004" } } \]}
The `offices` array contains objects with details about each office, including identifiers, coordinates, registration details, and associated tags.
Query parameters
q
Fetches offices whose names match the given q parameter using a case-insensitive partial match.
Response headers
request-id
Response
OK
offices

