CreateOrderItem

Usage
Create a purchased item for an order
Basic URI
/DesktopModules/RazorCart/Services/v1/Orders/{id}/Items
Parameters
int id               The order Id
Data
orderItem        The order item details object
AUTH
Bearer JWT
Required Scope(s)
orders, create
 
Request
POST https://domain.com/DesktopModules/RazorCart/Services/v1/Orders/109/Items HTTP/1.1
Authorization: Bearer {access_token}
Content-Type: application/json

{"ProductID":5,"Quantity":2,"UnitCost":6.5,"ProductName":"Some Product","ProductSKU":"sku-03","TaxRate":0.8,"Weight":1.5,"StoreID":1}
 
Response
{
  "OrderDetailID": 163,
  "OrderID": 109,
  "ProductID": 5,
  "Quantity": 2,
  "UnitCost": 6.5,
  "ProductName": "Some Product",
  "ProductSKU": "sku-03",
  "Shipped": false,
  "Returned": false,
  "DateUpdated": "2017-03-02T13:45:40.093",
  "PortalID": 0,
  "OrderDetailGUID": "990b06b0-8a7e-4d10-8941-9073e27949d1",
  "SerialNumber": null,
  "WebServiceData": null,
  "VendorID": 0,
  "TaxRate": 0.8,
  "StatusID": 0,
  "QtyShipped": 0,
  "Weight": 1.5,
  "CartAddDate": "2017-03-02T13:45:40.093",
  "StoreID": 0,
  "DetailBooking": {
    "IsBooking": false,
    "BookingStart": null,
    "BookingEnd": null,
    "ShowTime": false
  },
  "DetailRecurring": {
    "IsRecurring": false,
    "SubscriptionInterval": null,
    "RecurringOccurances": 0,
    "StartDateSetup": null,
    "StartDate": "0001-01-01T00:00:00",
    "EndtDate": "0001-01-01T00:00:00"
  },
  "DetailVariants": []
}

Add Feedback