// fusionrest agent · supply chain and manufacturing · maintenance
Trunk Stocks
trunkStocks Based on 26C
Look up Trunk Stocks. Read-only.
The record key trunkStocksUniqID is a generated hash. Take it from the record's links (rel self) in a GET response; never build it yourself.
/fscmRestApi/resources/11.13.18.05/trunkStocks
- Operations
- GET (list)GET (one)
- Record key
trunkStocksUniqID- Required on create
- no create on this resource
- At a glance
- 16 fields0 finders0 children
Try it
Response fields ·
Filters (q)
Only attributes Oracle marks as searchable are offered.
Paging and options
limit
GET /fscmRestApi/resources/11.13.18.05/trunkStocks?fields=InventoryItemId,ItemDescription,ItemNumber,ItemSerialControl,OrganizationCode&limit=25&onlyData=true
Response shape (placeholders)
{
"items": [
{
"InventoryItemId": 0,
"ItemDescription": "<string, max 240>",
"ItemNumber": "<string, max 300>",
"ItemSerialControl": 0,
"OrganizationCode": "<string, max 18>"
}
],
"count": 25,
"hasMore": true,
"limit": 25,
"offset": 0
}Shapes and placeholders, not real data. Replace https://<your-pod> and the login with your own: this site never sees them. Based on Oracle's 26C REST specification.
Fields 16
| Attribute | Type | Use |
|---|---|---|
InventoryItemId | number | Read-onlySearchable |
ItemDescription | text · max 240 | Read-onlySearchable |
ItemNumber | text · max 300 | Read-onlySearchable |
ItemSerialControl | number | Read-onlySearchable |
OrganizationCode | text · max 18 | Read-onlySearchable |
OrganizationId | number | Read-onlySearchable |
RecoveredPartDispCode | text · max 30 | Read-onlySearchable |
Revision | text · max 18 | Read-onlySearchable |
SerialNumber | text · max 80 | Read-onlySearchable |
StockLocationId | number | Read-onlySearchable |
Subinventory | text · max 10 | Read-onlySearchable |
TotalAvailable | number | Read-onlySearchable |
TotalQoh | number | Read-onlySearchable |
TransactionDate | date-time | Read-onlySearchable |
UOMCode | text · max 3 | Read-onlySearchable |
UnitOfMeasure | text · max 25 | Read-onlySearchable |
Names, types, labels and flags from Oracle's REST specification (26C). Flexfield and custom attributes vary by pod: check /describe for yours.
Check a payload
Checked in your browser only; nothing you paste is sent anywhere. Checks names and flags, not values.
Use in AI Agent Studio
- Point a Business Object or REST tool at
/fscmRestApi/resources/11.13.18.05/trunkStocksand ask only for the fields the agent needs withfields=. Big responses cost tokens and slow the agent. - Narrow with
q=on searchable fields and a smalllimit; for a count usetotalResults=true&limit=1. - Call once and pass the result on to later steps rather than calling the same endpoint again.
More in For Builders.
Pitfalls
- Attribute names are case-sensitive in
q,fieldsand bodies:InventoryItemId, notinventoryitemid. onlyData=trueremoveslinks, and this resource's key only comes fromlinks. Leave it off when you need the key.- Send dates as
YYYY-MM-DD; date-time fields take ISO 8601 with a time zone. - A list returns 25 rows unless you set
limit; readhasMoreand moveoffsetto page through.