1. Bus
EFLY-Providers
  • Flight
    • Domestic
      • One Way
        • One Way (1 ADT)
          • Search Flight (Oneway)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
        • One Way (2 ADT)
          • Search Flight (Oneway)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
      • Round Trip
        • Round Trip (1 ADT)
          • Search Flight (Round Trip)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
        • Round Trip (2 ADT)
          • Payment
          • Update Passengers
          • Allocate
          • Search Flight (Round Trip)
          • Prebooking
          • Finalize
        • Round Trip (1 ADT, 1 CHD)
          • Search Flight (Round Trip)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
        • Round Trip (1 ADT) (alternativePrices)
          • Search Flight (Round Trip)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
        • Round Trip (1 ADT) Copy Copy
          • Search Flight (Round Trip)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
    • International
      • One Way
        • One Way (1 ADT)
          • Search Flight (Oneway)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
        • One Way (2 ADT)
          • Search Flight (Oneway)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
      • Round Trip
        • Round Trip (1 ADT)
          • Search Flight (Round Trip)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
        • Round Trip (2 ADT)
          • Search Flight (Round Trip)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
        • Round Trip (2 ADT) Copy
          • Search Flight (Round Trip)
          • Allocate
          • Update Passengers
          • Prebooking
          • Payment
          • Finalize
    • Flight Providers List
      GET
  • Hotel
    • Search Hotel with Destination Id
      POST
    • Search Hotel with Hotel Code
      POST
    • Get Hotel Details
      POST
    • Room Offers
      POST
    • Validate Rooms
      POST
    • Get Payment Options
      POST
    • Complete Booking
      POST
  • Bus
    • Search
      POST
    • Bus Details
      POST
    • Check Seat Status
      POST
    • Finalize
      POST
  • Schemas
    • Flight
      • Flight Search Request Segment
  1. Bus

Finalize

Developing
Develop Env
http://providers.tripingram.local
Develop Env
http://providers.tripingram.local
POST
/bus/finalize

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json

