Aa
  • Save As New
  • Revert to Last Saved
  • Convert to OpenAPI 3.0
BodyResponeCancelReserveTrain:
type: object
properties:
success:
type: string
example: "عملیات با موفقیت انجام شد"
# externalDocs:
# description:
# url: http://mdsafar.ir
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
# basePath: /api
# schemes:
# - http
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
# basePath: /api
# schemes:
# - http
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
# basePath: /api
# schemes:
# - http
# Added by API Auto Mocking Plugin
# host: panel.veta24.ir
# basePath: /api
# basePath: /panel.vesta24.ir/api/customer/
schemes:
- https
- http
# Added by API Auto Mocking Plugin
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
# basePath: /api/customer
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
# basePath: /api/customer
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
# basePath: /api/customer/
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
# basePath: /api/customer
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
# basePath: /api/customer
# Added by API Auto Mocking Plugin
# host: panel.vesta24.ir
basePath: /api/customer
# Added by API Auto Mocking Plugin
host: panel.vesta24.ir
הההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Last Saved:  4:17:15 pm   -   Feb 25, 2020
Valid
Type
Line
Description
1108
Sibling values alongside $refs are ignored. To add properties to a $ref, wrap the $ref into allOf, or move the extra properties into the referenced definition (if applicable).
1173
Definition was declared but never used in document
1188
Definition was declared but never used in document
1372
Definition was declared but never used in document
Loading...

Vesta24 Api
 1.0.0 

[ Base URL: panel.vesta24.ir/api/customer ]

Token

Get Authorization Token

POST​/oauth​/token
[ Base URL: panel.vesta24.ir ]

Parameters

NameDescription
Accept *
string
(header)

api_token

Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "grant_type": "password",
  "client_id": 0,
  "client_secret": "9YUIWze2YzvSVJLr1N0j5w5OR1lftHfw5nFviYv1",
  "username": "[email protected]",
  "password": "string"
}

Responses

CodeDescription
200

successful operation

[
  {
    "token_type": "Bearer",
    "expires_in": 31626000,
    "access_token": "string",
    "refresh_token": "string"
  }
]
405

Invalid input

EndUser

Get EndUserToken

POST​/enduser​/login
login user

Parameters

NameDescription
Authorization *
string
(header)

api_token

Accept *
string
(header)

application/json

Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "username": "09001234567",
  "password": "123456"
}

Responses

CodeDescription
200

successful operation

{
  "username": "09001234567",
  "expired_at": "2001-01-01 01:01:01",
  "password": "123456",
  "token": "string"
}
405

Invalid input

Hotel

Everything about hotels

GET​/cities​/has-hotel
show cities that has hotel

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

Accept *
string
(header)

application/json

Responses

CodeDescription
200

successful operation

[
  {
    "id": 11,
    "name": "فرودگاه هاشمی نژاد مشهد",
    "latin_name": "mashhad",
    "city": "مشهد"
  }
]
405

Invalid input

GET​/hotels​/list
Get the list of hotels in a date

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "date_from": "1398/01/01",
  "city": "1",
  "stay": "2"
}

Responses

CodeDescription
200

successful operation

{
  "hotels": [
    {
      "id": 1,
      "hotel": "هتل معین درباری",
      "star": "1",
      "photo": ".../photo-hotelphoto-1398-6-12-AVLP-ZjSWz.jpeg",
      "price": "1000000",
      "properties": "صبحانه ناهار شام منوي بوفه",
      "address": "مشهد",
      "night": "2"
    }
  ]
}
405

Invalid input

GET​/hotel​/{hotelId}
Get the the detail of a hotel

Parameters

NameDescription
hotelId *
integer($int64)
(path)

ID of hotel to return

Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "date_from": "1398/01/01",
  "stay": "2"
}

Responses

CodeDescription
200

successful operation

