POST
Create quote using AI
/api/quotes/create-quote-using-aiRequest Body
customerCodestring(required) - Customer codecustomerNamestring(required) - Customer NamewebhookUrlstring(optional) - Webhook URL for call backaddressCitystring(optional) - City nameaddressNotesstring(optional) - Notes for addressquoteContactsstring(optional) - List of quote contactsaddressStreetstring(optional) - Street namepurchaseNumberstring(optional) - Purchase numberquoteItemPromptsarray(optional) - List of item promptsaddressHomeNumberstring(optional) - Home numberArray Structures
{
"customerCode": "cod123",
"customerName": "Firstname Lastname",
"webhookUrl": "https//:webhookurl",
"addressCity": "city name",
"addressNotes": "address note",
"quoteContacts": [
{
"contactMail": "example@example.com",
"contactName": "Name",
"contactPhone": "+1 202-555-555"
}
],
"addressStreet": "street name",
"purchaseNumber": "123456",
"quoteItemPrompts": [
"I need 1,000 A4 flyers, double-sided, full color, printed on 80gsm uncoated paper"
],
"addressHomeNumber": "00"
}Responses
200Quote created successfully
{
"data": {
"QuoteID": "fe7cd54c-8f49-4a47-ac40-b2091dddc86c",
"QuoteNumber": "Q2256"
},
"success": true
}Returns the created quote ID (GUID) as a string
400Bad request - Invalid input data
401Unauthorized - Invalid or missing API token
500Internal server error - e.g. Client not found
{
"error": {
"data": {
"status": false,
"message": "internal_server_error",
"statusCode": 500,
"errorParams": null,
"ErrorMessage": "Internal Server Error from the custom middleware : client not found"
},
"message": "internal_server_error",
"statusCode": 500
},
"success": false
}Example Request
curl -X POST \
https://api.gomake.net/api/quotes/create-quote-using-ai \
-H "Content-Type: application/json" \
-H "X-Client-Id: your-client-id-here" \
-H "X-Client-Secret: your-client-secret-here" \
-d '{
"customerCode": "cod123",
"customerName": "Firstname Lastname",
"webhookUrl": "https//:webhookurl",
"addressCity": "city name",
"addressNotes": "address note",
"quoteContacts": [
{
"contactMail": "example@example.com",
"contactName": "Name",
"contactPhone": "+1 202-555-555"
}
],
"addressStreet": "street name",
"purchaseNumber": "123456",
"quoteItemPrompts": [
"I need 1,000 A4 flyers, double-sided, full color, printed on 80gsm uncoated paper"
],
"addressHomeNumber": "00"
}'Note: Replace your-client-id-here and your-client-secret-here with your actual credentials. See the Authentication page for more details.
