saveCompanyProductEnhancedV1
Changed onCreate a new product. Update an existing product's details.
Request
- Base URL//webservices-test.net-chef.com (relative, and the document’s source URL is not known)
- URL//webservices-test.net-chef.com/companyproduct/v1/saveCompanyProductsEnhanced
- Authnone declared. Required headers: authenticationtoken, password, sitename, userid
Headers
Secure token for API authentication.
Password for the Crunchtime Application User.
Crunchtime site identifier. (test or production)
User ID for the Crunchtime Application User.
Optional trace identifier for troubleshooting.
Request body
Example request
{
"companyProductEnhancedAllergenAttributeDetails": [
{
"activeFlag": "Y",
"nutritionClass": "Nutrition 1",
"value": "101"
}
],
"companyProductEnhancedConceptDetails": [
{
"activeFlag": "Y",
"code": "SEAFOOD-EM"
}
],
"companyProductEnhancedDepartmentDetails": [
{
"activeFlag": "Y",
"code": "100"
}
],
"companyProductEnhancedHeaderDetails": {
"activeFlag": "Y",
"alternateNameFive": "Alternate Language Product Name 5",
"alternateNameFour": "Alternate Language Product Name 4",
"alternateNameOne": "Alternate Language Product Name 1",
"alternateNameThree": "Alternate Language Product Name 3",
"alternateNameTwo": "Alternate Language Product Name 2",
"alternateUnitOneConversion": 9999.9999,
"alternateUnitOnePackageType": "LB",
"alternateUnitThreeConversion": 9999.9999,
"alternateUnitThreePackageType": "LB",
"alternateUnitTwoConversion": 9999.9999,
"alternateUnitTwoPackageType": "LB",
"bidSheet": "Beverages",
"bonded": "Y",
"categoryName": "FOOD",
"comment": "Remarks",
"containerVolumeUnitPackageType": "KG",
"containerVolumeUnitQuantity": 99999999.9999,
"containerWeightUnitPackageType": "KG",
"containerWeightUnitQuantity": 99999999.9999,
"countryOfOrigin": "country Of Origin",
"customsStatus": "customs Status",
"governmentMinimumStock": "government Minimum Stock",
"gradPlato": 99999.99,
"haccpCompliance": "Avoid Cross Contamination",
"inventoryUnitPackageType": "LB",
"issueUnitOneConversion": 99999999.999999,
"issueUnitOnePackageType": "B-1/6 PAN",
"issueUnitTwoConversion": 99999999.999999,
"issueUnitTwoInverted": "Y",
"issueUnitTwoPackageType": "CS",
"lotTracking": "Y",
"masterOrderType": "mod",
"microcategoryName": "MARGIN",
"name": "BUTTER",
"netWeightUnitPackageType": "3 KG",
"netWeightUnitQuantity": 999.9999,
"number": "10047",
"nutritionConversion": 9999.9999,
"nutritionPackage": "INVENTORY",
"percentageAlcohol": 99999.99,
"pharmaceuticalDosage": "pharmaceutical Dosage",
"preferredBrands": "MDR",
"preferredVendorUnitConversion": 9999.9999,
"preferredVendorUnitPackageType": "PU",
"prescriptionFlag": "prescription",
"primaryShippingType": "REFRIGERATED",
"productType": "S",
"recipeUnitFiveConversion": 99999999.999999,
"recipeUnitFivePackageType": "OZ",
"recipeUnitFourConversion": 99999999.999999,
"recipeUnitFourPackageType": "CUP",
"recipeUnitOneConversion": 99999999.999999,
"recipeUnitOnePackageType": "GAL",
"recipeUnitThreeConversion": 99999999.999999,
"recipeUnitThreePackageType": "QUART",
"recipeUnitTwoConversion": 99999999.999999,
"recipeUnitTwoPackageType": "HALF GAL",
"secondaryShippingType": "FROZEN",
"shelfLifeIssue": 9999,
"shelfLifeReceive": 9999,
"specialSizeUnit": 99999.99,
"stateOfOrigin": "state Of Origin",
"statisticItemNumber": "statistic ItemNumber",
"subcategoryName": "PREP",
"substituteProductOne": "Substitute Product 1",
"substituteProductTwo": "Substitute Product 2",
"temperature": 999.99,
"temperatureRequired": "Y",
"theoreticalEqualsActual": "Y",
"therapeuticCode": "therapeutic Code",
"universalProductCode": "12300123",
"universalProductNumber": "1230012",
"universalProductUnitConversion": 9999.9999,
"universalProductUnitInverted": "Y",
"universalProductUnitPackageType": "OZ FL"
},
"companyProductEnhancedShipLocationDetails": [
{
"activeFlag": "Y",
"locationName": "Excelsior"
}
],
"companyProductEnhancedUpcDetails": [
{
"activeFlag": "Y",
"code": "12300123"
}
],
"companyProductEnhancedUserDefinedCategoryDetails": [
{
"activeFlag": "Y",
"code": "cd 1"
}
]
}Response
Success (If Automatically Create Company Product Number preference is OFF then success response is empty otherwise auto generated product number with name is returned )
Example response
[
{
"name": "Test Product-1",
"number": "PRD-17039"
}
]Changes
- warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the optional property
/from the response with the status (media type: */*) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: */*) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: */*) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: */*) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: */*) - warning
removed the optional property
/from the response with the status (media type: application/json) - warning
removed the optional property
/from the response with the status (media type: */*) - warning
removed the optional property
/from the response with the status (media type: application/json)
- warning