Finished goods by bay, ageing and value
GET
/v1/stockAuth: 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
| Name | Type | Description |
|---|---|---|
rack | string | Rack code, e.g. A. Matches every bay on that rack. |
Response
200
| Field | Type | Description |
|---|---|---|
summary | object | · |
pieces | integer | · |
under_7 | integer | pieces in stock under 7 days |
days_8_14 | integer | · |
over_14 | integer | · |
avg_days | any | Postgres numeric, comes back as a decimal string |
value_at_cost | any | Postgres numeric, comes back as a decimal string; null with no unit_cost configured |
racks | object[] | · |
code | string | · |
zone | string | · |
bays | integer | · |
bay_capacity | integer | · |
bays | object[] | · |
bay | string | · |
pieces | integer | · |
oldest | string (date-time) | · |
over_7_days | boolean | · |
Code samples
curl "https://api.skuflo.io/v1/stock" \
-H "Authorization: Bearer sk_live_..."