Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1.17 KB

create.md

File metadata and controls

51 lines (43 loc) · 1.17 KB



Create Enquiry



POST /api/enquiries



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 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.