Перейти до основного вмісту

Item Reference API

Overview​

The WMS Item Reference API is a Business Central API page designed to manage item reference data. This API allows external systems to interact with item reference records, providing functionality for creating, reading, and updating item reference information.

API Details​

  • Publisher: smart
  • API Group: wms
  • API Version: v2.0
  • Entity Name: itemReference
  • Entity Set Name: itemReferences
  • Source Table: Item Reference
  • ODataKeyFields: SystemId

Fields​

The following fields are exposed in the API:

Field NameSource FieldRequiredDescription
ItemNoItem Reference."Item No."YesUnique identifier for the item.
ReferenceTypeItem Reference."Reference Type"YesType of the reference.
ReferenceTypeNoItem Reference."Reference Type No."YesNumber associated with the reference type.
ReferenceNoItem Reference."Reference No."YesReference number.
VariantCodeItem Reference."Variant Code"NoVariant code for the item.
UnitOfMeasureItem Reference."Unit of Measure"NoUnit of measure for the item.
StartingDateItem Reference."Starting Date"NoStarting date for the reference.
EndingDateItem Reference."Ending Date"NoEnding date for the reference.
DefaultBarcodeItem Reference."SMA Default Barcode"NoSpecifies whether the reference is the default barcode of the item (true or false). If another default barcode already exists for the same item, variant, and reference type, the value is reset to false.

Example Usage​

Create a New Item Reference​

POST host/instance/api/smart/wms/v2.0/companies(companyId)/itemReferences
Content-Type: application/json

{
"ItemNo": "ITEM001",
"ReferenceType": "Vendor",
"ReferenceTypeNo": "VEND001",
"ReferenceNo": "REF001",
"VariantCode": "VAR001",
"UnitOfMeasure": "PCS",
"StartingDate": "2023-01-01",
"EndingDate": "2023-12-31",
"DefaultBarcode": true
}

Retrieve an Item Reference​

GET host/instance/api/smart/wms/v2.0/companies(companyId)/itemReferences(00000000-0000-0000-0000-000000000000)

Update an Item Reference​

PATCH host/instance/api/smart/wms/v2.0/companies(companyId)/itemReferences(00000000-0000-0000-0000-000000000000)
Content-Type: application/json

{
"DefaultBarcode": false
}
© 2008 - 2026 SMART business