Orders

history.json

method: GET

secured: true

url: /v1/office/orders/history/[Filter].json

Returns a flat list of any orders that match the filter regardless of there status or source

Field Notes
filter
all All orders
open All open orders
closed All closed orders
held All held orders

Type: String
scope The number of sales periods to go looking back
Type: Integer (optional - default is 3)

If sucessfull you will see a response like this:

{
    "Records": [
        {
            "Source": "pending",
            "SalesPeriod": "Feb - 2015",
            "SalesPeriodValue": 1382,
            "ShipTo": "Jason Sperske
3500 Gateway Blvd
Fremont, CA 94538-6584", "Date": "12/8/2014", "FullRefNo": "32-4510", "RefNo": "1165510", "AccessToken": "HENxuTVOtSPscqLvwfAaqP44B4O2w4Ee", "Url": "/office/order/pending/32-1-1370/Ehs7mvSIwvC1FsRpgC185mzuY2PdExose.json", "StatusDescription": "Shipped ", "CanTrack": true, "PVAmount": "56", "BVAmount": "106.65", "Balance": "-" }, { "Source": "inquiry", "SalesPeriod": "Feb - 2015", "SalesPeriodValue": 1382, "ShipTo": "Jason Sperske
3500 Gateway Blvd
Fremont, CA 94538-6584", "Date": "11/13/2014", "FullRefNo": "32-1-1370", "RefNo": "1161370", "AccessToken": "Ehs7mvSIwvC1FsRpgC185mzuY2PdExose", "Url": "/office/order/inquiry/32-1-1370/Ehs7mvSIwvC1FsRpgC185mzuY2PdExose.json", "StatusDescription": "Shipped ", "CanTrack": true, "PVAmount": "68", "BVAmount": "116.40", "Balance": "-" } ], "DataLoadTime": "23 Jan 2015 03:01 PST ", "success": true, "error": null }