Reservation quote

Verify the payment for a reservation created with instant charge

Verify the payment for a reservation created with instant charge when Guesty Pay is used. It should be called immediately after the /instant-charge endpoint when the returned payment has status PENDING_AUTH. If the 3DS verification succeeds, the payment is charged and the reservation is confirmed. If the verification fails, the reservation is closed.

For providers with GuestyPay protect, the threeDSResult object is returned from the SDK handle3DSChallenge fuction and it should be sent here for 3DS challenge verification. If GuestyPay in EU/UK, this object is not necessary.

post/api/reservations/{reservationId}/verify-payment

Request

  • Base URL
    https://booking.guesty.com
  • URL
    https://booking.guesty.com/api/reservations/{reservationId}/verify-payment
  • Auth
    API key in header authorization

Path parameters

reservationIdstring required
Example:5d6e7a7ebf8e3800207735ae

ID of reservation

Request body

paymentIdstring required

The payment ID from the PENDING_AUTH payment created in the /instant-charge endpoint.

Example request

{
  "paymentId": "5bf544a600a9b000389f81d8"
}

Response

successful operation

Changes

No recorded changes to this operation across all 1 revision of this API.