Logo PopinaPopina API

Update booking

Allows the POS to update a booking by using its id, providing the information to update in the body.

PATCH/v1/bookings/{id}
authorization<token>

To get an API key, please contact us. We'll be happy to help you.

In: header

Path Parameters

idstring
guestCount?number
Range1 <= value
bookedAt?string
Formatdate-time
tables?
confirmedAt?string
Formatdate-time
firstName?string|null
customerId?string|null
lastName?string|null
comment?string|null
email?string|null
phone?string|null
policyStatus?string

This enum property is here to describe the status of the booking regarding the booking policy.

  • COMPLIANT: The booking is compliant with the booking policy.
  • FLAGGED: The booking is not compliant with the booking policy and has been flagged.
  • OVERRIDDEN: The booking is willingly not compliant with the booking policy and has been manually overridden by an user.
Value in"COMPLIANT" | "FLAGGED" | "OVERRIDDEN"
status?string
Value in"PENDING" | "CONFIRMED" | "CANCELED" | "SEATED" | "NO_SHOW" | "PAID"
seatedAt?string
Formatdate-time
cancelReason?string
canceledAt?string

Response Body

curl -X PATCH "http://localhost:4008/v1/bookings/string" \  -H "Content-Type: application/json" \  -d '{    "firstName": "John",    "lastName": "Doe",    "policyStatus": "OVERRIDDEN",    "status": "CONFIRMED",    "confirmedAt": "2024-01-01T12:00:00Z"  }'