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

?action=export not returning all orders #40

Closed
aeu opened this issue Dec 1, 2021 · 7 comments
Closed

?action=export not returning all orders #40

aeu opened this issue Dec 1, 2021 · 7 comments

Comments

@aeu
Copy link

aeu commented Dec 1, 2021

Hello,

I'm following the instructions from here #39 to deal with addresses with no country that ShipStation is rejecting. I created a store called standard, which only contains orders with legit addresses. I'd like to view the output and I'm fetching orders via curl.

From this #36 (comment) I should be getting all orders, but I'm only getting 25 orders. Is there some parameter I'm missing to get all?

Thank you,

aeu

curl \
--silent \
--request GET 'https://my.domain.com/actions/shipstationconnect/orders/process?store=standard&action=export' \
--header 'Authorization: Basic 9s7df987sdf98adfklasklfjkalsdf='


./production_shipstation_curl.sh | tidy -xml -iq | grep OrderID | wc
line 2 column 29459 - Warning: replacing invalid character code 133
line 2 column 29870 - Warning: replacing invalid character code 133
      25      25     725
@sjcallender
Copy link
Contributor

You might need to update (via resaving) all orders so their dateUpdated falls within the range ShipStation is expecting.

@aeu
Copy link
Author

aeu commented Dec 2, 2021

Hi - we did notice that (that you have to touch the orders so that ShipStation would process them) but I was wondering about the action=export command, which we were under the impression would dump all the orders. It looks like it actually honours the page count in the preferences panel (which defaults to 25).

@sjcallender
Copy link
Contributor

action=export only includes orders within the date range that ShipStation attaches to the endpoint when it fetches the data. It'll process orders across multiple pages in the same request too.

From the ShipStation custom store docs:

Your page should return data for any order that was modified between the start and end date, regardless of the order's status.

@aeu
Copy link
Author

aeu commented Dec 2, 2021

Hi @sjcallender - I'm using curl, no date at all (see above).

@sjcallender
Copy link
Contributor

Sorry. I forgot the context. I guess I don't understand the issue. If you set the Page Size for Orders to higher count (more than your actual order count) do you see them all?

@sjcallender
Copy link
Contributor

Also, you can use the page parameter to see more than page 1.

ex: ?action=export&page=3

@aeu
Copy link
Author

aeu commented Dec 6, 2021

Excellent thank you. I was able to get this working. This issue doesn't negatively impact me, I was mainly pointing out that the behaviour and the documentation were a little out of sync.

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

3 participants