
# enquiry
 
The enquiry API allows you to create, view, update, and delete individual, or a batch, of enquiry.

## enquiry Properties
 
| Attributes      | Type     | Description                                                        |
| --------------- | -------- | ------------------------------------------------------------------ |
| enquiry_id      | integer  | Unique identifier for the enquiry                                  |
| name            | string   | Name of the person or user submitting the enquiry                  |
| email           | string   | Email address of the person submitting the enquiry                 |
| phone           | string   | Phone number of the person submitting the enquiry                  |
| age             | integer  | Age of the person                                                  |
| gender          | integer  | Gender ID (e.g., 1 = Male, 2 = Female)                             |
| address         | string   | Address of the person or user                                      |
| school          | string   | Name of the school the person is associated with                   |
| student_class   | integer  | Current class or grade of the person                               |
| mode_of_learning| boolean  | Active or Inactive status of the course (1 = Active, 0 = Inactive) |
| created_at      | datetime | Timestamp of when the enquiry was created                          |

## List all enquiry

```shell
curl -X GET https://vedaay-api.mulika.in/enquiry
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "enquiry retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_records": 2,
        "total_pages": 1
    },
    "data": [
        {
            "enquiry_id": "1",
            "name": "John Doe",
            "email": "john.doe@example.com",
            "phone": "123-456-7890",
            "age": "15",
            "gender": "Male",
            "address": "123 Elm St, Springfield",
            "school": "Springfield High",
            "student_class": "10th Grade",
            "mode_of_learning": "Online",
            "created_at": "2026-01-27 14:37:56"
        },   
        {
            "enquiry_id": "11",
            "name": "Ava Patel",
            "email": "ava.patel@example.com",
            "phone": "888-555-8765",
            "age": "19",
            "gender": "Female",
            "address": "123 Maple Ave, Rivertown",
            "school": "Rivertown International School",
            "student_class": "Undergraduate",
            "mode_of_learning": "online",
            "created_at": "2026-01-28 16:46:45"
        }
    ]
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /enquiry
</span>  
 

1. GET /enquiry 
2. GET /enquiry?page=1&per_page=10
3. GET /enquiry?search=courses
4. GET /enquiry?exclude[]=1&exclude[]=2
5. GET /enquiry?include[]=3&include[]=4
6. GET /enquiry?order=asc
7. GET /enquiry?order=desc 

### Available parameters

| Attributes      | Type     | Description                                                        |
| --------------- | -------- | ------------------------------------------------------------------ |
| enquiry_id      | integer  | Unique identifier for the enquiry                                  |
| name            | string   | Name of the person or user submitting the enquiry                  |
| email           | string   | Email address of the person submitting the enquiry                 |
| phone           | string   | Phone number of the person submitting the enquiry                  |
| age             | integer  | Age of the person                                                  |
| gender          | integer  | Gender ID (e.g., 1 = Male, 2 = Female)                             |
| address         | string   | Address of the person or user                                      |
| school          | string   | Name of the school the person is associated with                   |
| student_class   | integer  | Current class or grade of the person                               |
| mode_of_learning| boolean  | Active or Inactive status of the course (1 = Active, 0 = Inactive) |
| created_at      | datetime | Timestamp of when the enquiry was created                          |


## Get Single enquiry

```shell
curl -X GET https://vedaay-api.mulika.in/enquiry/11
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "enquiry retrieved successfully",
    "code": 200,
    "data": {
        "enquiry_id": "11",
        "name": "Ava Patel",
        "email": "ava.patel@example.com",
        "phone": "888-555-8765",
        "age": "19",
        "gender": "Female",
        "address": "123 Maple Ave, Rivertown",
        "school": "Rivertown International School",
        "student_class": "Undergraduate",
        "mode_of_learning": "online",
        "created_at": "2026-01-28 16:46:45"
    }
}'
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /forms/{formsId}
</span> 

### Parameters

| Parameter | Type    | Description                       |
| --------- | ------- | --------------------------------- |
| enquiry_id| integer | Unique identifier for the enquiry |

 

## Create form


```shell
curl -X POST https://vedaay-api.mulika.in/forms \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
  "name": "Liam Johnson",
  "email": "liam.johnson@example.com",
  "phone": "888-555-4321",
  "age": 20,
  "gender": "Male",
  "address": "789 Oak St, Rivertown",
  "school": "Rivertown University",
  "student_class": "Sophomore",
  "mode_of_learning": "hybrid"
}
'
 ```
> Responce:

```json
   {
    "status": "success",
    "message": "enquiry stored successfully",
    "code": 201,
    "data": {
        "enquiry_id": 13,
        "enquiry_data": {
            "enquiry_id": "13",
            "name": "Liam Johnson",
            "email": "liam.johnson@example.com",
            "phone": "888-555-4321",
            "age": "20",
            "gender": "Male",
            "address": "789 Oak St, Rivertown",
            "school": "Rivertown University",
            "student_class": "Sophomore",
            "mode_of_learning": "hybrid",
            "created_at": "2026-01-28 17:18:46"
        }
    }
}
'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #08c0b7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /enquiry
</span> 
 
 

## Update form 

```shell
curl -X PUT https://vedaay-api.mulika.in/forms/13
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
  "name": "cristy lanister",
  "email": "cristy.lanister@gmail.com",
  "phone": "8531602914",
  "age": "20",
  "gender": "Male",
  "address": "23 balaji st, Rivertown",
  "school": "Rivertown University",
  "student_class": "Sophomore",
  "mode_of_learning": "hybrid"
}

```
> Responce:

```json
   '{
    "status": "success",
    "message": "Enquiry created successfully",
    "code": 200,
    "data": {
        "enquiry_data": {
            "enquiry_id": "21",
            "name": "cristy lanister",
            "email": "cristy.lanister@gmail.com",
            "phone": "8531602914",
            "age": "20",
            "gender": "Male",
            "address": "23 balaji st, Rivertown",
            "school": "Rivertown University",
            "student_class": "Sophomore",
            "mode_of_learning": "hybrid",
            "created_at": "2026-03-09 10:56:20"
        }
    }
    }'
    
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #08c0b7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">PUT</span> /enquiry/{enquiry_id} 
</span> 
 
### Parameters

| Parameter | Type    | Description                       |
| --------- | ------- | --------------------------------- |
| enquiry_id| integer | Unique identifier for the enquiry |
 
## Delete form

```shell
curl -X DELETE https://vedaay-api.mulika.in/enquiry/12
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "message": "enquiry deleted successfullyy",
    "code": 200,
    "data": {
        "enquiry_id": "12"
    }
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #c91c05; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">DELETE</span>  /enquiry/{enquiry_id}  
</span>
  