Payout API return 403 error message REQUIRED_SCOPE_MISSING

michael81
Contributor
Contributor

Whenever i make request to payout api it return with an error

{"name":"REQUIRED_SCOPE_MISSING","message":"Access token does not have required scope.","information_link":"https://developer.paypal.com/docs/api/payments.payouts-batch/#errors"}

Please find paypal debug id: ee68f9fcc3b72

 

Where as i've access to that particular api (payments/*), as mention in below response while asking for auth token

{"scope":"https://uri.paypal.com/services/subscriptions https://api.paypal.com/v1/payments/.* https://api.paypal.com/v1/vault/credit-card openid https://api.paypal.com/v1/vault/credit-card/.*","nonce":"2017-10-09T15:11:34ZrOVAhzR0DOlRahKek1cOqNPcH79dalGu2dDfLu-4znk","access_token":"A21AAGdVxjYtvr70kr-LmG-75XqeK1kO3JdGVh6ddCxBV5bVlU2prdW6cmxFJ2wZOuzapvvHkrB8EzcEiDb9YXnveB0nGvwVw","token_type":"Bearer","app_id":"APP-80W284485P519543T","expires_in":32399}

I've tried this on sandbox and live account both but failed everytime.

 

I've verified and double check the following, please let me know if i'm missing anything else.

  1. I whitelisted my account via customer service where it says only whitelisted account may use Mass Payments.
  2. Payouts is enabled in my developer dashboard application portal (double verified)
  3. Payouts is enabled on both sandbox and live on this page (https://developer.paypal.com/developer/accountStatus/)

 

P.S: I've tried MassPayment API as well, it was working on sandbox but not on live environment. But i want to use Payout API since MassPayment is deprecated.

 

Thanks.

Login to Me Too
1 REPLY 1

MTS_Andre
Moderator
Moderator

Hi, checking the debugID looks like your request is not passing the payouts scope, that would be required for payouts API. Try to pass in your request for the access token the scope: https://uri.paypal.com/payments/payouts

Here what I see:

"scopes":[

"https://uri.paypal.com/services/subscriptions",

"https://api.paypal.com/v1/payments/.*",

"https://api.paypal.com/v1/vault/credit-card",

"openid","https://api.paypal.com/v1/vault/credit-card/.*"]

Login to Me Too

Haven't Found your Answer?

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