I can get access token with POSTMAN call by passing below parameters,
POST URL : https://api.sandbox.paypal.com/v1/oauth2/token
Authorization Type : Basic Auth
Username : MY_CLIENT_ID
Password : MY_SECRET
Headers Content-Type : application/x-www-form-urlencoded
Body grant_type : client_credentials
Please let me know, how can I set above details in REST TEMPLATE call in spring boot to get access token