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 /recurringPayments/mine HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<MyRecurringPaymentsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Items>
<RecurringSubscriptionView>
<CancellationReason>String</CancellationReason>
<CancelledAt>0001-01-01T00:00:00</CancelledAt>
<CardId>0</CardId>
<DeclinedCounter>0</DeclinedCounter>
<ExpMonth>String</ExpMonth>
<ExpYear>String</ExpYear>
<Id>0</Id>
<InitialPaymentAmount>String</InitialPaymentAmount>
<InitialPaymentCurrency>String</InitialPaymentCurrency>
<InitialPaymentDate>String</InitialPaymentDate>
<InitialPaymentStatus>String</InitialPaymentStatus>
<LastPayment>0001-01-01T00:00:00</LastPayment>
<Mode>String</Mode>
<MonthlyPrice>0</MonthlyPrice>
<MonthsPaid>0</MonthsPaid>
<NextPayment>0001-01-01T00:00:00</NextPayment>
<OwnerCardTypeId>0</OwnerCardTypeId>
<OwnerId>0</OwnerId>
<PanLastFour>String</PanLastFour>
<PaymentTokenId>String</PaymentTokenId>
<PhoneVerificationNumber>String</PhoneVerificationNumber>
<PriorSubscriptionLength>0</PriorSubscriptionLength>
<StartDate>0001-01-01T00:00:00</StartDate>
<Status>String</Status>
<SubscriptionLength>0</SubscriptionLength>
<TermsAcceptedAt>0001-01-01T00:00:00</TermsAcceptedAt>
<TermsVersion>String</TermsVersion>
<TransactionFee>0</TransactionFee>
</RecurringSubscriptionView>
</Items>
<Message>String</Message>
<StatusCode>0</StatusCode>
</MyRecurringPaymentsResult>