Magento2.3 REST API – Get Order Entity ID from Increment ID

magento2.3rest apisales-order

How to get order entity_id from order increment_id by REST API?

Best Answer

For your requirements, you have to use order search api point

http://<magento_host>/rest/V1/orders

and use GET and perform the Search

GET <host>/rest/<store_code>/V1/orders/?
searchCriteria[filter_groups][0][filters][0][field]=increment_id&
searchCriteria[filter_groups][0][filters][0][value]={YOURFIELDVALUE}&
searchCriteria[filter_groups][0][filters][0][condition_type]=eq`
Related Topic