{
  "id": 1,
  "hotel": "هتل معین درباری",
  "star": 1,
  "photo": ".../photo-hotelphoto-1398-6-12-AVLP-ZjSWz.jpeg",
  "price": 1000000,
  "properties": "صبحانه ناهار شام منوي بوفه",
  "address": "مشهد",
  "night": 2,
  "description": "با اطمينان خريد کنيد - فول گارانتي",
  "gallery": {
    "thumbnail": [
      ".../photo-hotelgallery-1398-6-12-AVLP-xs0YF.jpeg"
    ],
    "hotelgallery": [
      ".../photo-hotelgallery-1398-6-12-AVLP-xs0YF.jpeg"
    ]
  },
  "rooms": [
    {
      "id": 2,
      "commissionPercent": 2,
      "name": "سه تخته (سینگل)",
      "qty": 5,
      "price": 8000000,
      "total_price": 7600000,
      "capacity": 2
    }
  ],
  "facilities": [
    {
      "name": "اینترنت درلابی",
      "latin_name": "loby internet"
    }
  ],
  "services": [
    {
      "name": "اینترنت درلابی",
      "latin_name": "loby internet"
    }
  ],
  "specifics": [
    {
      "name": "",
      "latin_name": "loby internet"
    }
  ]
}
405

Invalid input

POST​/reserve​/pre​/hotel
Block a room of hotel with the count of rooms for reserve

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

Accept *
string
(header)

application/json

endUserToken *
string
(header)

endUserToken

body *
object
(body)
{
  "date_from": "1398-01-01",
  "hotelAddress": "مشهد امام رضا 32 - جنب هتل 5 ستاره قصر طلايي",
  "hotelId": 4,
  "hotelName": "شاکر(فول گارانتی)",
  "stay": "1",
  "reserves": [
    {
      "room_id": 7,
      "room_count": 1
    }
  ]
}

Responses

CodeDescription
200

successful operation

{
  "reserves": {
    "7": {
      "1": 445
    }
  },
  "serial": "V-11111"
}
405

Invalid input

POST​/reserve​/hotel
Reserve hotel

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

Accept *
string
(header)

application/json

endUserToken *
string
(header)

endUserToken

body *
object
(body)
{
  "reserves": [
    {
      "id": 9707,
      "passengers": [
        {
          "fname": "string",
          "lname": "string",
          "melicode": "string",
          "phone": "string"
        }
      ]
    }
  ]
}

Responses

CodeDescription
200

successful operation

{
  "price": 8180000,
  "base_price": 8180000,
  "voucher": 11030,
  "hotel": [
    {
      "hotel": "هتل آپارتمان آرمان مشهد",
      "hotelAddress": "خراسان رضوی- مشهد- خیابان نواب صفوی- هتل آرمان",
      "room": "سوئیت یک خوابه دو نفره",
      "entrance_date": "27 - دی - 1398",
      "exit_date": "29 - دی - 1398",
      "room_count": 1,
      "phone": "09191234569",
      "voucher": "V-13235",
      "sale_date": "10 - بهمن - 1398 13:16:12"
    }
  ],
  "passengers": [
    {
      "fname": "string",
      "lname": "string",
      "melicode": "string"
    }
  ],
  "isCredit": "0 or 1"
}
405

Invalid input

POST​/confirm​/hotel
confirm booking

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

Accept *
string
(header)

application/json

endUserToken *
string
(header)

endUserToken

body *
object
(body)
{
  "voucher": 13473
}

Responses

CodeDescription
200

successful operation

{
  "success": "عملیات با موفقیت انجام شد"
}
405

Invalid input

POST​/cancel​/pre​/hotel
cancel pre reserve room of hotel

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

Accept *
string
(header)

application/json

endUserToken *
string
(header)

endUserToken

body *
object
(body)
{
  "serial": "V-13540"
}

Responses

CodeDescription
200

successful operation

{
  "success": "عملیات با موفقیت انجام شد"
}
405

Invalid input

Train

Everything about trains

GET​/train​/stations
Get stations list

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

Accept *
string
(header)

application/json

Responses

CodeDescription
200

successful operation

[
  {
    "id": 11,
    "name": "مشهد"
  }
]
405

Invalid input

GET​/trains​/list
Get the list of trains in a date

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

query *
object
(body)
{
  "origin_station": 0,
  "destination_station": 0,
  "datefrom": "139-11-10",
  "dateto": "139-11-15",
  "adult": 0,
  "child": 0,
  "infant": 0,
  "gender": 3
}

Responses

CodeDescription
200

successful operation

