ListOrders

RazorCart > Integration > REST API
Usage
Lists all orders
Basic URI
/DesktopModules/RazorCart/Services/v1/Orders?top={top}&skip={skip}&orderby={orderby}
Parameters
int top               The maximum number of rows to return
int skip              The start row index
string orderby    A sort expression
AUTH
Bearer JWT
Required Scope(s)
orders
 
Request
GET https://domain.com/DesktopModules/RazorCart/Services/v1/Orders?top=50&skip=0&orderby=-order_date HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json
 
Response
[
  {
    "OrderID" : 115,
    "CustomerID" : 2,
    "OrderDate" : "2017-01-30T19:36:14.533",
    "PayHistID" : 0,
    "ShippingTotal" : 0.0000,
    "TaxTotal" : 0.3990,
    "HandlingCharge" : 0.0000,
    "ShipFirstName" : "Jerry",
    "ShipLastName" : "Yeager",
    "ShipAddress1" : "28 Karen Lane",
    "ShipAddress2" : "",
    "ShipCity" : "Georgetown",
    "ShipState" : "KY",
    "ShipZipcode" : "40324",
    "ShipCountry" : "US",
    "Status" : "Open",
    "ShipMethod" : "",
    "AffiliateId" : null,
    "CouponId" : 0,
    "Discount" : 0.0000,
    "MemberDiscount" : 0.0000,
    "TrackingNumber" : null,
    "PortalID" : 0,
    "Surcharge" : 0.0000,
    "SpecialInstructions" : "",
    "ShipDate" : "2017-01-30T00:00:00",
    "ShipCarrier" : USPS,
    "ResidentialStatus" : null,
    "AuctionID" : 0,
    "SubTotal" : 3.9900,
    "GrandTotal" : 4.3890,
    "RecalcTax" : false,
    "RecalcShipping" : false,
    "StoreID" : 1,
    "TotalRecords" : 117,
    "MoreRecords" : 111,
    "PayTotal" : 0.0,
    "CouponCode" : null
  },
  {
    "OrderID" : 114,
    "CustomerID" : 2,
    "OrderDate" : "2017-01-30T16:36:51.983",
    "PayHistID" : 0,
    "ShippingTotal" : 0.0000,
    "TaxTotal" : 0.1000,
    "HandlingCharge" : 0.0000,
    "ShipFirstName" : "Bryan",
    "ShipLastName" : "McCurdy",
    "ShipAddress1" : "3122 Echo Lane",
    "ShipAddress2" : "",
    "ShipCity" : "Grand Rapids",
    "ShipState" : "MI",
    "ShipZipcode" : "49508",
    "ShipCountry" : "US",
    "Status" : "Open",
    "ShipMethod" : "",
    "AffiliateId" : null,
    "CouponId" : 0,
    "Discount" : 0.0000,
    "MemberDiscount" : 0.0000,
    "TrackingNumber" : null,
    "PortalID" : 0,
    "Surcharge" : 0.0000,
    "SpecialInstructions" : "",
    "ShipDate" : "1753-01-01T00:00:00",
    "ShipCarrier" : USPS,
    "ResidentialStatus" : null,
    "AuctionID" : 0,
    "SubTotal" : 1.0000,
    "GrandTotal" : 1.1000,
    "RecalcTax" : false,
    "RecalcShipping" : false,
    "StoreID" : 1,
    "TotalRecords" : 117,
    "MoreRecords" : 111,
    "PayTotal" : 1.1000,
    "CouponCode" : null
  }
]