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 /v1/order/detail/{OrderGuid} HTTP/1.1
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetOrderDetailByGuidResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.Orchestration.API.ServiceModel.Orders">
<Order>
<ActualPrice>String</ActualPrice>
<Agent>String</Agent>
<BackOrderReference>String</BackOrderReference>
<BodyStyle>String</BodyStyle>
<Colour>String</Colour>
<CommissionNumber>String</CommissionNumber>
<Description>String</Description>
<Engine>String</Engine>
<Fuel>String</Fuel>
<FullModelYearCode>String</FullModelYearCode>
<Guid>String</Guid>
<ImageUrl>String</ImageUrl>
<Line>String</Line>
<NetPrice>String</NetPrice>
<OtrPrice>String</OtrPrice>
<OutrightPurchaseCorporation>String</OutrightPurchaseCorporation>
<Package>String</Package>
<PersonalisedOffer xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</PersonalisedOffer>
<PortArrivalDate>String</PortArrivalDate>
<ProductionDate>String</ProductionDate>
<Reference>String</Reference>
<Transmission>String</Transmission>
<Upholstery>String</Upholstery>
<Vin>String</Vin>
</Order>
</GetOrderDetailByGuidResponse>