Reservation Payments
Cancel payment
Changed onCancels a payment in status PENDING or PENDING_AUTH, or a succeeded recorded payment. A payment that already has refunds cannot be cancelled.
Replaces the deprecated Cancel a pending or recorded payment and cancelling through PUT /reservations/{id}/payments/{paymentId}.
post/payments/{paymentId}/cancel
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/payments/{paymentId}/cancel
- AuthAPI key in header authorization
Path parameters
paymentIdstring required
Example:64ad4e764c9a5d00328e79fe
Guesty payment id
Response
The cancelled payment
Example response
{
"_id": "64da25d683ad1500284bd0ef",
"reservationId": "6213b03e7f0ba50032296f4a",
"accountId": "5f293ca69fa6bd01659b645e",
"paymentMethodId": "5f92cbf10cf217478ba93561",
"paymentMethodStatus": "ACTIVE",
"status": "SUCCEEDED",
"amount": 150,
"currency": "USD",
"type": "REFUNDABLE_DEPOSIT",
"confirmationCode": "pi_3UITWaE5puWDpHmg1fPNH1ZL",
"shouldBePaidAt": "2026-10-01T12:00:00.000Z",
"paidAt": "2026-10-01T12:00:05.000Z",
"cancelledAt": "2026-10-01T12:00:05.000Z",
"createdAt": "2026-10-01T12:00:00.000Z",
"updatedAt": "2026-10-01T12:00:05.000Z",
"note": "Charge remaining balance",
"receiptId": 146928316,
"createdBy": "host@example.com",
"error": "CARD_DECLINED",
"processorError": {
"code": "card_declined",
"message": "Your card was declined."
},
"authenticationRequiredData": {
"lastAuthMsgSentDate": "2026-10-01T12:00:00.000Z",
"authenticationUrl": "https://hooks.stripe.com/redirect/authenticate/..."
},
"captureAuthorizationHold": {
"amount": 150,
"status": "PENDING",
"shouldTriggerAt": "2026-10-15T12:00:00.000Z",
"cancelledAt": "2026-10-10T12:00:00.000Z",
"note": "Guest checked out early"
},
"releaseAuthorizationHold": {
"amount": 150,
"status": "PENDING",
"shouldTriggerAt": "2026-10-15T12:00:00.000Z",
"cancelledAt": "2026-10-10T12:00:00.000Z",
"note": "Guest checked out early"
},
"authorizationHoldCaptures": [
{
"_id": "64da25d683ad1500284bd0ef",
"amount": 100,
"status": "SUCCEEDED",
"createdAt": "2026-10-01T12:00:00.000Z",
"note": "Partial capture for remaining balance"
}
],
"refunds": [
{
"_id": "64da267d83ad1500284bd109",
"amount": 50,
"status": "SUCCEEDED",
"createdAt": "2026-10-01T12:00:00.000Z",
"refundedAt": "2026-10-01T12:00:05.000Z",
"note": "Guest cancelled",
"paymentMethodId": "5f92cbf10cf217478ba93561",
"processorError": {
"code": "card_declined",
"message": "Your card was declined."
}
}
],
"chargebacksData": {
"chargebackPaymentMethodId": "5f92cbf10cf217478ba93561",
"chargebacks": [
{
"_id": "64da267d83ad1500284bd109",
"amount": 150,
"type": "CHARGEBACK",
"chargebackAt": "2026-10-01T12:00:00.000Z",
"createdAt": "2026-10-01T12:00:00.000Z",
"source": "MANUAL",
"reason": "Fraudulent charge",
"reasonCode": "10.4",
"reasonDescription": "Fraud – Card-Absent Environment",
"note": "Disputed by guest",
"caseId": "dp_1N...",
"transactionId": "ch_3N..."
}
]
},
"attempts": [
{
"_id": "64da267d83ad1500284bd109",
"status": "FAILED",
"createdAt": "2026-10-01T12:00:00.000Z",
"error": "CARD_DECLINED",
"processorError": {
"code": "card_declined",
"message": "Your card was declined."
}
}
],
"fees": [
{
"_id": "64da267d83ad1500284bd109",
"amount": 2.5
}
],
"isInstantCharge": true,
"payoutId": "PO-123456"
}Changes
- info
endpoint added
- info