API Documentation

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

CONTENTS
RESOURCES
MACROS
VERBS
REPORTS

purchaseItems

The /purchaseItems resource describes the items, and their related quantities and costs associated with a purchase. Utilizing purchases and purchaseItems makes possible more accurate profit reporting, and reporting availailable by purchases and purchase dates

type Description
purchaseId purchaseId of the related purchase
msku msku of the item that was ordered
cost The per-unit cost for this item
qtyOrdered Quantity of the item that was ordered
qtyReceived Quantity of the item that has been received
created Object creation timestamp
modified Last modification timestamp

Sample purchaseItem Object

{
    "status":"success",
    "code":200,
    "httpCode":"200",
    "user":"117",
    "data":{
        "purchaseId":"16",
        "msku":"XH-GFBI-NU0P",
        "cost":"555.55",
        "qtyOrdered":"0",
        "qtyReceived":"0",
        "created":"2014-01-03T17:55:35+00:00Z",
        "modified":"2014-01-03T17:57:03+00:00Z",
        "link":"https:\/\/api.sellerlabs.com\/v1\/purchaseItems\/16-XH-GFBI-NU0P"
    }
}

Request Parameters

Most parameters operate very RESTfully

If you would like to alter the qtyOrdered or qtyReceived without replacing them while POSTing to this resource, use qtyOrderedChange and qtyReceivedChange. These two properties accept positive or negative integers. Changes are then summed with their variable counterparts.

Example: qtyOrdered += qtyOrderedChange

Response Parameters

All parameters operate very RESTfully