post https://api.yelp.com/v3/businesses//waitlist/visits
Join the queue for a restaurant.
Note: Prior to making a call to this endpoint, the restaurant must currently be on a wait, nor the API caller will receive response with 422 CURRENTLY_NO_WAIT
. Enqueuing the first party on the waitlist can be achieved by using the Yelp Guest Manager app.
Curl example with OAuth authentication:
root@test:~# curl -X POST https://api.yelp.com/v3/businesses/{BUSINESS_ID}/waitlist/visits --header 'accept: application/json' --header "Authorization: Bearer ${API_TOKEN}" -d "{\"name\": \"Customer Name\", \"party_size\": 2, \"phone\": \"+19050000000\"}"
Example 200 response:
{
"visit_id": "Encoded visit id",
"queue_time": 1714576951,
"party_size": 2,
"arrive_by_time": 1714577011,
"expected_seating_time_min": 1714577011,
"expected_seating_time_max": 1714577551,
"seating_area_preference": ""
}
Note 2: In order to use this endpoint, the caller should be an onboarded Yelp Waitlist partner.