Update or cancel a pending payment
Changed onUse this request to update or cancel an upcoming payment. To cancel, set the the payment status to CANCELLED.
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.
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/reservations/{id}/payments/{paymentId}
- AuthAPI key in header authorization
Path parameters
Reservation ID
Payment ID
Request body
Example request
{
"status": "SUCCEEDED",
"paymentMethod": {
"method": "CASH",
"id": "5fa02fa358d2db673e17bc2d"
},
"amount": 10,
"shouldBePaidAt": "2023-05-30T12:00:00.000Z",
"paidAt": "2023-05-30T12:00:00.000Z",
"note": "Free text",
"stripePaymentMethodToken": "pm_stipetoken"
}Response
Retrieve the updated reservation payments
Changes
- breaking
the
request property format changed from no format tofloat - breaking
the
/response's property format changed fromdatetodate-timefor status - breaking
the
/response's property format changed fromdatetodate-timefor status - breaking
the
/response's property format changed fromdatetodate-timefor status - info
api operation id
reservationsV2PaymentUpdatewas added - info
endpoint deprecated
- info
the
request property format was generalized fromdatetodate-time - info
the
request property format was generalized fromdatetodate-time
- breaking