Booking - Get
  • 26 May 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Booking - Get

  • Dark
    Light

Article summary

Get
/booking
Security
API Key
Header parameter nameOcp-Apim-Subscription-Key
API Key
Query parameter namesubscription-key
Query parameters
bookingid
Responses
200

A successfully saved reservation object

{
  "Booking": {
    "Diagnostics": null,
    "booking_details": {
      "booking_transactions": [
        {
          "date": "2023-09-29",
          "price": 88.13,
          "transaction_id": "T1"
        },
        {
          "date": "2023-09-30",
          "price": 83.3,
          "transaction_id": "T2"
        },
        {
          "date": "2023-10-01",
          "price": 193.83,
          "transaction_id": "T3"
        },
        {
          "date": "2023-10-02",
          "price": 143.29,
          "transaction_id": "T4"
        },
        {
          "date": "2023-10-03",
          "price": 202.28,
          "transaction_id": "T5"
        },
        {
          "date": "2023-10-04",
          "price": 142.43,
          "transaction_id": "T6"
        }
      ],
      "enddate": "2023-10-04",
      "make": "Ford",
      "model": "Model 6",
      "pickup_location": "London",
      "return_location": "London",
      "startdate": "2023-09-28",
      "total_price": 853.26
    },
    "booking_id": "B-2023-09-28-11:46:48",
    "customer": {
      "customer_email": "FN6.SN6@acme.com",
      "firstname": "FN6",
      "surname": "SN6"
    }
  },
  "id": "B-2023-09-28-11:46:48",
  "partitionkey": "bookings"
}

Was this article helpful?