CyberStore Order Web Service
MethodGetOrdersByDateRange
CyberStore Order Web Service > All Operations Resource Group : GetOrdersByDateRange (Method)
Description
Retrieves posted sales orders linked to the shopper's current customer filtered by a supplied date range.Retrieves posted sales orders linked to the shopper's current customer filtered by a supplied date range. Introduced in v2.21.
Request (GetOrdersByDateRangeSoapIn)

The request body is of type GetOrdersByDateRange.

Request Body Parameters

NameDescriptionData Type
The first day of the search date range in MM/DD/YYYY format.xml:string
The last day of the search date range in MM/DD/YYYY format.xml:string
Example
MakeAJAXCall("Order.GetOrdersByDateRange", {
    StartDate: '10/12/2019',
    EndDate: '05/01/2020'
}, console.log)
200 Response (GetOrdersByDateRangeSoapOut)

The response body is of type GetOrdersByDateRangeResponse.

Response Body Parameters

NameDescriptionData Type

A string value containing a JSON object.

 

{
    "Data": [{
        "SalesOrder": "001197",
        "Customer": "000000000000002",
        "CustomerName": "Bikes and Blades - North",
        "OrderStatus": "1",
        "Branch": "10",
        "OrderType": "",
        "Area": "N",
        "AlternateKey": "WEB98",
        "NextDetailLine": "    3",
        "DocumentType": "ORD",
        "Salesperson": "100",
        "Currency": "$",
        "CustomerPoNumber": "sdasdasd",
        "ShipViaCode": "",
        "ShippingInstrs": "FREE Ground Shipping",
        "SpecialInstrs": "",
        "OrderDate": "2019-10-15",
        "ReqShipDate": "2019-10-15",
        "SorQuery_Id": 0,
        "OrderStatusText": "Open Order"
    }, {
        "SalesOrder": "001198",
        "Customer": "000000000000002",
        "CustomerName": "Bikes and Blades - North",
        "OrderStatus": "1",
        "Branch": "10",
        "OrderType": "",
        "Area": "N",
        "AlternateKey": "WEB99",
        "NextDetailLine": "    5",
        "DocumentType": "ORD",
        "Salesperson": "100",
        "Currency": "$",
        "CustomerPoNumber": "12345",
        "ShipViaCode": "",
        "ShippingInstrs": "Fed Ex - Ground",
        "SpecialInstrs": "test by greg",
        "OrderDate": "2019-10-17",
        "ReqShipDate": "2019-10-30",
        "SorQuery_Id": 0,
        "OrderStatusText": "Open Order"
    }, {
        "SalesOrder": "001199",
        "Customer": "000000000000002",
        "CustomerName": "Bikes and Blades - North",
        "OrderStatus": "1",
        "Branch": "10",
        "OrderType": "",
        "Area": "N",
        "AlternateKey": "WEB100",
        "NextDetailLine": "    5",
        "DocumentType": "ORD",
        "Salesperson": "100",
        "Currency": "$",
        "CustomerPoNumber": "12345",
        "ShipViaCode": "",
        "ShippingInstrs": "FREE Ground Shipping",
        "SpecialInstrs": "",
        "OrderDate": "2019-10-17",
        "ReqShipDate": "2019-10-17",
        "SorQuery_Id": 0,
        "OrderStatusText": "Open Order"
    }, {
        "SalesOrder": "001200",
        "Customer": "000000000000002",
        "CustomerName": "Bikes and Blades - North",
        "OrderStatus": "1",
        "Branch": "10",
        "OrderType": "",
        "Area": "N",
        "AlternateKey": "WEB103",
        "NextDetailLine": "    9",
        "DocumentType": "ORD",
        "Salesperson": "100",
        "Currency": "$",
        "CustomerPoNumber": "765863",
        "ShipViaCode": "",
        "ShippingInstrs": "FREE Ground Shipping",
        "SpecialInstrs": "",
        "OrderDate": "2019-12-09",
        "ReqShipDate": "2019-12-09",
        "SorQuery_Id": 0,
        "OrderStatusText": "Open Order"
    }, {
        "SalesOrder": "001201",
        "Customer": "000000000000002",
        "CustomerName": "Bikes and Blades - North",
        "OrderStatus": "1",
        "Branch": "10",
        "OrderType": "",
        "Area": "N",
        "AlternateKey": "WEB104",
        "NextDetailLine": "    9",
        "DocumentType": "ORD",
        "Salesperson": "100",
        "Currency": "$",
        "CustomerPoNumber": "6776342",
        "ShipViaCode": "",
        "ShippingInstrs": "FREE Ground Shipping",
        "SpecialInstrs": "",
        "OrderDate": "2019-12-09",
        "ReqShipDate": "2019-12-09",
        "SorQuery_Id": 0,
        "OrderStatusText": "Open Order"
    }, {
        "SalesOrder": "001203",
        "Customer": "000000000000002",
        "CustomerName": "Bikes and Blades - North",
        "OrderStatus": "1",
        "Branch": "10",
        "OrderType": "",
        "Area": "N",
        "AlternateKey": "WEB108",
        "NextDetailLine": "    5",
        "DocumentType": "ORD",
        "Salesperson": "100",
        "Currency": "$",
        "CustomerPoNumber": "9678456735",
        "ShipViaCode": "",
        "ShippingInstrs": "FREE Ground Shipping",
        "SpecialInstrs": "",
        "OrderDate": "2020-04-15",
        "ReqShipDate": "2020-04-15",
        "SorQuery_Id": 0,
        "OrderStatusText": "Open Order"
    }],
    "Result": {
        "Success": true,
        "Message": "The request returned 6 order results.",
        "ElapsedTime": "49 ms"
    }
}

xml:string
See Also
All Operations Resource GroupCyberStore Order Web Service