# GetBookingDetails - Get booking details for the specified booking numbers and optional terminal operator

This API retrieves booking/EDO details from the BRE API for a given list of booking numbers.
Request Fields:
- BookingNumbers (required): An array of booking number strings to look up (e.g., ["BKG001", "BKG002"]).
- MTO_Cd (optional): The terminal operator code (e.g., "PCT", "ITS"). When provided, the system resolves it to the corresponding MTO_Id for routing the request to the correct terminal's BRE API.
Response:
The response contains:
- Status: A status code and reason phrase indicating the result.
- Bookings: A list of booking records, each containing MTO_Id, booking number, shipping line SCAC, ordered quantity, appointment count, equipment orders, hazmat/reefer/OD flags, POD, PDL, and fee items.

Endpoint: POST /api/appointment/getbookingdetails
Version: 1.0

## Header parameters:

  - `X-Cargosprint-Api-Key` (string, required)
    The company API key provided by Cargosprint.

  - `X-Cargosprint-User-Key` (string, required)
    The API key of the user to be impersonated.

## Request body:

  - `application/json` (unknown)
    The request containing booking numbers and optional MTO_Cd.

## Request fields (application/json):

  - `bookings` (array)

  - `mtO_Cd` (string)

  - `apptTypeCd` (string)

## Response 200:

  - `200` (unknown)
    Booking details retrieved successfully.

## Response 200 fields (application/json):

  - `status` (object)

  - `status.statusCode` (integer)

  - `status.reasonPhrase` (string)

  - `bookings` (array)

  - `bookings.mtO_Id` (integer)

  - `bookings.facility_Id` (integer)

  - `bookings.facility_Cd` (string)

  - `bookings.bookingEDO_Id` (string)

  - `bookings.bookingEDO_Num` (string)

  - `bookings.shippingLine_SCAC` (string)

  - `bookings.totalOrdered_Qty` (integer)

  - `bookings.appointmentCount` (integer)

  - `bookings.bookingEqpOrders` (array)

  - `bookings.bookingEqpOrders.bookingSzTypeIso` (string)

  - `bookings.bookingEqpOrders.bookingSzTypeCd` (string)

  - `bookings.bookingEqpOrders.bookedQty` (integer)

  - `bookings.bookingEqpOrders.issuedQty` (integer)

  - `bookings.bookingEqpOrders.receivedQty` (integer)

  - `bookings.bookingEqpOrders.appointmentCount` (integer)

  - `bookings.isOd` (boolean)

  - `bookings.isHaz` (boolean)

  - `bookings.isReefer` (boolean)

  - `bookings.pod` (string)

  - `bookings.pdl` (string)

  - `bookings.feeItems` (array)

  - `bookings.feeItems.tariff_Id` (integer)

  - `bookings.feeItems.mtO_Id` (integer)

  - `bookings.feeItems.tariffFee_Id` (integer)

  - `bookings.feeItems.terminalFee_Cd` (integer)

  - `bookings.feeItems.fee_Id` (integer)

  - `bookings.feeItems.fee_Cd` (string)

  - `bookings.feeItems.fee_Dsc` (string)

  - `bookings.feeItems.fee_Amount` (number)

  - `bookings.feeItems.matchWeight` (integer)

  - `bookings.feeItems.moveType` (string)

  - `bookings.feeItems.feeExemption` (boolean)

  - `bookings.feeItems.tempMove_Id` (integer)

  - `bookings.feeItems.reschDisp` (string)

  - `bookings.feeItems.gateApptReschDisp` (integer)

## Response 400:

  - `400` (unknown)
    Bad request due to missing or invalid BookingNumbers.

## Response 400 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (integer)

  - `detail` (string)

  - `instance` (string)

## Response 401:

  - `401` (unknown)
    Unauthorized. The client must authenticate itself to get the requested response.

## Response 401 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (integer)

  - `detail` (string)

  - `instance` (string)

## Response 403:

  - `403` (unknown)
    Forbidden. The client does not have access rights to the content.

## Response 403 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (integer)

  - `detail` (string)

  - `instance` (string)

## Response 500:

  - `500` (unknown)
    An internal server error occurred while processing the request.

