Getting on the wait list

Once the customer decides which section they want to sit in, it's time to put them on the wait list. To do that make the following request passing the party size.

curl --request POST \
  --url https://sandbox.seatninja.com/v2/reservations/{restaurantId}/waitlist \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data '{"customerInformation":{"id":"c0e86a76-7795-4047-b700-9d7163b5137d","firstName":"John","lastName":"Doe","phoneNumber":"5555555555","email":"[email protected]"},"partySize":2}'

If the restaurant had a patio section and the customer wanted to sit there you would include the PartyFlag for that section. For getting a list of sections for a given restaurant, see Sections. If the patio section had a party flag value of 8, then your request would look like

curl --request POST \
  --url https://sandbox.seatninja.com/v2/reservations/restaurantId/waitlist \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data '{"customerInformation":{"id":"c0e86a76-7795-4047-b700-9d7163b5137d","firstName":"John","lastName":"Doe","phoneNumber":"5555555555","email":"[email protected]"},"partySize":2,"partyFlags":51}'

see create wait list API