Based on Sabre documentation i need to encode with Base64 the clientId:password. I did it and put it like per documentation:
Authorization: Basic valueBase64Encoded
But always gets an error
{"error":"invalid_client","error_description":"Credentials are missing or the syntax is not correct"}
I believe i put values correct in Base64 from my account in Sabre with seperate colon.
clientId:password
Also, three x-www-form-urlencoded values are attached to POST : grant_type, username, password
Where is my mistake? Or what should i do here? Thanks for a help
You have to encode your clientId and your password first. Follow this steps:
V1:{yourUsername}:{yourPCC}:AAThe result of the third step should be your encode string
The body
grant_type=client_credentialsis correct