Auto-Payment Policies

Display each listing's auto-payment policy, enabling your guests to see all the information they need.

When it comes to financial transactions, trust and transparency is key. When a host processes payment for booking on fees agreed to by the guest and as expected, trust is built. You can retrieve your auto-payment policies via the Booking Engine API to publish to your website booking page or terms & conditions. This document explains how.

Reference Docs

Available Endpoints

MethodEndpoint
GET/listings
GET/listings/{listingId}

Key Parameters

Auto-payment rules are found on the listing object under the autoPayments object and its policy array. Learn more about auto-payments in our Help Center.

ParameterDescriptionData Type
autoPaymentsobject
-- policyAn array of auto-payment rules.[object]

You can retrieve the auto-payment policy through a request such as this one:

curl --location 'https://booking.guesty.com/api/listings/{listingId}?fields=autoPayments' \
--header 'Accept: application/json'

The following sections delineate the different payment rules.

Authorization Hold

An authorization hold reserves a portion of a credit card's limit to ensure enough credit is available for the product or service. To learn how to configure one on Guesty, click here.

Example 1: Capture Only

Key Parameters

ParameterDescriptionData Type
scheduleToLearn moreobject
-- timeRelationobject
--- relationThe conditional operator. AT / BEFORE / AFTERstring
--- unitUnit of time. MINUTES / HOURS / DAYSstring
--- amountAmount of time relative to the unit of time.number
-- reservationEventEvent that triggers the transaction (CONFIRMATION / CHECK_IN / CHECK_OUT).string
_idPayment rule IDstring
chargeTypePERCENTAGE / AMOUNT / REST_OF_PAYMENTstring
isAuthorizationHoldWill be true.boolean
useGuestCardCharge the guest's credit card (true / false).boolean
amountThe portion of the authorization hold to charge.number

Capture 10 percent of the reservation payout one hour before check-in.

{
    "autoPayments": {
        "policy": [
            {
                "scheduleTo": {
                    "timeRelation": {
                        "relation": "BEFORE",
                        "unit": "HOURS",
                        "amount": 1
                    },
                    "reservationEvent": "CHECK_IN"
                },
                "_id": "64527886740d33005258ae80",
                "chargeType": "PERCENTAGE",
                "isAuthorizationHold": true,
                "useGuestCard": true,
                "amount": 10
            }
        ]
    }
}

Example 2: Hold and Charge Captured Funds

This rule adds a charge automation to the capture rule.

Key Parameters

ParameterDescriptiontype
chargeAuthorizationHoldCharge the amount captured.object
-- scheduleToobject
--- timeRelationobject
---- amountAmount of time relative to the unit of time.integer
---- unitMINUTES / HOURS / DAYSstring
---- relationThe conditional operator. AT / BEFORE / AFTERstring
--- reservationEventEvent that triggers the transaction (CONFIRMATION / CHECK_IN / CHECK_OUT).string
-- inUseCharge the hold. Will always be true when the rule is in effect.boolean
-- chargeTypePERCENTAGE / AMOUNT / REST_OF_PAYMENTstring

This example demonstrates a rule that captures a hold of 10% of the reservation payout one hour prior to check-in and charges the guest's credit card for the amount captured and hour after check-in.

{
    "autoPayments": {
        "policy": [
            {
                "scheduleTo": {
                    "timeRelation": {
                        "relation": "BEFORE",
                        "unit": "HOURS",
                        "amount": 1
                    },
                    "reservationEvent": "CHECK_IN"
                },
                "chargeAuthorizationHold": {
                    "scheduleTo": {
                        "timeRelation": {
                            "amount": 1,
                            "unit": "HOURS",
                            "relation": "AFTER"
                        },
                        "reservationEvent": "CHECK_IN"
                    },
                    "inUse": true,
                    "chargeType": "REST_OF_PAYMENT"
                },
                "_id": "64527886740d33005258ae80",
                "chargeType": "PERCENTAGE",
                "isAuthorizationHold": true,
                "useGuestCard": true,
                "amount": 10
            }
        ]
    }
}

Example 3: Hold and Release

This rule captures credit card funds and then releases them.

🚧

Hold Expiration

The authorization hold will automatically expire seven days after it is activated. Learn more.

Key Parameters

ParameterDescriptiontype
releaseAuthorizationHoldRelease the amount captured.object
-- scheduleToobject
--- timeRelationobject
---- amountAmount of time relative to the unit of time.integer
---- unitMINUTES / HOURS / DAYSstring
---- relationThe conditional operator. AT / BEFORE / AFTERstring
--- reservationEventEvent that triggers the transaction (CONFIRMATION / CHECK_IN / CHECK_OUT).string
-- inUseCharge the hold. Will always be true when the rule is in effect.boolean
-- chargeTypePERCENTAGE / AMOUNT / REST_OF_PAYMENTstring

Capture 10% of the payout one hours prior to check-in and release it three days after check-out.

{
    "autoPayments": {
        "policy": [
            {
                "scheduleTo": {
                    "timeRelation": {
                        "relation": "BEFORE",
                        "unit": "HOURS",
                        "amount": 1
                    },
                    "reservationEvent": "CHECK_IN"
                },
                "releaseAuthorizationHold": {
                    "scheduleTo": {
                        "timeRelation": {
                            "amount": 3,
                            "unit": "DAYS",
                            "relation": "AFTER"
                        },
                        "reservationEvent": "CHECK_OUT"
                    },
                    "inUse": true,
                    "chargeType": "REST_OF_PAYMENT"
                },
                "_id": "64527886740d33005258ae80",
                "chargeType": "PERCENTAGE",
                "isAuthorizationHold": true,
                "useGuestCard": true,
                "amount": 10
            }
        ]
    }
}

Charge the Credit Card

The auto-payment rules are flexible enough that the number of rules and their conditions can differ from listing to listing, property manager to property manager. This is one such example.

Key Parameters

ParameterDescriptiontype
scheduleToLearn moreobject
-- timeRelationobject
--- relationThe conditional operator. AT / BEFORE / AFTERstring
--- unitUnit of time. MINUTES / HOURS / DAYSstring
--- amountAmount of time relative to the unit of time.number
-- reservationEventEvent that triggers the transaction (CONFIRMATION / CHECK_IN / CHECK_OUT).string
_idPayment rule IDstring
chargeTypePERCENTAGE / AMOUNT / REST_OF_PAYMENTstring
isAuthorizationHoldWill be false.boolean
useGuestCardCharge the guest's credit card (true / false).boolean
amountAmount to charge.number

Charge the guest 50% at confirmation and the rest two days before check-in.

{
    "autoPayments": {
        "policy": [
            {
                "scheduleTo": {
                    "timeRelation": {
                        "relation": "AT",
                        "unit": "HOURS",
                        "amount": 1
                    },
                    "reservationEvent": "CONFIRMATION"
                },
                "_id": "645282d55fc865003ac7887f",
                "chargeType": "PERCENTAGE",
                "isAuthorizationHold": false,
                "useGuestCard": true,
                "amount": 50
            },
            {
                "scheduleTo": {
                    "timeRelation": {
                        "relation": "BEFORE",
                        "unit": "DAYS",
                        "amount": 2
                    },
                    "reservationEvent": "CHECK_IN"
                },
                "_id": "6452836cc666df0051636699",
                "chargeType": "REST_OF_PAYMENT",
                "isAuthorizationHold": false,
                "useGuestCard": true
            }
        ]
    }
}