Example
{}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://providers.tripingram.local/bus/finalize' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "data": {
        "success": true,
        "journeyId": "4ee54c78-aab6-4306-b023-fe16c6d829fc",
        "searchId": "A12FC98E-31C4-44BE-87E6-7925284FD23F",
        "searchStatus": "pending",
        "bookingStatus": "allocated",
        "originId": 84,
        "destinationId": 738,
        "origin": "ANKARA",
        "destination": "KAYSERİ",
        "results": [],
        "attributes": [
            {
                "id": 0,
                "name": "İnternet",
                "description": "Sağladığımız internet bağlantısını bilgisayarınızda kullanabilirsiniz."
            },
            {
                "id": 1,
                "name": "Rahat Koltuk",
                "description": "Bu araçta geniş ve rahat koltuk bulunmaktadır."
            },
            {
                "id": 2,
                "name": "Koltuk Ekranı (Uydu Yayını)",
                "description": "Koltuk ekranları üzerinden birçok interaktif medya ve uydu yayını izlenebilmektedir."
            },
            {
                "id": 3,
                "name": "WC",
                "description": "Araçta Tuvalet Bulunmaktadır."
            },
            {
                "id": 4,
                "name": "TV (Genel)",
                "description": "Araçta uygun saatlerde Genel TV ve Video yayını yapılmaktadır."
            },
            {
                "id": 5,
                "name": "Digiturk",
                "description": "Digiturk yayını bulunmaktadır."
            },
            {
                "id": 6,
                "name": "Kulaklık",
                "description": "Seyahat sırasında Kulaklık verilebilmektedir."
            },
            {
                "id": 7,
                "name": "Müzik Yayını (Genel)",
                "description": "Araçta uygun saatlerde Genel Radyo ve Müzik yayını yapılmaktadır."
            },
            {
                "id": 8,
                "name": "Müzik Yayını (Koltuk)",
                "description": "Koltuk üzerindeki kulaklık çıkışlarından çok kanallı müzik yayını yapılmaktadır."
            },
            {
                "id": 9,
                "name": "Cep Telefonu (Serbest)",
                "description": "Seyahat sırasında cep telefonunuzu kullanabilirsiniz."
            },
            {
                "id": 10,
                "name": "220 Volt Priz",
                "description": "Seyahat Sırasında 220 volt ile çalışan cihazlarınızı kullanabileceğiniz priz bulunmaktadır."
            },
            {
                "id": 11,
                "name": "Koltuk Ekranı (MIT)",
                "description": "Koltuk ekranları üzerinden Multimedya,Internet ve Tv yayını kullanılabilemektedir."
            },
            {
                "id": 12,
                "name": "Namaz Vakitlerinde Durur",
                "description": "Namaz Vakitlerinde Durur"
            },
            {
                "id": 13,
                "name": "Ligtv",
                "description": "Ligtv yayını bulunmaktadır."
            },
            {
                "id": 14,
                "name": "Koltuk Ekranı (10 inç)",
                "description": "Bu araçta 10 inç Koltuk Ekranı bulunmaktadır."
            },
            {
                "id": 15,
                "name": "Okuma Lambası",
                "description": "Bu araçta Koltuk Arkası Okuma Lambası bulunmaktadır."
            },
            {
                "id": 16,
                "name": "Radyo (Kişisel)",
                "description": "Bu araçta Kişisel Radyo bulunmaktadır."
            },
            {
                "id": 17,
                "name": "Koltuk Ekranı (13 inç)",
                "description": "Bu araçta 13 inç Koltuk Ekranı bulunmaktadır."
            },
            {
                "id": 18,
                "name": "USB Giriş",
                "description": "Bu araçta müzik, video ve şarj için kullanabileceğiniz USB girişi bulunmaktadır."
            },
            {
                "id": 19,
                "name": "Kahvaltı",
                "description": "Bu araçta kahvaltı verilmektedir."
            },
            {
                "id": 20,
                "name": "Sıcak Yemek",
                "description": "Bu araçta sıcak yemek verilmektedir."
            },
            {
                "id": 21,
                "name": "Masajlı Koltuk",
                "description": "Bu araçta masajlı koltuk bulunmaktadır."
            },
            {
                "id": 22,
                "name": "Antiviral Koruma",
                "description": "Bu araçta antiviral koruma bulunmaktadır."
            },
            {
                "id": 23,
                "name": "Business",
                "description": "Bu araç business sınıfta yer almaktadır."
            }
        ],
        "booking": {
            "bookingItem": {
                "tripId": "B39D892D-1BD1-4D15-A40A-04C0EA159279",
                "providerTripId": "1",
                "tripNumber": "",
                "provider": "biletall",
                "companyId": 37,
                "companyName": "İnci Turizm",
                "dayTime": "Gece",
                "originId": 84,
                "originName": "ANKARA",
                "companyLogo": "https://eticket.ipektr.com/wsbos3/LogoVer.Aspx?fnum=37",
                "firstOriginId": 84,
                "firstOriginName": "0",
                "destinationId": 738,
                "destinationName": "KAYSERİ",
                "lastDestinationId": 738,
                "lastDestinationName": "KAYSERİ",
                "busModelCode": "TR15",
                "busModel": "Travego 15 SHD",
                "busClass": "0",
                "busPhone": "(536)-633-33-36",
                "busPlate": "",
                "busSeatType": "2+2",
                "hasStopOver": true,
                "totalDuration": "1900-01-01T05:00:00+03:00",
                "estimatedDuration": "5-6",
                "durationType": "1",
                "date": "2024-10-24",
                "time": "10:30",
                "price": 40,
                "price1": 40,
                "classDiffPrice": 0,
                "discountedPrice": 40,
                "tripTypeText": "MOLALI",
                "attributes": [],
                "seatsAvailable": 46,
                "hasSeatSelection": true,
                "routeNumber": "3",
                "routeName": "Ankara (Aşti) ->Kayseri ",
                "tripTrackingNumber": "21734"
            },
            "priceCanBeChanged": true,
            "freeGenderSelection": true,
            "hesCodeRequired": true,
            "passportNumberIsAvailable": true,
            "diffPriceSeatSelection": true,
            "doubleSeatSelection": true,
            "doubleSeatSelectionWhenAllSinglesAreFullfilled": true,
            "paymentRules": {
                "is3DAvailable": false,
                "force3D": false,
                "prePaymentAvailable": false,
                "postPaidAccounting": false
            },
            "seats": [
                {
                    "seatId": "1",
                    "seatName": "01",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "2",
                    "seatName": "02",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "3",
                    "seatName": "03",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "4",
                    "seatName": "04",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "5",
                    "seatName": "05",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "6",
                    "seatName": "06",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "7",
                    "seatName": "07",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "8",
                    "seatName": "08",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "9",
                    "seatName": "09",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "10",
                    "seatName": "10",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "11",
                    "seatName": "11",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "12",
                    "seatName": "12",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "13",
                    "seatName": "13",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "14",
                    "seatName": "14",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "15",
                    "seatName": "15",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "16",
                    "seatName": "16",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "17",
                    "seatName": "17",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "18",
                    "seatName": "18",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "19",
                    "seatName": "19",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "20",
                    "seatName": "20",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "21",
                    "seatName": "21",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "22",
                    "seatName": "22",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "-3",
                    "seatName": "KA",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "-3",
                    "seatName": "PI",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "25",
                    "seatName": "25",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "26",
                    "seatName": "26",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "23",
                    "seatName": "23",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "24",
                    "seatName": "24",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "29",
                    "seatName": "29",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "30",
                    "seatName": "30",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "27",
                    "seatName": "27",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "28",
                    "seatName": "28",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "31",
                    "seatName": "31",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "32",
                    "seatName": "32",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "33",
                    "seatName": "33",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "34",
                    "seatName": "34",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "35",
                    "seatName": "35",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "36",
                    "seatName": "36",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "37",
                    "seatName": "37",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "38",
                    "seatName": "38",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "39",
                    "seatName": "39",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "40",
                    "seatName": "40",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "41",
                    "seatName": "41",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "42",
                    "seatName": "42",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "43",
                    "seatName": "43",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "44",
                    "seatName": "44",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatName": "Koridor",
                    "isSeat": false
                },
                {
                    "seatId": "45",
                    "seatName": "45",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                },
                {
                    "seatId": "46",
                    "seatName": "46",
                    "status": "available",
                    "otherSeatStatus": "available",
                    "seatPrice": 40,
                    "isSeat": true
                }
            ],
            "tripTypes": [
                {
                    "tripTypeId": "0",
                    "tripTypeName": "Normal",
                    "price": 40,
                    "classDiffPrice": 0,
                    "singleSeatPrice": 0
                },
                {
                    "tripTypeId": "1",
                    "tripTypeName": "Özürlü",
                    "price": 0,
                    "classDiffPrice": 0,
                    "singleSeatPrice": 0
                },
                {
                    "tripTypeId": "2",
                    "tripTypeName": "Çocuk",
                    "price": 0,
                    "classDiffPrice": 0,
                    "singleSeatPrice": 0
                },
                {
                    "tripTypeId": "3",
                    "tripTypeName": "Öğrenci",
                    "price": 0,
                    "classDiffPrice": 0,
                    "singleSeatPrice": 0
                }
            ],
            "selectedSeats": [
                {
                    "seatId": "1",
                    "gender": "M",
                    "seat": {
                        "seatId": "1",
                        "seatName": "01",
                        "status": "available",
                        "otherSeatStatus": "available",
                        "seatPrice": 40,
                        "isSeat": true
                    },
                    "passenger": {
                        "seatId": "1",
                        "firstName": "Mehmet",
                        "lastName": "Gülbilge",
                        "nationalCode": "TR",
                        "isLocalCitizen": true,
                        "citizenNo": "49852133948"
                    },
                    "pnrCode": "A820037",
                    "eTicketNumber": "037000004496"
                }
            ],
            "pnrCode": "A820037",
            "tripTime": "2024-10-24T10:30:00"
        },
        "ttl": 3600,
        "seats": []
    },
    "success": true,
    "code": 0,
    "message": ""
}
Modified at 2024-10-12 03:01:05
Previous
Check Seat Status
Next
Flight Search Request Segment
Built with