Create Booking

Overview

HTTP Method: POST

Endpoint URL: https://coreapi.impexdocs.com/api/v1/booking

Authentication: Required

Response Format: JSON

Description

To create a Booking, make a POST request to the specified endpoint with the required information. The response will be a JSON object containing the following:

  • Response Code
  • Status
  • Message
  • Booking ID

Request

To create a Booking, provide the inputs in the request JSON:

  1. Booking Number (booking_number): The Booking number is the primary key used to identify each unique Booking in the system. It is essential for updating and retrieving data.

  2. Booking Status (booking_status): This field defines the status of a Booking. When creating a Booking, pass the default value "Created."

Response

The API will respond with a JSON object containing the following:

  • Response Code
  • Status
  • Message
  • Booking ID

Example Response JSON

{
    "response_code": 0,
    "status": 201,
    "message": "Created",
    "result": {
        "booking_id": "b6129344-e19f-48e4-9978-4154c63db2f1"
    }
}

Note

  • Ensure proper authentication before making the request.
  • Use the Booking ID obtained from the response for further operations.
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!