Add Item

POST /api/cart/{cartId}

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

cartId

string

Cart ID

searchId

string

Search ID

productId

string

optionId

string

qty

number

productType

string

Parking, Hotel, Lounge, Tour, Carhire

Response

{
    "items": [
        {
            "_id": "68efa0c824e6c",
            "searchId": "d898c451-ed22-4c66-93bd-fd98675b54d9",
            "name": "Cophall Parking Gatwick",
            "type": "Parking",
            "image": "lgw-cophall.jpg",
            "url": "",
            "product": "1",
            "option": "1",
            "quantity": 1,
            "request": {
                "type": "Parking",
                "location": {
                    "code": "LGW",
                    "name": "Gatwick",
                    "safeName": "gatwick",
                    "latitude": null,
                    "longitude": null,
                    "radius": null,
                    "limitReturnCount": null
                },
                "dates": {
                    "from": "2025-11-26T12:00:00",
                    "to": "2025-12-03T12:00:00"
                },
                "rateId": null,
                "productIds": null,
                "params": null,
                "content": null
            },
            "checkout": {
                "bookings": [
                    {
                        "type": "Parking",
                        "productName": "Cophall Parking Gatwick",
                        "price": 46.7,
                        "currency": "GBP",
                        "cancellationsAllowedUntilDate": null,
                        "supplements": [
                            {
                                "name": "Booking Fee",
                                "price": 2.49,
                                "cost": 0,
                                "currency": "GBP",
                                "notes": "",
                                "customerReasonCode": 0,
                                "supplierReasonCode": 0,
                                "priceOnArrival": 0,
                                "baseCurrency": "GBP",
                                "priceOnArrivalBaseCurrency": "GBP",
                                "priceOnArrivalCurrency": "GBP",
                                "priceOnArrivalExchangeRate": 1
                            }
                        ],
                        "hotelDetails": null,
                        "basePrice": 46.7,
                        "baseCurrency": "GBP",
                        "exchangeRate": 1
                    }
                ],
                "supplements": [
                    {
                        "name": "Booking Fee",
                        "price": 2.49,
                        "cost": 0,
                        "currency": "GBP",
                        "notes": "",
                        "customerReasonCode": 0,
                        "supplierReasonCode": 0,
                        "priceOnArrival": 0
                    }
                ],
                "inputProfile": {
                    "showMobilePhone": false,
                    "showOutboundFlight": true,
                    "showInboundFlight": true,
                    "showDestination": false,
                    "showDepartAirportTerm": false,
                    "showReturnAirportTerm": false,
                    "showInboundDepartPoint": false,
                    "showParkingTimes": false,
                    "checkoutHtml": null
                },
                "terminals": {
                    "departureTerminals": [
                        {
                            "code": "LGWN",
                            "name": "Gatwick - North Terminal"
                        },
                        {
                            "code": "LGWS",
                            "name": "Gatwick - South Terminal"
                        }
                    ],
                    "returnTerminals": [
                        {
                            "code": "LGWN",
                            "name": "Gatwick - North Terminal"
                        },
                        {
                            "code": "LGWS",
                            "name": "Gatwick - South Terminal"
                        }
                    ]
                }
            },
            "requiredDetails": [],
            "price": {
                "baseCurrency": "GBP",
                "currency": "GBP",
                "baseAmount": 49.19,
                "amount": 49.19,
                "rateId": "201768034",
                "roomDetails": null,
                "bookingFee": null,
                "exchangeRate": 1,
                "providerSearchId": null,
                "dates": {
                    "dateFrom": "2025-11-26",
                    "timeFrom": "12:00",
                    "dateTo": "2025-12-03",
                    "timeTo": "12:00"
                }
            },
            "discount": {
                "excluded": false,
                "grossPrice": 57.44,
                "discountSaving": 8.25,
                "discountAmount": 15,
                "discountType": "Percentage",
                "discountDisplay": "ShowAmount"
            },
            "description": [
                "Gatwick Airport",
                "From: 26 Nov 2025 at 12:00",
                "To: 03 Dec 2025 at 12:00"
            ],
            "source": "FHR10"
        }
    ],
    "totals": {
        "baseCurrency": "GBP",
        "currency": "GBP",
        "exchangeRate": 1,
        "baseTotal": "49.19",
        "total": "49.19",
        "totalIncPayOnArrival": "46.70",
        "discountAmount": "15.00",
        "discountSaving": "8.25"
    },
    "currency": "GBP"
}

Last updated