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 /Warehousing/DeclaredPrices/Prices/Multiple HTTP/1.1
Host: apex.nikoratrade.ge
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SaveDeclaredPrices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Warehousing">
<Items>
<DeclaredPrice>
<Id>0</Id>
<GroupId>0</GroupId>
<ProdPPId>String</ProdPPId>
<Price>0</Price>
<CUser>String</CUser>
<CrTime>0001-01-01T00:00:00</CrTime>
<Good xmlns:d4p1="http://schemas.datacontract.org/2004/07/Apex.Services.Common">
<d4p1:ProdPPId>String</d4p1:ProdPPId>
<d4p1:BCode>String</d4p1:BCode>
<d4p1:BBCode>String</d4p1:BBCode>
<d4p1:InCode>String</d4p1:InCode>
<d4p1:CategoryCode>String</d4p1:CategoryCode>
<d4p1:ProducerId>String</d4p1:ProducerId>
<d4p1:CategoryId>String</d4p1:CategoryId>
<d4p1:ProductsNu>String</d4p1:ProductsNu>
<d4p1:ProductsNe>String</d4p1:ProductsNe>
<d4p1:DestNumber>String</d4p1:DestNumber>
<d4p1:PPCatId>String</d4p1:PPCatId>
<d4p1:PCatId>0</d4p1:PCatId>
<d4p1:ProducerNu>String</d4p1:ProducerNu>
<d4p1:CategoryNu>String</d4p1:CategoryNu>
<d4p1:Vat>0</d4p1:Vat>
<d4p1:ByWeight>0</d4p1:ByWeight>
<d4p1:PackCount>0</d4p1:PackCount>
<d4p1:PackBCount>0</d4p1:PackBCount>
<d4p1:Unit>String</d4p1:Unit>
<d4p1:MDTrade>0</d4p1:MDTrade>
<d4p1:MDRetail>0</d4p1:MDRetail>
<d4p1:Imported>false</d4p1:Imported>
<d4p1:PrCountryNu>String</d4p1:PrCountryNu>
<d4p1:Netto>0</d4p1:Netto>
<d4p1:Capacity>0</d4p1:Capacity>
<d4p1:PriceGR>0</d4p1:PriceGR>
<d4p1:PriceGT>0</d4p1:PriceGT>
<d4p1:PDose>String</d4p1:PDose>
<d4p1:PriceUR>0</d4p1:PriceUR>
<d4p1:PriceUT>0</d4p1:PriceUT>
<d4p1:LifeDate>0</d4p1:LifeDate>
<d4p1:MinCountTrade>0</d4p1:MinCountTrade>
<d4p1:MinCountRetail>0</d4p1:MinCountRetail>
<d4p1:Spend>false</d4p1:Spend>
<d4p1:LNotInPrice>false</d4p1:LNotInPrice>
<d4p1:Lown>false</d4p1:Lown>
<d4p1:Products_id>String</d4p1:Products_id>
<d4p1:PackCCount>0</d4p1:PackCCount>
<d4p1:Brutto>0</d4p1:Brutto>
<d4p1:IsLinked>false</d4p1:IsLinked>
<d4p1:ReCalc>false</d4p1:ReCalc>
<d4p1:SupDays>0</d4p1:SupDays>
<d4p1:VatType>0</d4p1:VatType>
<d4p1:ExciseID>0</d4p1:ExciseID>
<d4p1:Excise>0</d4p1:Excise>
<d4p1:ProdPPPId>String</d4p1:ProdPPPId>
<d4p1:IntCodeId>String</d4p1:IntCodeId>
<d4p1:PPCatNu>String</d4p1:PPCatNu>
<d4p1:Specific>false</d4p1:Specific>
<d4p1:PackTypeID>0</d4p1:PackTypeID>
<d4p1:ExciseC>0</d4p1:ExciseC>
<d4p1:UnitId>0</d4p1:UnitId>
<d4p1:CBCode>String</d4p1:CBCode>
</Good>
</DeclaredPrice>
</Items>
</SaveDeclaredPrices>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SaveDeclaredPricesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Warehousing">
<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>
</SaveDeclaredPricesResponse>