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

Order Listing Example #51

Open
wounaan opened this issue Apr 21, 2017 · 1 comment
Open

Order Listing Example #51

wounaan opened this issue Apr 21, 2017 · 1 comment

Comments

@wounaan
Copy link

wounaan commented Apr 21, 2017

thanks so much for this library.

so I'm working through it and something that was baffling me was the list orders. I just discovered a fix that hopefully will help someone. I was not able to get listing orders to work until I put in a start date, like:

$orders = $client->list([ 'createdStartDate' => '2017-01-01', 'limit' => 10, 'nextCursor' => '', ]);

if I don't have the createdStartDate in there - then I get a bad request error
400 [reason phrase] Bad Request
and then a long stack trace

there are a bunch of optional fields for list orders - so maybe some other combination of fields would work as well.

@danandersonmn
Copy link

createdStartDate is a required value when accessing get all released orders, also required for get all orders unless customerOrderId or purchaseOrderId is also specified

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