Authorization: BearerPOST {{uatAPI}}/oauth/tokenapplication/x-www-form-urlencoded{{uatAPI}} — Base URL for the UAT API host{{issuerTIN}} — OAuth client id (VAT number / TIN){{apiKey}} — OAuth client secret (API key)| Field | Value | Required | Notes |
|---|---|---|---|
grant_type | client_credentials | Yes | Must be exactly client_credentials |
client_id | {{issuerTIN}} | Yes | Client identifier (TIN) |
client_secret | {{apiKey}} | Yes | Client secret (API key) |
access_token — Token to use in Authorization: Bearer ...token_type — Usually Bearerexpires_in — Token lifetime in secondsrefresh_token — Refresh token{
"error": "invalid_request",
"error_description": "Invalid credentials"
}
client_id / client_secret is wrong, or{{uatAPI}} environment.Bearer ) requests:Authorization: Bearer {{oauthAccessToken}}POST {{uatAPI}}/oauth/token) supports refresh, use the refresh-token request (grant_type refresh_token) to obtain a new access token.