Does anyone know why the order id that appears in the url does not match the one that appears in the product?

enter image description here

1 Answer 1


The ID that appears in the URL is the Magento internal order ID that you will also find in the database as entity_id in the orders table sales_order.

The one displayed with '#' it's called increment_id and you should see it like the 'SKU of the order' as it is usually used to reference the order when integrations with other systems are used. So you will use this ID to identify the order and not the Magento internal ID you see in the URL. You will find this value as increment_id in the orders table sales_order.

Also the ID you see in the url is a numerical value whereas the increment_id can contain alphanumerical values to it (a prefix and a numerical sequence). Read more here https://devdocs.magento.com/guides/v2.4/config-guide/multi-site/change-increment-id.html.

Worth to mention that this applies to other entities as well (invoice, shipments or credit memos, etc)

  • 1
    Thank you!!!!!!
    – Miguel
    Mar 23, 2021 at 11:18
  • You are most welcome :)
    – Diana
    Mar 23, 2021 at 11:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.