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 HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardsOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<AppMetaData>String</AppMetaData>
<ApplePayInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
<d2p1:OrderId>String</d2p1:OrderId>
<d2p1:ThreeDSecure>
<d2p1:CAVV>String</d2p1:CAVV>
<d2p1:DataType>String</d2p1:DataType>
<d2p1:SecurityLevelInd>String</d2p1:SecurityLevelInd>
<d2p1:UCAF>String</d2p1:UCAF>
</d2p1:ThreeDSecure>
</ApplePayInfo>
<Borgun3DFinalInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
<d2p1:Amount>0</d2p1:Amount>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:OrderId>String</d2p1:OrderId>
<d2p1:PaymentMethod>
<d2p1:PaymentType>String</d2p1:PaymentType>
<d2p1:Token>String</d2p1:Token>
</d2p1:PaymentMethod>
<d2p1:ThreeDSecure>
<d2p1:DataType>String</d2p1:DataType>
<d2p1:MpiToken>String</d2p1:MpiToken>
</d2p1:ThreeDSecure>
<d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
<d2p1:TransactionType>String</d2p1:TransactionType>
</Borgun3DFinalInfo>
<CardInfo>
<Amount>0</Amount>
<Currency>String</Currency>
<OrderId>String</OrderId>
<PaymentMethod>
<CVC>String</CVC>
<ExpMonth>String</ExpMonth>
<ExpYear>String</ExpYear>
<PAN>String</PAN>
<PaymentType>String</PaymentType>
<Token>String</Token>
</PaymentMethod>
<SaveCardToToken>false</SaveCardToToken>
<TransActionDate>0001-01-01T00:00:00</TransActionDate>
</CardInfo>
<DeviceId>String</DeviceId>
<HolderEmail>String</HolderEmail>
<HolderId>String</HolderId>
<HolderName>String</HolderName>
<OwnerCardTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</OwnerCardTypeIds>
<PaymentMethodId>String</PaymentMethodId>
<PaymentPhoneNumber>String</PaymentPhoneNumber>
<PhoneVerificationNumber>String</PhoneVerificationNumber>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<ReturnCards>false</ReturnCards>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</OwnerCardsOrderRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OwnerCardsOrderResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Message>String</Message>
<OrderTokenId>String</OrderTokenId>
<PaymentIsPending>false</PaymentIsPending>
<StatusCode>0</StatusCode>
<Success>false</Success>
<Cards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:OwnerCards>
<d2p1:BackgroundImageUrl>String</d2p1:BackgroundImageUrl>
<d2p1:CardPrice>0</d2p1:CardPrice>
<d2p1:CardPriceCurrency>String</d2p1:CardPriceCurrency>
<d2p1:CardValidFromUTC>0001-01-01T00:00:00</d2p1:CardValidFromUTC>
<d2p1:CardValidToUTC>0001-01-01T00:00:00</d2p1:CardValidToUTC>
<d2p1:CurrentAvailableTickets>0</d2p1:CurrentAvailableTickets>
<d2p1:CurrentStoreCredit>0</d2p1:CurrentStoreCredit>
<d2p1:DeviceId>String</d2p1:DeviceId>
<d2p1:HasStoreCredit>false</d2p1:HasStoreCredit>
<d2p1:HolderEmail>String</d2p1:HolderEmail>
<d2p1:HolderId>String</d2p1:HolderId>
<d2p1:HolderName>String</d2p1:HolderName>
<d2p1:ID>0</d2p1:ID>
<d2p1:ImageUrl>String</d2p1:ImageUrl>
<d2p1:InitialMaxTickets>0</d2p1:InitialMaxTickets>
<d2p1:InitialStoreCredit>0</d2p1:InitialStoreCredit>
<d2p1:MaxTicketsPerEvent>0</d2p1:MaxTicketsPerEvent>
<d2p1:MultiplePaymentsId>String</d2p1:MultiplePaymentsId>
<d2p1:OwnerCardTypeId>0</d2p1:OwnerCardTypeId>
<d2p1:OwnerId>0</d2p1:OwnerId>
<d2p1:PaymentId>String</d2p1:PaymentId>
<d2p1:PaymentMethodId>String</d2p1:PaymentMethodId>
<d2p1:PaymentPhoneNumber>String</d2p1:PaymentPhoneNumber>
<d2p1:PaymentReference>String</d2p1:PaymentReference>
<d2p1:PaymentStatus>String</d2p1:PaymentStatus>
<d2p1:PaymentTokenId>String</d2p1:PaymentTokenId>
<d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber>
<d2p1:PhoneVerificationId>0</d2p1:PhoneVerificationId>
<d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber>
<d2p1:PricePaid>0</d2p1:PricePaid>
<d2p1:PricePaidCurrency>String</d2p1:PricePaidCurrency>
<d2p1:TimeStampBoughtUTC>0001-01-01T00:00:00</d2p1:TimeStampBoughtUTC>
<d2p1:TimeStampCreatedUTC>0001-01-01T00:00:00</d2p1:TimeStampCreatedUTC>
<d2p1:TimeStampLastChangedUTC>0001-01-01T00:00:00</d2p1:TimeStampLastChangedUTC>
<d2p1:TimeStampOrderedUTC>0001-01-01T00:00:00</d2p1:TimeStampOrderedUTC>
</d2p1:OwnerCards>
</Cards>
</OwnerCardsOrderResult>