Update Reservation Vendor API Documentation
API ENDPOINT
[PATCH] <BASE_URL>/api/vendor/v1/vendor_reservations/:vendor_reservation_id.json?locale=en
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| vendor_reservation_id | String | Yes | Unique identifier received from Create Reservation API |
- Body Parameters (JSON format):
| Parameter | Type | Required | Description |
|---|---|---|---|
| restaurant_id | String | Yes | Unique identifier for the restaurant |
| reference_id | String | Yes | Vendor's internal reference for the booking |
| date | String | Yes | New reservation date (Format: YYYY-MM-DD) |
| start_time | String | Yes | New reservation time (Format: HH:MM) |
| adult | Integer | Yes | Number of adult guests |
| kids | Integer | Yes | Number of child guests |
| special_request | String | No | Any special requests from the guest |
| selected_packages | Array | Yes | List of selected packages with quantities |
Current Process for Vendor Reservation Update / Change
1. Reservation with Vendor Payment
Sample Request
- Create Reservation with vendor payment

- Update Reservation
PATCH /api/vendor/v1/vendor_reservations/7944.json
{
"reservation": {
"restaurant_id": "4589",
"reference_id": "2004Vendor003",
"date": "2025-03-10",
"start_time": "18:00",
"adult": 3,
"kids": 0,
"special_request": "Update Booking from HungryHub API",
"selected_packages": [
{
"id": "35513",
"quantity": 3
}
]
}
}
Response

Condition or Prepaid Reservation Restrictions
- When Vendor reservation is not exist

{
"success": false,
"message": "reservation not found",
"data": null
}
- Modifications Not Allowed:
- Users cannot modify the number of pax (adults or kids) for prepaid reservations.
- Users cannot change the selected package for vendor payment reservations
Error Response for Prepaid Reservation Changes:
{
"success": false,
"message": "You can’t modify a prepaid booking, please contact our support team (LINE@HUNGRYHUB)",
"data": null
}

Time Slot Unavailability Error
- If the requested date and time slot are unavailable, the system returns an error message.

{
"success": false,
"message": "You can’t modify a prepaid booking, please contact our support team (LINE@HUNGRYHUB)",
"data": null
}
Reservation Cancellation for Vendor Payment
- If a reservation is vendor payment-based (Prepaid), cancellation is restricted.
- API Endpoint:
{{base_url}}/api/vendor/v1/vendor_reservations/7944/cancel.json?locale=en - Error Response for Vendor Payment Cancellation:
{
"success": false,
"message": "Sorry, this booking can not be canceled",
"data": null
}
