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 /fixedasset/{id} HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetFixedAssetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.FixedAsset.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:Allowances>0</d2p1:Allowances>
<d2p1:BarCode>String</d2p1:BarCode>
<d2p1:BoundedDocuments i:nil="true" />
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:ClassificationId>0</d2p1:ClassificationId>
<d2p1:ClassificationSymbol>String</d2p1:ClassificationSymbol>
<d2p1:CountAtCostsBooking>false</d2p1:CountAtCostsBooking>
<d2p1:CurrentGrossAmount>0</d2p1:CurrentGrossAmount>
<d2p1:CurrentNettoAmount>0</d2p1:CurrentNettoAmount>
<d2p1:CurrentYearAllowances>0</d2p1:CurrentYearAllowances>
<d2p1:DepreciationFactor>0</d2p1:DepreciationFactor>
<d2p1:DepreciationMethod>0</d2p1:DepreciationMethod>
<d2p1:DepreciationRate>0</d2p1:DepreciationRate>
<d2p1:DepreciationStartDate>0001-01-01T00:00:00</d2p1:DepreciationStartDate>
<d2p1:Description>String</d2p1:Description>
<d2p1:DisposalCause>String</d2p1:DisposalCause>
<d2p1:DisposalDate>0001-01-01T00:00:00</d2p1:DisposalDate>
<d2p1:DisposalDocument>String</d2p1:DisposalDocument>
<d2p1:DisposalDocumentId>0</d2p1:DisposalDocumentId>
<d2p1:GeneratePTDocumentsAtSave>false</d2p1:GeneratePTDocumentsAtSave>
<d2p1:GroupId>0</d2p1:GroupId>
<d2p1:GroupName>String</d2p1:GroupName>
<d2p1:InConstruction>false</d2p1:InConstruction>
<d2p1:InventoryNumber>String</d2p1:InventoryNumber>
<d2p1:IsBalanceAndCostDepreciationsDiffrent>false</d2p1:IsBalanceAndCostDepreciationsDiffrent>
<d2p1:IsDepreciationSuspended>false</d2p1:IsDepreciationSuspended>
<d2p1:IsFinished>false</d2p1:IsFinished>
<d2p1:IsSeasonallyUsed>false</d2p1:IsSeasonallyUsed>
<d2p1:MonthlyDepreciationValue>0</d2p1:MonthlyDepreciationValue>
<d2p1:Name>String</d2p1:Name>
<d2p1:OriginAmount>0</d2p1:OriginAmount>
<d2p1:PurchaseDate>0001-01-01T00:00:00</d2p1:PurchaseDate>
<d2p1:ResponsiblePersons i:nil="true" />
<d2p1:SourceStatus>0</d2p1:SourceStatus>
<d2p1:UpdatedAllowances>0</d2p1:UpdatedAllowances>
<d2p1:UpdatedAmount>0</d2p1:UpdatedAmount>
<d2p1:UsagePlaces i:nil="true" />
<d2p1:UsageStartDate>0001-01-01T00:00:00</d2p1:UsageStartDate>
</Result>
</GetFixedAssetResponse>