The creation and deletion of the credentials required for OAuth 2.0 token generation are available in the Developer section of the Merchant Portal for each environment.
Important: When a credential is created, the client_secret is displayed only once. The merchant is responsible for storing this value securely.
curl --location --request POST 'https://api.v2.stg.paypaga.com/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=[YouClientID]' \
--data-urlencode 'client_secret=[YouClientSecret]'{
"access_token": "xxxxx.yyyyy.zzzzz",
"expires_in": 300,
"token_type": "Bearer"
}