How can I search paypal for a transaction by invoice_id

stccorp
Contributor
Contributor

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

 

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

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 APIto 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.

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.