Introduction
The LATAM Pass Authentication PNA API is the way through which our partners obtain the access token necessary to technically interact with all the program's APIs.
Request
Header
Authorization: fixedBasicfollowed by space and the base64 encode calculated using the value obtained from the Dev Tools > My Apps > Client ID / Client Secret menudata-urlencode: fixedgrant_type=client_credentialsclient_id: value obtained from the Dev Tools > My Apps > Client ID menu and mandatory in all requestsx-latam-test: fixedLatamPass, to be used in the test environment only, which means, it must not be used in the production environment
Response
If the request is successful, a access_tokent will be returned that expires in 60 minutes. After this time, the access token will be automatically invalidated, it will no longer be possible to make requests with it and a new one will need to be generated.
Most common errors
Invalid client_id
Invalid Client Secret
Invalid Grant Type
Request blocked by WAF - Web Application Firewall
Technical documentation
Click here to access it.