Booking

img


BeginTransaction Method

Last Update Date: 28.12.2020
Method Adress /api/bookingservice/BeginTransaction
Method Type POST
Token Required YES

Request Sample

{
  "offerIds": [
    "1-2--1|866188-30-1"
  ],
  "Culture": "en-US",
  "currency": "EUR"
}

Response Sample

{
   "header":{
      "requestId":"74b43ecb-e8b2-4084-9718-b6a8444b165f",
      "success":true,
      "messages":[
         {
            "id":10000000,
            "code":"OperationCompleted",
            "messageType":2,
            "message":"Operation was completed successfully"
         }
      ]
   },
   "body":{
      "transactionId":"c652b7b9-cf4b-4a29-a63f-799f840d5c59",
      "expiresOn":"2021-04-04T02:35:16.127",
      "reservationData":{
         "travellers":[
            {
               "travellerId":"1",
               "type":1,
               "title":1,
               "availableTitles":[
                  {
                     "id":"1",
                     "name":"Mr"
                  },
                  {
                     "id":"2",
                     "name":"Ms"
                  },
                  {
                     "id":"3",
                     "name":"Mrs"
                  },
                  {
                     "id":"4",
                     "name":"Miss"
                  }
               ],
               "name":"",
               "surname":"",
               "isLeader":true,
               "birthDate":"0001-01-01T00:00:00",
               "age":0,
               "nationality":{
                  "twoLetterCode":""
               },
               "identityNumber":"",
               "passportInfo":{
                  "serial":"",
                  "number":"",
                  "expireDate":"0001-01-01T00:00:00",
                  "issueDate":"0001-01-01T00:00:00",
                  "issueCountryCode":""
               },
               "address":{
                  "phone":"",
                  "email":"",
                  "address":"",
                  "zipCode":"",
                  "city":{
                     "id":"",
                     "name":""
                  },
                  "country":{
                     "id":"",
                     "name":""
                  }
               },
               "services":[
                  {
                     "type":2,
                     "id":"1"
                  }
               ],
               "orderNumber":1,
               "requiredFields": [
                  "travellerId",
                  "type",
                  "title",
                  "name",
                  "surname",
                  "isLeader",
                  "leaderEmail",
                  "passportInfo"
               ]
            }
         ],
         "reservationInfo":{
            "agency":{
          "code": "B2B",
          "name": "B2B Agency",
          "address": {
            "country": {
              "internationalCode": "CAN",
              "name": "Kanada",
              "provider": 0,
              "id": "3608"
            },
            "city": {
              "name": "Germansen",
              "provider": 0,
              "id": "19068"
            },
            "addressLines": [
              "Akdeniz Üniversitesi Teknokent Arge 1 Binası"
            ],
            "zipCode": "07200",
            "email": "begul.guner@santsg.com",
            "phone": "+90 850 777 07 29",
            "address": "Akdeniz Üniversitesi Teknokent Arge 1 Binası"
          }
        },
            "agencyUser":{
          "name": "B2B User",
          "code": "B2B"
        },
            "beginDate":"2021-04-20T00:00:00",
            "endDate":"2021-04-21T00:00:00",
            "note":"",
            "salePrice":{
               "amount":61.38,
               "currency":"EUR"
            },
            "supplementDiscount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "passengerEB":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyEB":{
               "amount":0.00,
               "currency":"EUR"
            },
            "passengerAmountToPay":{
               "amount":61.38,
               "currency":"EUR"
            },
            "agencyAmountToPay":{
               "amount":57.08,
               "currency":"EUR"
            },
            "discount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyBalance":{
               "amount":57.08,
               "currency":"EUR"
            },
            "passengerBalance":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyCommission":{
               "amount":4.30,
               "currency":"EUR"
            },
            "promotionAmount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "priceToPay":{
               "amount":57.08,
               "currency":"EUR"
            },
            "reservationStatus":9,
            "confirmationStatus":0,
            "paymentStatus":2,
            "documents":[

            ],
            "reservableInfo":{
               "reservable":false
            }
         },
         "services":[
            {
               "departureCountry":{
                  "id":"5",
                  "name":"TURKEY",
                  "internationalCode":"TUR"
               },
               "departureCity":{
                  "name":"ANTALYA",
                  "id":"1234"
               },
               "arrivalCountry":{
                  "id":"5",
                  "name":"TURKEY",
                  "internationalCode":"TUR"
               },
               "arrivalCity":{
                  "name":"ANTALYA",
                  "id":"1234"
               },
               "serviceDetails":{

               },
               "isMainService":false,
               "isRefundable":false,
               "bundle":true,
               "cancellationPolicies":[

               ],
               "documents":[

               ],
               "productType":2,
               "id":"1",
               "code":"ADAM",
               "name":"ADAM AND EVE (PXM4)",
               "beginDate":"2021-04-20T00:00:00",
               "endDate":"2021-04-21T00:00:00",
               "adult":1,
               "child":0,
               "infant":0,
               "price":{
                  "amount":61.38,
                  "currency":"EUR"
               },
               "includePackage":true,
               "compulsory":false,
               "isExtraService":false,
               "supplier":"HOTEL",
               "provider":0,
               "travellers":[
                  "1"
               ],
               "thirdPartyRecord":false
            }
         ],
         "paymentDetail":{
            "paymentPlan":[

            ]
         }
      }
   }
}

AddServices Method

Last Update Date: 14.10.2020
Method Adress /api/bookingservice/addservices
Method Type POST
Token Required YES

Request Sample

{
 "transactionId": "6c0f93d5-983f-4768-ac8f-4049819a3884",
 "Culture": "en-US",
 "offers": [
    {
     "offerId": "abcabcabcabcabc",
     "travellers": [
       1,
       2
     ]
   }
 ]
}

Response Sample

{
   "header":{
      "requestId":"74b43ecb-e8b2-4084-9718-b6a8444b165f",
      "success":true,
      "messages":[
         {
            "id":10000000,
            "code":"OperationCompleted",
            "messageType":2,
            "message":"Operation was completed successfully"
         }
      ]
   },
   "body":{
      "transactionId":"c652b7b9-cf4b-4a29-a63f-799f840d5c59",
      "expiresOn":"2021-04-04T02:35:16.127",
      "reservationData":{
         "travellers":[
            {
               "travellerId":"1",
               "type":1,
               "title":1,
               "availableTitles":[
                  {
                     "id":"1",
                     "name":"Mr"
                  },
                  {
                     "id":"2",
                     "name":"Ms"
                  },
                  {
                     "id":"3",
                     "name":"Mrs"
                  },
                  {
                     "id":"4",
                     "name":"Miss"
                  }
               ],
               "name":"",
               "surname":"",
               "isLeader":true,
               "birthDate":"0001-01-01T00:00:00",
               "age":0,
               "nationality":{
                  "twoLetterCode":""
               },
               "identityNumber":"",
               "passportInfo":{
                  "serial":"",
                  "number":"",
                  "expireDate":"0001-01-01T00:00:00",
                  "issueDate":"0001-01-01T00:00:00",
                  "issueCountryCode":""
               },
               "address":{
                  "phone":"",
                  "email":"",
                  "address":"",
                  "zipCode":"",
                  "city":{
                     "id":"",
                     "name":""
                  },
                  "country":{
                     "id":"",
                     "name":""
                  }
               },
               "services":[
                  {
                     "type":2,
                     "id":"1"
                  }
               ],
               "orderNumber":1
            }
         ],
         "reservationInfo":{
            "agency":{
          "code": "B2B",
          "name": "B2B Agency",
          "address": {
            "country": {
              "internationalCode": "CAN",
              "name": "Kanada",
              "provider": 0,
              "id": "3608"
            },
            "city": {
              "name": "Germansen",
              "provider": 0,
              "id": "19068"
            },
            "addressLines": [
              "Akdeniz Üniversitesi Teknokent Arge 1 Binası"
            ],
            "zipCode": "07200",
            "email": "begul.guner@santsg.com",
            "phone": "+90 850 777 07 29",
            "address": "Akdeniz Üniversitesi Teknokent Arge 1 Binası"
          }
        },
            "agencyUser":{
          "name": "B2B User",
          "code": "B2B"
        },
            "beginDate":"2021-04-20T00:00:00",
            "endDate":"2021-04-21T00:00:00",
            "note":"",
            "salePrice":{
               "amount":61.38,
               "currency":"EUR"
            },
            "supplementDiscount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "passengerEB":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyEB":{
               "amount":0.00,
               "currency":"EUR"
            },
            "passengerAmountToPay":{
               "amount":61.38,
               "currency":"EUR"
            },
            "agencyAmountToPay":{
               "amount":57.08,
               "currency":"EUR"
            },
            "discount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyBalance":{
               "amount":57.08,
               "currency":"EUR"
            },
            "passengerBalance":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyCommission":{
               "amount":4.30,
               "currency":"EUR"
            },
            "promotionAmount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "priceToPay":{
               "amount":57.08,
               "currency":"EUR"
            },
            "reservationStatus":9,
            "confirmationStatus":0,
            "paymentStatus":2,
            "documents":[

            ],
            "reservableInfo":{
               "reservable":false
            }
         },
         "services":[
            {
               "departureCountry":{
                  "id":"5",
                  "name":"TURKEY",
                  "internationalCode":"TUR"
               },
               "departureCity":{
                  "name":"ANTALYA",
                  "id":"1234"
               },
               "arrivalCountry":{
                  "id":"5",
                  "name":"TURKEY",
                  "internationalCode":"TUR"
               },
               "arrivalCity":{
                  "name":"ANTALYA",
                  "id":"1234"
               },
               "serviceDetails":{

               },
               "isMainService":false,
               "isRefundable":false,
               "bundle":true,
               "cancellationPolicies":[

               ],
               "documents":[

               ],
               "productType":2,
               "id":"1",
               "code":"ADAM",
               "name":"ADAM AND EVE (PXM4)",
               "beginDate":"2021-04-20T00:00:00",
               "endDate":"2021-04-21T00:00:00",
               "adult":1,
               "child":0,
               "infant":0,
               "price":{
                  "amount":61.38,
                  "currency":"EUR"
               },
               "includePackage":true,
               "compulsory":false,
               "isExtraService":false,
               "supplier":"HOTEL",
               "provider":0,
               "travellers":[
                  "1"
               ],
               "thirdPartyRecord":false
            }
         ],
         "paymentDetail":{
            "paymentPlan":[

            ]
         }
      }
   }
}

