CreateOrder

RazorCart > Integration > REST API
Usage
Create a new order
Basic URI
/DesktopModules/RazorCart/Services/v1/Orders
Data
order               The order object
AUTH
Bearer JWT
Required Scope(s)
orders, create
 
Request
POST https://domain.com/DesktopModules/RazorCart/Services/v1/Orders HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json

{"CustomerID":2,"OrderDate":"2017-02-1T19:36","ShipDate":"2017-02-3T15:00","ShipFirstName":"Lisa","ShipLastName":"Troy","ShipAddress1":"4497 Adams Avenue","ShipCity":"Silver Spring","ShipState":"MD","ShipZipcode":"20904","ShipCountry":"US","Status":"Shipped","ShipMethod":"FEDEX_EXPRESS_SAVER","ShipCarrier":"Fedex","SubTotal":3.99,"ShippingTotal":3.9,"HandlingCharge":2,"TaxTotal":2.98,"Surcharge":0.1,"GrandTotal":34.84,"StoreID":1}
 
Response
{
  "OrderID" : 122,
  "CustomerID" : 2,
  "OrderDate" : "2017-02-01T19:36:00",
  "PayHistID" : 0,
  "ShippingTotal" : 3.90,
  "TaxTotal" : 2.98,
  "HandlingCharge" : 2.00,
  "ShipFirstName" : "Lisa",
  "ShipLastName" : "Troy",
  "ShipAddress1" : "4497 Adams Avenue",
  "ShipAddress2" : null,
  "ShipCity" : "Silver Spring",
  "ShipState" : "MD",
  "ShipZipcode" : "20904",
  "ShipCountry" : "US",
  "Status" : "Shipped",
  "ShipMethod" : "FEDEX_EXPRESS_SAVER",
  "AffiliateId" : null,
  "CouponId" : 0,
  "Discount" : 0.0,
  "MemberDiscount" : 0.0,
  "TrackingNumber" : null,
  "PortalID" : 0,
  "Surcharge" : 0.10,
  "SpecialInstructions" : null,
  "ShipDate" : "2017-02-03T15:00:00",
  "ShipCarrier" : "Fedex",
  "ResidentialStatus" : null,
  "AuctionID" : 0,
  "SubTotal" : 3.99,
  "GrandTotal" : 34.84,
  "RecalcTax" : false,
  "RecalcShipping" : false,
  "StoreID" : 1,
  "PayTotal" : 0.0,
  "CouponCode" : null
}