| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| POST | /OwnerCards/Purchase/Quote |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class LocalizedMessage
Public Overridable Property [Is] As String
Public Overridable Property En As String
End Class
Public Partial Class OwnerCardPurchaseQuoteRequest
Public Overridable Property OwnerCardTypeId As Integer
Public Overridable Property GiftCardCode As String
Public Overridable Property IdempotencyKey As String
Public Overridable Property IsRecurring As Boolean
End Class
Public Partial Class OwnerCardPurchaseQuoteResult
Public Overridable Property OwnerCardTypeId As Integer
Public Overridable Property OwnerId As Integer
Public Overridable Property Currency As String
Public Overridable Property PriceMinor As Integer
Public Overridable Property GiftAppliedMinor As Integer
Public Overridable Property RemainingMinor As Integer
Public Overridable Property GiftHoldId As Nullable(Of Integer)
Public Overridable Property FullyCoveredByGiftCard As Boolean
Public Overridable Property RequiresCardMandate As Boolean
Public Overridable Property GiftRejectedReason As String
Public Overridable Property GiftMessage As LocalizedMessage
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
End Class
End Namespace
End Namespace
VB.NET OwnerCardPurchaseQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /OwnerCards/Purchase/Quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardPurchaseQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<GiftCardCode>String</GiftCardCode>
<IdempotencyKey>String</IdempotencyKey>
<IsRecurring>false</IsRecurring>
<OwnerCardTypeId>0</OwnerCardTypeId>
</OwnerCardPurchaseQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OwnerCardPurchaseQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Currency>String</Currency>
<FullyCoveredByGiftCard>false</FullyCoveredByGiftCard>
<GiftAppliedMinor>0</GiftAppliedMinor>
<GiftHoldId>0</GiftHoldId>
<GiftMessage>
<En>String</En>
<Is>String</Is>
</GiftMessage>
<GiftRejectedReason>String</GiftRejectedReason>
<Message>String</Message>
<OwnerCardTypeId>0</OwnerCardTypeId>
<OwnerId>0</OwnerId>
<PriceMinor>0</PriceMinor>
<RemainingMinor>0</RemainingMinor>
<RequiresCardMandate>false</RequiresCardMandate>
<StatusCode>0</StatusCode>
</OwnerCardPurchaseQuoteResult>