Breadcrumb
- SynXis Booking Engine SSO
- Custom OAuth
- Examples
Examples
SynXis Login API
1. Choose the type of Profile
UserType: [Guest, Booker]
2. Choose the type of Profile Id that will be used
IDContext: [CRM (Preferred), CRS, PMS]
3. Call the API and grab the access_token from the response
REQUEST
---------------------------------------------------------------------------------------------
{
"ChainId": "11111",
"IDContext": "CRM",
"ProfileID": "CU78877656",
"UserType": "Guest"
}
RESPONSE
---------------------------------------------------------------------------------------------
{
"access_token": "T1RLAQILIvCvBsWa1PW255wMw9DaSWOrRrnZtE8I0OfBeoLGABALg9EXsPLgATMZTG/2l6o9AAEQNOQUkMt379fLEy1j+7EgTDo2ZJbQmxxQbICik86RftNztXPmyyOyGeTVFMFdeV1UUdF7jvzTFANOsfrmbcMKqhkrMbGgTRNeK0wpRaz4ucz6WuDwkXRDwZ/v1r//sWwG3kUeEOJ/XDPEatmiQCvXUithMme8f5GroO8y/q4OR4wO6iBD2f/Td9k+zR2+TEVdqo15VzhU6hHnmJZvMqfjdsO4eRfFYWWgBrt5Ea8pcDv3/Yhd2fVSKf562C+CTItL4kn+cKU0PSwMy2yz+IZaeK5VDE/17TIkcy0u3cMcAsHXt/uegOsnjImgs4zNU/U09GgxoOmY8T691vpIP7HT9VwQN17g5GdiE/ZHJ73RtpQ*",
"IdentityType": "Guest",
"ProfileID": "CU78877656"
}
4. Pass the access_token as "session" in the POST to the SynXis Booking Engine.
<FORM action="https://be.synxis.com/" method="POST">
<INPUT name="session" type="text" value="T1RLAQILIvCvBsWa1PW255wMw9DaSWOrRrnZtE8I0OfBeoLGABALg9EXsPLgATMZTG/2l6o9AAEQNOQUkMt379fLEy1j+7EgTDo2ZJbQmxxQbICik86RftNztXPmyyOyGeTVFMFdeV1UUdF7jvzTFANOsfrmbcMKqhkrMbGgTRNeK0wpRaz4ucz6WuDwkXRDwZ/v1r//sWwG3kUeEOJ/XDPEatmiQCvXUithMme8f5GroO8y/q4OR4wO6iBD2f/Td9k+zR2+TEVdqo15VzhU6hHnmJZvMqfjdsO4eRfFYWWgBrt5Ea8pcDv3/Yhd2fVSKf562C+CTItL4kn+cKU0PSwMy2yz+IZaeK5VDE/17TIkcy0u3cMcAsHXt/uegOsnjImgs4zNU/U09GgxoOmY8T691vpIP7HT9VwQN17g5GdiE/ZHJ73RtpQ*">
<INPUT name="chain" type="text" value="11111">
<INPUT name="hotel" type="text" value="23456">
</FORM>