Create payment method

Vaults 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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Guesty guest id of the guest who owns the payment method

string

Payment method id returned by GuestyPay tokenization. Send exactly one of _id or stripeCardToken.

string
required

Provider used when the card was tokenized

string
length ≥ 1

Token returned by direct tokenization with Stripe (pm_… or tok_…), for Stripe providers only. Send exactly one of _id or stripeCardToken.

string
required
length ≥ 1

Booking confirmation code of the reservation this payment method is added for (for example GY-123456). It links the payment method to that reservation.

boolean
Defaults to false

Whether the payment method can be reused for other reservations belonging to the same guest

Responses

401

Missing or invalid authentication.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json