SetReservationInfo Method

You can use the method SetReservationInfo to set and to update informations about reservations.

Last Update Date: 14.01.2020
Method Adress api/bookingservice/setreservationinfo
Method Type POST
Token Required YES

Request Sample

{
  "transactionId": "dda76baf-a598-4764-9afd-153dc5dd1f2f",
  "travellers": [
    {
      "travellerId": "1",
      "type": 1,
      "title": "1",
      "name": "Passanger first",
      "surname": "Passanger first",
      "isLeader": true,
      "birthDate": "1996-01-01",
      "HESCode":"123321",
      "nationality": {
        "twoLetterCode": "AL"
      },
      "identityNumber": "11111111111",
      "passportInfo": {
        "givenName": "",
        "serial": "",
        "number": "",
        "expireDate": "",
        "issueDate": ""
      },
      "address": {
        "contactPhone": {
          "countryCode": "90",
          "areaCode": "555",
          "phoneNumber": "5555555"
        },
        "phone": "905555555555",
        "email": "customet@test.com",
        "address": "test address",
        "zipCode": "07090",
        "city": {
          "name": "Antalya"
        },
        "country": {
          "name": "Turkey"
        }
      }
    }
  ],
  "reservationNote": "Reservation note",
  "agencyReservationNumber": "Agency reservation number text"
}

