The error when trying to send request to endpoint v1/paypal_hermes/setup_billing_agreement

Shayza
Contributor
Contributor

Hello,
I get the following error when a request is sent to endpoint paypal_hermes/setup_billing_agreement using the sandbox.

{
"error": {
"errorName": "BUSINESS_ERROR",
"errorMessage": "Business error --- UNAUTHORISED ACCESS:Authorization failed due to insufficient permissions. Invalid Scopes",
"errorDetails": [
{
"name": "UNAUTHORISED ACCESS",
"message": "Authorization failed due to insufficient permissions. Invalid Scopes"
}
],
"debugId": "5556b88fe3f94",
"paypalHttpStatus": 403
}
}

Login to Me Too
6 REPLIES 6

MTS_Jennifer
Moderator
Moderator

Hello @Shayza ,

Thank you for posting to the PayPal Merchant Sandbox Community. I have added the future payment scopes to your sandbox rest api app. You should now be able to process Reference Transactions.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

Shayza
Contributor
Contributor

Hi,

Thanks for your help,
Can you please describe to me exactly what needs to be updated? because I have another sandbox account to update.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @Shayza 

Thank you for your contribution to this post. If you are using v1 billing agreements, we need to add the future payments scope to your sandbox app. If you provide the merchant id for the sandbox account or the debug id for the error message, we can add the scopes for you.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

poulpo
Contributor
Contributor

Hello, we have the same problem on our Paypal sandbox account.
Thanks for your help

Login to Me Too

lapostdev
Contributor
Contributor

Hi, we have the same problem and the debug id is 496f12f2a5434. Please add the future payments scope to our sandbox app. Thanks in advance for your help.

Login to Me Too

acarvajal09
Contributor
Contributor

@MTS_Jennifer 

https://api.sandbox.braintreegateway.com/merchants/wyhxjkgmzkdd92gw/client_api/v1/paypal_hermes/setu...

 

 

{
    "error": {
        "errorName": "BUSINESS_ERROR",
        "errorMessage": "Business error --- UNAUTHORISED ACCESS:Authorization failed due to insufficient permissions. Invalid Scopes",
        "errorDetails": [
            {
                "name": "UNAUTHORISED ACCESS",
                "message": "Authorization failed due to insufficient permissions. Invalid Scopes"
            }
        ],
        "debugId": "433137b6b5a74",
        "paypalHttpStatus": 403
    

 

 

 

Any chance you can help me here?

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.