{
  "outbound": [
    {
      "sale_type": 0,
      "view_stat": 0,
      "sale_permission": 0,
      "company_logo": ".../photo-hotelphoto-1398-6-12-AVLP-ZjSWz.jpeg",
      "origin_city": "تهران",
      "destination_city": "مشهد",
      "path": "تهران ==>> مشهد",
      "company": "قطار 5ستاره فدک",
      "company_code": 0,
      "train": "بیزینس",
      "class": "بیزینس",
      "dateFa": "07 - آذر - 1398",
      "day": "پنج شنبه",
      "departure_time": "19:50",
      "arrivetime": "08:00",
      "durationtime": "10:00",
      "remain": null,
      "DepartureDateTime": "",
      "TrainNumber": "190",
      "FareBasisCode": "",
      "adultprice": 1200000,
      "childprice": 0,
      "id": 788,
      "max_show_internet": null,
      "RetSameCompany": 1,
      "timeRecieveToDest": 1,
      "showTicketPrice": 0,
      "special_offer": 0
    }
  ],
  "return": [
    {
      "sale_type": 0,
      "view_stat": 0,
      "sale_permission": 0,
      "company_logo": ".../photo-hotelphoto-1398-6-12-AVLP-ZjSWz.jpeg",
      "origin_city": "تهران",
      "destination_city": "مشهد",
      "path": "تهران ==>> مشهد",
      "company": "قطار 5ستاره فدک",
      "company_code": 0,
      "train": "بیزینس",
      "class": "بیزینس",
      "dateFa": "07 - آذر - 1398",
      "day": "پنج شنبه",
      "departure_time": "19:50",
      "arrivetime": "08:00",
      "durationtime": "10:00",
      "remain": null,
      "DepartureDateTime": "",
      "TrainNumber": "190",
      "FareBasisCode": "",
      "adultprice": 1200000,
      "childprice": 0,
      "id": 788,
      "max_show_internet": null,
      "RetSameCompany": 1,
      "timeRecieveToDest": 1,
      "showTicketPrice": 0,
      "special_offer": 0
    }
  ]
}
405

Invalid input

POST​/reserve​/pre​/train
Get the the detail of a train

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type
string
(header)
endUserToken *
string
(header)
body *
object
(body)
{
  "gender": "1 or 2 or 3",
  "adult": 0,
  "child": 0,
  "infant": 0,
  "outbound": {
    "company": 0,
    "company_logo": "https://panel.vesta24.ir/storage/uploads/photos/airline/airlinephoto/thumbnail/thumb-airlinephoto-1398-6-25-AVLP-81zao.jpeg",
    "date": "1398-11-8",
    "destination_station": "13",
    "origin_station": "12",
    "TrainNumber": "VR5818",
    "FareBasisCode": {
      "FromStation": {}
    },
    "departure_time": "05:40:00",
    "id": "310958206dff0516eb6e6573bb0cdddb**3"
  },
  "return": {
    "company": 0,
    "company_logo": "https://panel.vesta24.ir/storage/uploads/photos/airline/airlinephoto/thumbnail/thumb-airlinephoto-1398-6-25-AVLP-81zao.jpeg",
    "date": "1398-11-8",
    "destination_station": "13",
    "origin_station": "12",
    "TrainNumber": "VR5818",
    "FareBasisCode": {
      "FromStation": {}
    },
    "departure_time": "05:40:00",
    "id": "310958206dff0516eb6e6573bb0cdddb**3"
  }
}

Responses

CodeDescription
200

successful operation

{
  "outbound": {
    "reserve_id": 8216,
    "flightData": {
      "originCity": "تهران",
      "destinationCity": "شیراز",
      "origin_station": "مهرآباد تهران",
      "destination_station": "شیراز(فرودگاه شهید دستغیب)",
      "date": "1398-9-7",
      "price": 2862426,
      "adultprice": 2862426,
      "childprice": 2862426,
      "flytime": "05:45:00",
      "arrival": "",
      "duration": "",
      "company": "وارش",
      "train_number": "081a4637c3f813c1313126ed0cfcfb45",
      "company_logo": "https://panel.vesta24.ir/storage/uploads/photos/airline/airlinephoto/thumbnail/thumb-airlinephoto-1398-6-25-AVLP-81zao.jpeg"
    }
  },
  "return": {
    "reserve_id": 8216,
    "flightData": {
      "originCity": "تهران",
      "destinationCity": "شیراز",
      "origin_station": "مهرآباد تهران",
      "destination_station": "شیراز(فرودگاه شهید دستغیب)",
      "date": "1398-9-7",
      "price": 2862426,
      "adultprice": 2862426,
      "childprice": 2862426,
      "flytime": "05:45:00",
      "arrival": "",
      "duration": "",
      "company": "وارش",
      "train_number": "081a4637c3f813c1313126ed0cfcfb45",
      "company_logo": "https://panel.vesta24.ir/storage/uploads/photos/airline/airlinephoto/thumbnail/thumb-airlinephoto-1398-6-25-AVLP-81zao.jpeg"
    }
  }
}
405

