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 /Crm/Orders/Branched/View/{Id}/{SubOrderId} HTTP/1.1
Host: apex.nikoratrade.ge
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetCrmOrdersBranchedViewResponse 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>
<CrmOrderView>
<order_id>0</order_id>
<currency_id>String</currency_id>
<rate>0</rate>
<order_type>0</order_type>
<order_status>0</order_status>
<order_date>0001-01-01T00:00:00</order_date>
<pay_date>0001-01-01T00:00:00</pay_date>
<recipient_id>0</recipient_id>
<supplier_id>0</supplier_id>
<contract_id>0</contract_id>
<vat_type>0</vat_type>
<note>String</note>
<presaler_id>0</presaler_id>
<unid>00000000-0000-0000-0000-000000000000</unid>
<cuser>String</cuser>
<crtime>0001-01-01T00:00:00</crtime>
<prod_amount>0</prod_amount>
<service_amount>0</service_amount>
<payed_amount>0</payed_amount>
<total_amount>0</total_amount>
<total_rem_amount>0</total_rem_amount>
<document_numbers>String</document_numbers>
<supplier_sn>String</supplier_sn>
<supplier_company_name>String</supplier_company_name>
<supplier_branch_name>String</supplier_branch_name>
<recipient_sn>String</recipient_sn>
<recipient_company_name>String</recipient_company_name>
<recipient_branch_name>String</recipient_branch_name>
<delivery_type>0</delivery_type>
<delivery_date>0001-01-01T00:00:00</delivery_date>
<transport_number>String</transport_number>
<transport_description>String</transport_description>
<delivery_recipient_sn>String</delivery_recipient_sn>
<delivery_recipient>String</delivery_recipient>
<from_address>String</from_address>
<to_address>String</to_address>
<prepare_list_number>String</prepare_list_number>
<is_gift>false</is_gift>
<sub_order_id>0</sub_order_id>
<forwarder_user_id>0</forwarder_user_id>
<booked_prod_amount>0</booked_prod_amount>
<booked_service_amount>0</booked_service_amount>
<market_part_id>String</market_part_id>
<market_part_name>String</market_part_name>
<loyalty_card_id>String</loyalty_card_id>
<loyalty_card_owner_pernum>String</loyalty_card_owner_pernum>
<loyalty_card_owner_name>String</loyalty_card_owner_name>
<driver_sn>String</driver_sn>
<driver_name>String</driver_name>
<forwarder_name>String</forwarder_name>
<transit_docs_id>String</transit_docs_id>
<transit_status>0</transit_status>
<delivery_id>0</delivery_id>
<transit_wbid>0</transit_wbid>
<transit_tdid>0</transit_tdid>
</CrmOrderView>
</Result>
</GetCrmOrdersBranchedViewResponse>