Autentification
In the old API, a TOKEN is provided to the provider and it uses it always adds in the header of all requests.
In the current API, a login request is required to obtain the TOKEN, which must then be added in the header of the rest of the requests.
The token expires at 24 hours and two methods are recommended to refresh it:
Refresh when receiving a 401,
Use check and token-refresh methods
GET ahttps://backend.fideltour.com/api/3rd-party/contacts/
GET ahttps://app.hoteldatahub.io/api/v1/contacts/
Post ahttps://backend.fideltour.com/api/3rd-party/contacts/
Post ahttps://app.hoteldatahub.io/api/v1/contacts/
PATCH ahttps://backend.fideltour.com/api/3rd-party/contacts/
PATCH ahttps://app.hoteldatahub.io/api/v1/contacts/1234566/
The attribute "hc" should no longer be sent.
The attributes "first_name" and "last_name" have been replaced by "name" and "surname", respectively.
When performing a PATCH, it is necessary to include the contact ID in the url and it is not necessary to send your email in the body.
GET ahttps://backend.fideltour.com/api/3rd-party/bookings/
GET ahttps://app.hoteldatahub.io/api/v1/entries/
Post ahttps://backend.fideltour.com/api/3rd-party/bookings/
Post ahttps://app.hoteldatahub.io/api/v1/entries/
PATCH ahttps://backend.fideltour.com/api/3rd-party/bookings/123455/
PATCH ahttps://app.hoteldatahub.io/api/v1/entries/123455/
The attribute "hc" has been replaced by "hotel_chain".
When creating a reservation, the contact attribute is mandatory, where the ID of the linked contact is sent.
The attributes "checkin" and "checkout" have been replaced by "entrance" and "departure", respectively.
In the "hotel" attribute must send the hotel ID(integer) provided by Fideltour.
The attributes "contact_first_name", "contact_last_name", "contact_email" and "contact_phone" are no longer used.
The following new attributes are added: "is_checkin_realized", "is_checkout_realized", "sub_status", "juniors", "room_number", "notes", "fare_type", "offer", "event_type", "package" and "category"