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=20260211-0758-41ab-a573-1572d7bf4042' \
--data-urlencode 'client_secret=PQIw1TLSapWWlLN7LgA1iLsO9ZkcAxLd'{
"access_token": "xxxxx.yyyyy.zzzzz",
"expires_in": 300,
"token_type": "Bearer"
}