Bookings

POST Endpoint: /api/partner/bookings

This POST endpoint is used to retrieve a list of bookings associated with a specific customer email address. The request must include the customer's email and the type of booking.

Request Body

{
  "email": "[email protected]",
  "type": "Parking"
}

Required Parameters

Parameter
Type
Description

email

string

The customer's email address.

type

string

The type of product being booked (e.g., "Parking").

Response

The endpoint returns a JSON array of booking objects. Each booking object contains the following fields:

  • bookingId: Unique identifier for the booking.

  • dateCreated: Date and time the booking was created.

  • status: Current status of the booking.

  • bookingSource: Source code of the booking.

  • productType: Type of product booked.

  • surname: Surname of the customer.

  • email: Email address associated with the booking.

  • arrivalDate: Date of arrival.

  • product: Detailed name of the product.

  • description: Brief description of the product.

  • airportCode: Code of the airport.

  • paymentRef: Reference for payment (if applicable).

  • registration: Registration number related to the booking.

  • returnDate: Date of return.

  • pricePaid: Total price paid for the booking.

This endpoint provides a streamlined process to access historical and future bookings related to a customer's email, allowing partners to manage and track customer interactions efficiently.

Last updated