Payments
Pay for a Booking
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.
post/bookings/{bookingId}/payment
Request body
Example request
{
"amount": 49.99,
"source": {
"name": "Francis Bourgeois",
"number": "4242424242424242",
"cvc": "123",
"exp_month": 12,
"exp_year": 2025
}
}Response
Payment successful
Example response
{
"amount": 49.99,
"source": {
"name": "Francis Bourgeois",
"number": "4242424242424242",
"cvc": "123",
"exp_month": 12,
"exp_year": 2025
},
"links": {
"booking": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb"
}
}