Reservations
Cancel a pending or recorded payment
Changed onUse this endpoint to cancel a pending or recorded payment
Note: This endpoint will be deprecated as part of the move to the Reservations Open API [Beta] (v3). See the Reservations V3 Booking Flow guide for what's available today.
patch/reservations/{id}/payments/{paymentId}/cancel
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/reservations/{id}/payments/{paymentId}/cancel
- AuthAPI key in header authorization
Path parameters
idstring required
Reservation ID
paymentIdstring required
Payment ID
Response
Retrieve the updated reservation payments
Example response
{
"status": "CANCELLED",
"paymentMethod": {
"method": "RECORDED_CASH",
"id": "5fa02fa358d2db673e17bc2d"
},
"amount": 10,
"cancelledAt": "2023-05-30T12:00:00.000Z",
"note": "Free text"
}Changes
- breaking
the
response's property format changed fromdatetodate-timefor status - info
api operation id
reservationsV2PaymentCancelUpdatewas added - info
endpoint deprecated
- breaking