How do I use Identity API with my REST API app to obtain customer information?
To enable the Identity API in your REST app, first integrate Log in with PayPal and set a redirect URL for the PayPal Identity API. After you’ve added a Log in with PayPal button, call the Show user profile information method with the desired parameters to obtain the customer information.
We recommend asking your users to share only the minimum amount of information you need. The fewer permissions you request, the more likely your users will grant them. For a complete integration guide, visit our documentation.