ThisCalculator

Everyday

Find Order ID in WooCommerce Order Details

Updated · Standard formula, shown below

Find Order ID in WooCommerce Order Details

This guide shows you exactly where to find the order ID on the WooCommerce order details page in your WordPress admin. You’ll need access to your WordPress dashboard with the WooCommerce plugin installed and at least one order in the system.

What You’ll Need

  • Administrator or Shop Manager access to your WordPress site
  • WooCommerce plugin active
  • At least one existing order (you can also test with a pending order)

Step-by-Step

  1. Log in to your WordPress admin area (usually yourdomain.com/wp-admin).
  2. In the left sidebar, hover over WooCommerce and click Orders. This opens the order list screen.
  3. Find the order you need. The list shows the order number (which is the order ID) in the Order column, usually formatted like #1234.
  4. Click on that order number or the View button under the order number to open the order details page.
  5. Once the order details page loads, look at the top left, just below the title bar. You’ll see the order ID displayed as Order #1234 (the number after the hash is the ID).
  6. Alternatively, check the browser address bar. The URL will contain something like post.php?post=1234&action=edit – the number after post= is the order ID.
  7. If you need to copy the ID, select the number and copy it, or note it down.

Common Mistakes

  • Confusing the order ID with the order key. The order key is a long alphanumeric string used internally for payment gateways; the order ID is a simple integer.
  • Looking at the order number on the customer-facing order received page. That page often shows the same ID, but if you’ve customized it, it may differ.
  • Using the order ID from the URL when the order is trashed. Trashed orders still have an ID, but it may not be visible in the list.

Tips

  • Use the search box on the Orders screen to find an order by customer name, email, or order number.
  • If you have many orders, use the date filter or the “Filter by customerâ€� dropdown to narrow down.
  • The order ID is also visible in the order email notifications sent to the customer and admin.
  • For programmatic access, you can use the WooCommerce REST API; the order ID is the same as the id field in the API response.

Troubleshooting

If you don’t see the order ID on the order details page, try these:

  • Check the screen options. Click the “Screen Optionsâ€� tab at the top right of the Orders list and ensure the “Orderâ€� column is checked.
  • Clear your browser cache. Sometimes a stale page doesn’t show the latest content.
  • Check if you’re on the correct order. The URL might be for a product or a page, not an order. Ensure you clicked on an order from the WooCommerce > Orders menu.
  • If the order is a draft or pending payment, the ID is still there but the page may look different. Look for the “Editâ€� button or the order number in the page title.
  • If you’re using a page builder or custom order page, the ID might be hidden. Try viewing the raw URL or using the WordPress admin bar (if you’re an admin, the bar shows “Edit Orderâ€� with the ID).

Frequently Asked Questions

Is the order ID the same as the order number?

Yes, in WooCommerce the order ID is the order number. It’s a unique integer assigned to each order.

Can I change the order ID?

No, the order ID is set by WordPress and cannot be changed. You can change the order number display by using a plugin or custom code, but the underlying ID stays the same.

Where is the order ID in the customer email?

In the order email, the order number is usually shown in the subject line or in the order details table. It’s the same as the order ID.

Why does my order ID have a leading #?

The # is just a visual prefix to indicate it’s an order number. The actual ID is the number after the #.

How do I find the order ID if I only have the customer’s name?

Go to WooCommerce > Orders, use the search box, type the customer’s name, and the order(s) will appear. The order ID is in the “Order� column.

Can I find the order ID via the REST API?

Yes, you can use the WooCommerce REST API endpoint /wp-json/wc/v3/orders to retrieve orders; the id field in the response is the order ID.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.