- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paypal Team,
My team keep getting INVALID_RESOURCE_ID in response once a while when trying to get order using the checkout version 2 rest apis.
Example is the response;
{"name":"RESOURCE_NOT_FOUND","details":[{"issue":"INVALID_RESOURCE_ID","description":"Specified resource ID does not exist. Please check the resource ID and try again."}],"message":"The specified resource does not exist.","debug_id":"a79a98a9b55c4","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_RESOURCE_ID","rel":"information_link"..."}]}
Meanwhile the order id we are using was actually from paypal. We used this link ; https://developer.paypal.com/docs/checkout/integrate/#6-verify-the-transaction
The issue comes from line , request = OrdersGetRequest(order_id) , order_id being the transaction id we get from paypal.
Can you please help?
Solved! Go to Solution.
- Labels:
-
API
-
Express Checkout

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ic - do you mind pasting the request / response for each anyway just so that I know.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"href": "https://api.sandbox.paypal.com/v2/checkout/orders/7WM38203LM766873W",
for this it looks liked you used different client_Id for CREATE vs that for GET

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
let us know if it reoccurs - there are multiple scenarios at play. I will look to see how helpful can we be with error messages but the challenge is that even if the order exists but doesn't belong to client_id we really cannot say that as than we are confirming that the order id exists in our system for someone else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for looking into it but latter on the same day I got to know that I was using wrong client-id on JS however I was using the right client-id on server side.
Therefore it confuse me now how it is possible to make a payment with two different clientID but after making them same Resource not found error gone and I am able to fetch the records

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks . glad to hear your problem was solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I have the same issue!!
I'am trying to get transaction details by Transaction id but it shows this error
Note: finding the token works perfectly, but getting the transaction details not working!!
object(stdClass)#2027 (3) { ["name"]=> string(22) "INTERNAL_SERVICE_ERROR" ["debug_id"]=> string(12) "ccf29cdd6ae1" ["links"]=> array(1) { [0]=> object(stdClass)#2026 (2) { ["href"]=> string(53) "https://developer.paypal.com/docs/api/overview/#error" ["rel"]=> string(16) "information_link" } } }
Please find My API call here: http://snippi.com/s/kn42axj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any difference between Order id and Transaction id ??
I want o get transaction details by transaction id is that possible ??
Api URL https://api.paypal.com/v2/checkout/orders/{transaction_id_here}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Best way to think about this is to observe the HATEOAS:
if you do an order/5O190127TN364715T/capture - which results in a capture id - 3C679366HH908993F - the way to look it up is as below
links": [ { "href": "https://api.paypal.com/v2/payments/captures/3C679366HH908993F", "rel": "self", "method": "GET" }, { "href": "https://api.paypal.com/v2/payments/captures/3C679366HH908993F/refund", "rel": "refund", "method": "POST" } ]
if you do an order/5O190127TN364715T/authorize - which results in a authorization id - 3C679366HH908993F - the way to look it up is as below
links": [ { "href": "https://api.paypal.com/v2/payments/authorizations/3C679366HH908993F", "rel": "self", "method": "GET" }, { "href": "https://api.paypal.com/v2/payments/captures/3C679366HH908993F/refund", "rel": "refund", "method": "POST" } ]
if you want to instead look up the whole order
{ "href": "https://api.paypal.com/v2/checkout/orders/5O190127TN364715T", "rel": "self", "method": "GET" }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, could you elaborate more!!
Here the scenario.
The customer clicks Paypal button -> redirected to Paypal to complete the order -> redirected back to our website with the transaction id in URL parameter. "/?payment_id=xxxx"
and then our fraud monitor system will check details using the transaction-id
So we need to retrieve transaction details "country code - payer id.." using transaction-id
Is this possible ??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
should have asked you before what API are you using v2/checkout/orders?

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- subscription_id has disappeared in REST APIs
- Unable to issue a refund from our business sandbox account in Sandbox Environment
- Recurring Payment issue in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Can't create a new Sandbox app as platform in Sandbox Environment