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 /filedocument/{Id} HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetFileDocumentDtoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.File.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.File.Model" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.GlobalDto.Base">
<CreatedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</CreatedById>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</CreatedDate>
<Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</Id>
<ModifiedById xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0</ModifiedById>
<ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Base">0001-01-01T00:00:00</ModifiedDate>
<d2p1:CostInvoiceId>0</d2p1:CostInvoiceId>
<d2p1:FileGuid>String</d2p1:FileGuid>
<d2p1:FileName>String</d2p1:FileName>
<d2p1:FileSize>0</d2p1:FileSize>
<d2p1:FileType>String</d2p1:FileType>
<d2p1:InvoiceId>0</d2p1:InvoiceId>
<d2p1:ObjectId>0</d2p1:ObjectId>
<d2p1:ObjectTypeId>0</d2p1:ObjectTypeId>
<d2p1:ObjectTypeName>String</d2p1:ObjectTypeName>
<d2p1:OcrResponse>
<d2p1:BankAccount>String</d2p1:BankAccount>
<d2p1:BankName>String</d2p1:BankName>
<d2p1:BuyerLocalNr>String</d2p1:BuyerLocalNr>
<d2p1:BuyerName>String</d2p1:BuyerName>
<d2p1:BuyerNip>String</d2p1:BuyerNip>
<d2p1:BuyerPlace>String</d2p1:BuyerPlace>
<d2p1:BuyerStreetName>String</d2p1:BuyerStreetName>
<d2p1:BuyerStreetNr>String</d2p1:BuyerStreetNr>
<d2p1:BuyerZipCode>String</d2p1:BuyerZipCode>
<d2p1:DateOfIssue>String</d2p1:DateOfIssue>
<d2p1:DateOfPayment>String</d2p1:DateOfPayment>
<d2p1:NrInvoice>String</d2p1:NrInvoice>
<d2p1:Positions i:nil="true" />
<d2p1:SaleDate>String</d2p1:SaleDate>
<d2p1:SellerLocalNr>String</d2p1:SellerLocalNr>
<d2p1:SellerName>String</d2p1:SellerName>
<d2p1:SellerNip>String</d2p1:SellerNip>
<d2p1:SellerPlace>String</d2p1:SellerPlace>
<d2p1:SellerStreetName>String</d2p1:SellerStreetName>
<d2p1:SellerStreetNr>String</d2p1:SellerStreetNr>
<d2p1:SellerZipCode>String</d2p1:SellerZipCode>
<d2p1:SummaryGross>String</d2p1:SummaryGross>
<d2p1:SummaryNetto>String</d2p1:SummaryNetto>
<d2p1:SummaryVat>String</d2p1:SummaryVat>
</d2p1:OcrResponse>
<d2p1:OcrStatus>None</d2p1:OcrStatus>
<d2p1:ParentFolderId>0</d2p1:ParentFolderId>
<d2p1:ProcessId>String</d2p1:ProcessId>
<d2p1:StatusId>0</d2p1:StatusId>
<d2p1:StatusName>String</d2p1:StatusName>
</Result>
</GetFileDocumentDtoResponse>