Calling this endpoint will return the ID of a newly created enquiry.
Expected data:
Key | Required | Type | Description |
---|---|---|---|
name |
true | string | Name of the person enquiring |
email |
false | Email of the person enquiring | |
phone |
false | string | Phone number of the person enquiring |
description |
true | longtext | Comments/Description of the enquiry |
product_id |
false | int | The ID of a product the person is enquiring about |
Expected response:
{
"status": 201,
"success": true,
"error": null,
"data": "cjsc2",
"meta": null
}
Note: There is currently no way to list all enquiries, so store this ID somewhere.