Skip to content

Instantly share code, notes, and snippets.

@mscottford
Created April 4, 2012 13:36
Show Gist options
  • Save mscottford/2301089 to your computer and use it in GitHub Desktop.
Save mscottford/2301089 to your computer and use it in GitHub Desktop.
Call 4...N: GetOrders
ShipWorks will continue making GetOrders calls, repeatedly, until no orders are returned in the response. If orders are continually returned to ShipWorks, the download will proceed infinitely.
The maxcount parameter is simply a requested batch size, or number of orders desired to be in this call’s response. Please beware this is simply a recommended response size – when the download strategy is ByModifiedTime care must be taken to ensure that orders with matching Modified Time do not span batches. This would result in orders being skipped since ShipWorks would re-request orders with a new start value on the next GetOrders call which would not include those skipped orders. If this scenario arises, simply return as many orders as necessary without regard to the maxcount value.
Once again, downloading will be considered complete when no orders are returned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment