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.
PUT /costinvoice HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CostInvoiceUpdateCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.Command">
<AdditionalRemarks>String</AdditionalRemarks>
<Attachments xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.File.Model">
<d2p1: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>
<d2p1:CostInvoiceId>0</d2p1:CostInvoiceId>
<d2p1:FileGuid>String</d2p1:FileGuid>
<d2p1:FileName>String</d2p1:FileName>
<d2p1:FileSize>0</d2p1:FileSize>
<d2p1:FileType>String</d2p1:FileType>
<d2p1:InvoiceId>0</d2p1:InvoiceId>
<d2p1:ObjectId>0</d2p1:ObjectId>
<d2p1:ObjectTypeId>0</d2p1:ObjectTypeId>
<d2p1:ObjectTypeName>String</d2p1:ObjectTypeName>
<d2p1:OcrResponse>
<d2p1:BankAccount>String</d2p1:BankAccount>
<d2p1:BankName>String</d2p1:BankName>
<d2p1:BuyerLocalNr>String</d2p1:BuyerLocalNr>
<d2p1:BuyerName>String</d2p1:BuyerName>
<d2p1:BuyerNip>String</d2p1:BuyerNip>
<d2p1:BuyerPlace>String</d2p1:BuyerPlace>
<d2p1:BuyerStreetName>String</d2p1:BuyerStreetName>
<d2p1:BuyerStreetNr>String</d2p1:BuyerStreetNr>
<d2p1:BuyerZipCode>String</d2p1:BuyerZipCode>
<d2p1:DateOfIssue>String</d2p1:DateOfIssue>
<d2p1:DateOfPayment>String</d2p1:DateOfPayment>
<d2p1:NrInvoice>String</d2p1:NrInvoice>
<d2p1:Positions i:nil="true" />
<d2p1:SaleDate>String</d2p1:SaleDate>
<d2p1:SellerLocalNr>String</d2p1:SellerLocalNr>
<d2p1:SellerName>String</d2p1:SellerName>
<d2p1:SellerNip>String</d2p1:SellerNip>
<d2p1:SellerPlace>String</d2p1:SellerPlace>
<d2p1:SellerStreetName>String</d2p1:SellerStreetName>
<d2p1:SellerStreetNr>String</d2p1:SellerStreetNr>
<d2p1:SellerZipCode>String</d2p1:SellerZipCode>
<d2p1:SummaryGross>String</d2p1:SummaryGross>
<d2p1:SummaryNetto>String</d2p1:SummaryNetto>
<d2p1:SummaryVat>String</d2p1:SummaryVat>
</d2p1:OcrResponse>
<d2p1:OcrStatus>None</d2p1:OcrStatus>
<d2p1:ParentFolderId>0</d2p1:ParentFolderId>
<d2p1:ProcessId>String</d2p1:ProcessId>
<d2p1:StatusId>0</d2p1:StatusId>
<d2p1:StatusName>String</d2p1:StatusName>
</d2p1:FileDocumentDto>
</Attachments>
<BasePrice>0</BasePrice>
<CategoryId>0</CategoryId>
<CategoryName>String</CategoryName>
<Code>String</Code>
<CodeAvailability>String</CodeAvailability>
<CreationDate>0001-01-01T00:00:00</CreationDate>
<Currency>String</Currency>
<CurrencyId>0</CurrencyId>
<Discount>0</Discount>
<ExecutionDate>0001-01-01T00:00:00</ExecutionDate>
<Files xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:unsignedLong>0</d2p1:unsignedLong>
</Files>
<Gross>0</Gross>
<Id>0</Id>
<InvSrcId>0</InvSrcId>
<InvSrcNumber>String</InvSrcNumber>
<InvoicePosition xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.Model">
<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>
</InvoicePosition>
<InvoicesDependent xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.Model">
<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>
</InvoicesDependent>
<IsImp>false</IsImp>
<IsMarkedClear>false</IsMarkedClear>
<IsMpp>false</IsMpp>
<IsPaymentDivided>false</IsPaymentDivided>
<IsReceiverDiffrent>false</IsReceiverDiffrent>
<IsReverseCharged>false</IsReverseCharged>
<JpkDocTypeCode>String</JpkDocTypeCode>
<JpkDocTypeId>0</JpkDocTypeId>
<JpkDocTypeName>String</JpkDocTypeName>
<JpkItemCodeCode>String</JpkItemCodeCode>
<JpkItemCodeId>0</JpkItemCodeId>
<JpkItemCodeName>String</JpkItemCodeName>
<ListJpkProcedure xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.InvoiceJPK.Model">
<d2p1:InvoiceJpkProcedureDto>
<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:Code>String</d2p1:Code>
<d2p1:Name>String</d2p1:Name>
</d2p1:InvoiceJpkProcedureDto>
</ListJpkProcedure>
<MarginReason>String</MarginReason>
<MarginReasonId>0</MarginReasonId>
<Netto>0</Netto>
<Number>String</Number>
<OrderNumber>String</OrderNumber>
<Paid>0</Paid>
<PaymentDate>0001-01-01T00:00:00</PaymentDate>
<PaymentDueDate>0001-01-01T00:00:00</PaymentDueDate>
<PaymentTerms>0</PaymentTerms>
<PaymentType>String</PaymentType>
<PaymentTypeId>0</PaymentTypeId>
<PrivateNote>String</PrivateNote>
<Rate>0</Rate>
<RateDate>0001-01-01T00:00:00</RateDate>
<RecBankAccountNb>String</RecBankAccountNb>
<RecBankId>0</RecBankId>
<RecBankName>String</RecBankName>
<Receiver xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Model">
<d2p1:BankAccountNb>String</d2p1:BankAccountNb>
<d2p1:BankName>String</d2p1:BankName>
<d2p1:CatId>0</d2p1:CatId>
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:CategoryName>String</d2p1:CategoryName>
<d2p1:Country>String</d2p1:Country>
<d2p1:CountryId>0</d2p1:CountryId>
<d2p1:DefaultCurrency>String</d2p1:DefaultCurrency>
<d2p1:DefaultCurrencyId>0</d2p1:DefaultCurrencyId>
<d2p1:Email>String</d2p1:Email>
<d2p1:FlatNumber>String</d2p1:FlatNumber>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsActual>false</d2p1:IsActual>
<d2p1:IsoCountry>String</d2p1:IsoCountry>
<d2p1:Name>String</d2p1:Name>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PostalCode>String</d2p1:PostalCode>
<d2p1:StreetName>String</d2p1:StreetName>
<d2p1:StreetNumber>String</d2p1:StreetNumber>
<d2p1:Town>String</d2p1:Town>
<d2p1:VatId>String</d2p1:VatId>
</Receiver>
<RecipientName>String</RecipientName>
<Remarks>String</Remarks>
<Sell xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Model">
<d2p1:BankAccountNb>String</d2p1:BankAccountNb>
<d2p1:BankName>String</d2p1:BankName>
<d2p1:CatId>0</d2p1:CatId>
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:CategoryName>String</d2p1:CategoryName>
<d2p1:Country>String</d2p1:Country>
<d2p1:CountryId>0</d2p1:CountryId>
<d2p1:DefaultCurrency>String</d2p1:DefaultCurrency>
<d2p1:DefaultCurrencyId>0</d2p1:DefaultCurrencyId>
<d2p1:Email>String</d2p1:Email>
<d2p1:FlatNumber>String</d2p1:FlatNumber>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsActual>false</d2p1:IsActual>
<d2p1:IsoCountry>String</d2p1:IsoCountry>
<d2p1:Name>String</d2p1:Name>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PostalCode>String</d2p1:PostalCode>
<d2p1:StreetName>String</d2p1:StreetName>
<d2p1:StreetNumber>String</d2p1:StreetNumber>
<d2p1:Town>String</d2p1:Town>
<d2p1:VatId>String</d2p1:VatId>
</Sell>
<SellDate>0001-01-01T00:00:00</SellDate>
<SupplierName>String</SupplierName>
<Swift>String</Swift>
<ToPaid>0</ToPaid>
<Town>String</Town>
<TypeId>0</TypeId>
<TypeName>String</TypeName>
<Vat23>0</Vat23>
<Vat5>0</Vat5>
<Vat8>0</Vat8>
<VatBase>0</VatBase>
</CostInvoiceUpdateCommand>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CostInvoiceUpdateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.CostInvoice.Command">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Result xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global" />
<Id xmlns="http://schemas.datacontract.org/2004/07/Cloud.Globals.ServiceUtils.GlobalDto.Recipient.Global">0</Id>
</CostInvoiceUpdateResponse>