payment-methods
Save a card confirmed through a SetupIntent
Runs user.attachStripePaymentMethod. Send the pm_ id Stripe returned after confirming the SetupIntent from POST /v1/payment-methods/setup-intent. Brand, last 4 and expiry are read from Stripe, not the client. Card payment methods only (400 otherwise). The card must be unattached (it is then attached to the user's Stripe customer) or already on that customer; a card on any other customer is a 400. Saving the same card twice returns the existing row with alreadySaved: true. isDefault (default false) makes it the default card. Returns { publicId, alreadySaved }.
post/v1/payment-methods
Request
- Base URL: https://api.getmyhotels.com
- URL: https://api.getmyhotels.com/v1/payment-methods
- Auth: HTTP bearer
Request body
Response
Success
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.