The error when trying to send request to endpoint v1/paypal_hermes/setup_billing_agreement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
{
"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?

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- where does paypal payments go to if there is no linked phone or email to the seller ? in PayPal Payments Standard
- My PayPal is not allowing me to receive or send requests. in PayPal Payments Standard
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- p is not a function error using the example downloaded from Paypal in SDKs
- How do you create subscriptions with PayPal Advanced Checkout? in SDKs