5

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

1
  • GET <host>/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=increment_id&searchCriteria[filter_groups][0][filters][0][value]=0000000001&searchCriteria[filter_groups][0][filters][0][condition_type]=eq Jul 9, 2019 at 12:52

1 Answer 1

6

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`
1

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.