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.
GET /eCommerce/Products/Info HTTP/1.1
Host: 10.10.0.107
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetECommerceProductInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.ECommerce">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<ProdInfo>
<ID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</ID>
<BCode xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</BCode>
<BBCode xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</BBCode>
<InCode xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</InCode>
<Name xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</Name>
<NameEn xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</NameEn>
<PackBCount xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PackBCount>
<PackCount xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PackCount>
<Netto xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</Netto>
<ByWeight xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</ByWeight>
<CategoryID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</CategoryID>
<Category xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<CategoryID>String</CategoryID>
<CategoryCode>String</CategoryCode>
<CategoryName>String</CategoryName>
<Spend>false</Spend>
</Category>
<PPCatID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</PPCatID>
<PCatID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PCatID>
<ProducerID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</ProducerID>
<Producer xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<ProducerID>String</ProducerID>
<ProducerName>String</ProducerName>
<CountryId>String</CountryId>
<LOwn>false</LOwn>
<Speend>false</Speend>
<ProducerNameEnglish>String</ProducerNameEnglish>
<Address>String</Address>
<PostalCode>String</PostalCode>
<Phone>String</Phone>
<Fax>String</Fax>
<Person>String</Person>
<Email>String</Email>
<Ldefault>false</Ldefault>
<MrgId>0</MrgId>
<Country>
<CountryId>String</CountryId>
<CountryNe>String</CountryNe>
<LDefault>false</LDefault>
<Spend>false</Spend>
<CountryNu>String</CountryNu>
</Country>
<ProducerCountry>String</ProducerCountry>
</Producer>
<Vat xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</Vat>
<LifeDays xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</LifeDays>
<Unit xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</Unit>
<ParentID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</ParentID>
<MaxDiscount xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</MaxDiscount>
<IsImported xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">false</IsImported>
<Dimensions xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Dimensions>
<PackCCount xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PackCCount>
<PDose xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</PDose>
<IntCodeID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</IntCodeID>
<IntCode xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<IntCodeID>String</IntCodeID>
<Name>String</Name>
<NameEn>String</NameEn>
<Vat>0</Vat>
<TaxMethod>0</TaxMethod>
<Tax1>0</Tax1>
<TaxK>0</TaxK>
</IntCode>
<ExciseID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</ExciseID>
<Excise xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</Excise>
<DestNumber xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</DestNumber>
<PackTypeID xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PackTypeID>
<PriceGR xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PriceGR>
<PriceGT xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PriceGT>
<Spend xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">false</Spend>
<VatType xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</VatType>
<ExtendedInfo xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<ProdPPID>String</ProdPPID>
<Description>String</Description>
<Anotation>String</Anotation>
<GarantDays>0</GarantDays>
<IsFastFood>false</IsFastFood>
<DetailedWarehousing>false</DetailedWarehousing>
<TrackAndTrace>false</TrackAndTrace>
<BrandID>0</BrandID>
<Brand>
<BrandId>0</BrandId>
<Abbreviation>String</Abbreviation>
<Name>String</Name>
<BrandNameE>String</BrandNameE>
<Description>String</Description>
<Logo>AA==</Logo>
</Brand>
<RType>0</RType>
<SizeId>0</SizeId>
<ColorId>0</ColorId>
<GenderId>0</GenderId>
<Size>
<Id>0</Id>
<Name>String</Name>
<SizeType>0</SizeType>
</Size>
<Color>
<codeid>0</codeid>
<mgrid>00000000-0000-0000-0000-000000000000</mgrid>
<hname>String</hname>
<hnamee>String</hnamee>
<hcode>String</hcode>
<defval>false</defval>
<vm>0</vm>
<vp>0</vp>
<vi>0</vi>
<vd>0001-01-01T00:00:00</vd>
<canceled>false</canceled>
<crtime>0001-01-01T00:00:00</crtime>
<unid>00000000-0000-0000-0000-000000000000</unid>
<IUD>0</IUD>
</Color>
<Gender>
<codeid>0</codeid>
<mgrid>00000000-0000-0000-0000-000000000000</mgrid>
<hname>String</hname>
<hnamee>String</hnamee>
<hcode>String</hcode>
<defval>false</defval>
<vm>0</vm>
<vp>0</vp>
<vi>0</vi>
<vd>0001-01-01T00:00:00</vd>
<canceled>false</canceled>
<crtime>0001-01-01T00:00:00</crtime>
<unid>00000000-0000-0000-0000-000000000000</unid>
<IUD>0</IUD>
</Gender>
<Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Meta>
</ExtendedInfo>
<BarCodes xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<PPBCode>
<Id>0</Id>
<ProdPPId>String</ProdPPId>
<BCode>String</BCode>
</PPBCode>
</BarCodes>
<Type xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<ID>String</ID>
<Name>String</Name>
<NameEn>String</NameEn>
<LDefault>false</LDefault>
<Spend>false</Spend>
</Type>
<HCategory xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<ID>0</ID>
<Name>String</Name>
<ParentID>0</ParentID>
<HCode>String</HCode>
<Hccrt>String</Hccrt>
<NameEn>String</NameEn>
<CrTime>0001-01-01T00:00:00</CrTime>
<Unid>00000000-0000-0000-0000-000000000000</Unid>
<IsDefault>false</IsDefault>
<Canceled>false</Canceled>
<ShortDescription>String</ShortDescription>
<Description>String</Description>
<UrlSlug>String</UrlSlug>
<VideoUrl>String</VideoUrl>
<ShortDescription2>String</ShortDescription2>
<Description2>String</Description2>
<MinCount>0</MinCount>
</HCategory>
<Brutto xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</Brutto>
<SpendR xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">false</SpendR>
<PriceUR xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PriceUR>
<PriceUT xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</PriceUT>
<MDRetail xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</MDRetail>
<MDTrade xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</MDTrade>
<SupDays xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</SupDays>
<PrStatus xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">false</PrStatus>
<LNotInPrice xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">false</LNotInPrice>
<MinCountRetail xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</MinCountRetail>
<RegN xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</RegN>
<RegDate xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0001-01-01T00:00:00</RegDate>
<RegEndDate xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0001-01-01T00:00:00</RegEndDate>
<HasSpec xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">false</HasSpec>
<ReCalc xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">false</ReCalc>
<ExciseC xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</ExciseC>
<IsLinked xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">false</IsLinked>
<UnitId xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</UnitId>
<MinCountTrade xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</MinCountTrade>
<PPCatName xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</PPCatName>
<Images xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<ProdImage>
<Id>0</Id>
<FileName>String</FileName>
<Link>String</Link>
<Checksum>String</Checksum>
<CreateTime>0001-01-01T00:00:00</CreateTime>
<UpdateTime>0001-01-01T00:00:00</UpdateTime>
<IsMain>false</IsMain>
</ProdImage>
</Images>
<CBCode xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</CBCode>
<ScaleGroup xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</ScaleGroup>
<Brand xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<BrandId>0</BrandId>
<Abbreviation>String</Abbreviation>
<Name>String</Name>
<BrandNameE>String</BrandNameE>
<Description>String</Description>
<Logo>AA==</Logo>
</Brand>
<Attributes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</Attributes>
<Brand>
<BrandId xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">0</BrandId>
<Abbreviation xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</Abbreviation>
<Name xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</Name>
<BrandNameE xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</BrandNameE>
<Description xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">String</Description>
<Logo xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Common">AA==</Logo>
<BrandImageLink>String</BrandImageLink>
</Brand>
<Collections>
<Collection>
<CollectionId>0</CollectionId>
<CollectionName>String</CollectionName>
<CollectionProds>
<ECommerceProduct>
<Id>String</Id>
<BCode>String</BCode>
<Name>String</Name>
<Price>0</Price>
<Points>0</Points>
<InStock>false</InStock>
<Promo>false</Promo>
<Discount>0</Discount>
<ImgLink>String</ImgLink>
<DiscountedPrice>0</DiscountedPrice>
<IsNew>false</IsNew>
<Netto>0</Netto>
<Unit>String</Unit>
<AnnotationHtml>String</AnnotationHtml>
<NeedPrepare>0</NeedPrepare>
<QuantityStep>0</QuantityStep>
<ByWeight>0</ByWeight>
<Slug>String</Slug>
<PPCatId>String</PPCatId>
<mdtrade>0</mdtrade>
<mdretail>0</mdretail>
<rcount>0</rcount>
<QualityId>0</QualityId>
<Quality>String</Quality>
<HCategoryId>0</HCategoryId>
<Incode>String</Incode>
<HCategoryName>String</HCategoryName>
<HCategoryHcode>String</HCategoryHcode>
<BrandId>0</BrandId>
<BrandName>String</BrandName>
<BrandAbbreviation>String</BrandAbbreviation>
<BrandImageLink>String</BrandImageLink>
<AnnotationHtmlEn>String</AnnotationHtmlEn>
</ECommerceProduct>
</CollectionProds>
</Collection>
</Collections>
<Quality>String</Quality>
<QualityId>0</QualityId>
<RecomendedProds>
<ECommerceProduct>
<Id>String</Id>
<BCode>String</BCode>
<Name>String</Name>
<Price>0</Price>
<Points>0</Points>
<InStock>false</InStock>
<Promo>false</Promo>
<Discount>0</Discount>
<ImgLink>String</ImgLink>
<DiscountedPrice>0</DiscountedPrice>
<IsNew>false</IsNew>
<Netto>0</Netto>
<Unit>String</Unit>
<AnnotationHtml>String</AnnotationHtml>
<NeedPrepare>0</NeedPrepare>
<QuantityStep>0</QuantityStep>
<ByWeight>0</ByWeight>
<Slug>String</Slug>
<PPCatId>String</PPCatId>
<mdtrade>0</mdtrade>
<mdretail>0</mdretail>
<rcount>0</rcount>
<QualityId>0</QualityId>
<Quality>String</Quality>
<HCategoryId>0</HCategoryId>
<Incode>String</Incode>
<HCategoryName>String</HCategoryName>
<HCategoryHcode>String</HCategoryHcode>
<BrandId>0</BrandId>
<BrandName>String</BrandName>
<BrandAbbreviation>String</BrandAbbreviation>
<BrandImageLink>String</BrandImageLink>
<AnnotationHtmlEn>String</AnnotationHtmlEn>
</ECommerceProduct>
</RecomendedProds>
<RemByBranches>
<RemByBranch>
<BranchId>0</BranchId>
<BranchName>String</BranchName>
<Rem>0</Rem>
</RemByBranch>
</RemByBranches>
<Slug>String</Slug>
</ProdInfo>
<Images>
<ECommerceImage>
<Id>0</Id>
<Name>String</Name>
<Link>String</Link>
<IsMain>false</IsMain>
</ECommerceImage>
</Images>
<Prod>
<Id>String</Id>
<BCode>String</BCode>
<Name>String</Name>
<Price>0</Price>
<Points>0</Points>
<InStock>false</InStock>
<Promo>false</Promo>
<Discount>0</Discount>
<ImgLink>String</ImgLink>
<DiscountedPrice>0</DiscountedPrice>
<IsNew>false</IsNew>
<Netto>0</Netto>
<Unit>String</Unit>
<AnnotationHtml>String</AnnotationHtml>
<NeedPrepare>0</NeedPrepare>
<QuantityStep>0</QuantityStep>
<ByWeight>0</ByWeight>
<Slug>String</Slug>
<PPCatId>String</PPCatId>
<mdtrade>0</mdtrade>
<mdretail>0</mdretail>
<rcount>0</rcount>
<QualityId>0</QualityId>
<Quality>String</Quality>
<HCategoryId>0</HCategoryId>
<Incode>String</Incode>
<HCategoryName>String</HCategoryName>
<HCategoryHcode>String</HCategoryHcode>
<BrandId>0</BrandId>
<BrandName>String</BrandName>
<BrandAbbreviation>String</BrandAbbreviation>
<BrandImageLink>String</BrandImageLink>
<AnnotationHtmlEn>String</AnnotationHtmlEn>
</Prod>
</GetECommerceProductInfoResponse>