logo

ID: 6742
Updated 1/26/2017 3:38:29 AM

  • Contents

Documentation - Stock

API Lite has been superseded by API v1 - this information is for legacy users only.

 

Get Stock


Retrieve stock. Returns blank if no records were found.

Action

GetStock

Url format

GET https://api.cin7.com/cloud/APILite/APILite.ashx?apiid={apiid}&apikey={apikey}&action=GetStock&fields={feilds}&where={where}&orderby={orderby}

Response Fields

Field Description
ProductId The unique cin7 product id.
StyleCode The unique cin7 product code.
SKU The unique cin7 price break id.
Code The unique cin7 price break code.
Product Product name
Option1 Option 1
Option2 Option 2
LastModified Last Modified
Barcode Barcode
Sizes Sizes
SOH Stock on hand
OnOrder On Order
Incoming Incoming
BranchId The unique cin7 member id of the branch.
Branch Branch name

Get stock of a product

Request

Fields: 
Where: ProductId=789
OrderBy: GET https://api.cin7.com/cloud/APILite/APILite.ashx?apiid=123&apikey=12345&action=GetStock&where=ProductId%3D789

Response

ProductId,StyleCode,SKU,Code,Product,Option1,Option2,LastModified,Barcode,Sizes,SOH,OnOrder,Incoming,BranchId,Branch
789,ABC Supplier,13,test1234,test123,,,2015-09-21 10:47:43,,,0,0,1,3,Main Branch