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.
POST /Crm/Orders/Payments HTTP/1.1
Host: apex.nikoratrade.ge
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CreateCrmOrderPayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Crm.Orders">
<Payment>
<Id>0</Id>
<OrderId>0</OrderId>
<PaymentType>0</PaymentType>
<Amount>0</Amount>
<Doc xmlns:d3p1="http://schemas.datacontract.org/2004/07/Apex.Services.Accounting">
<d3p1:DocID>String</d3p1:DocID>
<d3p1:DocType>0</d3p1:DocType>
<d3p1:BookType>0</d3p1:BookType>
<d3p1:OperID>String</d3p1:OperID>
<d3p1:Currency>
<d3p1:CurrencyID>String</d3p1:CurrencyID>
<d3p1:Name>String</d3p1:Name>
<d3p1:NameEn>String</d3p1:NameEn>
<d3p1:Code>String</d3p1:Code>
<d3p1:CurType>0</d3p1:CurType>
<d3p1:ReCalc>false</d3p1:ReCalc>
<d3p1:LastDate>0001-01-01T00:00:00</d3p1:LastDate>
<d3p1:Rate>0</d3p1:Rate>
<d3p1:Spend>false</d3p1:Spend>
<d3p1:CurrencyCnt>0</d3p1:CurrencyCnt>
<d3p1:Currency_N>String</d3p1:Currency_N>
<d3p1:LDefault>false</d3p1:LDefault>
</d3p1:Currency>
<d3p1:DBView>
<d3p1:Acc>String</d3p1:Acc>
<d3p1:Name>String</d3p1:Name>
<d3p1:SN>String</d3p1:SN>
<d3p1:WarehouseAddress>String</d3p1:WarehouseAddress>
<d3p1:Address>String</d3p1:Address>
<d3p1:Phone>String</d3p1:Phone>
<d3p1:AccWithName>String - String</d3p1:AccWithName>
<d3p1:VatType>0</d3p1:VatType>
<d3p1:BranchId>0</d3p1:BranchId>
</d3p1:DBView>
<d3p1:CRView>
<d3p1:Acc>String</d3p1:Acc>
<d3p1:Name>String</d3p1:Name>
<d3p1:SN>String</d3p1:SN>
<d3p1:WarehouseAddress>String</d3p1:WarehouseAddress>
<d3p1:Address>String</d3p1:Address>
<d3p1:Phone>String</d3p1:Phone>
<d3p1:AccWithName>String - String</d3p1:AccWithName>
<d3p1:VatType>0</d3p1:VatType>
<d3p1:BranchId>0</d3p1:BranchId>
</d3p1:CRView>
<d3p1:DDate>0001-01-01T00:00:00</d3p1:DDate>
<d3p1:NumberIn>String</d3p1:NumberIn>
<d3p1:NumberOut>String</d3p1:NumberOut>
<d3p1:RSWaybillNum>String</d3p1:RSWaybillNum>
<d3p1:DocWaybillNum>String</d3p1:DocWaybillNum>
<d3p1:RSWaybillID>0</d3p1:RSWaybillID>
<d3p1:Vg>0</d3p1:Vg>
<d3p1:Contents>String</d3p1:Contents>
<d3p1:VgCurrent>0</d3p1:VgCurrent>
<d3p1:OpDetId>String</d3p1:OpDetId>
<d3p1:CUser>String</d3p1:CUser>
<d3p1:BookNote>String</d3p1:BookNote>
<d3p1:TaxDocId>0</d3p1:TaxDocId>
<d3p1:TaxDocNum>String</d3p1:TaxDocNum>
<d3p1:TaxDocSerie>String</d3p1:TaxDocSerie>
</Doc>
<DocumentType>0</DocumentType>
<VatDocsId>String</VatDocsId>
</Payment>
</CreateCrmOrderPayment>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CreateCrmOrderPaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Crm.Orders">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<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>false</Result>
<NewPaymentId>0</NewPaymentId>
<DocId>String</DocId>
</CreateCrmOrderPaymentResponse>