OAuth2
Request authorization token
Requests an OAuth2 authorization token for a merchant using client credentials. The token starts as PENDING until the merchant grants authorization. If an existing GRANTED authorization exists but the token credential has expired, a new credential is generated automatically without requiring merchant re-consent.
post/oauth2/tokens
Request
- Base URL: https://api.payware.eu
- URL: https://api.payware.eu/oauth2/tokens
- Auth: HTTP bearer
Request body
Example request
{
"grantType": "client_credentials",
"clientId": "PZAYNMVE",
"clientSecret": "YVlQMkxOdXQ0Y2RDQUdaYk5GQVA3VkpqMmxlQ0x1Z20="
}Response
Token created or already exists
Example response
{
"clientId": "PZAYNMVE",
"accessToken": "aYP2LNut4cdCAGZbNFAP7VJj2leCLugm",
"tokenType": "bearer",
"expiresIn": 15552000,
"scope": "resource-server-read resource-server-write"
}Changes
No recorded changes to this operation across all 1 revision of this API.