Skip to main content

Items & Inventory Endpoints (cont.)

Items & Inventory (continued)

ItemStock (continued)

POST /ItemStock — Create/Update Item Stock

Request body: array of ItemStock objects.

GET /ItemStock/{id} — Get One Item Stock Record

Returns a single ItemStock record. Requires authentication.

ParameterTypeDescription
idinteger (path, required)ItemStock ID
includedetailsbooleanInclude extra objects in the response

DELETE /ItemStock/{id} — Delete Item Stock Record

ParameterTypeDescription
idinteger (path, required)ItemStock ID

ItemStock schema:

FieldTypeDescription
idintegerUnique stock record ID
item_idintegerItem ID
item_namestringItem name
item_assettype_idintegerAsset type of the item
stocklocation_idintegerStock location ID
stocklocation_namestringStock location name
stockbin_idintegerStock bin ID
stockbin_namestringStock bin name
datedate-timeDate of the stock transaction
quantity_indoubleQuantity received/added
quantity_issueddoubleQuantity issued/consumed (read-only)
quantity_remainingdoubleCurrent quantity remaining
costdoubleUnit cost of this stock
supplier_idintegerSupplier ID
supplier_namestringSupplier name
purchaseorder_idintegerLinked purchase order ID
purchaseorder_line_idintegerLinked purchase order line ID
purchaseorder_refstringPurchase order reference
salesorder_idintegerLinked sales order ID
ticket_idintegerLinked ticket ID
serialised_asset_countintegerNumber of serialised assets in this stock batch
serialised_assets_in_stockintegerNumber of serialised assets currently in stock
serialised_assetsarraySerialised asset device records
is_stock_takebooleanWhether this is a stock take record
delivering_to_userbooleanWhether stock is being delivered to a user
dont_track_stockbooleanWhether to skip stock tracking
notestringStock record note

ItemStockHistory

Historical log of stock movements.

GET /ItemStockHistory — List Stock History

Returns multiple ItemStockHistory records. Requires authentication.

ParameterTypeDescription
countintegerNumber of records to return
idonlybooleanReturn IDs only
item_idintegerFilter by item ID
itemstock_idintegerFilter by item stock record ID
orderorder5stringOrder fields
orderdescorderdesc5booleanDescending order flags
page_nointegerPage number for pagination
page_sizeintegerPage size for pagination
pageinatebooleanWhether to use pagination
searchstringFilter by search string
stockbin_idintegerFilter by stock bin ID
stocklocation_idintegerFilter by stock location ID

GET /ItemStockHistory/{id} — Get One Stock History Record

ParameterTypeDescription
idinteger (path, required)ItemStockHistory ID

ItemSupplier

Supplier-specific pricing records for items.

GET /itemsupplier — List Item Suppliers

Returns all ItemSupplier records.

POST /itemsupplier — Create/Update Item Suppliers

Request body: array of ItemSupplier objects.

GET /itemsupplier/{id} — Get One Item Supplier

Returns a single ItemSupplier record. Requires authentication.

ParameterTypeDescription
idinteger (path, required)ItemSupplier ID
includedetailsbooleanInclude extra objects in the response

DELETE /itemsupplier/{id} — Delete Item Supplier

ParameterTypeDescription
idinteger (path, required)ItemSupplier ID

ItemSupplier schema:

FieldTypeDescription
idintegerUnique ID
guiduuidUnique GUID
item_idintegerItem ID
supplier_idintegerSupplier ID
supplier_namestringSupplier name
pricedoubleSupplier-specific selling price
costdoubleSupplier-specific cost price
client_idintegerClient-specific pricing client ID
client_namestringClient name
supplier_skustringSupplier's SKU/part number
currency_idintegerCurrency ID for this supplier pricing
currency_namestringCurrency name
notestringNotes

StockBin

Physical storage bin locations within a stock location.

GET /StockBin — List Stock Bins

Returns all StockBin records.

POST /StockBin — Create/Update Stock Bins

Request body: array of StockBin objects.

GET /StockBin/{id} — Get One Stock Bin

