Two different orders with the same Number? How is that possible?

I’m seeing a merchant who has two different orders (different ID, billing info, customer, etc) but they both have the same Number (e.g. #1001). I thought this shouldn’t be possible?

Two orders in question:

gid://shopify/Order/4152833671262

gid://shopify/Order/4152785502302

Hi @Jeff-Blake !

Thanks for reaching out!

Occasionally, we might see orders that have the same order number. The Order Number is generated at the time of the order creation along with the order ID. While rare, in some cases the order number can be duplicated if the aggregate search fails to turn up the most recent result (this can be caused by database slowdowns, high order volume, or orders queued due to flash sales - just as some examples).

Other reasons this might occur is if the merchant imports orders that use the same order number format. Right now, there are no workarounds currently to update the order number. However, keep in mind that while the Order Number might be duplicated, the Order ID is unique. If you use any API or ERP systems to pull in orders, it would be best to use the order ID to identify orders, as it will always be unique. I hope this helps clear things up!

Hi Maz.

The docs say both the order’s name and orderNumber fields are unique. Are the docs incorrect? Or has this changed in the last two years such that these fields are always unique for a merchant now?

Or maybe I’m looking at the wrong docs - I’m new here.

Tim