---
agentTools:
  projectIndex: https://saasdoc.cleartrip.com/llms.txt
---

# Sync Book

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Flight Sandbox",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://saasapi.cleartrip.com/flight/sandbox"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      },
      "sec1": {
        "type": "apiKey",
        "in": "header",
        "name": "Origin",
        "x-default": "Dice"
      },
      "sec2": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": [],
      "sec2": []
    }
  ],
  "paths": {
    "/domestic/round/book": {
      "post": {
        "summary": "Sync Book",
        "description": "",
        "operationId": "book-flight-1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "holdId": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "number",
                    "format": "double"
                  },
                  "referenceId": {
                    "type": "string",
                    "default": "(Optional)"
                  },
                  "accountId": {
                    "type": "string",
                    "description": "Deposit Account Id"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"bookingId\": \"632d9d674cedfd00082f5232\",\n  \"status\":\"SUCCESS\",\n  \"ticket\": {\n    \"amount\": 8456,\n    \"flowId\": \"TJ102243567803\",\n    \"bookingId\": \"BK-PERSONAL-000000028\",\n    \"travellers\": [\n      {\n        \"type\": \"ADULT\",\n        \"primary\": false,\n        \"id\": \"632d9d6e46e0fb0008bd187f\",\n        \"addOnCost\": 0,\n        \"meals\": {},\n        \"seats\": {},\n        \"pnrs\": {\n          \"DEL-PNQ\": \"K543WI\"\n        },\n        \"tickets\": {},\n        \"empty\": true,\n        \"name\": \"Rameshwar Das Jain\",\n        \"fName\": \"Rameshwar\",\n        \"lName\": \"Das Jain\",\n        \"gender\": \"MALE\"\n      },\n      {\n        \"type\": \"ADULT\",\n        \"primary\": false,\n        \"id\": \"632d9d6e46e0fb0008bd1880\",\n        \"addOnCost\": 0,\n        \"meals\": {},\n        \"seats\": {},\n        \"pnrs\": {\n          \"DEL-PNQ\": \"K543WI\"\n        },\n        \"tickets\": {},\n        \"empty\": true,\n        \"name\": \"Rajesh Jain\",\n        \"fName\": \"Rajesh\",\n        \"lName\": \"Jain\",\n        \"gender\": \"MALE\"\n      }\n    ],\n    \"segments\": [\n      {\n        \"id\": \"175\",\n        \"meals\": [\n          {\n            \"code\": \"CRPX\",\n            \"name\": \"Free Corporate Meal\",\n            \"amount\": 0\n          }\n        ],\n        \"logo\": \"https://static.eka.io/airline/G8.png\",\n        \"flightCode\": \"G8\",\n        \"airline\": \"Go First\",\n        \"rank\": 0,\n        \"flightNumber\": \"1171\",\n        \"durationInMin\": 120,\n        \"departure\": {\n          \"code\": \"DEL\",\n          \"airport\": \"Delhi Indira Gandhi Intl\",\n          \"city\": \"Delhi\",\n          \"country\": \"India\"\n        },\n        \"departureTime\": 1664374200000,\n        \"departureDate\": \"2022-09-28T19:40\",\n        \"arrival\": {\n          \"code\": \"PNQ\",\n          \"airport\": \"Lohegaon Arpt\",\n          \"city\": \"Pune\",\n          \"country\": \"India\"\n        },\n        \"arrivalTime\": 1664381400000,\n        \"arrrivalDate\": \"2022-09-28T21:40\"\n      }\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "bookingId": {
                      "type": "string",
                      "example": "632d9d674cedfd00082f5232"
                    },
                    "status": {
                      "type": "string",
                      "example": "SUCCESS"
                    },
                    "ticket": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "integer",
                          "example": 8456,
                          "default": 0
                        },
                        "flowId": {
                          "type": "string",
                          "example": "TJ102243567803"
                        },
                        "bookingId": {
                          "type": "string",
                          "example": "BK-PERSONAL-000000028"
                        },
                        "travellers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "example": "ADULT"
                              },
                              "primary": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "id": {
                                "type": "string",
                                "example": "632d9d6e46e0fb0008bd187f"
                              },
                              "addOnCost": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "meals": {
                                "type": "object",
                                "properties": {}
                              },
                              "seats": {
                                "type": "object",
                                "properties": {}
                              },
                              "pnrs": {
                                "type": "object",
                                "properties": {
                                  "DEL-PNQ": {
                                    "type": "string",
                                    "example": "K543WI"
                                  }
                                }
                              },
                              "tickets": {
                                "type": "object",
                                "properties": {}
                              },
                              "empty": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              },
                              "name": {
                                "type": "string",
                                "example": "Rameshwar Das Jain"
                              },
                              "fName": {
                                "type": "string",
                                "example": "Rameshwar"
                              },
                              "lName": {
                                "type": "string",
                                "example": "Das Jain"
                              },
                              "gender": {
                                "type": "string",
                                "example": "MALE"
                              }
                            }
                          }
                        },
                        "segments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "175"
                              },
                              "meals": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "code": {
                                      "type": "string",
                                      "example": "CRPX"
                                    },
                                    "name": {
                                      "type": "string",
                                      "example": "Free Corporate Meal"
                                    },
                                    "amount": {
                                      "type": "integer",
                                      "example": 0,
                                      "default": 0
                                    }
                                  }
                                }
                              },
                              "logo": {
                                "type": "string",
                                "example": "https://static.eka.io/airline/G8.png"
                              },
                              "flightCode": {
                                "type": "string",
                                "example": "G8"
                              },
                              "airline": {
                                "type": "string",
                                "example": "Go First"
                              },
                              "rank": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "flightNumber": {
                                "type": "string",
                                "example": "1171"
                              },
                              "durationInMin": {
                                "type": "integer",
                                "example": 120,
                                "default": 0
                              },
                              "departure": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "example": "DEL"
                                  },
                                  "airport": {
                                    "type": "string",
                                    "example": "Delhi Indira Gandhi Intl"
                                  },
                                  "city": {
                                    "type": "string",
                                    "example": "Delhi"
                                  },
                                  "country": {
                                    "type": "string",
                                    "example": "India"
                                  }
                                }
                              },
                              "departureTime": {
                                "type": "integer",
                                "example": 1664374200000,
                                "default": 0
                              },
                              "departureDate": {
                                "type": "string",
                                "example": "2022-09-28T19:40"
                              },
                              "arrival": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "example": "PNQ"
                                  },
                                  "airport": {
                                    "type": "string",
                                    "example": "Lohegaon Arpt"
                                  },
                                  "city": {
                                    "type": "string",
                                    "example": "Pune"
                                  },
                                  "country": {
                                    "type": "string",
                                    "example": "India"
                                  }
                                }
                              },
                              "arrivalTime": {
                                "type": "integer",
                                "example": 1664381400000,
                                "default": 0
                              },
                              "arrrivalDate": {
                                "type": "string",
                                "example": "2022-09-28T21:40"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6318eb0564c1380156310ee3:634e79a8cf2772000fec95cd"
}
```