Invalid input

POST​/reserve​/train
Get the the reserve of a train

Parameters

NameDescription
Authorization *
string
(header)

api_token

endUserToken *
string
(header)
Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "email": "string",
  "mobile": "string",
  "outbound": {
    "reserve_id": 13376
  },
  "return": {
    "reserve_id": 13377
  },
  "passengers": {
    "adult": [
      {
        "fname": "string",
        "lname": "string",
        "ENlname": "string",
        "ENfname": "string",
        "nationalCode": "string",
        "birthdate": "string",
        "birthDate": {
          "day": 5,
          "month": 2,
          "year": 1340
        }
      }
    ],
    "child": [
      {}
    ],
    "infant": [
      {}
    ]
  }
}

Responses

CodeDescription
200

successful operation

{
  "price": 0,
  "base_price": 0,
  "train": [
    {
      "path": "مهرآباد تهران,شیراز(فرودگاه شهید دستغیب)",
      "flytime": "20:45:00",
      "flightno": "string",
      "date": "string",
      "totalprice": 0,
      "airline": "string",
      "phone": "string",
      "sale_date": "06 - آذر - 1398 14:31:40",
      "voucher": "string"
    }
  ],
  "passengers": [
    {
      "fname": "string",
      "lname": "string",
      "ENfname": "string",
      "ENlname": "string",
      "melicode": "string",
      "passport": "string",
      "birthdate": "2019-10-28"
    }
  ],
  "isCredit": 1,
  "voucher": 0
}
405

Invalid input

POST​/confirm​/train
confirm booking

Parameters

NameDescription
Authorization *
string
(header)

api_token

endUserToken *
string
(header)
Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "voucher": 13473
}

Responses

CodeDescription
200

successful operation

{
  "success": "عملیات با موفقیت انجام شد"
}
405

Invalid input

POST​/cancel​/pre​/train
Get reserve_id for cancel reserve

Parameters

NameDescription
Authorization *
string
(header)

api_token

endUserToken *
string
(header)
Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "reserve_id": 1212
}

Responses

CodeDescription
200

successful operation

{
  "success": "عملیات با موفقیت انجام شد"
}
405

Invalid input

Flight

Everything about flights

GET​/airports
Get airports list

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

Accept *
string
(header)

application/json

Responses

CodeDescription
200

successful operation

[
  {
    "id": 11,
    "name": "فرودگاه هاشمی نژاد مشهد",
    "latin_name": "mashhad",
    "city": "مشهد"
  }
]
405

Invalid input

GET​/flights​/list
Get the list of flights in a date

Parameters

NameDescription
Authorization *
string
(header)

api_token

Content-Type *
string
(header)

application/json

query *
object
(body)
{
  "origin_airport": 0,
  "destination_airport": 0,
  "dateto": "1398-11-10",
  "datefrom": "1398-11-08",
  "adult": 0,
  "child": 0,
  "infant": 0
}

Responses

CodeDescription
200

successful operation

