---
title: "alternative Prebook"
method: POST
path: "/reservations/changes/{transactionId}/checkouts/contexts"
tags: ["Changes"]
---

# alternative Prebook

`POST /reservations/changes/{transactionId}/checkouts/contexts`

## Path parameters

- `transactionId` string, required

## Request body

- object
  - `country` string, required
  - `changes_retrieve_resource_id` string, required — Obtained from the selected alternative in the previous step.
  - `passenger_indexes` string, required
  - `itinerary_search_type` 'DATE' | 'ROUTE', required
  - `lang` string, required — Language
  - `include` string[], required — This field must be submitted with at least one option. The allowed values are: - EXCHANGE_POLICIES: This option is sent to return information about exchange policies. - IMPORTANT_DATA: This option is sent to return information about requirements (vaccinations, documentation, etc.) based on the routes and destinations. - HINTS: This option is sent to return specifications for required fields and formats for billing data.

## Response `200`

OK

- object
  - `checkout_context_id` string — Id required to initate the modification flow (final step).
  - `checkout_context` object — Summary of the modification context, including product information, passengers, prices and payment methods
    - `product` object
      - `id` number
      - `type` string
      - `transaction_id` number
      - `country_code` number
      - `customer` object
        - `email` string
        - `name` string
    - `passengers` object
      - `index` integer
      - `type` string
      - `display_name` string
    - `price_detail` object
      - `currency` object
        - `code` string
        - `symbol` string
      - `breakdown` object
        - `description` string
        - `amount` number
    - `itinerary` object
      - `type` string
      - `search_type` string
      - `source` string
      - `routes` object
        - `position` integer
        - `title` string
        - `departure_date_time` string, date
        - `gmt_departure_date_time` string, date
        - `departure_date_time_zone_offset` string, date
        - `arrival_date_time` string, date
        - `gmt_arrival_date_time` string, date
        - `arrival_date_time_zone_offset` string, date
        - `layovers_count` integer
        - `duration` object
          - `hours` number
          - `minutes` number
        - `marketing_carriers` object
          - `code` string
          - `name` string
        - `from` object
          - `airport_code` string
          - `time` number
          - `offset_days` integer
        - `to` object
          - `airport_code` string
          - `time` number
          - `offset_days` integer
        - `detail` object
          - `timeline` object
            - `type` string
            - `position` integer
            - `flight_number` number
            - `duration` object
              - …
            - `marketing_carrier` object
              - …
            - `operating_carrier` object
              - …
            - `from` object
              - …
            - `to` object
              - …
        - `days_to_departure` number
    - `payment_methods` object
      - `code` string
      - `plans` object
        - `id` string
        - `card_code` string

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/despegar/apis/decolar-booking-api.md) · [All operations](https://skmtc.net/despegar/apis/decolar-booking-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/despegar/decolar-booking-api/revisions/2fb15f2434ea/schema)
