0

I am trying fetch orders using store_id but I am not getting response from Magento rest API which I am using. So far, I have tried follwowing URL patterns to check the response but none of them worked.

/rest/V1/orders/{store_id}
/rest/default/V1/orders/
/rest/{store_id}/V1/orders/
/rest/all/V1/orders/

After trying above URL patterns I got error message or least json output, but don't if that is what I desire.

Error message:

{'message': 'Specified request cannot be processed.'}

So, as a store_id I am using 1 as id parameter. I want to get the orders by specific store .

I did go thorugh Magneto API documentation but unable to find clue on this. Any help would be great.

2 Answers 2

0

Ty to use store code, not store id.

1
  • How do I get store code? Commented Mar 6, 2022 at 16:25
0

You probably want to use the store code, which you can get from the admin console: Stores > All Stores then the store code is shown underneath the store in parentheses.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.