API Documentation

This service is in BETA. For access please Fill out the application

CONTENTS
RESOURCES
MACROS
VERBS
REPORTS

orderItems /v1/orderItems

The orderItems resource is used to create, modify, and view orderItems associated with each order. The orderItem describes each line-item for each item (sku) sold with an order. Each order will contain one or more orderItems. The orderItem specifies the sku, quantity, and price of each item that was ordered.


Object model

Attribute Data Type Required Description
orderItemId string yes unique key for each orderItem on the order
orderId string yes The SLAPI-level ID (not the venueOrderId for this item
msku string yes The msku for this line-item on the order
fulfillmentChannel MFN | AFN yes the timestamp that the order was placed from the venue
title string recommended The product title for the line-item
image string recommended URL for an image of the product
quantity integer yes Quantity purchased
priceItem numeric yes The price of each item
priceShipping numeric yes The shipping amount charged per-item
priceTax numeric yes The sales tax charged per-item
priceOther numeric yes The price of any other adjustments per-item
priceDiscount numeric yes The discount amount per-item
status SHIPPED | UNSHIPPED recommended Shipping status
modified timestamp yes timestamp that the orderItem was last modified
notes string no optional notes for each orderItem
cond string recommended condition for the item
purchaseId int no The purchaseId that this orderItem was attributed to (populated by SLAPI on FIFO basis)
locationId int no The pick location assigned to this orderItem (calculated by SLAPI)
returnTimestamp timestamp no Timestamp that the the return/refund was approved
returnReason string no reason that this item was returned
returnCondition string no condition that the customer stated the returned item is in
carrier string no The shipping carrier for this item (ie: UPS, FedEx, etc)
shipMethod string no The desired shipping method (ie: Priority, TwoDay)
trackingNumber string no The tracking number for the carrier
estimatedArrivalDate date no Estimated arrival date
deliveryStatus string no Delivery status (ie: inTransit, outForDelivery, delivered)
deliveryLastChecked timestamp no Timestamp that the delivery status was last checked
shipTimetsamp timestamp no timestamp that the item was shipped
outForDeliveryTimestamp timestamp no timestamp that the item was marked as "Out For Delivery" by the carrier
deliveryTimestamp timestamp no timestamp that the item was delivered

Methods:

GET /orderItems Returns all of the orderItems for an account
GET /orderItems/id Returns the information for that specific item
POST /orderItems Creates a new order. Overwrites an existing setting if it already exists
POST /orderItems/id Updates and order. Overwrites only values that are passed
PUT /orderItems Not Permitted. Returns HTTP 405
PUT /orderItems/id Updates the existing orer. Overrides all exisiting values
DELETE /orderItems Not Permitted. Returns HTTP 405
DELETE /orderItems/id Not permitted. Returns HTTP 405

GET Request Parameters

Parameter Description
orderId Returns only items from the specified venueOrderId
venueOrderId Returns only items from the specified orders.venueOrderId
orderItemId Returns only items from the specified orderItemId
status Returns only items from the specified status (ie: unshipped)
modifiedSince Returns only items modified after the specified timestamp
fulfillmentChannel Returns only items from the specified fulfillmentChannel
trackingNumber Returns only items from the specified trackingNumber
createdAfter Returns only items created after the specified timestamp
delivered if non-blank, returns only items where deliveryTimestamp is not null
purchaseId Returns only items which have been assigned to the specified purchaseId
locationId Returns only items which were to be picked from the specified locationId

Expansions

expand=order Includes an order object for each orderItem

Examples

{
   "status":"success",
   "code":200,
   "httpCode":"200",
   "user":"113",
   "data":{
      "offset":0,
      "limit":50,
      "count":"29600",
      "prev":"",
      "next":"\/orderItems?offset=50&limit=50",
      "first":"\/orderItems?offset=0&limit=50",
      "last":"\/orderItems?offset=29550&limit=50",
      "pages":592,
      "orderItems":[
         {
            "orderId":"1-S01-9999999-2054905",
            "orderItemId":"1",
            "msku":"ABC-123",
            "fulfillmentChannel":"Amazon",
            "title":"-",
            "image":"http:\/\/ecx.images-amazon.com\/images\/I\/ABC123._SL160_.jpg",
            "quantity":"2",
            "priceItem":"0",
            "priceShipping":"0",
            "priceTax":"0",
            "priceOther":"0",
            "priceDiscount":"0",
            "status":"",
            "modified":"2014-05-13T23:17:48Z",
            "notes":"",
            "cond":"",
            "purchaseId":"0",
            "locationId":"0",
            "returnTimestamp":null,
            "returnReason":null,
            "returnCondition":null,
            "carrier":"",
            "shipMethod":"",
            "trackingNumber":"",
            "estimatedArrivalDate":"0000-00-00",
            "deliveryStatus":"",
            "deliveryLastChecked":null,
            "shipTimestamp":null,
            "outForDeliveryTimestamp":null,
            "deliveryTimestamp":null,
            "id":"1-S01-9999999-2054905-ZZZ-1",
            "link":"http:\/\/api.sellerlabs.com\/v1\/orderItems\/1-S01-9999999-2054905-ZZZ-1"
         },
         {
            "orderId":"1-S01-0101010-2294969",
            "orderItemId":"1",
            "msku":"FOO-BAR-700-MS",
            "fulfillmentChannel":"Amazon",
            "title":"Sample Product",
            "image":"",
            "quantity":"1",
            "priceItem":"49.99",
            "priceShipping":"0",
            "priceTax":"0",
            "priceOther":"0",
            "priceDiscount":"0",
            "status":"Shipped",
            "modified":"2014-05-13T23:08:23Z",
            "notes":"",
            "cond":"new",
            "purchaseId":"0",
            "locationId":"0",
            "returnTimestamp":null,
            "returnReason":null,
            "returnCondition":null,
            "carrier":"UPS",
            "shipMethod":"Ground",
            "trackingNumber":"1Z01234567890ABCDEFG",
            "estimatedArrivalDate":"0000-00-00",
            "deliveryStatus":"",
            "deliveryLastChecked":null,
            "shipTimestamp":null,
            "outForDeliveryTimestamp":null,
            "deliveryTimestamp":null,
            "id":"1-S01-0101010-2294969-ZZZ-1",
            "link":"http:\/\/api.sellerlabs.com\/v1\/orderItems\/1-S01-0101010-2294969-ZZZ-1"
         },
    }
}