Obtains an OAuth 2.0 access token via the Client Credentials flow.
The returned token must be included as `Authorization: Bearer {token}` in all subsequent requests.
**URLs do Token por ambiente:**
| Ambiente | URL |
|----------|-----|
| SBX | `https://api-sbx.pre.globalgetnet.com/authentication/oauth2/-core/access_token` |
| UAT | `https://api.pre.globalgetnet.com/authentication/oauth2/-core/access_token` |
| PROD | `https://api.globalgetnet.com/authentication/oauth2/-core/access_token` |
**Escopo:** `digital-plataform:gateway-api` — Acesso completo (leitura/escrita) à Payment Link API.
Body application/x-www-form-urlencoded
grant_type"client_credentials"required
OAuth 2.0 grant type
client_idstringrequired
Client identifier
client_secretstringrequired
Client secret
scopestringrequired
API access scope
Response
Token obtained successfully
access_tokenstring
JWT access token
token_typestring
Token type
expires_ininteger
Expiration time in seconds
scopestring
Granted scope
Invalid request
error_codestring
messagestring
status_codeinteger
Invalid credentials
error_codestring
messagestring
status_codeinteger
Português › Documentação › Referência da API › Pagamentos › Payment Link API › Autenticação