Unable to retrieve transaction data from PayPal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have spent several hours trying to figure out the PayPal API, but I still cannot get it to work. Here is the request I've been sending, minus the access token (I would like to retrieve data from the transaction 62G75922M9548980S)
curl -v -X GET https://api.paypal.com/v2/payments/authorizations/62G75922M9548980S \
-H "Content-Type: application/json" \
-H "Authorization: Bearer [REDACTED]"
and the response from PayPal:
{"name":"RESOURCE_NOT_FOUND","message":"The specified resource does not exist.","debug_id":"2eb29f5694219","details":[{"issue":"INVALID_RESOURCE_ID","description":"Specified resource ID does not exist. Please check the resource ID and try again."}],"links":[{"href":"https://developer.paypal.com/docs/api/payments/v2/#error-INVALID_RESOURCE_ID","rel":"informat(base)
What does this mean? I've tried checking the URL in the error response, but it doesn't help at all. I've also triple-checked that my request contains all the required information, in the correct format, and yet PayPal still refuses to process my request.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- IPN works in sandbox but not live in Sandbox Environment
- Change the button from Sandbox to Production in PayPal Payments Standard
- PayPal Express Checkout charging incorrect values? in Sandbox Environment
- When I do PayPal capture Order, I keep on getting Invalid Request Connection in REST APIs
- Unable to Retrieve Plan ID Related to a Subscription in REST APIs