RESOURCE_NOT_FOUND issue in both sandbox and live

liman
Contributor
Contributor

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?

 

Login to Me Too
34 REPLIES 34

rahul-dighe
PayPal Employee
PayPal Employee

ic - do you mind pasting the request / response for each anyway just so that I know.

Senior Product Manager - PayPal Checkout API Product
Login to Me Too

rahul-dighe
PayPal Employee
PayPal Employee

"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 

Senior Product Manager - PayPal Checkout API Product
Login to Me Too

rahul-dighe
PayPal Employee
PayPal Employee

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. 

Senior Product Manager - PayPal Checkout API Product
Login to Me Too

neerajgeit
Contributor
Contributor

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 

Login to Me Too

rahul-dighe
PayPal Employee
PayPal Employee

Thanks . glad to hear your problem was solved.

Senior Product Manager - PayPal Checkout API Product
Login to Me Too

rachidaitouais
Contributor
Contributor

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

 

 

Login to Me Too

rachidaitouais
Contributor
Contributor

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}

Login to Me Too

rahul-dighe
PayPal Employee
PayPal Employee

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" }

Senior Product Manager - PayPal Checkout API Product
Login to Me Too

rachidaitouais
Contributor
Contributor

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 ?? 

Login to Me Too

rahul-dighe
PayPal Employee
PayPal Employee

should have asked you before what API are you using v2/checkout/orders?

Senior Product Manager - PayPal Checkout API Product
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.