GET Catering Lead
Returns one of the signed-in customer's catering leads, so they can see the enquiry they submitted and its current status.
Status is 1 active or 2 declined. Once the brand has turned the lead into a quote, read the quote itself with GET /quotes/{quote_id}.
Path Parameters
- Type: integerlead
_id requiredLead ID
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Responses
- application/json
- 401
Missing or invalid customer token.
- 404
No such lead for this customer.
Request Example for get/leads/{lead_id}
curl https://api-public-demo.menu.app/api/leads/91 \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
"status": "OK",
"code": 200,
"data": {
"lead": {
"id": 91,
"brand_id": 12,
"order_type": 10,
"created_by": "customer",
"status": 1,
"is_qualified": true,
"event_info": {
"event_type": "wedding",
"party_size": 40
}
}
}
}