Перейти к основному содержимому

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: Item No., Variant Code, Unit of Measure, Reference Type, Reference Type No., Reference No.

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"NoDefault barcode for the item.

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": "1234567890123"
}

Retrieve an Item Reference

GET host/instance/api/smart/wms/v2.0/companies(companyId)/itemReferences('ITEM001', 'VAR001', 'PCS', 'Vendor', 'VEND001', 'REF001')

Update an Item Reference

PATCH host/instance/api/smart/wms/v2.0/companies(companyId)/itemReferences('ITEM001', 'VAR001', 'PCS', 'Vendor', 'VEND001', 'REF001')
Content-Type: application/json

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