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 /settlement/{id} HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetSettlementResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Settlement.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Settlement.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:Amount>0</d2p1:Amount>
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:CategoryName>String</d2p1:CategoryName>
<d2p1:ClearedDate>0001-01-01T00:00:00</d2p1:ClearedDate>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:CurrencyId>0</d2p1:CurrencyId>
<d2p1:Description>String</d2p1:Description>
<d2p1:DocumentNumber>String</d2p1:DocumentNumber>
<d2p1:Documents xmlns:d3p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CashBankRecord.Model" i:nil="true" />
<d2p1:Income>0</d2p1:Income>
<d2p1:Interest>0</d2p1:Interest>
<d2p1:InvoiceId>0</d2p1:InvoiceId>
<d2p1:IsCleared>false</d2p1:IsCleared>
<d2p1:IsIncome>false</d2p1:IsIncome>
<d2p1:IsMarkedClear>false</d2p1:IsMarkedClear>
<d2p1:Outgoing>0</d2p1:Outgoing>
<d2p1:PaymentDueDate>0001-01-01T00:00:00</d2p1:PaymentDueDate>
<d2p1:PaymentTypeId>0</d2p1:PaymentTypeId>
<d2p1:Recipient xmlns:d3p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Model">
<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>
<d3p1:BankAccName>String</d3p1:BankAccName>
<d3p1:BankAccNumber>String</d3p1:BankAccNumber>
<d3p1:CatId>0</d3p1:CatId>
<d3p1:CategoryId>0</d3p1:CategoryId>
<d3p1:CategoryName>String</d3p1:CategoryName>
<d3p1:Country>String</d3p1:Country>
<d3p1:CountryId>0</d3p1:CountryId>
<d3p1:DefaultCurrency>String</d3p1:DefaultCurrency>
<d3p1:DefaultCurrencyId>0</d3p1:DefaultCurrencyId>
<d3p1:DefaultDiscount>0</d3p1:DefaultDiscount>
<d3p1:DefaultPaymentTerm>0</d3p1:DefaultPaymentTerm>
<d3p1:DefaultPaymentType>String</d3p1:DefaultPaymentType>
<d3p1:Description>String</d3p1:Description>
<d3p1:Email>String</d3p1:Email>
<d3p1:FaxNumber>String</d3p1:FaxNumber>
<d3p1:IsoCountry>String</d3p1:IsoCountry>
<d3p1:Krs>String</d3p1:Krs>
<d3p1:MobileNumber>String</d3p1:MobileNumber>
<d3p1:Name>String</d3p1:Name>
<d3p1:Nip>String</d3p1:Nip>
<d3p1:PhoneNumber>String</d3p1:PhoneNumber>
<d3p1:PhoneNumber1>String</d3p1:PhoneNumber1>
<d3p1:PostalCode>String</d3p1:PostalCode>
<d3p1:RecipientCType>String</d3p1:RecipientCType>
<d3p1:Regon>String</d3p1:Regon>
<d3p1:ShortName>String</d3p1:ShortName>
<d3p1:StreetFlatNumber>String</d3p1:StreetFlatNumber>
<d3p1:StreetName>String</d3p1:StreetName>
<d3p1:StreetNumber>String</d3p1:StreetNumber>
<d3p1:Town>String</d3p1:Town>
<d3p1:TypeId>0</d3p1:TypeId>
<d3p1:WebSite>String</d3p1:WebSite>
</d2p1:Recipient>
<d2p1:RegulatedAmount>0</d2p1:RegulatedAmount>
<d2p1:SellDate>0001-01-01T00:00:00</d2p1:SellDate>
</Result>
</GetSettlementResponse>