Title: Transaction ID from API
Last modified: January 26, 2017

---

# Transaction ID from API

 *  [Brendon Brown](https://wordpress.org/support/users/bigb159/)
 * (@bigb159)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/transaction-id-from-api/)
 * My integration developer is looking for a field to pull transaction IDs so I 
   can complete payments in my ERP.
 * She says that the API call Get Orders does not provide access to this.
 * Can you tell me where this plugin stores the ID?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/transaction-id-from-api/#post-8708266)
 * Have you tried [get_post_meta()](https://developer.wordpress.org/reference/functions/get_post_meta/)?
   I believe the PayPal transaction ID is stored as meta data on the order/post 
   record.
 *  Thread Starter [Brendon Brown](https://wordpress.org/support/users/bigb159/)
 * (@bigb159)
 * [9 years ago](https://wordpress.org/support/topic/transaction-id-from-api/#post-9079569)
 * Thanks for replying here. I didn’t get the notification of your reply and apologize
   that I did not follow up.
 * Our integration is locked into the WooCommerce API, which I don’t think allows
   access to post meta. In that API, transaction_id shows up both as an object under
   Order and under payment_details.
 * We are looking to see if we can pull the ID out of the order notes with some 
   REGEX, but using the actual field would be ideal. Any idea why the transaction_id
   is not where it’s supposed to be?
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [9 years ago](https://wordpress.org/support/topic/transaction-id-from-api/#post-9079589)
 * I’m not really sure what you mean by “not where it’s supposed to be”..?? It’s
   common practice to store such data in post meta fields. If you’re in the WordPress
   platform you shouldn’t have any issues using those, and if your platform is somehow
   locking you out of that I would recommend a different platform. Not having access
   to that sort of defeats the purpose of using WordPress as a foundation.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Transaction ID from API’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-for-woocommerce_dce4f5.svg)
 * [PayPal for WooCommerce](https://wordpress.org/plugins/paypal-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-for-woocommerce/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [transaction id](https://wordpress.org/support/topic-tag/transaction-id/)

 * 3 replies
 * 2 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/transaction-id-from-api/#post-9079589)
 * Status: not resolved