REST api don't send account_type attribute

Mischer86
Contributor
Contributor

Hi, dear community. I have registered a new app in paypal sendbox and give permission to get account_type
Screen Shot 2018-11-14 at 12.25.02.png

I do the next curl request

curl -v -X GET https://api.sandbox.paypal.com/v1/oauth2/token/userinfo?schema=openid \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {my_access_token}"

And I don't receive any account attributes in response:
The fields that I have received:

{
    "user_id": "https://www.paypal.com/webapps/auth/identity/user/i-78126398172639182kjhgadkgdsk",
    "name": "Ivan Ivanov",
    "middle_name": "",
    "email": "mi****@gmail.com",
    "verified": "false",
    "birthday": "11111111",
    "locale": "en_US",
    "payer_id": "5555ddddd",
    "address": {
        "postal_code": "111111",
        "country": "US",
        "state": "AL",
        "street1": "NNNN",
        "street2": "",
        "city": "NNN"
    },
    "language": "en_US",
    "verified_account": "false",
    "birthdate": "1111111",
    "email_verified": "false"
}

What I do wrong? Or paypal REST sdk has some issue with it?

Thanks

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.