ParameterTypeDescription
idinteger (path, required)StockBin ID

DELETE /StockBin/{id} — Delete Stock Bin

ParameterTypeDescription
idinteger (path, required)StockBin ID

StockBin schema:

FieldTypeDescription
idintegerUnique bin ID
namestringBin name
site_idintegerSite/location ID this bin belongs to
parent_idintegerParent bin ID (for nested bins)
parent_namestringParent bin name
sequenceintegerDisplay order sequence
dont_add_to_orderbooleanWhether to exclude this bin from order suggestions

StockTrace

Traceability records for serialised stock movements.

GET /StockTrace — List Stock Traces

Returns all StockTrace records.

GET /StockTrace/{id} — Get One Stock Trace

ParameterTypeDescription
idinteger (path, required)StockTrace ID

PartsLookup

Database lookup configurations for automatically populating item/parts data from external databases.

GET /DatabaseLookup — List Parts Lookups

Returns multiple PartsLookup records. Requires authentication.

ParameterTypeDescription
typeintegerFilter by lookup type

POST /DatabaseLookup — Create/Update Parts Lookups

Request body: array of PartsLookup objects.

GET /DatabaseLookup/{id} — Get One Parts Lookup

Returns a single PartsLookup record. Requires authentication.

ParameterTypeDescription
idinteger (path, required)PartsLookup ID
includedetailsbooleanInclude extra objects in the response
lookup_valueobjectValue to use when running the lookup

DELETE /DatabaseLookup/{id} — Delete Parts Lookup

ParameterTypeDescription
idinteger (path, required)PartsLookup ID

POST /DatabaseLookup/run — Run Parts Lookup

Executes a parts lookup against the configured external database. Request body: array of PartsLookup objects.

PartsLookup schema:

FieldTypeDescription
idintegerUnique lookup ID
guiduuidUnique GUID
namestringLookup name
useintegerLookup use type
activebooleanWhether this lookup is active
field_idintegerField ID to populate from lookup result
field_namestringField name to populate
table_idintegerSource table ID
table_namestringSource table name
sql_serverstringSQL server hostname
sql_databasestringSQL database name
sql_userstringSQL username
sql_scriptstringSQL query script
key_fieldstringKey field in the lookup result
lookup_fieldstringField to match on
lookup_valuestringValue to look up
allowmultipleresultsbooleanWhether to allow multiple results
lookuponrefreshbooleanWhether to re-run on form refresh
matchedhintstringMessage shown when a match is found
notmatchedhintstringMessage shown when no match is found
showmessagetouseroragentintegerWho to show the result message to
messagerequiresconfirmationuserbooleanWhether user must confirm the message
messagerequiresconfirmationagentbooleanWhether agent must confirm the message
fieldsarrayPartsLookupField definitions
field_mappingsarrayPartsLookupMapping definitions
agent_mappingsarrayTechPartsLookup agent-specific mappings
rulesarrayAutoassign rules
lookup_typeintegerLookup type
lookup_type_namestringLookup type name
client_idintegerAssociated client ID
ticket_idintegerAssociated ticket ID
asset_idintegerAssociated asset ID
trigger_typeintegerTrigger type for auto-running the lookup
integration_method_idintegerIntegration method ID
integration_method_namestringIntegration method name

PartsLookupConfirmation

Records user/agent confirmations on parts lookup results.

GET /DatabaseLookupConfirmation/{id} — Get One Lookup Confirmation

ParameterTypeDescription
idinteger (path, required)PartsLookupConfirmation ID

POST /DatabaseLookupConfirmation — Create/Update Lookup Confirmations

Request body: array of PartsLookupConfirmation objects.

PartsLookupConfirmation schema:

FieldTypeDescription
idintegerUnique confirmation ID
database_lookup_idintegerThe PartsLookup this confirmation belongs to
ticket_idintegerAssociated ticket ID
form_idstringForm ID where the confirmation was presented
valueintegerConfirmation value (accepted/rejected)
lookup_valuesstringThe lookup values that were confirmed