Skip to content
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

Walk through description of /me/orders incorrect #504

Open
dsolovay opened this issue Dec 22, 2022 · 1 comment
Open

Walk through description of /me/orders incorrect #504

dsolovay opened this issue Dec 22, 2022 · 1 comment

Comments

@dsolovay
Copy link
Contributor

https://ordercloud.io/learn/buyer-perspective/adding-line-items desribes the /v1/me/orders endpoint as being able to retrieve the ID of a just created order. In my experience, it will only return an order that has been submitted. (I've tested this twice.) The guide should be updated to suggest people note the order ID after the create empty order step, as it will be needed in the subsequent steps.

This language is no longer accurate:

If you don't remember it, fear not - buyer users can view their orders using the My Orders resource. This will provide a list of orders that have the currently authenticated user as the FromUser.

The discussion of /v1/me/orders in the API documentation should also be updated to clarify that only "Open" orders are retrievable.

@crhistianramirez
Copy link
Contributor

crhistianramirez commented Dec 27, 2022

@dsolovay thanks for bringing light to this, there was a change to the API introduced with premium order search and it seems some of these tutorials weren't updated.

It is actually possible to retrieve unsubmitted orders but it requires an additional filter. See number 1 in limitation in gotchas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants