Payment Methods
Create payment method
Changed onVaults a payment method for a guest. Card details are not sent here. Send exactly one of _id or stripeCardToken.
Replaces the deprecated Add a payment method for a guest.
post/payment-methods
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/payment-methods
- AuthAPI key in header authorization
Request body
Example request
{
"guestId": "5f293ca69fa6bd01659b645e",
"_id": "5f92cbf10cf217478ba93561",
"paymentProviderId": "5213a2d206112710005d96ff",
"stripeCardToken": "pm_1N...",
"confirmationCode": "GY-123456"
}Response
The created payment method
Example response
{
"_id": "5f92cbf10cf217478ba93561",
"accountId": "5f293ca69fa6bd01659b645e",
"guestId": "5f293ca69fa6bd01659b645e",
"paymentProviderId": "5fe4b21675087f01a3c5ab5b",
"method": "STRIPE",
"saveForFutureUse": true,
"last4": "4242",
"brand": "visa",
"status": "ACTIVE",
"type": "PHYSICAL",
"confirmationCode": "GY-123456",
"createdAt": "2026-10-01T12:00:00.000Z",
"updatedAt": "2026-10-01T12:00:05.000Z"
}Changes
- info
endpoint added
- info