All about auditting Seller transactions at TravelgateX
How can I obtain the Seller transactions of my request?🔎
By adding the "auditTransactions" field to your queries and mutations you will be able to obtain, packed in the response, TravelgateX transactions with the Seller (both the raw request and response).
Application and recommendations on the "auditTransactions" field💡
Even though it is a great feature to add to all your Booking Flow and Booking Management methods, make sure you follow the recommendations below:
- Search: Make sure you don't set the "auditTransactions" value to "true" by default, otherwise the responses will be too heavy and it will affect the API performance.
- Other methods: You can set it to "true" in order to receive the raw request and response to the Seller and, if an error is returned, know where it is coming from.
Exception: If you encounter an error, you have the option to temporarily set the "auditTransactions" value to "true" in Search. This will provide you with additional information regarding the Seller's response.
How can I set the "auditTransactions" field in my Hotel-X Buyers request?🚀
Hotel-X Query

query ($criteriaSearch: HotelCriteriaSearchInput, $settings: HotelSettingsInput, $filterSearch: HotelXFilterSearchInput) {
hotelX {
search (criteria: $criteriaSearch, settings: $settings, filterSearch: $filterSearch) {
auditData{
transactions{
request
response
}
},
context
options {
...
Hotel-X Query variables
...
"settings": {
"timeout": 24700,
"context": "contextCode",
"client": "clientName",
"testMode": false,
"auditTransactions": true
},
...
⚠️Please note that in order to receive the transactions with the Seller the auditTransactions information should be declared both in your Query and Query variables, otherwise, these transactions won't be returned.
How can I set the "registerTransactions" field in my Hotel Buyers API (Legacy) request?🚀
In order to set the "registerTransactions" field in your Legacy methods, you should add the filterAuditData information (registerTransactions) into your main method request:
Method request:

Method response:
