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 /registryvat/{Id} HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetRegistryVatResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.RegistryVat.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.RegistryVat.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:BuyCreationDate>0001-01-01T00:00:00</d2p1:BuyCreationDate>
<d2p1:BuyDate>0001-01-01T00:00:00</d2p1:BuyDate>
<d2p1:BuyIncomingDate>0001-01-01T00:00:00</d2p1:BuyIncomingDate>
<d2p1:BuyTaxDate>0001-01-01T00:00:00</d2p1:BuyTaxDate>
<d2p1:BuyTaxDiscountDate>0001-01-01T00:00:00</d2p1:BuyTaxDiscountDate>
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:CategoryName>String</d2p1:CategoryName>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:CurrencyId>0</d2p1:CurrencyId>
<d2p1:Description>String</d2p1:Description>
<d2p1:FileId>0</d2p1:FileId>
<d2p1:Gross>0</d2p1:Gross>
<d2p1:InvSrcDate>0001-01-01T00:00:00</d2p1:InvSrcDate>
<d2p1:InvSrcGross>0</d2p1:InvSrcGross>
<d2p1:InvSrcId>0</d2p1:InvSrcId>
<d2p1:InvSrcNetto>0</d2p1:InvSrcNetto>
<d2p1:InvSrcNumber>String</d2p1:InvSrcNumber>
<d2p1:InvSrcVat>0</d2p1:InvSrcVat>
<d2p1:IsImp>false</d2p1:IsImp>
<d2p1:IsIncome>false</d2p1:IsIncome>
<d2p1:IsMpp>false</d2p1:IsMpp>
<d2p1:IsPaymentDivided>false</d2p1:IsPaymentDivided>
<d2p1:IsReverseCharged>false</d2p1:IsReverseCharged>
<d2p1:IsVatTaken>false</d2p1:IsVatTaken>
<d2p1:IsVatTakenDate>0001-01-01T00:00:00</d2p1:IsVatTakenDate>
<d2p1:Net>0</d2p1:Net>
<d2p1:Number>String</d2p1:Number>
<d2p1:Paid>0</d2p1:Paid>
<d2p1:PaymentDueDate>0001-01-01T00:00:00</d2p1:PaymentDueDate>
<d2p1:PaymentTerms>0</d2p1:PaymentTerms>
<d2p1:PaymentType>String</d2p1:PaymentType>
<d2p1:PaymentTypeId>0</d2p1:PaymentTypeId>
<d2p1:RecCountry>String</d2p1:RecCountry>
<d2p1:RecCountryId>0</d2p1:RecCountryId>
<d2p1:RecFlatNumber>String</d2p1:RecFlatNumber>
<d2p1:RecId>0</d2p1:RecId>
<d2p1:RecIsoCountry>String</d2p1:RecIsoCountry>
<d2p1:RecName>String</d2p1:RecName>
<d2p1:RecPostalCode>String</d2p1:RecPostalCode>
<d2p1:RecStreetName>String</d2p1:RecStreetName>
<d2p1:RecStreetNumber>String</d2p1:RecStreetNumber>
<d2p1:RecTown>String</d2p1:RecTown>
<d2p1:RecVatId>String</d2p1:RecVatId>
<d2p1:RegistryVatPosition>
<d2p1:RegistryVatPositionDto>
<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:CategoryId>0</d2p1:CategoryId>
<d2p1:CategoryName>String</d2p1:CategoryName>
<d2p1:Description>String</d2p1:Description>
<d2p1:Gross>0</d2p1:Gross>
<d2p1:IsBefore>false</d2p1:IsBefore>
<d2p1:IsTaxableId>0</d2p1:IsTaxableId>
<d2p1:IsTaxableName>String</d2p1:IsTaxableName>
<d2p1:KindId>0</d2p1:KindId>
<d2p1:KindName>String</d2p1:KindName>
<d2p1:Net>0</d2p1:Net>
<d2p1:PosCorrId>0</d2p1:PosCorrId>
<d2p1:TaxableTypeId>0</d2p1:TaxableTypeId>
<d2p1:TaxableTypeName>String</d2p1:TaxableTypeName>
<d2p1:Vat>0</d2p1:Vat>
<d2p1:VatTypeId>0</d2p1:VatTypeId>
<d2p1:VatTypeName>String</d2p1:VatTypeName>
</d2p1:RegistryVatPositionDto>
</d2p1:RegistryVatPosition>
<d2p1:Remarks>String</d2p1:Remarks>
<d2p1:SaleDate>0001-01-01T00:00:00</d2p1:SaleDate>
<d2p1:SaleTaxDate>0001-01-01T00:00:00</d2p1:SaleTaxDate>
<d2p1:SellCountry>String</d2p1:SellCountry>
<d2p1:SellCountryId>0</d2p1:SellCountryId>
<d2p1:SellCreationDate>0001-01-01T00:00:00</d2p1:SellCreationDate>
<d2p1:SellFlatNumber>String</d2p1:SellFlatNumber>
<d2p1:SellId>0</d2p1:SellId>
<d2p1:SellIsoCountry>String</d2p1:SellIsoCountry>
<d2p1:SellName>String</d2p1:SellName>
<d2p1:SellPostalCode>String</d2p1:SellPostalCode>
<d2p1:SellStreetName>String</d2p1:SellStreetName>
<d2p1:SellStreetNumber>String</d2p1:SellStreetNumber>
<d2p1:SellTown>String</d2p1:SellTown>
<d2p1:SellVatId>String</d2p1:SellVatId>
<d2p1:Status>String</d2p1:Status>
<d2p1:StatusId>0</d2p1:StatusId>
<d2p1:ToPaid>0</d2p1:ToPaid>
<d2p1:Vat>0</d2p1:Vat>
</Result>
</GetRegistryVatResponse>