Response Sample

{
   "header":{
      "requestId":"7ef2599d-3754-4692-9d49-7246c7a0798f",
      "success":true,
      "messages":[
         {
            "id":10000000,
            "code":"OperationCompleted",
            "messageType":2,
            "message":"Operation was completed successfully"
         }
      ]
   },
   "body":{
      "transactionId":"c652b7b9-cf4b-4a29-a63f-799f840d5c59",
      "expiresOn":"2021-04-04T02:35:16.127",
      "reservationData":{
         "travellers":[
            {
               "travellerId":"1",
               "type":1,
               "title":1,
               "availableTitles":[
                  {
                     "id":"1",
                     "name":"Mr"
                  },
                  {
                     "id":"2",
                     "name":"Ms"
                  },
                  {
                     "id":"3",
                     "name":"Mrs"
                  },
                  {
                     "id":"4",
                     "name":"Miss"
                  }
               ],
               "name":"Passenger",
               "surname":"Test",
               "isLeader":true,
               "birthDate":"1987-07-20T00:00:00",
               "age":0,
               "nationality":{
                  "twoLetterCode":""
               },
               "identityNumber":"12345687950",
               "passportInfo":{
                  "serial":"",
                  "number":"",
                  "expireDate":"0001-01-01T00:00:00",
                  "issueDate":"0001-01-01T00:00:00",
                  "issueCountryCode":""
               },
               "address":{
                  "phone":"+905555555555",
                  "email":"customet@test.com",
                  "address":"test address",
                  "zipCode":"07090",
                  "city":{
                     "id":"",
                     "name":"Antalya"
                  },
                  "country":{
                     "id":"",
                     "name":"Turkey"
                  }
               },
               "services":[
                  {
                     "type":2,
                     "id":"1"
                  }
               ],
               "orderNumber":1
            }
         ],
         "customerInfo":{
            "isCompany":false,
            "title":1,
            "name":"Customer",
            "surname":"Test",
            "birthDate":"1984-05-17T00:00:00",
            "passportInfo":{

            },
            "address":{
               "phone":"+905555555555",
               "email":"customet@test.com",
               "address":"test address",
               "zipCode":"07090",
               "city":{
                  "name":"Antalya"
               },
               "country":{
                  "name":"Turkey"
               }
            },
            "taxInfo":{

            },
            "identityNumber":"12345687950"
         },
         "reservationInfo":{
            "agency":{
               "code":"B2B",
               "name":"B2B Agency",
               "address":{
                  "country":{
                     "internationalCode":"CAN",
                     "name":"Kanada",
                     "provider":0,
                     "id":"3608"
                  },
                  "city":{
                     "name":"Germansen",
                     "provider":0,
                     "id":"19068"
                  },
                  "addressLines":[
                     "Akdeniz Üniversitesi Teknokent Arge 1 Binası"
                  ],
                  "zipCode":"07200",
                  "email":"begul.guner@santsg.com",
                  "phone":"+90 850 777 07 29",
                  "address":"Akdeniz Üniversitesi Teknokent Arge 1 Binası"
               }
            },
            "agencyUser":{
               "name":"B2B User",
               "code":"B2B"
            },
            "beginDate":"2021-04-20T00:00:00",
            "endDate":"2021-04-21T00:00:00",
            "note":"",
            "salePrice":{
               "amount":61.38,
               "currency":"EUR"
            },
            "supplementDiscount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "passengerEB":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyEB":{
               "amount":0.00,
               "currency":"EUR"
            },
            "passengerAmountToPay":{
               "amount":61.38,
               "currency":"EUR"
            },
            "agencyAmountToPay":{
               "amount":57.08,
               "currency":"EUR"
            },
            "discount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyBalance":{
               "amount":57.08,
               "currency":"EUR"
            },
            "passengerBalance":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyCommission":{
               "amount":4.30,
               "currency":"EUR"
            },
            "promotionAmount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "priceToPay":{
               "amount":57.08,
               "currency":"EUR"
            },
            "reservationStatus":9,
            "confirmationStatus":0,
            "paymentStatus":2,
            "documents":[

            ],
            "reservableInfo":{
               "reservable":false
            }
         },
         "services":[
            {
               "note":"test note",
               "departureCountry":{
                  "id":"5",
                  "name":"TURKEY",
                  "internationalCode":"TUR"
               },
               "departureCity":{
                  "name":"ANTALYA",
                  "id":"1234"
               },
               "arrivalCountry":{
                  "id":"5",
                  "name":"TURKEY",
                  "internationalCode":"TUR"
               },
               "arrivalCity":{
                  "name":"ANTALYA",
                  "id":"1234"
               },
               "serviceDetails":{

               },
               "isMainService":false,
               "isRefundable":false,
               "bundle":true,
               "cancellationPolicies":[

               ],
               "documents":[

               ],
               "productType":2,
               "id":"1",
               "code":"ADAM",
               "name":"ADAM AND EVE (PXM4)",
               "beginDate":"2021-04-20T00:00:00",
               "endDate":"2021-04-21T00:00:00",
               "adult":1,
               "child":0,
               "infant":0,
               "price":{
                  "amount":61.38,
                  "currency":"EUR"
               },
               "includePackage":true,
               "compulsory":false,
               "isExtraService":false,
               "supplier":"HOTEL",
               "provider":0,
               "travellers":[
                  "1"
               ],
               "thirdPartyRecord":false
            }
         ],
         "paymentDetail":{
            "paymentPlan":[

            ]
         }
      }
   }
}

