sfgboxapi

<back to all web services

ProductsMetricsAutoQueryEdit

ProductsMetrics Parameters:
NameParameterData TypeRequiredDescription
IdformlongYes
TenantsIdformlongYes
ZonesIdformlongYes
ProductsIdformlongYes
PriceKgformdoubleYes
PriceDescriptionformstringYes
BetaineMgformdouble?No
CalciumMgformdouble?No
CholineMgformdouble?No
CopperMgformdouble?No
FiberGformdouble?No
FluorideMgformdouble?No
FolateMcgformdouble?No
IronMgformdouble?No
MagnesiumMgformdouble?No
MangeneseMgformdouble?No
MonoGformdouble?No
NiacinMgformdouble?No
Omega3Mgformdouble?No
Omega6Mgformdouble?No
PanthenicAcidMgformdouble?No
PhosphorusMgformdouble?No
PolyGformdouble?No
PotassiumMgformdouble?No
ProteinGformdouble?No
RiboflavinMgformdouble?No
SaturatedGformdouble?No
SeleniumMcgformdouble?No
SodiumMgformdouble?No
StarchGformdouble?No
SugarsGformdouble?No
ThiaminMgformdouble?No
VitaminAMcgformdouble?No
VitaminB12Mcgformdouble?No
VitaminB6Mgformdouble?No
VitaminCMgformdouble?No
VitaminDMgformdouble?No
VitaminEMgformdouble?No
VitaminKMcgformdouble?No
ZincMgformdouble?No
TransGformdouble?No
ProductsMetrics Parameters:
NameParameterData TypeRequiredDescription
IdformlongYes
TenantsIdformlongYes
ZonesIdformlongYes
ProductsIdformlongYes
PriceKgformdoubleYes
PriceDescriptionformstringYes
BetaineMgformdouble?No
CalciumMgformdouble?No
CholineMgformdouble?No
CopperMgformdouble?No
FiberGformdouble?No
FluorideMgformdouble?No
FolateMcgformdouble?No
IronMgformdouble?No
MagnesiumMgformdouble?No
MangeneseMgformdouble?No
MonoGformdouble?No
NiacinMgformdouble?No
Omega3Mgformdouble?No
Omega6Mgformdouble?No
PanthenicAcidMgformdouble?No
PhosphorusMgformdouble?No
PolyGformdouble?No
PotassiumMgformdouble?No
ProteinGformdouble?No
RiboflavinMgformdouble?No
SaturatedGformdouble?No
SeleniumMcgformdouble?No
SodiumMgformdouble?No
StarchGformdouble?No
SugarsGformdouble?No
ThiaminMgformdouble?No
VitaminAMcgformdouble?No
VitaminB12Mcgformdouble?No
VitaminB6Mgformdouble?No
VitaminCMgformdouble?No
VitaminDMgformdouble?No
VitaminEMgformdouble?No
VitaminKMcgformdouble?No
ZincMgformdouble?No
TransGformdouble?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/ProductsMetricsAutoQueryEdit HTTP/1.1 
Host: api-stage.smartfarmertech.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ProductsMetricsAutoQueryEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel">
  <BetaineMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</BetaineMg>
  <CalciumMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</CalciumMg>
  <CholineMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</CholineMg>
  <CopperMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</CopperMg>
  <FiberG xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</FiberG>
  <FluorideMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</FluorideMg>
  <FolateMcg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</FolateMcg>
  <Id xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</Id>
  <IronMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</IronMg>
  <MagnesiumMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</MagnesiumMg>
  <MangeneseMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</MangeneseMg>
  <MonoG xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</MonoG>
  <NiacinMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</NiacinMg>
  <Omega3Mg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</Omega3Mg>
  <Omega6Mg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</Omega6Mg>
  <PanthenicAcidMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</PanthenicAcidMg>
  <PhosphorusMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</PhosphorusMg>
  <PolyG xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</PolyG>
  <PotassiumMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</PotassiumMg>
  <PriceDescription xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">String</PriceDescription>
  <PriceKg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</PriceKg>
  <ProductsId xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</ProductsId>
  <ProteinG xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</ProteinG>
  <RiboflavinMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</RiboflavinMg>
  <SaturatedG xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</SaturatedG>
  <SeleniumMcg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</SeleniumMcg>
  <SodiumMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</SodiumMg>
  <StarchG xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</StarchG>
  <SugarsG xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</SugarsG>
  <TenantsId xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</TenantsId>
  <ThiaminMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</ThiaminMg>
  <TransG xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</TransG>
  <VitaminAMcg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</VitaminAMcg>
  <VitaminB12Mcg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</VitaminB12Mcg>
  <VitaminB6Mg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</VitaminB6Mg>
  <VitaminCMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</VitaminCMg>
  <VitaminDMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</VitaminDMg>
  <VitaminEMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</VitaminEMg>
  <VitaminKMcg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</VitaminKMcg>
  <ZincMg xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</ZincMg>
  <ZonesId xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">0</ZonesId>
</ProductsMetricsAutoQueryEdit>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ProductsMetrics xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel.Types">
  <BetaineMg>0</BetaineMg>
  <CalciumMg>0</CalciumMg>
  <CholineMg>0</CholineMg>
  <CopperMg>0</CopperMg>
  <FiberG>0</FiberG>
  <FluorideMg>0</FluorideMg>
  <FolateMcg>0</FolateMcg>
  <Id>0</Id>
  <IronMg>0</IronMg>
  <MagnesiumMg>0</MagnesiumMg>
  <MangeneseMg>0</MangeneseMg>
  <MonoG>0</MonoG>
  <NiacinMg>0</NiacinMg>
  <Omega3Mg>0</Omega3Mg>
  <Omega6Mg>0</Omega6Mg>
  <PanthenicAcidMg>0</PanthenicAcidMg>
  <PhosphorusMg>0</PhosphorusMg>
  <PolyG>0</PolyG>
  <PotassiumMg>0</PotassiumMg>
  <PriceDescription>String</PriceDescription>
  <PriceKg>0</PriceKg>
  <ProductsId>0</ProductsId>
  <ProteinG>0</ProteinG>
  <RiboflavinMg>0</RiboflavinMg>
  <SaturatedG>0</SaturatedG>
  <SeleniumMcg>0</SeleniumMcg>
  <SodiumMg>0</SodiumMg>
  <StarchG>0</StarchG>
  <SugarsG>0</SugarsG>
  <TenantsId>0</TenantsId>
  <ThiaminMg>0</ThiaminMg>
  <TransG>0</TransG>
  <VitaminAMcg>0</VitaminAMcg>
  <VitaminB12Mcg>0</VitaminB12Mcg>
  <VitaminB6Mg>0</VitaminB6Mg>
  <VitaminCMg>0</VitaminCMg>
  <VitaminDMg>0</VitaminDMg>
  <VitaminEMg>0</VitaminEMg>
  <VitaminKMcg>0</VitaminKMcg>
  <ZincMg>0</ZincMg>
  <ZonesId>0</ZonesId>
</ProductsMetrics>