To find the NMI transaction ID for a WooCommerce order, open the order in the admin and read the order notes on the right. With NMI for WooCommerce, the gateway response is recorded there, including the transaction ID, authorization code and the AVS and CVV results. If you need it in code, the nmiwp_payment_complete action hands you the response that contains it.
You need that ID for almost every support conversation: refunds, disputes, gateway lookups and processor questions. It is documented in the hooks and filters reference alongside the other extension points.
Step by step in the WooCommerce admin
- Go to WooCommerce, Orders, and open the order.
- Look at the Order notes panel. Find the note added when the payment was processed.
- Copy the transaction ID value. It is the gateway’s own ID, the same value the gateway returns as
transactionid. - Do not confuse it with the authorization code. The auth code comes from the card issuer and is not searchable in the gateway the same way.
The exact note wording can differ by plugin version, so if you do not see a field labelled this way, read the whole note rather than assuming it is missing. Also check the order status first. An order that never reached the gateway has no transaction ID at all, and a failed attempt may carry a different ID per attempt.
Use it in the NMI Merchant Portal
- Log in to the portal your processor or reseller gave you. It may carry their branding rather than NMI’s.
- Open the transaction search or reports area. Menu names vary, so look for a search by transaction ID.
- Paste the ID and open the result. You will see the action history: sale or auth, capture, void, refund, each with its own response.
If you cannot find a search field, ask your provider. They control which portal features are visible to you.
Which ID is which
- Transaction ID: assigned by the gateway to each transaction. Use this for refunds, voids and capture.
- Order ID: the value sent as
orderid. This is your reference, usually the WooCommerce order number. It is searchable in the gateway but not unique by itself if an order had several attempts. - Authorization code: from the issuer, useful when the cardholder’s bank asks for it.
- Customer vault ID: identifies a saved payment record, not a charge. Only present when saved cards are in use, which is a Pro feature.
When the ID is missing
- Declined payment: declined attempts usually still produce a gateway record, but the order may only hold the decline text. Read the response, responsetext and response_code fields and the guide to a card declined in WooCommerce.
- Gateway rejection: a response code of 300 means the gateway refused the request before reaching the card network. Start with NMI response code 300.
- Retry that duplicated: two similar attempts can produce two IDs, or a rejection. See NMI duplicate transaction errors.
- Timeout after approval: the gateway may hold an approved transaction the order never recorded. Search the portal by order ID and amount.
What to send to support
Give your provider the transaction ID, the date and time with time zone, the amount, and the exact response text. Add the response code if you have it. Do not send full card numbers, and note that the plugin’s logs already strip card numbers, CVV and the security key.
Before issuing a refund, check the transaction state: unsettled ones should be voided, settled ones refunded. Void versus refund explains the difference. For 3D Secure payments, the transaction record is also where liability questions start, covered in liability shift explained. More guides live in developer resources.
A worked example: a customer disputes a charge
A customer tells you they were charged twice. Open the first order and copy the transaction ID from its notes. Then look for a second order or a second attempt from the same customer. Search the portal for each ID. If the portal shows one approved sale and one declined or rejected attempt, the customer saw a temporary hold or a failed attempt, not two real charges. If it shows two approved sales, refund or void the extra one using its own ID.
Reply with the facts: the order number, the amount, the date and the last four digits of the card. That is enough for the customer’s bank to match it, and you did not need anything beyond the ID and the order record.
A habit worth adopting
- Write the transaction ID in your support ticket, not only the order number.
- Record the ID of the original sale in any refund note, so the history reads clearly later.
- Keep one internal rule for which ID to quote: transaction ID for gateway questions, authorization code only when a bank asks for it.
- When an order is missing an ID, check the status before searching, because a failed attempt may never have reached the gateway.
- Teach support staff where the portal search lives, or ask your provider to enable it for them.
If your portal looks different from the steps above, it is probably branded by your reseller. They control which features appear, so ask them where transaction search is and which roles can see it.
Last reviewed November 2026.