CommitTransaction Method

You can use the method CommitTransaction to complete transactions.

Last Update Date: 03.01.2020
Method Adress api/bookingservice/committransaction
Method Type POST
Token Required YES

Request Sample

{
  "TransactionId": "c652b7b9-cf4b-4a29-a63f-799f840d5c59"
}

Request Sample (With External Payment Integration Request Sample)

Click to reach the GetPaymentTypes method.

{
  "transactionId": "73cfa918-c606-4569-a1ed-ae7999f5c782",
  "PaymentInformation": {
    "AccountName": "SanTSG",
    "PaymentTypeId": 1,  // api/AgencyService/GetPaymentTypes
    "PaymentPrice": {  
      "Amount": 100,
      "Curreny": "EUR"
    },
    "InstallmentCount": "1",
    "Reference": "2da27310-34fe-4e81-b561-b90abaa21ad8",
    "PaymentToken": "2da27310-34fe-4e81-b561-b90abaa21ad8"
  }
}

Response Sample

{
   "header":{
      "requestId":"eb0edd1f-fc92-469f-96dd-8fafee663f0c",
      "success":true,
      "messages":[
         {
            "id":10000000,
            "code":"OperationCompleted",
            "messageType":2,
            "message":"Operation was completed successfully"
         }
      ]
   },
   "body":{
      "reservationNumber":"SB001079",
      "encryptedReservationNumber":"1ee8a963-9531-4db0-a252-01a83dc4071d",
      "transactionId":"c652b7b9-cf4b-4a29-a63f-799f840d5c59"
   }
}

GetReservationDetail Method

You can use the method GetReservationDetail to obtain reservation details.

Last Update Date: 22.02.2020
Method Adress api/bookingservice/getreservationdetail
Method Type POST
Token Required YES

Request Sample

{
  "ReservationNumber": "SB001079",
}

Response Sample

