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 /reports/settlements/ HTTP/1.1
Host: syntch.simpay.net
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfSettlementBatchResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Reporting.Responses">
<SettlementBatchResults>
<Batches>
<SettlementBatch>
<BatchDate>0001-01-01T00:00:00</BatchDate>
<BatchId>String</BatchId>
<MID>String</MID>
<Message>String</Message>
<Processor>String</Processor>
<ReturnAmount>0</ReturnAmount>
<SaleAmount>0</SaleAmount>
<TotalAmount>0</TotalAmount>
<TransactionCount>0</TransactionCount>
</SettlementBatch>
</Batches>
<MerchantName>String</MerchantName>
<Pagination xmlns:d3p1="http://schemas.datacontract.org/2004/07/Gateway.Infrastructure.Common">
<d3p1:CurrentPageNumber>0</d3p1:CurrentPageNumber>
<d3p1:PageSize>0</d3p1:PageSize>
<d3p1:TotalRecordCount>0</d3p1:TotalRecordCount>
</Pagination>
</SettlementBatchResults>
</ArrayOfSettlementBatchResults>