Finished goods by bay, ageing and value

GET/v1/stock
Auth: Factory API key

Only pieces currently in_stock (booked onto a rack bay, not yet dispatched). Filter to one rack with ?rack=A.

Query parameters

NameTypeDescription
rackstringRack code, e.g. A. Matches every bay on that rack.

Response

200

FieldTypeDescription
summaryobject·
piecesinteger·
under_7integerpieces in stock under 7 days
days_8_14integer·
over_14integer·
avg_daysanyPostgres numeric, comes back as a decimal string
value_at_costanyPostgres numeric, comes back as a decimal string; null with no unit_cost configured
racksobject[]·
codestring·
zonestring·
baysinteger·
bay_capacityinteger·
baysobject[]·
baystring·
piecesinteger·
oldeststring (date-time)·
over_7_daysboolean·

Code samples

curl "https://api.skuflo.io/v1/stock" \
  -H "Authorization: Bearer sk_live_..."