{
  "return": [
    {
      "view_stat": 0,
      "sale_permission": 0,
      "sale_type": 0,
      "airline_logo": ".../photo-hotelphoto-1398-6-12-AVLP-ZjSWz.jpeg",
      "origin_city": "تهران",
      "destination_city": "مشهد",
      "path": "تهران ==>> مشهد",
      "airline": "زاگرس",
      "airline_code": 13,
      "airplane": "734",
      "class": "SYSTEM_260_FARE",
      "dateFa": "07 - آذر - 1398",
      "day": "پنج شنبه",
      "flytime": "05:45:00",
      "arrivetime": "07:45:00",
      "durationtime": "02:00:00",
      "remain": "5",
      "DepartureDateTime": "",
      "FareBasisCode": {
        "flight_number": "028"
      },
      "FlightNumber": "5836",
      "FlightType": "چارتری",
      "adultprice": 4015000,
      "childprice": 4015000,
      "id": "78e7f2b4e427a9059eb506dc7f1769wa**3",
      "max_show_internet": 0,
      "RetSameCompany": 0,
      "timeRecieveToDest": 0,
      "showTicketPrice": 1,
      "special_offer": 0,
      "refund_rules": "50% - از زمان صدور بلیط تا 12:00 ظهر 3 روز قبل از پرواز50% - از 12:00 ظهر 3 روز قبل از پرواز تا 12:00 ظهر 1 روز قبل از پرواز80% - از 12:00 ظهر 1 روز قبل از پرواز تا 3 ساعت قبل از پرواز 80% - از 3 ساعت قبل از پرواز تا 30 دقیقه قبل از پرواز 80% - از 30 دقیقه قبل از پرواز به بعد",
      "Overload": 0,
      "from_terminal": true
    }
  ],
  "outbound": [
    {
      "view_stat": 0,
      "sale_permission": 0,
      "sale_type": 0,
      "airline_logo": ".../photo-hotelphoto-1398-6-12-AVLP-ZjSWz.jpeg",
      "origin_city": "تهران",
      "destination_city": "مشهد",
      "path": "تهران ==>> مشهد",
      "airline": "زاگرس",
      "airline_code": 13,
      "airplane": "734",
      "class": "SYSTEM_260_FARE",
      "dateFa": "07 - آذر - 1398",
      "day": "پنج شنبه",
      "flytime": "05:45:00",
      "arrivetime": "07:45:00",
      "durationtime": "02:00:00",
      "remain": "5",
      "DepartureDateTime": "",
      "FareBasisCode": {
        "flight_number": "028"
      },
      "FlightNumber": "5836",
      "FlightType": "چارتری",
      "adultprice": 4015000,
      "childprice": 4015000,
      "id": "78e7f2b4e427a9059eb506dc7f1769wa**3",
      "max_show_internet": 0,
      "RetSameCompany": 0,
      "timeRecieveToDest": 0,
      "showTicketPrice": 1,
      "special_offer": 0,
      "refund_rules": "50% - از زمان صدور بلیط تا 12:00 ظهر 3 روز قبل از پرواز50% - از 12:00 ظهر 3 روز قبل از پرواز تا 12:00 ظهر 1 روز قبل از پرواز80% - از 12:00 ظهر 1 روز قبل از پرواز تا 3 ساعت قبل از پرواز 80% - از 3 ساعت قبل از پرواز تا 30 دقیقه قبل از پرواز 80% - از 30 دقیقه قبل از پرواز به بعد",
      "Overload": 0,
      "from_terminal": true
    }
  ]
}
405

Invalid input

POST​/reserve​/pre​/flight
Get the the detail of a flight

Parameters

NameDescription
Authorization *
string
(header)

api_token

endUserToken *
string
(header)
Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "adult": 0,
  "child": 0,
  "infant": 0,
  "outbound": {
    "airline": 0,
    "airline_logo": "https://panel.vesta24.ir/storage/uploads/photos/airline/airlinephoto/thumbnail/thumb-airlinephoto-1398-6-25-AVLP-81zao.jpeg",
    "date": "1398-11-8",
    "destination_airport": "13",
    "origin_airport": "12",
    "FlightNumber": "VR5818",
    "FareBasisCode": {
      "flight_number": "VR5818"
    },
    "flytime": "05:40:00",
    "id": "310958206dff0516eb6e6573bb0cdddb**3"
  },
  "return": {
    "airline": 0,
    "airline_logo": "https://panel.vesta24.ir/storage/uploads/photos/airline/airlinephoto/thumbnail/thumb-airlinephoto-1398-6-25-AVLP-81zao.jpeg",
    "date": "1398-11-8",
    "destination_airport": "13",
    "origin_airport": "12",
    "FlightNumber": "VR5818",
    "FareBasisCode": {
      "flight_number": "VR5818"
    },
    "flytime": "05:40:00",
    "id": "310958206dff0516eb6e6573bb0cdddb**3"
  }
}

Responses

CodeDescription
200

successful operation

{
  "outbound": {
    "reserve_id": 8216,
    "flightData": {
      "originCity": "تهران",
      "destinationCity": "شیراز",
      "origin_airport": "مهرآباد تهران",
      "destination_airport": "شیراز(فرودگاه شهید دستغیب)",
      "date": "1398-9-7",
      "price": 2862426,
      "adultprice": 2862426,
      "childprice": 2862426,
      "flytime": "05:45:00",
      "arrival": "",
      "duration": "",
      "airline": "وارش",
      "airplane": "",
      "flightno": "081a4637c3f813c1313126ed0cfcfb45",
      "airline_logo": "https://panel.vesta24.ir/storage/uploads/photos/airline/airlinephoto/thumbnail/thumb-airlinephoto-1398-6-25-AVLP-81zao.jpeg"
    }
  },
  "return": {
    "reserve_id": 8216,
    "flightData": {
      "originCity": "تهران",
      "destinationCity": "شیراز",
      "origin_airport": "مهرآباد تهران",
      "destination_airport": "شیراز(فرودگاه شهید دستغیب)",
      "date": "1398-9-7",
      "price": 2862426,
      "adultprice": 2862426,
      "childprice": 2862426,
      "flytime": "05:45:00",
      "arrival": "",
      "duration": "",
      "airline": "وارش",
      "airplane": "",
      "flightno": "081a4637c3f813c1313126ed0cfcfb45",
      "airline_logo": "https://panel.vesta24.ir/storage/uploads/photos/airline/airlinephoto/thumbnail/thumb-airlinephoto-1398-6-25-AVLP-81zao.jpeg"
    }
  }
}
405

Invalid input

POST​/reserve​/flight
Get the the reserve of a flight

Parameters

NameDescription
Authorization *
string
(header)

api_token

endUserToken *
string
(header)
Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "email": "string",
  "mobile": "string",
  "outbound": {
    "reserve_id": 13376
  },
  "return": {
    "reserve_id": 13376
  },
  "passengers": {
    "adult": [
      {
        "sex": "0 or 1",
        "fname": "string",
        "lname": "string",
        "ENlname": "string",
        "ENfname": "string",
        "nationalCode": "string",
        "passport": "string",
        "passportDate": "string",
        "birthdate": "string",
        "birthDate": {
          "day": 5,
          "month": 2,
          "year": 1340
        }
      }
    ],
    "child": [
      {}
    ],
    "infant": [
      {}
    ]
  }
}

Responses

CodeDescription
200

successful operation

{
  "price": 0,
  "base_price": 0,
  "flight": [
    {
      "path": "مهرآباد تهران,شیراز(فرودگاه شهید دستغیب)",
      "flytime": "20:45:00",
      "flightno": "string",
      "date": "18 - بهمن - 1398",
      "sale_date": "06 - آذر - 1398 14:31:40",
      "voucher": "string",
      "phone": "09120001111"
    }
  ],
  "passengers": [
    {
      "sex": 0,
      "fname": "string",
      "lname": "string",
      "ENfname": "string",
      "ENlname": "string",
      "melicode": "string",
      "passport": "string",
      "passportDate": "string",
      "birthdate": "1999-01-29"
    }
  ],
  "voucher": 0
}
405

Invalid input

POST​/confirm​/flight
Confirm booking

Parameters

NameDescription
Authorization *
string
(header)

api_token

endUserToken *
string
(header)
Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "voucher": 13473
}

Responses

CodeDescription
200

successful operation

{
  "success": "عملیات با موفقیت انجام شد"
}
405

Invalid input

POST​/cancel​/pre​/flight
Get reserve_id for cancel reserve

Parameters

NameDescription
Authorization *
string
(header)

api_token

endUserToken *
string
(header)
Content-Type *
string
(header)

application/json

body *
object
(body)
{
  "reserve_id": 1212
}

Responses

CodeDescription
200

successful operation

{
  "success": "عملیات با موفقیت انجام شد"
}
405

Invalid input