Skip to main content

Product Master

AdOr5 requires that all products are loaded into the system prior to receiving any of the units into the warehouse.
Product master records that are created or updated in the host system must be sent to AdOr5 when new products are created, modified and/or marked as inactive in the host system. Multiple barcodes can also be stored against a single product.

Below you will find the Actions with descriptions and the Specfication for the requests.

Actions

VIEW

This method allows you to view an empty productmaster.json file

Request details

MethodEndpointHeader keyHeader Value
VIEWBaseURL/api/productX-AUTH-TOKENIntegration Service API key

Request Response

{
"ProductType": {
"TypeNo": null,
"TypeDesc": null
},
"ProductStorageType": {
"StorageTypeID": 0,
"StorageTypeCode": null,
"StorageTypeDesc": null
},
"ProductDepartment": {
"DepartmentNo": null,
"DepartmentDesc": null
},
"Barcodes": [
"",
""
],
"ProductID": 0,
"GroupNo": null,
"DepartmentNo": null,
"DepartmentDesc": null,
"TypeNo": null,
"StyleNo": null,
"StyleDesc": null,
"ColourCode": null,
"ColourDesc": null,
"SizeCode": null,
"SizeDesc": null,
"SizeSort": null,
"SKUNo": null,
"PackQty": null,
"CostPrice": 0.0,
"SellPrice": 0.0,
"ProductWeight": 0.0,
"ProductCube": 0.0,
"LotDimensionID": null,
"LotQty": null,
"StorageTypeID": null,
"StorageTypeCode": null,
"CountryCode": null,
"TechIndex": null,
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"SeasonCode": null,
"TimePeriod": null,
"ChildQty": null,
"ParentQty": null,
"ControllerCode": null,
"ControllerName": null,
"Grade": null,
"SupplierType": null,
"SupplierName": null,
"SupplierCity": null,
"SerialControlled": false,
"CanExpire": false,
"WeighableItem": false,
"ProductLength": 0.0,
"ProductWidth": 0.0,
"ProductHeight": 0.0,
"Ref1": null,
"Ref2": null
}

POST

This method allows you to post to the ProductMasterSTD_API Interface.

Request details

MethodEndpointHeader keyHeader Value
POSTBaseURL/api/productX-AUTH-TOKENIntegration Service API key

Request Body


{
"interfaceName" : "ProductMasterSTD_API",
"returnDetailedData" : true,
"data": [{
"ProductType": {
"TypeNo": "DemoProdType",
"TypeDesc": null
},
"ProductStorageType": {
"StorageTypeID": 0,
"StorageTypeCode": "DemoStorageType",
"StorageTypeDesc": null
},
"ProductDepartment": {
"DepartmentNo": "TestDep",
"DepartmentDesc": null
},
"Barcodes": [
],
"ProductID": 0,
"GroupNo": null,
"DepartmentNo": null,
"DepartmentDesc": null,
"TypeNo": null,
"StyleNo": "885533",
"StyleDesc": "APIDemo",
"ColourCode": null,
"ColourDesc": null,
"SizeCode": null,
"SizeDesc": null,
"SizeSort": null,
"SKUNo": "885533",
"PackQty": 0,
"CostPrice": 0.0,
"SellPrice": 0.0,
"ProductWeight": 0.0,
"ProductCube": 0.0,
"LotDimensionID": null,
"LotQty": null,
"StorageTypeID": null,
"StorageTypeCode": null,
"CountryCode": null,
"TechIndex": null,
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"SeasonCode": null,
"TimePeriod": null,
"ChildQty": null,
"ParentQty": null,
"ControllerCode": null,
"ControllerName": null,
"Grade": null,
"SupplierType": null,
"SupplierName": null,
"SupplierCity": null,
"SerialControlled": false,
"CanExpire": false,
"WeighableItem": false,
"ProductLength": 0.0,
"ProductWidth": 0.0,
"ProductHeight": 0.0,
"Ref1": null,
"Ref2": null
}]
}

Request Response

{
"success": true,
"message": null,
"errorData": null,
"returnData": [
{
"productType": {
"typeNo": "DemoProdType",
"typeDesc": "DemoProdType"
},
"productStorageType": {
"storageTypeID": 12,
"storageTypeCode": "DemoStorageType",
"storageTypeDesc": "DemoStorageType"
},
"productDepartment": {
"departmentNo": "TestDep",
"departmentDesc": "TestDep"
},
"barcodes": [],
"productID": 22,
"groupNo": null,
"departmentNo": "TestDep",
"departmentDesc": null,
"typeNo": "DemoProdType",
"styleNo": "885533",
"styleDesc": "APIDemo",
"colourCode": null,
"colourDesc": null,
"sizeCode": null,
"sizeDesc": null,
"sizeSort": null,
"skuNo": "885533",
"packQty": 0,
"costPrice": 0.0,
"sellPrice": 0.0,
"productWeight": 0.0,
"productCube": 0.0,
"lotDimensionID": null,
"lotQty": null,
"storageTypeID": 12,
"storageTypeCode": "DemoStorageType",
"countryCode": null,
"techIndex": null,
"createDate": "0001-01-01T00:00:00",
"createUID": 0,
"seasonCode": null,
"timePeriod": null,
"childQty": null,
"parentQty": null,
"controllerCode": null,
"controllerName": null,
"grade": null,
"supplierType": null,
"supplierName": null,
"supplierCity": null,
"serialControlled": false,
"canExpire": false,
"weighableItem": false,
"productLength": 0.0,
"productWidth": 0.0,
"productHeight": 0.0,
"ref1": null,
"ref2": null
}
]
}

