PUT
/
api
/
v1
/
locations
/
{locationId}
/
cart
/
{cartId}
/
validate-and-update
{
  "customerName": "John Smith",
  "emailAddress": "john.smith@example.com"
}
{
  "success": true
}

Path Parameters

locationId
string
required
The unique identifier for the restaurant location
cartId
string
required
The unique identifier for the cart to validate

Request Body

customerName
string
required
Customer’s full name for order validation
emailAddress
string
Customer’s email address (either email or phone required)
phoneNumber
string
Customer’s phone number (either email or phone required)
{
  "customerName": "John Smith",
  "emailAddress": "john.smith@example.com"
}
{
  "success": true
}
This endpoint performs comprehensive validation including: item availability, pricing accuracy, fulfillment method validity, and customer information completeness. Either emailAddress or phoneNumber must be provided along with customerName. The cart is updated with the latest information during validation.

Authorizations

X-API-Key
string
header
required

Path Parameters

locationId
string
required

The unique identifier for the restaurant location

cartId
string
required

The unique identifier for the cart to validate

Body

application/json

Response

200
application/json

Cart validated successfully.

The response is of type object.