{
   "header":{
      "requestId":"c80bd65d-beb0-4306-a6b2-ba20b238a545",
      "success":true,
      "messages":[
         {
            "id":10000000,
            "code":"OperationCompleted",
            "messageType":2,
            "message":"Operation was completed successfully"
         }
      ]
   },
   "body":{
      "transactionId":"00000000-0000-0000-0000-000000000000",
      "expiresOn":"2021-04-03T14:46:04.9037886Z",
      "reservationData":{
         "travellers":[
            {
               "travellerId":"12469",
               "type":1,
               "title":1,
               "availableTitles":[
                  {
                     "id":"1",
                     "name":"Mr"
                  },
                  {
                     "id":"2",
                     "name":"Ms"
                  },
                  {
                     "id":"3",
                     "name":"Mrs"
                  },
                  {
                     "id":"4",
                     "name":"Miss"
                  }
               ],
               "name":"Passenger",
               "surname":"Test",
               "isLeader":true,
               "birthDate":"1987-07-20T00:00:00",
               "age":29,
               "nationality":{
                  "twoLetterCode":""
               },
               "identityNumber":"12345687950",
               "passportInfo":{
                  "serial":"",
                  "number":"",
                  "expireDate":"0001-01-01T00:00:00",
                  "issueDate":"0001-01-01T00:00:00",
                  "issueCountryCode":""
               },
               "address":{
                  "phone":"+905555555555",
                  "email":"customet@test.com",
                  "address":"test address",
                  "zipCode":"07090",
                  "city":{
                     "id":"",
                     "name":"Antalya"
                  },
                  "country":{
                     "id":"",
                     "name":"Turkey"
                  }
               },
               "services":[
                  {
                     "type":2,
                     "id":"12499"
                  }
               ],
               "orderNumber":1
            }
         ],
         "customerInfo":{
            "id":3845,
            "isCompany":false,
            "title":1,
            "name":"CUSTOMER",
            "surname":"TEST",
            "birthDate":"1984-05-17T00:00:00",
            "passportInfo":{

            },
            "address":{
               "phone":"+905555555555",
               "email":"customet@test.com",
               "address":"test address",
               "zipCode":"07090",
               "city":{
                  "name":"Antalya"
               },
               "country":{
                  "name":"Turkey"
               }
            },
            "taxInfo":{

            },
            "identityNumber":"12345687950"
         },
         "reservationInfo":{
            "bookingNumber":"SB001079",
            "encryptedBookingNumber":"1ee8a963-9531-4db0-a252-01a83dc4071d",
            "agency":"B2B",
            "agencyUser":"F",
            "beginDate":"2021-04-20T00:00:00",
            "endDate":"2021-04-21T00:00:00",
            "note":"",
            "salePrice":{
               "amount":61.38,
               "currency":"EUR"
            },
            "supplementDiscount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "passengerEB":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyEB":{
               "amount":0.00,
               "currency":"EUR"
            },
            "passengerAmountToPay":{
               "amount":61.38,
               "currency":"EUR"
            },
            "agencyAmountToPay":{
               "amount":57.08,
               "currency":"EUR"
            },
            "discount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyBalance":{
               "amount":-142.92,
               "currency":"EUR"
            },
            "passengerBalance":{
               "amount":0.00,
               "currency":"EUR"
            },
            "agencyCommission":{
               "amount":4.30,
               "currency":"EUR"
            },
            "promotionAmount":{
               "amount":0.00,
               "currency":"EUR"
            },
            "priceToPay":{
               "amount":-142.92,
               "currency":"EUR"
            },
            "reservationStatus":0,
            "confirmationStatus":0,
            "paymentStatus":5,
            "documents":[

            ],
            "reservableInfo":{
               "reservable":false
            }
         },
         "services":[
            {
               "note":"test note",
               "departureCountry":{
                  "id":"5",
                  "name":"TURKEY",
                  "internationalCode":"TUR"
               },
               "departureCity":{
                  "name":"ANTALYA",
                  "id":"1234"
               },
               "arrivalCountry":{
                  "id":"5",
                  "name":"TURKEY",
                  "internationalCode":"TUR"
               },
               "arrivalCity":{
                  "name":"ANTALYA",
                  "id":"1234"
               },
               "serviceDetails":{
                  "thumbnail":"/images/product/0/2/1/12499/adam_and_eve.jpg",
                  "night":1,
                  "room":"STANDARD ROOM EN-US",
                  "board":"3",
                  "accom":"SINGLE ROOM",
                  "star":"4",
                  "geoLocation":{
                     "longitude":"12.228884000",
                     "latitude":"45.478447000"
                  }
               },
               "partnerServiceId":"12499",
               "isMainService":true,
               "isRefundable":false,
               "bundle":true,
               "cancellationPolicies":[

               ],
               "documents":[

               ],
               "encryptedServiceNumber":"ce511304a95e4adeb31b923bfbc34166",
               "productType":2,
               "id":"12499",
               "code":"ADAM",
               "name":"ADAM AND EVE",
               "beginDate":"2021-04-20T00:00:00",
               "endDate":"2021-04-21T00:00:00",
               "adult":1,
               "child":0,
               "infant":0,
               "price":{
                  "amount":61.38,
                  "currency":"EUR"
               },
               "includePackage":true,
               "compulsory":false,
               "isExtraService":false,
               "supplier":"HOTEL",
               "provider":0,
               "travellers":[
                  "12469"
               ],
               "thirdPartyRecord":false
            }
         ],
         "paymentDetail":{
            "paymentPlan":[

            ],
            "paymentInfo":[
               {
                  "paymentTypeName":"EXT-BUN PAYTYPE",
                  "paymentDate":"2021-04-03T17:42:45.22",
                  "price":{
                     "percent":350.38542396636299929922915207,
                     "amount":200.00,
                     "currency":"EUR"
                  }
               }
            ]
         }
      }
   }
}

