Bookings

GET /bookings


Get a list of bookings

Query parameters

  • sequence_from
  • sequence_to
  • from (value timestamp)
  • to (value timestamp)
  • type
  • account_id

Response

OK

{
  "success": true,
  "data": []model.Booking
}

Error

  • error.InternalServerError

GET /bookings/:booking_id


Get a booking by ID

Response

OK

{
  "success": true,
  "data": model.Booking
}

Error

  • error.BadRequestError
  • error.InternalServerError

POST /bookings


Create a new Booking

Request

  "asset": "EUR",
  "legs": [
    {
      "account_label": "Integration Account",
      "account_id": "0927f56c-24c0-4637-84b7-adc6b1ce918c",
      "type": "DEBIT",
      "quantity": "1000"
    },
    {
      "account_label": "1234 - Customer - Account",
      "account_id": "59012e87-f445-4149-8388-fdac7fa3d933",
      "type": "CREDIT",
      "quantity": "1000"
    }
  ]

Response

OK

{
  "success": true,
  "data": model.Booking
}

Error

  • error.BadRequestError
  • error.InternalServerError