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 /POS/Data HTTP/1.1
Host: apex.nikoratrade.ge
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetLastBatchPOSDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.POS">
<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>
<POSData>
<CurrentBatchId>00000000-0000-0000-0000-000000000000</CurrentBatchId>
<CurrentBatchDate>0001-01-01T00:00:00</CurrentBatchDate>
<LastBatchDate>0001-01-01T00:00:00</LastBatchDate>
<IsBatchOpen>false</IsBatchOpen>
<CurrentBatchNumber>0</CurrentBatchNumber>
<LastReceiptNumbers>
<Sale>0</Sale>
<Return>0</Return>
<SaleStorn>0</SaleStorn>
<ReturnStorn>0</ReturnStorn>
<CashIn>0</CashIn>
<CashOut>0</CashOut>
<XReport>0</XReport>
<ZReport>0</ZReport>
<BatchOpen>0</BatchOpen>
<Print>0</Print>
<Gift>0</Gift>
<ReturnGift>0</ReturnGift>
<GiftStorn>0</GiftStorn>
<ReturnGiftStorn>0</ReturnGiftStorn>
<Movement>0</Movement>
<CashBackOut>0</CashBackOut>
</LastReceiptNumbers>
<ReceiptTotals>
<InCash>0</InCash>
<InNonCash>0</InNonCash>
<OutCash>0</OutCash>
<OutNonCash>0</OutNonCash>
<Current>0</Current>
<SaleCash>0</SaleCash>
<SaleStornCash>0</SaleStornCash>
<ReturnCash>0</ReturnCash>
<ReturnStornCash>0</ReturnStornCash>
<Gift>0</Gift>
<GiftStorn>0</GiftStorn>
<ReturnGift>0</ReturnGift>
<ReturnGiftStorn>0</ReturnGiftStorn>
<ReturnCashBack>0</ReturnCashBack>
<ReturnStornCashBack>0</ReturnStornCashBack>
</ReceiptTotals>
</POSData>
</GetLastBatchPOSDataResponse>