> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flyskye.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Change dates

> Date changes on the same ticket, in three steps chosen by the body. `{ departDate, returnDate? }` returns up to 5 options. `{ offerId }` prices one and returns `orderChangeId`. `{ orderChangeId, razorpay? }` applies it. You pay only the airline's difference, with no Skye fee. A booking can be changed once. Scope `book`.



## OpenAPI

````yaml /api-reference/openapi.yaml post /bookings/{ref}/change
openapi: 3.1.0
info:
  title: Skye Flights API
  version: '1.0'
  description: Search and book real flights for your users. Skye is the Merchant of Record.
servers:
  - url: https://api.flyskye.ai/v1
security:
  - accessToken: []
tags:
  - name: Authentication
  - name: Flights
  - name: Booking sessions
  - name: Payments
  - name: Bookings
paths:
  /bookings/{ref}/change:
    post:
      tags:
        - Bookings
      summary: Change dates
      description: >-
        Date changes on the same ticket, in three steps chosen by the body. `{
        departDate, returnDate? }` returns up to 5 options. `{ offerId }` prices
        one and returns `orderChangeId`. `{ orderChangeId, razorpay? }` applies
        it. You pay only the airline's difference, with no Skye fee. A booking
        can be changed once. Scope `book`.
      parameters:
        - $ref: '#/components/parameters/BookingRef'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - title: Find options
                  type: object
                  required:
                    - departDate
                  properties:
                    departDate:
                      type: string
                      format: date
                    returnDate:
                      type: string
                      format: date
                - title: Price one
                  type: object
                  required:
                    - offerId
                  properties:
                    offerId:
                      type: string
                - title: Apply
                  type: object
                  required:
                    - orderChangeId
                  properties:
                    orderChangeId:
                      type: string
                    razorpay:
                      type: object
                      properties:
                        orderId:
                          type: string
                        paymentId:
                          type: string
                        signature:
                          type: string
      responses:
        '200':
          description: Options, a priced change, or the applied change.
          content:
            application/json:
              schema:
                type: object
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
components:
  parameters:
    BookingRef:
      name: ref
      in: path
      required: true
      description: The Skye booking id or the PNR.
      schema:
        type: string
  responses:
    NotFound:
      description: No such session or booking for your account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: >-
        The session or booking is not in a state that allows this. See the error
        code.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: invalid_request
            message:
              type: string
              example: departDate cannot be in the past
            field:
              type: string
              example: departDate
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      description: An access token (`sat_...`) from `POST /token`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.