...
The information stored within the system's database can be exported to external web sites, applications, accounting or CRM-systems, and external software.
To configure the export of information via API:
On the API tab, select the Export data to external applications check box.
After you select the check box, the symbol appears. Click it to expand the Export configurations form.
...
3. In the Export configurations form, fill in the required data:
...
If needed, you can specify several external applications. Click and repeat the procedure.
...
Example of Reservation Export:
It is possible to send request POST /order to the external system in 2 formats:
XML
JSON action ORDERmethod: POST to url: https://b2c-next.softwaretr
http://avel.net/gptp/public/export/order
{
"order":
{
"orderId":9413,
"title":"",
"created":"2022-11-15T10:14:09+02:00",
"modified":"2022-11-15T10:14:24.900+02:00",
"status":"IN_PROGRESS",
"agent":{
"id":1716351,
"prefix":"Mr",
"firstName":"Hanz",
"lastName":"Mueller"
},
"manager":{
"id":1716351,
"prefix":"Mr",
"firstName":"Hanz",
"lastName":"Mueller"
},
"agentCompanyId":1711626,
"clientId":5923157,
"clientType":"DirectSales",
"clientCompanyName":"",
"clientPerson":{
"id":5923157,
"prefix":"Mr",
"firstName":"Tom",
"lastName":"Boris"
},
"active":true,
"customerPaymentStatus":"NO_BILL",
"supplierPaymentStatus":"NO_BILL",
"serviceTable":{
"lines":{
"serviceId":1005138,
"serviceType":"accommodation",
"created":"2022-11-15T10:14:22.778+02:00",
"modified":"2022-11-15T10:14:23.512+02:00",
"status":"CONFIRMATION_PENDING",
"paymentMethodId":3842036,
"supplierId":2051972,
"supplierCompanyName":"Sultan Sands",
"supplierCode":"company.2051972",
"parentTO1Id":1711626,
"refNum":"",
"startDateTime":"2022-12-13T12:00:00+02:00",
"endDateTime":"2022-12-14T12:00:00+02:00",
"serviceGroupId":0,
"travelers":{
"travelerId":5923158,
"isTourLead":true,
"travelerType":"Adult",
"isChild":false,
"citizenshipId":6880,
"citizenshipName":"Germany",
"prefix":"Mr",
"name":{
"firstName":"Tom",
"middleName":"",
"lastName":"Boris",
"sentToSupplier":true
},
"mealType":"Half Board",
"onExtraBed":false,
"onWithoutPlace":false
},
"salesTerms":[
{
"type":"SUPPLIER",
"price":{
"currency":"EUR",
"amount":"90.00",
"commission":0,
"amountDue":"90.00"
},
"priceBreakDowns":{"date":"2022-12-13",
"weekDayNumber":2,
"weekDayName":"Tuesday",
"price":{
"currency":"EUR",
"amount":90
}
}
},
{
"type":"CLIENT",
"price":{
"currency":"EUR",
"amount":"90.00",
"commission":0,
"amountDue":"90.00",
"serviceFee":"0.00"
},
"priceBreakDowns":{
"date":"2022-12-13",
"weekDayNumber":2,
"weekDayName":"Tuesday",
"price":{
"currency":"EUR",
"amount":90,
"serviceFeeAmount":0
}
}
}
],
"modificationAllowed":false,
"cancellationAllowed":false,
"violation":false,
"serviceDetails":{
"@type":"serviceDetailsAccommodation",
"hotelId":8382794,
"hotelCode":"SUL",
"hotelName":"Sultan Sands",
"countryId":26447,
"countryName":"Tanzania",
"cityId":145428,
"cityCode":145428,
"cityName":"Zanzibar",
"addressLine":"Kiwengwa Beach, Zanzibar, 00000, Tanzania",
"category":4,
"checkInFrom":"12:00",
"checkOutTo":"12:00",
"visaServiceSupportStatus":"UNSUPPORTED",
"rooms":{
"roomId":5923160,
"roomTypeCode":"Other",
"roomTypeName":"Baobab Room",
"mealTypeCode":"(HB) HALF BOARD",
"mealTypeName":"Half Board",
"travelerIds":{
"travelerId":5923158
},
"onExtraBed":false,
"onWithoutPlace":false
},
"ownAccommodationInfo":{
"serviceId":5868363,
"tariffId":5868398,
"tariffName":"Standard",
"mealTypeId":5868367,
"categoryId":5868360,
"categoryName":"Standard"
},
"cardGuarantee":false
},
"taxesAndFeesIncluded":false,
"customerPaymentStatus":"NO_BILL",
"supplierPaymentStatus":"NO_BILL"
}
}
}
}