v1

latestOpenAPI 3.0.32026-07-14133451.7 KB
Payments

Make a payment to a booking order recently placed

A PaymentResponse containing the Payment with an unique paymentId will be made and returned, given a Payment with orderId, totalAmount in specific currency along with creditCard information.

post/booking/payments

Request body

paymentIdstring

UUID

createdAtstring date-time

Creation date/time of the payment in ISO 8601 format (UTC)

orderIdstring required

UUID

currencystring required
totalAmountnumber required

Example request

{
  "paymentId": "956de7da-ece8-4ba1-acf4-37aeda78cb13",
  "orderId": "a7dd1cf6-dc96-490b-bdf6-8685dbf5bb87",
  "currency": "EUR",
  "totalAmount": 456.78,
  "creditCard": {
    "number": "5250567933594297",
    "cvc": "123",
    "expiryMonth": "08",
    "expiryYear": "24",
    "holderFirstName": "Peter",
    "holderLastName": "Parker",
    "address": "738 Winter Garden Drive",
    "city": "New York",
    "zipCode": "11375",
    "countryCode": "US"
  }
}

Response

OK

This is an PaymentResponse containing the Payment with a unique paymentId that can be referred to when obtaining the Payment.

messagestring

message returned by server side if there is any