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 Name | Source Field | Required | Description |
|---|---|---|---|
ItemNo | Item Reference."Item No." | Yes | Unique identifier for the item. |
ReferenceType | Item Reference."Reference Type" | Yes | Type of the reference. |
ReferenceTypeNo | Item Reference."Reference Type No." | Yes | Number associated with the reference type. |
ReferenceNo | Item Reference."Reference No." | Yes | Reference number. |
VariantCode | Item Reference."Variant Code" | No | Variant code for the item. |
UnitOfMeasure | Item Reference."Unit of Measure" | No | Unit of measure for the item. |
StartingDate | Item Reference."Starting Date" | No | Starting date for the reference. |
EndingDate | Item Reference."Ending Date" | No | Ending date for the reference. |
DefaultBarcode | Item Reference."SMA Default Barcode" | No | Specifies 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
}