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 /OrderOwnerCards/upgrade/quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardsUpgradeQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<BuyerPhone>String</BuyerPhone>
<SourceOwnerCardId>0</SourceOwnerCardId>
<TargetOwnerCardTypeId>0</TargetOwnerCardTypeId>
<Tenders>
<OrderTender>
<AmountMinor>0</AmountMinor>
<AppliedMinor>0</AppliedMinor>
<Code>String</Code>
<HoldId>0</HoldId>
<IdempotencyKey>String</IdempotencyKey>
<Kind>String</Kind>
</OrderTender>
</Tenders>
</OwnerCardsUpgradeQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OwnerCardsUpgradeQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Message>String</Message>
<Reason>String</Reason>
<StatusCode>0</StatusCode>
<ChargedAmount>0</ChargedAmount>
<ChargedAmountMinor>0</ChargedAmountMinor>
<DiscountAmount>0</DiscountAmount>
<DonationAmount>0</DonationAmount>
<FullyCovered>false</FullyCovered>
<GiftCardAmount>0</GiftCardAmount>
<PricePaidOriginal>0</PricePaidOriginal>
<PriceTotal>0</PriceTotal>
<SourceOwnerCardId>0</SourceOwnerCardId>
<SourceOwnerCardTypeId>0</SourceOwnerCardTypeId>
<SourceTypeName>String</SourceTypeName>
<TargetOwnerCardTypeId>0</TargetOwnerCardTypeId>
<TargetPrice>0</TargetPrice>
<TargetTypeName>String</TargetTypeName>
<TransactionFee>0</TransactionFee>
<ValidFromUTC>0001-01-01T00:00:00</ValidFromUTC>
<ValidToUTC>0001-01-01T00:00:00</ValidToUTC>
</OwnerCardsUpgradeQuoteResult>