-
-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event list does not support orderID parameter #421
Comments
UPDATE I can confirm there actually is an error in event.js (v3.5.1) I'am not to confident I did not miss something so I did not pull. Any chance someone from the devs can take a look at this and push it himself ? it should be:
|
The existing API is for |
Hi @lpinca , I have tested the change I have suggested above and there is an endpoint to query events based on the orderID. It's also documented on shopify. Please let me know if this is something that you don't want to support in which case I will have to fork this rep. if you need any help developing this I am more than happy to assist you in any way I can. Kind regards, |
Yes but the same is valid also for other resources. From the documentation:
For example It might make more sense to add the |
I see, I forgot about the other resources. Are you open for a pull request? I might have time on the weekend to make the changes you have suggested. |
Yes, events are like metafields but |
According to the shopify documentation we are able to query a list by orderID:
GET /admin/api/2020-10/orders/450789469/events.json
docs: https://shopify.dev/docs/admin-api/rest/reference/events/event?api%5Bversion%5D=2020-10
However the list function does not support providing an orderID.
list([params])
I think it should be:
list(orderID [, params])
Using the orderID as a filter param does not work since the orderID is not part of the event object.
Kind regards
The text was updated successfully, but these errors were encountered: