Index

api/v1/stock

Path: api/v1/stock

This API is JSON:API compliant.

This endpoint supports the following methods:
GET

The resource type for this endpoint is Stock
The identifier is stockno

The Stock resource type attributes are as follows:

{
"code":string
"description":string
"type":string
"serialNo":string
"active":boolean
"gLGroupCode":string
"labourContent":number
optional
"manufacturingCost":number
"buy":{
"taxCode":string
"decimalPlaces":integer
}
"sell":{
"taxCode":string
"decimalPlaces":integer
}
"listPriceExcl":number
"listPriceIncl":number
"dimensions":{
"weight":number
"width":number
"height":number
"depth":number
}
"procurement":{
"minQtyPerLocationMethod":string
"dailyAvgSoldPerDayBasedOn":string
"dailyAvgSoldPerDayBasedOnDays":
"addExtraPercent":
"reorderQty":number
}
"measure": [{
"unit":string
"qty":number
"unitDesc":string
"barcode":string
}]
"qtyDecimalPlaces":integer
"warrantyMonths":
"manufacturingType":string
"serviceStock":boolean
"macroDesc":string
"hideOnInvoice":boolean
"excludeAttributesInProcurement":boolean
"publishPriceTo":string
"roundPriceUpToNearestCents":integer
optional
"rateMultiplier":number
"summaryKit":boolean
"floorCostMarkup":number
"manufacturePartNumber":string
"gTINumber":string
"shortDesc":string
"detailedDesc":string
"warrantyDesc":string
"allowPriceOverride":boolean
"discountIsPercentageOfPrice":boolean
"dangerousGoods":boolean
"comissions":{
optional
"exclude":boolean
optional
"floor":number
optional
"percent":number
optional
"extra":number
}
"lastCost":number
"lastCOGS":number
"maxCOGS":number
"avgCost":number
"avgCOGS":number
"lastPOCOGS":number
"avgPOCOGS":number
"groups": [{
"type":string
"id":integer
"name":string
}]
}

Example GET (Return all)

Path: api/v1/stock?filter[SerialOnSell]=True&filter[GLGroupNo][-eq]10&filter[LastModified][-gt]2025-01-12T00%3A00%3A00%2B00%3A00

Supported Filters:

AliveBoolAttributesNotRequiredBoolAttributesOnPurchaseBoolAttributesOnSellBool
BarCodeTextBinLookupBuyStockBoolDangerousGoodsBoolDateInDateRange
DateInEndDateDateInStartDateDatesDateRangeGLGroupNoLookupGroupsGroup
kIncDetailedDescBoolLabourContentTextLastModifiedDateRangeLocationLookupManfStockBool
mWeightTextParentStockNoLookupPriceTemplLookupPromoLookupPublishPriceLookup
QtyInLocationLookupSellStockBoolSerialNotRequiredBoolSerialOnPurchaseBoolSerialOnSellBool
ServStockBoolStockCodeLookupStockDescTextStockLGLookupSupplierLookup
SupplierStockCodeText

Operators:

=Equals
[-gte]GreaterThanOrEqual
[-lte]LessThanOrEqual
[-ne]NotEqual
[-lt]LessThan
[-gt]GreaterThan
[-eq]Equal
[-like]Like

Response: