Reservation endpoints
List my reservations
GET https://www.citamarketplace.com/api/v1/reservationsNote: Only returns active reservations, that are not archived.
Post a reservation for sale
POST https://www.citamarketplace.com/api/v1/reservationsRequest
{
"link": "https://www.resy.com/i/code",
"name": "John Dingleton",
"timeRange": "4PM-5PM",
"date": "2023-11-24",
"size": 4,
"price": 125,
"restaurantId": "clfx788eq0006pq7djjo5fc8r"
}Expected values:
- price: number between 125 and 10,000
- timeRange: time range, formatted like XPM-XPM or XAM-XAM
- restaurantId: A valid restaurant ID
Approval Once the request is successful, you must wait for an admin to verify and approve it.
Get a reservation
GET https://www.citamarketplace.com/api/v1/reservations/[id]Delete a reservation
DELETE https://www.citamarketplace.com/api/v1/reservations/[id]Update a reservation
PATCH https://www.citamarketplace.com/api/v1/reservations/[id]Request
{
"price": 125
}As of right now, the only field you may update is price.