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 /costinvoice/{Id} HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetCostInvoiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.Query">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.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:AdditionalRemarks>String</d2p1:AdditionalRemarks>
<d2p1:Attachments xmlns:d3p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.File.Model">
<d3p1:FileDocumentDto>
<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:CostInvoiceId>0</d3p1:CostInvoiceId>
<d3p1:FileGuid>String</d3p1:FileGuid>
<d3p1:FileName>String</d3p1:FileName>
<d3p1:FileSize>0</d3p1:FileSize>
<d3p1:FileType>String</d3p1:FileType>
<d3p1:InvoiceId>0</d3p1:InvoiceId>
<d3p1:ObjectId>0</d3p1:ObjectId>
<d3p1:ObjectTypeId>0</d3p1:ObjectTypeId>
<d3p1:ObjectTypeName>String</d3p1:ObjectTypeName>
<d3p1:OcrResponse>
<d3p1:BankAccount>String</d3p1:BankAccount>
<d3p1:BankName>String</d3p1:BankName>
<d3p1:BuyerLocalNr>String</d3p1:BuyerLocalNr>
<d3p1:BuyerName>String</d3p1:BuyerName>
<d3p1:BuyerNip>String</d3p1:BuyerNip>
<d3p1:BuyerPlace>String</d3p1:BuyerPlace>
<d3p1:BuyerStreetName>String</d3p1:BuyerStreetName>
<d3p1:BuyerStreetNr>String</d3p1:BuyerStreetNr>
<d3p1:BuyerZipCode>String</d3p1:BuyerZipCode>
<d3p1:DateOfIssue>String</d3p1:DateOfIssue>
<d3p1:DateOfPayment>String</d3p1:DateOfPayment>
<d3p1:NrInvoice>String</d3p1:NrInvoice>
<d3p1:Positions i:nil="true" />
<d3p1:SaleDate>String</d3p1:SaleDate>
<d3p1:SellerLocalNr>String</d3p1:SellerLocalNr>
<d3p1:SellerName>String</d3p1:SellerName>
<d3p1:SellerNip>String</d3p1:SellerNip>
<d3p1:SellerPlace>String</d3p1:SellerPlace>
<d3p1:SellerStreetName>String</d3p1:SellerStreetName>
<d3p1:SellerStreetNr>String</d3p1:SellerStreetNr>
<d3p1:SellerZipCode>String</d3p1:SellerZipCode>
<d3p1:SummaryGross>String</d3p1:SummaryGross>
<d3p1:SummaryNetto>String</d3p1:SummaryNetto>
<d3p1:SummaryVat>String</d3p1:SummaryVat>
</d3p1:OcrResponse>
<d3p1:OcrStatus>None</d3p1:OcrStatus>
<d3p1:ParentFolderId>0</d3p1:ParentFolderId>
<d3p1:ProcessId>String</d3p1:ProcessId>
<d3p1:StatusId>0</d3p1:StatusId>
<d3p1:StatusName>String</d3p1:StatusName>
</d3p1:FileDocumentDto>
</d2p1:Attachments>
<d2p1:BasePrice>0</d2p1:BasePrice>
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:CategoryName>String</d2p1:CategoryName>
<d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:CurrencyId>0</d2p1:CurrencyId>
<d2p1:Discount>0</d2p1:Discount>
<d2p1:ExecutionDate>0001-01-01T00:00:00</d2p1:ExecutionDate>
<d2p1:ExtTaxableCategoryId>0</d2p1:ExtTaxableCategoryId>
<d2p1:ExtTaxableCategoryName>String</d2p1:ExtTaxableCategoryName>
<d2p1:FileId>0</d2p1:FileId>
<d2p1:Gross>0</d2p1:Gross>
<d2p1:InvSrcId>0</d2p1:InvSrcId>
<d2p1:InvSrcNumber>String</d2p1:InvSrcNumber>
<d2p1:InvoicePosition>
<d2p1:CostInvoicePositionDto>
<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:Code>String</d2p1:Code>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:CurrencyId>0</d2p1:CurrencyId>
<d2p1:Gross>0</d2p1:Gross>
<d2p1:InvoiceId>0</d2p1:InvoiceId>
<d2p1:IsBefore>false</d2p1:IsBefore>
<d2p1:IsDeleted>false</d2p1:IsDeleted>
<d2p1:IsTaxableId>0</d2p1:IsTaxableId>
<d2p1:IsTaxableName>String</d2p1:IsTaxableName>
<d2p1:IsUpdated>false</d2p1:IsUpdated>
<d2p1:Name>String</d2p1:Name>
<d2p1:Netto>0</d2p1:Netto>
<d2p1:PosCorrId>0</d2p1:PosCorrId>
<d2p1:ProductId>0</d2p1:ProductId>
<d2p1:Quantity>0</d2p1:Quantity>
<d2p1:RecalculateVat>false</d2p1:RecalculateVat>
<d2p1:TaxableKindId>0</d2p1:TaxableKindId>
<d2p1:TaxableKindName>String</d2p1:TaxableKindName>
<d2p1:TaxableTypeId>0</d2p1:TaxableTypeId>
<d2p1:TaxableTypeName>String</d2p1:TaxableTypeName>
<d2p1:Unit>String</d2p1:Unit>
<d2p1:UnitId>0</d2p1:UnitId>
<d2p1:UnitPrice>0</d2p1:UnitPrice>
<d2p1:Vat23>0</d2p1:Vat23>
<d2p1:Vat5>0</d2p1:Vat5>
<d2p1:Vat8>0</d2p1:Vat8>
<d2p1:VatTypeId>0</d2p1:VatTypeId>
</d2p1:CostInvoicePositionDto>
</d2p1:InvoicePosition>
<d2p1:InvoicesDependent>
<d2p1:CostInvoiceDependDto>
<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:CostInvoiceSrcGross>0</d2p1:CostInvoiceSrcGross>
<d2p1:CostInvoiceSrcId>0</d2p1:CostInvoiceSrcId>
<d2p1:CostInvoiceSrcNetto>0</d2p1:CostInvoiceSrcNetto>
<d2p1:CostInvoiceSrcNumber>String</d2p1:CostInvoiceSrcNumber>
<d2p1:CostInvoiceSrcSellDate>0001-01-01T00:00:00</d2p1:CostInvoiceSrcSellDate>
<d2p1:CostInvoiceSrcVat23>0</d2p1:CostInvoiceSrcVat23>
<d2p1:CostInvoiceSrcVat5>0</d2p1:CostInvoiceSrcVat5>
<d2p1:CostInvoiceSrcVat8>0</d2p1:CostInvoiceSrcVat8>
</d2p1:CostInvoiceDependDto>
</d2p1:InvoicesDependent>
<d2p1:IsFromOcr>false</d2p1:IsFromOcr>
<d2p1:IsImp>false</d2p1:IsImp>
<d2p1:IsMarkedClear>false</d2p1:IsMarkedClear>
<d2p1:IsMpp>false</d2p1:IsMpp>
<d2p1:IsPaymentDivided>false</d2p1:IsPaymentDivided>
<d2p1:IsReceiverDiffrent>false</d2p1:IsReceiverDiffrent>
<d2p1:IsReverseCharged>false</d2p1:IsReverseCharged>
<d2p1:JpkDocTypeCode>String</d2p1:JpkDocTypeCode>
<d2p1:JpkDocTypeId>0</d2p1:JpkDocTypeId>
<d2p1:JpkDocTypeName>String</d2p1:JpkDocTypeName>
<d2p1:JpkItemCodeCode>String</d2p1:JpkItemCodeCode>
<d2p1:JpkItemCodeId>0</d2p1:JpkItemCodeId>
<d2p1:JpkItemCodeName>String</d2p1:JpkItemCodeName>
<d2p1:Labels>String</d2p1:Labels>
<d2p1:ListJpkProcedure xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:unsignedInt>0</d3p1:unsignedInt>
</d2p1:ListJpkProcedure>
<d2p1:MarginReason>String</d2p1:MarginReason>
<d2p1:MarginReasonId>0</d2p1:MarginReasonId>
<d2p1:Netto>0</d2p1:Netto>
<d2p1:Number>String</d2p1:Number>
<d2p1:OrderNumber>String</d2p1:OrderNumber>
<d2p1:Paid>0</d2p1:Paid>
<d2p1:PaymentDate>0001-01-01T00:00:00</d2p1:PaymentDate>
<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:PrivateNote>String</d2p1:PrivateNote>
<d2p1:Rate>0</d2p1:Rate>
<d2p1:RateDate>0001-01-01T00:00:00</d2p1:RateDate>
<d2p1:RecFlatNumber>String</d2p1:RecFlatNumber>
<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: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:ReceiverTypeId>0</d2p1:ReceiverTypeId>
<d2p1:ReceiverVatId>String</d2p1:ReceiverVatId>
<d2p1:RecipientName>String</d2p1:RecipientName>
<d2p1:Remarks>String</d2p1:Remarks>
<d2p1:SellBankAccountNb>String</d2p1:SellBankAccountNb>
<d2p1:SellBankName>String</d2p1:SellBankName>
<d2p1:SellCatId>0</d2p1:SellCatId>
<d2p1:SellCountry>String</d2p1:SellCountry>
<d2p1:SellCountryId>0</d2p1:SellCountryId>
<d2p1:SellDate>0001-01-01T00:00:00</d2p1:SellDate>
<d2p1:SellEmail>String</d2p1:SellEmail>
<d2p1:SellFlatNumber>String</d2p1:SellFlatNumber>
<d2p1:SellId>0</d2p1:SellId>
<d2p1:SellIsActual>false</d2p1:SellIsActual>
<d2p1:SellIsoCountry>String</d2p1:SellIsoCountry>
<d2p1:SellName>String</d2p1:SellName>
<d2p1:SellPhone>String</d2p1:SellPhone>
<d2p1:SellPostalCode>String</d2p1:SellPostalCode>
<d2p1:SellStreetName>String</d2p1:SellStreetName>
<d2p1:SellStreetNumber>String</d2p1:SellStreetNumber>
<d2p1:SellTown>String</d2p1:SellTown>
<d2p1:SellTypeId>0</d2p1:SellTypeId>
<d2p1:SellVatId>String</d2p1:SellVatId>
<d2p1:SourceDocuments>
<d2p1:CostInvoiceDocumentDto>
<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:CostDocumentId>0</d2p1:CostDocumentId>
<d2p1:CostInvoiceId>0</d2p1:CostInvoiceId>
</d2p1:CostInvoiceDocumentDto>
</d2p1:SourceDocuments>
<d2p1:Status>String</d2p1:Status>
<d2p1:StatusId>0</d2p1:StatusId>
<d2p1:SupplierName>String</d2p1:SupplierName>
<d2p1:Swift>String</d2p1:Swift>
<d2p1:ToPaid>0</d2p1:ToPaid>
<d2p1:Town>String</d2p1:Town>
<d2p1:TypeId>0</d2p1:TypeId>
<d2p1:TypeName>String</d2p1:TypeName>
<d2p1:Vat23>0</d2p1:Vat23>
<d2p1:Vat5>0</d2p1:Vat5>
<d2p1:Vat8>0</d2p1:Vat8>
<d2p1:VatBase>0</d2p1:VatBase>
</Result>
</GetCostInvoiceResponse>