POST https://api.example.com /bookings/{bookingId}/payment

Pay for a Booking

See in Documentation

A payment is an attempt to pay for the booking, which will confirm the booking for the user and enable them to get their tickets.

Path parameters

  • string(uuid) Required

Body

  • number
  • string
  • source object

    The payment source to take the payment from. This can be a card or a bank account. Some of these properties will be hidden on read to protect PII leaking.

    One of:
POST /bookings/{bookingId}/payment
Loading...

Share your request

Use this link to easily share a pre-filled request of this operation. Everything you filled will be shared apart from the authentication fields.

Request URL

https://demo.bump.sh/doc/trainbook/explorer/operation/operation-create-booking-payment
Response
Waiting for a request to be sent.