INVALID_RESOURCE_ID

chen1991
Contributor
Contributor
In a sandbox environment, I created an order and after about three days, I obtained the order details through the order number and returned the following information. however
I confirm that I did not use the wrong environment (sandbox/live), did not call the wrong interface, and did not use the wrong account clientId, etc. May I ask if this is because the order number in the sandbox environment can only be queried for orders within 3 days, or is it something else. Our project is about to go live, but I don't know if this problem will also occur in the production environment. How many people have encountered the same situation.
 
{"name": "RESOURCE-NOT-FOUND", "details": [{"issue": "INVALID-RESOURCE-ID", "description": "Specific Resource ID does not exist. Please check the resource ID and try again."}], "message": "The specific resource does not exist.", "debug_id": "cecd2ca278e1d", "links": [{"href":“ https://developer.paypal.com/docs/api/orders/v2/#error -INVALID_ GROUP_ ID, rel: information_ Link, method: GET
Login to Me Too
2 REPLIES 2

vaishnavib
Moderator
Moderator

Good day @chen1991,

 

Thank you for posting to the PayPal community.

 

This looks like an issue with your internal website code, which is triggering API calls to the "Sandbox Endpoint" environment.

 

https://developer.paypal.com/api/rest/requests/

 

The URL to the API service is either:

 

PayPal system is a payment gateway, which will receive the payment request payload (i.e. Payment and Item details, Shipping details, Invoice number, Amount details, etc.) from merchant websites and process the payments accordingly.

 

Merchants should handle their internal website code and pass the appropriate payment API calls to the PayPal system.

 

I would suggest to please contact your website developer. Please ensure that when making API calls in a LIVE environment, you are using the correct LIVE  REST API Credentials(Client ID & Secret).

 

https://developer.paypal.com/api/rest/authentication/

https://developer.paypal.com/api/rest/postman/ 

https://developer.paypal.com/api/rest/

 

If you 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,

Vaishnavi

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

chen1991
Contributor
Contributor

Good day

Thank you for your reply, but my problem is not that the live environment called the API of the sandbox environment, but rather that orders in the sandbox environment cannot be found after a few days by querying the order number. How long can orders be queried in the live environment? Will there also be a situation where historical orders cannot be queried.
My problem is not with API call errors or clientId parameter errors, etc. The URL and parameters are really not incorrect, and this issue does not involve our code. It is the difference between the Sandbox and Live environments, as well as the issue of how many days ago the order can be queried.
Looking forward to receiving your reply again
 
Sincerely,
chen
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.