Assistance Needed: RESOURCE_NOT_FOUND Error in PayPal Integration

gsharma
Contributor
Contributor

I am reaching out to seek assistance regarding an issue I am encountering while integrating PayPal subscriptions.
I am getting the auth token via this API request by using client ID and client secret.
https://api-m.sandbox.paypal.com/v1/oauth2/token

after I am hitting this https://api-m.sandbox.paypal.com/v1/billing/subscriptions endpoint with auth token and plan_id. below error message I am getting in response.

{
"name": "RESOURCE_NOT_FOUND",
"message": "The specified resource does not exist.",
"debug_id": "ed107fdb44be8",
"details": [
{
"issue": "INVALID_RESOURCE_ID",
"description": "Requested resource ID was not found."
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/v1/billing/subscriptions#RESOURCE_NOT_FOUND",
"rel": "information_link",
"method": "GET"
}
]
}

I have reviewed the documentation associated with this error, and it appears to be related to an INVALID_RESOURCE_ID issue, indicating that the requested resource ID was not found.

I have double-checked my implementation, and I believe I am using the correct resource ID. However, I am still encountering this error. I would appreciate any guidance or insights from the community on how to troubleshoot and resolve this issue.

Login to Me Too
2 REPLIES 2

Kavyar
Moderator
Moderator

Good day @gsharma 

 

Thank you for posting to the PayPal community.

 

I apologize for any inconvenience this may have caused.

 

It seems that the issue you are experiencing is related to the "plan_id" value. To provide you with more information and assistance, please refer to the following link - https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions

 

If your still facing issues, please create an MTS ticket via -  https://www.paypal-support.com/s/?language=en_US  with the detailed information and error details.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

gsharma
Contributor
Contributor

Hi @Kavyar 
Thank you for you reply.
Actually in my case you can say I am using wrong store.
I think that Sandbox account will work with my main account email. but in actually we have to use Business Account of our App that we create at developer.paypal.com

1. I logged in my Sandbox Business account
2. Created the new subscription plans.

3. Use my App client and secret then get the Auth token
4. Hit the subscription end point.
Working well now.
Hope this helps to other people also.
Best,
Gourav Sharma

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.