PERMISSION_DENIED | Billing Subscriptions | LIVE API

Gisho_P
Contributor
Contributor

Hello!

I'm trying to make an api call on LIVE to

`${PAYPAL_API_URL}/v1/billing/subscriptions/${subscriptionId}`

But I get:
{"name":"NOT_AUTHORIZED","message":"Authorization failed due to insufficient permissions.","debug_id":"229915650ec06","details":[{"issue":"PERMISSION_DENIED","description":"You do not have permission to access or perform operations on this resource."}],"links":[{"href":"https://developer.paypal.com/docs/api/v1/billing/subscriptions#NOT_AUTHORIZED","rel":"information_link","method":"GET"}]}

This is under a user in a business account. I've gone back and forth with the owner of the paypal account to get permissions and we've tried everything but the issue seems to persists.

It works well in Sandbox, but only this api call fails on live mode.
Note: I'm making other calls that all work fine and I have updated to the live keys.

If anyone has any insight on how to fix this, would be greatly appreciated as it's blocking our feature from going live.

Thanks,
Gisho

Login to Me Too
1 REPLY 1

MTS_John
Moderator
Moderator

Hi @Gisho_P,

 

Thank you for posting to the PayPal Merchant Community.

 

The HTTP 403 error relates to permission issues, but your account has the needed permissions to process subscription payments.

 

Upon closer inspection it appears there are 2 client IDs associated with your account and they are both trying to query the endpoint for the subscription related to "debug_id":"229915650ec06". The client ID that created the subscription will be authorized to make the API call, but not the other one. 

 

Please review your integration and make sure the intended client ID is making the API call to avoid this error and let us know if you have any additional questions or need any further assistance by creating a support ticket via the following URL:  https://www.paypal.com/mts.

 

Sincerely,

John

MTS

PayPal

 

If you found this post helpful, please give it a kudos or accept it as a solution so it can help others with a similar question.

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.