Request
Field Name | Data Type | Description |
orderIds | Integer () | orderIds is an integer array (usually loaded via the Orders_Get method) |
Sample vb.net code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
Dim sellerCloud As New SCServices.SCService sellerCloud.Timeout = 5 * 60 * 1000 // 5 minutes in milliseconds sellerCloud.AuthHeaderValue = New SCServices.AuthHeader sellerCloud.AuthHeaderValue.UserName = "UserName" sellerCloud.AuthHeaderValue.Password = "Password" // Prepare filters Dim keys As New List(Of String) Dim values As New List(Of String) // Add "From" and "To" filters Dim fromDate As New DateTime(2014, 10, 1) Dim toDate As New DateTime(2014, 10, 31) keys.Add("DateFrom") values.Add(fromDate.ToString("MM-dd-yyyy hh:mm:ss")) keys.Add("DateTo") values.Add(toDate.ToString("MM-dd-yyyy hh:mm:ss")) Dim filters As New SCServices.SerializableDictionaryOfStringString With filters .Keys = keys.ToArray() .Values = values.ToArray() End With Dim orderIds As Integer() = sellerCloud.Orders_Get(filters) If orderIds.Length > 0 Then // Download all orders Dim orders As SCServices.OrderData() = sellerCloud.Orders_GetDatas(orderIds) // Do something with the orders object End If |
Dropship orders
For dropship orders, you need to loop through your OrderIDs returned and make a Orders_GetData_Options_Refactored call for each one. This will allow orders with DropShip statue to go through.