How can I search paypal for a transaction by invoice_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I find a transaction by my order id number(not paypal id number)? its the invoice_id.
If I search by paypal id number, my invoice_id is here
$transaction_invoiceid = $order->result->purchase_units[0]->invoice_id;
I would like to search by that number
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @stccorp,
Thank you for posting to the PayPal community.
Currently, merchant can use the "Show order details" REST API call to get the order details.
https://developer.paypal.com/docs/api/orders/v2/#orders_get
Also, can use the "Transaction Search API" to get the history of transactions for a PayPal account.
https://developer.paypal.com/docs/api/transaction-search/v1/
Sincerely,
Chiranjeevi
PayPal/Braintree MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Payments Refunded Automatically After Successful Transactions - PayPal Business Account Issue in REST APIs
- Paypal create transaction with QR - API in REST APIs
- Shopify PayPal integration, customer authorized multiple times in PayPal Payments Standard
- Advanced checkout and no 3DS information in the response in REST APIs
- Add parameters to custom auto return url? in PayPal Payments Standard