PUT

This method allows you to put to the ProductMasterSTD_JSON Interface.

Request details

MethodEndpointHeader keyHeader Value
PUTBaseURL/api/productX-AUTH-TOKENIntegration Service API key

Request Body

{
"interfaceName" : "ProductMasterSTD_API",
"returnDetailedData" : true,
"data": [{
"ProductType": {
"TypeNo": "DemoProdType",
"TypeDesc": null
},
"ProductStorageType": {
"StorageTypeID": 0,
"StorageTypeCode": "DemoStorageType",
"StorageTypeDesc": null
},
"ProductDepartment": {
"DepartmentNo": "TestDep",
"DepartmentDesc": null
},
"Barcodes": [
],
"ProductID": 0,
"GroupNo": null,
"DepartmentNo": null,
"DepartmentDesc": null,
"TypeNo": null,
"StyleNo": "885533",
"StyleDesc": "APIDemo",
"ColourCode": null,
"ColourDesc": null,
"SizeCode": null,
"SizeDesc": null,
"SizeSort": null,
"SKUNo": "885533",
"PackQty": 0,
"CostPrice": 15.0,
"SellPrice": 20.0,
"ProductWeight": 0.0,
"ProductCube": 0.0,
"LotDimensionID": null,
"LotQty": null,
"StorageTypeID": null,
"StorageTypeCode": null,
"CountryCode": null,
"TechIndex": null,
"CreateDate": "0001-01-01T00:00:00",
"CreateUID": 0,
"SeasonCode": null,
"TimePeriod": null,
"ChildQty": null,
"ParentQty": null,
"ControllerCode": null,
"ControllerName": null,
"Grade": null,
"SupplierType": null,
"SupplierName": null,
"SupplierCity": null,
"SerialControlled": false,
"CanExpire": false,
"WeighableItem": false,
"ProductLength": 0.0,
"ProductWidth": 0.0,
"ProductHeight": 0.0,
"Ref1": null,
"Ref2": null
}]
}

Response

{
"success": true,
"message": null,
"errorData": null,
"returnData": [
{
"productType": {
"typeNo": "DemoProdType",
"typeDesc": "DemoProdType"
},
"productStorageType": {
"storageTypeID": 12,
"storageTypeCode": "DemoStorageType",
"storageTypeDesc": "DemoStorageType"
},
"productDepartment": {
"departmentNo": "TestDep",
"departmentDesc": "TestDep"
},
"barcodes": [],
"productID": 22,
"groupNo": null,
"departmentNo": "TestDep",
"departmentDesc": null,
"typeNo": "DemoProdType",
"styleNo": "885533",
"styleDesc": "APIDemo",
"colourCode": null,
"colourDesc": null,
"sizeCode": null,
"sizeDesc": null,
"sizeSort": null,
"skuNo": "885533",
"packQty": 0,
"costPrice": 15.0,
"sellPrice": 20.0,
"productWeight": 0.0,
"productCube": 0.0,
"lotDimensionID": null,
"lotQty": null,
"storageTypeID": 12,
"storageTypeCode": "DemoStorageType",
"countryCode": null,
"techIndex": null,
"createDate": "0001-01-01T00:00:00",
"createUID": 0,
"seasonCode": null,
"timePeriod": null,
"childQty": null,
"parentQty": null,
"controllerCode": null,
"controllerName": null,
"grade": null,
"supplierType": null,
"supplierName": null,
"supplierCity": null,
"serialControlled": false,
"canExpire": false,
"weighableItem": false,
"productLength": 0.0,
"productWidth": 0.0,
"productHeight": 0.0,
"ref1": null,
"ref2": null
}
]
}

Specification

Product Type

FieldTypeNotesReq
typeNoString (15)Y
typeDescString (50)Defaults to typeNoN

Product Storage Type

FieldTypeNotesReq
storageTypeIDIntegerN
storageTypeCodeString (20)Y
storageTypeDescString (30)Defaults to storageTypeCodeN

Product Department

FieldTypeNotesReq
departmentNoString (15)Y
departmentDescString (50)N

Barcodes

A string array. Not required.

Product Master

FieldTypeNotesReq
productIDIntegerN
groupNoString (15)N
departmentNoString (15)Uses the departmentNo in productDepartmentN
departmentDescString (50)Uses the departmentDesc in productDepartmentN
typeNoString (15)Uses the typeNo in productTypeN
styleNoString (30)Y
styleDescString (50)Y
colourCodeString (10)N
colourDescString (30)N
sizeCodeString (10)N
sizeDescString (30)N
sizeSortIntegerN
skuNoString (30)Y
packQtyIntegerN
costPriceFloatN
sellPriceFloatN
productWeightFloatN
productCubeFloatN
lotDimensionIDIntegerN
lotQtyIntegerN
storageTypeIDIntegerN
storageTypeCodeString (20)Uses the storageTypeCode in productStorageTypeN
countryCodeString (10)N
techIndexString (3)N
createDatetimestampN
createUIDIntegerN
seasonCodeString (10)N
timePeriodString (3)N
childQtyIntegerN
parentQtyIntegerN
controllerCodeString (10)N
controllerNameString (30)N
gradeString (10)N
supplierTypeString (10)N
supplierNameString (60)N
supplierCityString (10)N
serialControlledBooleanN
canExpireBooleanN
weighableItemBooleanN
productLengthFloatN
productWidthFloatN
productHeightFloatN
ref1String (255)N
ref2String (255)N