GetReservationList Method

You can use the method GetReservationList to obtain reservation details.

Last Update Date: 13.10.2020
Method Adress api/bookingservice/getreservationlist
Method Type POST
Token Required YES

Request Sample

{
  "culture": "en-US",
  "dateCriterias": [
    {
      "from": "2020-01-01",
      "to": "2030-12-31"
    }
  ]
}

Response Sample

{
   "header": {
    "requestId": "5adf6ce9-8bdf-4532-8073-0180eca5567e",
    "success": true,
    "responseTime": "2020-10-13T10:23:42.1500006Z",
    "messages": [
      {
        "id": 10000000,
        "code": "OperationCompleted",
        "messageType": 2,
        "message": "Operation was completed successfully"
      }
    ]
  },
   "body": {
    "reservations": [
      {
        "reservationNumber": "PX277881",
        "encryptedReservationNumber": "dbcbd5af-3ae6-4476-b205-49b5eb00101a",
        "beginDate": "2020-10-16T00:00:00",
        "endDate": "2020-10-17T00:00:00",
        "night": 1,
        "leaderName": "KONTER GÜÇLÜ",
        "agency": "PAXIMUM MUNFERIT SATIS ACENTASI",
        "adult": 1,
        "child": 0,
        "registerDate": "2020-10-13T10:52:00",
        "reservationStatus": 0,
        "confirmationStatus": 1,
        "paymentStatus": 2,
        "salePrice": {
          "amount": 220,
          "currency": "TRY"
        },
        "departureCity": {
          "name": "ISTANBUL",
          "provider": 0,
          "isTopRegion": false,
          "id": "6"
        },
        "arrivalCity": {
          "name": "ISTANBUL",
          "provider": 0,
          "isTopRegion": false,
          "id": "6"
        },
        "reservationNote": "",
        "readByOperator": true,
        "readByOperatorUser": "",
        "serviceTypes": "TRANSFER",
        "newComment": false,
        "agencyPayment": 0,
        "discount": 0,
        "agencyCommission": 0,
        "agencyDiscountCommission": 0,
        "agencyEarlyBooking": 0,
        "agencyAmountToPay": 220,
        "passengerAmountToPay": 220,
        "passengerEarlyBooking": 0,
        "passengerBonus": 0,
        "usedPassengerBonus": 0,
        "agencyBonus": 0,
        "usedAgencyBonus": 0,
        "userBonus": 0,
        "usedUserBonus": 0,
        "paymentPlan": [
          {
            "paymentNo": 1,
            "dueDate": "2020-10-13T00:00:00",
            "price": {
              "percent": 100,
              "amount": 220,
              "currency": "TRY"
            },
            "paymentStatus": false
          }
        ],
        "documents": [
          {
            "documentType": 1,
            "url": "/documents/1/13/1/dbcbd5af-3ae6-4476-b205-49b5eb00101a/0",
            "isDefault": false,
            "proforma": false
          }
        ],
        "agencyReservationNumber": "",
        "ticketNos": "",
        "services": [
          {
            "code": "TRF",
            "name": "TRANSFER",
            "productType": 5,
            "serviceType": "TRANSFER",
            "supplier": "PXMS503",
            "supplierName": "VIP FC - PAXDRIVE",
            "sendSupplier": "W",
            "statConf": 1
          }
        ],
        "hasMessageHistory": false,
        "invoiceStatus": 2,
        "rowNumber": 1,
        "ownSupplier": false,
        "createDate": "2020-10-13T10:53:33.717",
        "confirmationDate": "2020-10-13T10:54:00"
      },
      {
        "reservationNumber": "PX277324",
        "encryptedReservationNumber": "d62fcce7-631f-493b-a874-aa7152369652",
        "beginDate": "2020-10-09T00:00:00",
        "endDate": "2020-10-09T00:00:00",
        "night": 0,
        "leaderName": "TURK MUSTAFA",
        "agency": "PAXIMUM MUNFERIT SATIS ACENTASI",
        "agencyUser": "PAXIMUM MT/ET",
        "adult": 1,
        "child": 0,
        "registerDate": "2020-10-09T17:40:35",
        "reservationStatus": 0,
        "confirmationStatus": 1,
        "paymentStatus": 2,
        "salePrice": {
          "amount": 298.99,
          "currency": "TRY"
        },
        "departureCity": {
          "name": "ISTANBUL",
          "provider": 0,
          "isTopRegion": false,
          "id": "6"
        },
        "arrivalCity": {
          "name": "Antalya",
          "provider": 0,
          "isTopRegion": false,
          "id": "733"
        },
        "reservationNote": "",
        "readByOperator": false,
        "serviceTypes": "FLIGHT",
        "newComment": false,
        "agencyPayment": 0,
        "discount": 0,
        "agencyCommission": 0,
        "agencyDiscountCommission": 0,
        "agencyEarlyBooking": 0,
        "agencyAmountToPay": 298.99,
        "passengerAmountToPay": 298.99,
        "passengerEarlyBooking": 0,
        "passengerBonus": 0,
        "usedPassengerBonus": 0,
        "agencyBonus": 0,
        "usedAgencyBonus": 0,
        "userBonus": 0,
        "usedUserBonus": 0,
        "paymentPlan": [
          {
            "paymentNo": 1,
            "dueDate": "2020-10-09T00:00:00",
            "price": {
              "percent": 100,
              "amount": 298.99,
              "currency": "TRY"
            },
            "paymentStatus": false
          }
        ],
        "documents": [
          {
            "documentType": 1,
            "url": "/documents/1/13/1/d62fcce7-631f-493b-a874-aa7152369652/0",
            "isDefault": false,
            "proforma": false
          }
        ],
        "pnrNo": "UC5WRC",
        "ticketNos": "2352419502755",
        "services": [
          {
            "code": "TK7540",
            "name": "TK7540",
            "productType": 3,
            "serviceType": "FLIGHT",
            "supplier": "PXMTK",
            "supplierName": "PAXIMUM THY",
            "statConf": 1
          }
        ],
        "hasMessageHistory": false,
        "invoiceStatus": 2,
        "rowNumber": 2,
        "ownSupplier": false,
        "createDate": "2020-10-09T17:38:35",
        "confirmationDate": "2020-10-09T17:41:42.397"
      }
    ],
    "totalCount": 200,
    "maxIndexNumber": 200,
    "minIndexNumber": 1
  }
}