Reservation Payments
Refund payment
Changed onRefunds a succeeded processor payment in full or in part. Returns the payment with the refund included in refunds. The refund can still be PROCESSING until the provider settles it.
Replaces the deprecated Refund a payment.
post/payments/{paymentId}/refund
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/payments/{paymentId}/refund
- AuthAPI key in header authorization
Path parameters
paymentIdstring required
Example:64ad4e764c9a5d00328e79fe
Guesty payment id
Request body
Example request
{
"amount": 50,
"note": "Guest cancelled remaining nights"
}Response
The refunded 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