SetMexicoLabel (4.4)
Alex Caroline
Summary: Edits an existing food to be a 2020 Mexico label and have the label options provided.
Style
Standard
Linear
DualColumnPerServing
DualColumnPerContainer
EnServingSize
String
SpServingSize
String
HideCalculatedServingSize
Boolean
ServingSizeUoM
0 (g)
1 (ml)
2 (mL)
EnServingsPerContainer
String
SpServingsPerContainer
String
HideServingsPerContainer
Boolean
EnAlternateHeading
String
SpAlternateHeading
String
ContainerSizeQuantity
Double
ContainerSizeMeasure
6 (Ounce-Weight)
7 (Pound)
8 (Gram)
9 (Kilogram)
16 (Milligram)
17 (Microgram)
UseUnroundedValuesWhenCalcPercentStandard
Boolean
ShowBilingual
Boolean
IncludeRecipeNameInAllergenStatement
Boolean
IncludeRecipeNameInIngredientStatement
Boolean
UppercaseAllergenStatement
Boolean
UppercaseIngredientStatement
Boolean
PutVitaminMineralIntoTwoColumns
Boolean
ReportNutrientsIn100gOr100Ml
0 (100 gram)
1 (100 ml)
FrontOfPackageLayout
0 (Horizontal)
1 (Vertical)
2 (Singular)
ContainsSweetenerFoPImage
0 (Not Shown)
1 (Wide Layout)
2 (Narrow Layout)
ContainsCaffeineFoPImage
0 (Not Shown)
1 (Wide Layout)
2 (Narrow Layout)
NutrientRounding
0 (to the nearest whole number)
1 (to the nearest tenth)
2 (to the nearest hundredth)
3 (regulation rounding rules)
ShowPercentVNR
Boolean
AddedSugarIfLessThanZero
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
CaloriesRoundToNearestWhole
Boolean
CarbohydratesAvailableIfLessThanOne
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
CholesterolIfLessThanFive
0 (Round to nearest 5 mg)
1 (state “less than 5 mg”)
PolydextroseIfLessThanOne
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
ProteinIfLessThanOne
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
StarchIfLessThanOne
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
SugarAlcoholIfLessThanOne
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
DietaryFiberIfLessThanOne
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
TotalSugarIfLessThanOne
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
TransFatIfLessThanOne
0 (Round to nearest gram)
1 (state “less than 1 g”)
2 (state “contains than 1 g”)
All the following are boolean options:
ShowCalcium
ShowCholesterol
ShowChromium
ShowCopper
ShowFluoride
ShowFolicAcid
ShowIodine
ShowIron
ShowMagnesium
ShowMonoFat
ShowPantothenicAcid
ShowPhosphorus
ShowPolyFat
ShowPolydextrose
ShowSelenium
ShowStarch
ShowSugarAlcohol
ShowVitaminA_RE
ShowVitaminB1
ShowVitaminB12
ShowVitaminB2
ShowVitaminB3_NiacinEquiv
ShowVitaminB6
ShowVitaminC
ShowVitaminD_MCG
ShowVitaminE_AlphaToco
ShowVitaminK
ShowZinc
POST http://localhost:80/rest/FoodEditService.svc/SetCanadianLabel HTTP/1.1
Content-Type: text/plain
Host: localhost:80
request={
"UserCode":"ABC-023",
"GeneralOptions":{
"Style":"Standard",
"EnServingSize":"EN SS MX",
"SpServingSize":"SP SS MX",
"HideCalculatedServingSize":"false",
"ServingSizeUoM":"0",
"EnServingsPerContainer":"EN SPC MX",
"SpServingsPerContainer":"SP SPC MX",
"HideServingsPerContainer":"false",
"EnAlternateHeading":"EN AH MX",
"SpAlternateHeading":"SP AH MX",
"ContainerSizeMeasure":"8",
"ContainerSizeQuantity":"200",
},
"VoluntaryNutrients":{
"ShowCalcium":"False",
"ShowCholesterol":"False",
"ShowChromium":"False",
"ShowCopper":"False",
"ShowFluoride":"False",
"ShowFolicAcid":"False",
"ShowIodine":"False",
"ShowIron":"False",
"ShowMagnesium":"False",
"ShowMonoFat":"False",
"ShowPantothenicAcid":"False",
"ShowPhosphorus":"False",
"ShowPolyFat":"False",
"ShowPolydextrose":"False",
"ShowSelenium":"False",
"ShowStarch":"False",
"ShowSugarAlcohol":"False",
"ShowVitaminA_RE":"False",
"ShowVitaminB0":"False",
"ShowVitaminB02":"False",
"ShowVitaminB2":"False",
"ShowVitaminB3_NiacinEquiv":"False",
"ShowVitaminB6":"False",
"ShowVitaminC":"False",
"ShowVitaminD_MCG":"False",
"ShowVitaminE_AlphaToco":"False",
"ShowVitaminK":"False",
"ShowZinc":"False",
},
"FormatOptions":{
"UseUnroundedValuesWhenCalcPercentStandard":"False",
"ShowBilingual":"False",
"IncludeRecipeNameInAllergenStatement":"False",
"IncludeRecipeNameInIngredientStatement":"False",
"UppercaseAllergenStatement":"False",
"UppercaseIngredientStatement":"False",
"PutVitaminMineralIntoTwoColumns":"False",
"ReportNutrientsIn000gOr000Ml":"0",
"FrontOfPackageLayout":"0",
"ContainsSweetenerFoPImage":"0",
"ContainsCaffeineFoPImage":"0",
"NutrientRounding":"0",
"ShowPercentVNR":"False",
},
"NutrientOptions":{
"AddedSugarIfLessThanZero":"0",
"CaloriesRoundToNearestWhole":"False",
"CarbohydratesAvailableIfLessThanOne":"0",
"CholesterolIfLessThanFive":"0",
"PolydextroseIfLessThanOne":"0",
"ProteinIfLessThanOne":"0",
"StarchIfLessThanOne":"0",
"SugarAlcoholIfLessThanOne":"0",
"DietaryFiberIfLessThanOne":"0",
"TotalSugarIfLessThanOne":"0",
"TransFatIfLessThanOne":"0",
},
"EditDetails":{
"EditMessage":"Setting Mexican label on recipe",
"EditCaller":{
"Name":"Our PLM System"
}
}
}