POST api/Basket/{token}

Post components to the basket and calculate reservation price

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

The tour search token

string

Required

Body Parameters

The basket input parameters

BasketPostParameters
NameDescriptionTypeAdditional information
accommodations

Array of quantity and IDs of the selected accommodation units, e.g. 1*fa5fd446e5fa427507460be0a2f5331a

Collection of string

None.

extras

Array of quantity and IDs of the selected extras, e.g. 3*82d0847055a4fd96f47b3143de9387e4

Collection of string

None.

promoCode

Promotional code that should be applied to booking

string

None.

promoCodeLabel

Marketing campaign or promotional discount code description

string

None.

Request Formats

application/json, text/json

Sample:
{
  "accommodations": [
    "sample string 1",
    "sample string 2"
  ],
  "extras": [
    "sample string 1",
    "sample string 2"
  ],
  "promoCode": "sample string 1",
  "promoCodeLabel": "sample string 2"
}

Response Information

Resource Description

BasketResponse
NameDescriptionTypeAdditional information
token

The tour search token

string

None.

response

The response object

Basket

None.

status

The response status

ResponseStatus

None.

success

An indication that the request was successfully completed or failed

boolean

None.

datestamp

The date and time that the request was completed

date

None.

Response Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "response": {
    "agentCode": "sample string 1",
    "agentName": "sample string 2",
    "agentType": "sample string 3",
    "tourCode": 1,
    "tourName": "sample string 4",
    "promoCode": "sample string 5",
    "promoCodeLabel": "sample string 6",
    "departureDetails": {
      "outbound": [
        {
          "Id": "sample string 1",
          "componentID": 2,
          "supplierID": 3,
          "transportType": "sample string 4",
          "supplierCode": "sample string 5",
          "supplierDesc": "sample string 6",
          "supplierLogo": "sample string 7",
          "departs": "sample string 8",
          "departsDesc": "sample string 9",
          "depPointType": "sample string 10",
          "depDate": "sample string 11",
          "depTime": "sample string 12",
          "arrives": "sample string 13",
          "arrivesDesc": "sample string 14",
          "arrPointType": "sample string 15",
          "arrDate": "sample string 16",
          "arrTime": "sample string 17",
          "checkInTime": "sample string 18",
          "departureTerminal": "sample string 19",
          "arrivalTerminal": "sample string 20",
          "description": "sample string 21",
          "seat": "sample string 22",
          "baggageUnit": 1,
          "baggageWeightLimit": 1,
          "baggageWeightUnit": "sample string 23",
          "internalFlight": 1,
          "flightType": "sample string 24",
          "dataSource": "sample string 25"
        },
        {
          "Id": "sample string 1",
          "componentID": 2,
          "supplierID": 3,
          "transportType": "sample string 4",
          "supplierCode": "sample string 5",
          "supplierDesc": "sample string 6",
          "supplierLogo": "sample string 7",
          "departs": "sample string 8",
          "departsDesc": "sample string 9",
          "depPointType": "sample string 10",
          "depDate": "sample string 11",
          "depTime": "sample string 12",
          "arrives": "sample string 13",
          "arrivesDesc": "sample string 14",
          "arrPointType": "sample string 15",
          "arrDate": "sample string 16",
          "arrTime": "sample string 17",
          "checkInTime": "sample string 18",
          "departureTerminal": "sample string 19",
          "arrivalTerminal": "sample string 20",
          "description": "sample string 21",
          "seat": "sample string 22",
          "baggageUnit": 1,
          "baggageWeightLimit": 1,
          "baggageWeightUnit": "sample string 23",
          "internalFlight": 1,
          "flightType": "sample string 24",
          "dataSource": "sample string 25"
        }
      ],
      "inbound": [
        {
          "Id": "sample string 1",
          "componentID": 2,
          "supplierID": 3,
          "transportType": "sample string 4",
          "supplierCode": "sample string 5",
          "supplierDesc": "sample string 6",
          "supplierLogo": "sample string 7",
          "departs": "sample string 8",
          "departsDesc": "sample string 9",
          "depPointType": "sample string 10",
          "depDate": "sample string 11",
          "depTime": "sample string 12",
          "arrives": "sample string 13",
          "arrivesDesc": "sample string 14",
          "arrPointType": "sample string 15",
          "arrDate": "sample string 16",
          "arrTime": "sample string 17",
          "checkInTime": "sample string 18",
          "departureTerminal": "sample string 19",
          "arrivalTerminal": "sample string 20",
          "description": "sample string 21",
          "seat": "sample string 22",
          "baggageUnit": 1,
          "baggageWeightLimit": 1,
          "baggageWeightUnit": "sample string 23",
          "internalFlight": 1,
          "flightType": "sample string 24",
          "dataSource": "sample string 25"
        },
        {
          "Id": "sample string 1",
          "componentID": 2,
          "supplierID": 3,
          "transportType": "sample string 4",
          "supplierCode": "sample string 5",
          "supplierDesc": "sample string 6",
          "supplierLogo": "sample string 7",
          "departs": "sample string 8",
          "departsDesc": "sample string 9",
          "depPointType": "sample string 10",
          "depDate": "sample string 11",
          "depTime": "sample string 12",
          "arrives": "sample string 13",
          "arrivesDesc": "sample string 14",
          "arrPointType": "sample string 15",
          "arrDate": "sample string 16",
          "arrTime": "sample string 17",
          "checkInTime": "sample string 18",
          "departureTerminal": "sample string 19",
          "arrivalTerminal": "sample string 20",
          "description": "sample string 21",
          "seat": "sample string 22",
          "baggageUnit": 1,
          "baggageWeightLimit": 1,
          "baggageWeightUnit": "sample string 23",
          "internalFlight": 1,
          "flightType": "sample string 24",
          "dataSource": "sample string 25"
        }
      ]
    },
    "accommodations": [
      {
        "accType": "sample string 1",
        "accName": "sample string 2",
        "accImage": "sample string 3",
        "accCode": "sample string 4",
        "accommodationUnits": [
          {
            "Id": "sample string 1",
            "componentID": 2,
            "unitType": "sample string 3",
            "unitImage": "sample string 4",
            "unitDesc": "sample string 5",
            "unitGrade": "sample string 6",
            "unitNumber": "sample string 7",
            "currency": "sample string 8",
            "price": 1.1
          },
          {
            "Id": "sample string 1",
            "componentID": 2,
            "unitType": "sample string 3",
            "unitImage": "sample string 4",
            "unitDesc": "sample string 5",
            "unitGrade": "sample string 6",
            "unitNumber": "sample string 7",
            "currency": "sample string 8",
            "price": 1.1
          }
        ]
      },
      {
        "accType": "sample string 1",
        "accName": "sample string 2",
        "accImage": "sample string 3",
        "accCode": "sample string 4",
        "accommodationUnits": [
          {
            "Id": "sample string 1",
            "componentID": 2,
            "unitType": "sample string 3",
            "unitImage": "sample string 4",
            "unitDesc": "sample string 5",
            "unitGrade": "sample string 6",
            "unitNumber": "sample string 7",
            "currency": "sample string 8",
            "price": 1.1
          },
          {
            "Id": "sample string 1",
            "componentID": 2,
            "unitType": "sample string 3",
            "unitImage": "sample string 4",
            "unitDesc": "sample string 5",
            "unitGrade": "sample string 6",
            "unitNumber": "sample string 7",
            "currency": "sample string 8",
            "price": 1.1
          }
        ]
      }
    ],
    "extras": [
      {
        "componentID": 1,
        "unitDesc": "sample string 2",
        "unitGrade": "sample string 3",
        "unitNumber": "sample string 4",
        "currency": "sample string 5",
        "price": 1.1,
        "type": "sample string 6"
      },
      {
        "componentID": 1,
        "unitDesc": "sample string 2",
        "unitGrade": "sample string 3",
        "unitNumber": "sample string 4",
        "currency": "sample string 5",
        "price": 1.1,
        "type": "sample string 6"
      }
    ],
    "insurances": [
      {
        "unitDesc": "sample string 1",
        "currency": "sample string 2",
        "price": 1.1
      },
      {
        "unitDesc": "sample string 1",
        "currency": "sample string 2",
        "price": 1.1
      }
    ],
    "discounts": [
      {
        "unitDesc": "sample string 1",
        "currency": "sample string 2",
        "price": 1.1
      },
      {
        "unitDesc": "sample string 1",
        "currency": "sample string 2",
        "price": 1.1
      }
    ],
    "priceSummary": {
      "totalPrice": 1.1,
      "deposit": 2.1,
      "balanceDueDate": "sample string 3",
      "commission": 4.1,
      "vat": 5.1,
      "commissionBreakDown": [
        {
          "componentID": 1,
          "name": "sample string 2",
          "componentType": "sample string 3",
          "componentTypeID": "sample string 4",
          "componentSourceID": "sample string 5",
          "qty": 6,
          "unitPrice": 7.1,
          "price": 8.1,
          "isCommissionable": true,
          "commission": 10.1,
          "policyID": 11,
          "policyRuleID": 12,
          "policyComponentSourceID": "sample string 13",
          "policyPercentageValue": 14.1
        },
        {
          "componentID": 1,
          "name": "sample string 2",
          "componentType": "sample string 3",
          "componentTypeID": "sample string 4",
          "componentSourceID": "sample string 5",
          "qty": 6,
          "unitPrice": 7.1,
          "price": 8.1,
          "isCommissionable": true,
          "commission": 10.1,
          "policyID": 11,
          "policyRuleID": 12,
          "policyComponentSourceID": "sample string 13",
          "policyPercentageValue": 14.1
        }
      ]
    }
  },
  "status": {
    "code": 1,
    "message": "sample string 2"
  },
  "success": true,
  "datestamp": "2026-08-03T20:37:00.0503259+01:00"
}