Skip to main content
POST
/
v1
/
pricing
/
get-pricing-for-trip
{
  "trip_id": 123,
  "trip_start_date": "2023-09-15T00:00:00.000Z",
  "extra_costs": {
  "trip_extras": [
      {
      "extra_id": 1,
      "units": 2
      }
  ],
  "day_extras": [
      {
      "day_id": 1,
      "extra_id": 2,
      "units": 1
      }
  ]
  },
  "travellers": [
      {
          "date_of_birth": "1990-01-01T00:00:00.000Z",
          "citizenship": "Foreigner",
          "uuid": "123e4567-e89b-12d3-a456-426614174000"
      }
  ],
  "referral_code": ""
}
{
    "Name": ,
    "Cost": 1500,
    "Currency": "USD",
}

This endpoint provides a streamlined version of the Get Public Pricing for Trips functionality, optimizing its suitability for parsing and public display.

Header Parameters

CloudSafaris-API-Version
string
default:"v1"
Currently the only acceptable value is v1.

Request Body Parameters

trip_id
number
required
The unique identifier for the trip.
trip_start_date
string
required
The start date for the trip (ISO formatted) as selected by the traveller.
extra_costs
object
required
travellers
object
required
A minimum of 1 traveller is required.
referral_code
string
required
Referral code for promotion.
{
  "trip_id": 123,
  "trip_start_date": "2023-09-15T00:00:00.000Z",
  "extra_costs": {
  "trip_extras": [
      {
      "extra_id": 1,
      "units": 2
      }
  ],
  "day_extras": [
      {
      "day_id": 1,
      "extra_id": 2,
      "units": 1
      }
  ]
  },
  "travellers": [
      {
          "date_of_birth": "1990-01-01T00:00:00.000Z",
          "citizenship": "Foreigner",
          "uuid": "123e4567-e89b-12d3-a456-426614174000"
      }
  ],
  "referral_code": ""
}

Response Body Parameters

Name
string
The name of the quoted price. i.e. “Final Quoted Price”
Cost
number
The cost of the trip
Currency
string
An enum string for the currency that the trip cost was quoted in
{
    "Name": ,
    "Cost": 1500,
    "Currency": "USD",
}

I