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 /invoicewarrantycard HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ListInvoiceWarrantyCardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.InvoiceWarrantyCard.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.InvoiceWarrantyCard.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:InvoiceId>0</d2p1:InvoiceId>
<d2p1:InvoiceNumber>String</d2p1:InvoiceNumber>
<d2p1:IssueDate>0001-01-01T00:00:00</d2p1:IssueDate>
<d2p1:Positions>
<d2p1:InvoiceWarrantyCardPositionDto>
<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:Description>String</d2p1:Description>
<d2p1:IsDeleted>false</d2p1:IsDeleted>
<d2p1:Quantity>0</d2p1:Quantity>
<d2p1:SerialNumber>String</d2p1:SerialNumber>
<d2p1:WarrantyCardId>0</d2p1:WarrantyCardId>
<d2p1:Weight>0</d2p1:Weight>
</d2p1:InvoiceWarrantyCardPositionDto>
</d2p1:Positions>
<d2p1:ProviderBankAccountNb>String</d2p1:ProviderBankAccountNb>
<d2p1:ProviderBankName>String</d2p1:ProviderBankName>
<d2p1:ProviderCatId>0</d2p1:ProviderCatId>
<d2p1:ProviderCountry>String</d2p1:ProviderCountry>
<d2p1:ProviderCountryId>0</d2p1:ProviderCountryId>
<d2p1:ProviderEmail>String</d2p1:ProviderEmail>
<d2p1:ProviderFlatNumber>String</d2p1:ProviderFlatNumber>
<d2p1:ProviderId>0</d2p1:ProviderId>
<d2p1:ProviderIsActual>false</d2p1:ProviderIsActual>
<d2p1:ProviderIsoCountry>String</d2p1:ProviderIsoCountry>
<d2p1:ProviderName>String</d2p1:ProviderName>
<d2p1:ProviderPhone>String</d2p1:ProviderPhone>
<d2p1:ProviderPostalCode>String</d2p1:ProviderPostalCode>
<d2p1:ProviderStreetName>String</d2p1:ProviderStreetName>
<d2p1:ProviderStreetNumber>String</d2p1:ProviderStreetNumber>
<d2p1:ProviderTown>String</d2p1:ProviderTown>
<d2p1:ProviderVatId>String</d2p1:ProviderVatId>
<d2p1:ReceiverBankAccountNb>String</d2p1:ReceiverBankAccountNb>
<d2p1:ReceiverBankName>String</d2p1:ReceiverBankName>
<d2p1:ReceiverCatId>0</d2p1:ReceiverCatId>
<d2p1:ReceiverCountry>String</d2p1:ReceiverCountry>
<d2p1:ReceiverCountryId>0</d2p1:ReceiverCountryId>
<d2p1:ReceiverEmail>String</d2p1:ReceiverEmail>
<d2p1:ReceiverFlatNumber>String</d2p1:ReceiverFlatNumber>
<d2p1:ReceiverId>0</d2p1:ReceiverId>
<d2p1:ReceiverIsActual>false</d2p1:ReceiverIsActual>
<d2p1:ReceiverIsoCountry>String</d2p1:ReceiverIsoCountry>
<d2p1:ReceiverName>String</d2p1:ReceiverName>
<d2p1:ReceiverPhone>String</d2p1:ReceiverPhone>
<d2p1:ReceiverPostalCode>String</d2p1:ReceiverPostalCode>
<d2p1:ReceiverStreetName>String</d2p1:ReceiverStreetName>
<d2p1:ReceiverStreetNumber>String</d2p1:ReceiverStreetNumber>
<d2p1:ReceiverTown>String</d2p1:ReceiverTown>
<d2p1:ReceiverVatId>String</d2p1:ReceiverVatId>
<d2p1:Town>String</d2p1:Town>
</Result>
<MultipleResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.InvoiceWarrantyCard.Model" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.GlobalDto.Base" />
<Offset xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.GlobalDto.Base">0</Offset>
<Total xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.GlobalDto.Base">0</Total>
</ListInvoiceWarrantyCardResponse>