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 /api/orders/detailforedit HTTP/1.1
Host: api.pos365.vn
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfOrderGetDetailForEditResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.Services">
<OrderGetDetailForEditResult>
<AssistantById>0</AssistantById>
<AssistantById2>0</AssistantById2>
<AssistantById3>0</AssistantById3>
<AttributesName>String</AttributesName>
<BasePrice>0</BasePrice>
<BonusPoint>0</BonusPoint>
<BonusPointForAssistant>0</BonusPointForAssistant>
<BonusPointForAssistant2>0</BonusPointForAssistant2>
<BonusPointForAssistant3>0</BonusPointForAssistant3>
<Code>String</Code>
<Coefficient>0</Coefficient>
<ConversionValue>0</ConversionValue>
<Description>String</Description>
<ExpiryDate>0001-01-01T00:00:00</ExpiryDate>
<Id>0</Id>
<IsLargeUnit>false</IsLargeUnit>
<IsPromotion>false</IsPromotion>
<IsSerialNumberTracking>false</IsSerialNumberTracking>
<IsTimer>false</IsTimer>
<LargeUnit>String</LargeUnit>
<MoreAttributes>String</MoreAttributes>
<Name>String</Name>
<Price>0</Price>
<PriceConfig>String</PriceConfig>
<PriceLargeUnit>0</PriceLargeUnit>
<Processed>0</Processed>
<ProductId>0</ProductId>
<ProductType>0</ProductType>
<Quantity>0</Quantity>
<SerialNumbers>String</SerialNumbers>
<SoldById>0</SoldById>
<Spreadsheets>String</Spreadsheets>
<StopTimer>false</StopTimer>
<Topping>String</Topping>
<Unit>String</Unit>
<UnitPrice>0</UnitPrice>
</OrderGetDetailForEditResult>
</ArrayOfOrderGetDetailForEditResult>