TicketUserServices

<back to all web services

OwnerCardsUpgradeRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/OrderOwnerCards/upgradeCharge the delta, issue the target card (PricePaid = delta), revoke the source card, re-link future tickets — one transaction, idempotent
OwnerCardsUpgradeRequest Parameters:
NameParameterData TypeRequiredDescription
BuyerPhonebodystringNo
SourceOwnerCardIdbodyintNo
TargetOwnerCardTypeIdbodyintNo
IdempotencyKeybodystringNo
PaymentMethodIdbodystringNo
Borgun3DFinalInfobodyBorgun3DFinalRequestNo
TendersbodyList<OrderTender>No
HolderNamebodystringNo
HolderEmailbodystringNo
DeviceIdbodystringNo
ReturnCardsbodyboolNo
Borgun3DFinalRequest Parameters:
NameParameterData TypeRequiredDescription
TransactionTypeformstringNo
AmountformintNo
CurrencyformstringNo
TransactionDateformDateTime?No
OrderIdformstringNo
PaymentMethodformBorgun3DFinalPaymentMethodInfoNo
ThreeDSecureformBorgun3DFinal3DSecureInfoNo
Borgun3DFinalPaymentMethodInfo Parameters:
NameParameterData TypeRequiredDescription
PaymentTypeformstringNo
TokenformstringNo
VirtualNumberformstringNo
ExpYearformstringNo
ExpMonthformstringNo
PanLastFourformstringNo
Borgun3DFinal3DSecureInfo Parameters:
NameParameterData TypeRequiredDescription
DataTypeformstringNo
MpiTokenformstringNo
OrderTender Parameters:
NameParameterData TypeRequiredDescription
KindformstringNo
CodeformstringNo
AmountMinorformint?No
IdempotencyKeyformstringNo
HoldIdformint?No
AppliedMinorformint?No
OwnerCardsUpgradeResult Parameters:
NameParameterData TypeRequiredDescription
SourceOwnerCardIdformintNo
SourceOwnerCardTypeIdformintNo
SourceTypeNameformstringNo
NewOwnerCardIdformintNo
TargetOwnerCardTypeIdformintNo
TargetTypeNameformstringNo
RelinkedTicketsformintNo
PaymentReferenceformstringNo
RefundPendingformboolNo
OwnerCardsOrderResult Parameters:
NameParameterData TypeRequiredDescription
CardsformList<OwnerCards>No
OrderReferenceformstringNo
IsSubscriptionformboolNo
MonthlyPriceformdecimal?No
TransactionFeeformdecimal?No
Monthsformint?No
PaymentTokenIdformstringNo
SubscriptionTokenMissingformboolNo
PriceTotalformintNo
DiscountAmountformintNo
GiftCardAmountformintNo
DonationAmountformintNo
ChargedAmountformintNo
ReasonformstringNo
GeneralOrderResponse Parameters:
NameParameterData TypeRequiredDescription
StatusCodeformintNo
MessageformstringNo
SuccessformboolNo
PaymentIsPendingformboolNo
OrderTokenIdformstringNo
OwnerCards Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
OwnerIdformintNo
OwnerCardTypeIdformint?No
PhoneVerificationIdformint?No
InitialMaxTicketsformint?No
CurrentAvailableTicketsformint?No
TimeStampCreatedUTCformDateTime?No
TimeStampLastChangedUTCformDateTime?No
TimeStampBoughtUTCformDateTime?No
TimeStampOrderedUTCformDateTime?No
CardValidFromUTCformDateTime?No
CardValidToUTCformDateTime?No
HasStoreCreditformboolNo
CardPriceformdecimalNo
PricePaidformdecimalNo
InitialStoreCreditformdecimal?No
CurrentStoreCreditformdecimal?No
PhoneFullVerificationNumberformstringNo
HolderIdformstringNo
HolderNameformstringNo
HolderEmailformstringNo
CardPriceCurrencyformstringNo
PricePaidCurrencyformstringNo
DeviceIdformstringNo
PaymentMethodIdformstringNo
PaymentReferenceformstringNo
PhoneVerificationNumberformstringNo
PaymentPhoneNumberformstringNo
PaymentIdformstringNo
PaymentStatusformstringNo
PaymentTokenIdformstringNo
MaxTicketsPerEventformint?No
MultiplePaymentsIdformstringNo
ImageUrlformstringNo
BackgroundImageUrlformstringNo
OrderReferenceformstringNo
UpgradedFromOwnerCardIdformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /OrderOwnerCards/upgrade HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"buyerPhone":"String","sourceOwnerCardId":0,"targetOwnerCardTypeId":0,"idempotencyKey":"String","paymentMethodId":"String","borgun3DFinalInfo":{"transactionType":"String","amount":0,"currency":"String","transactionDate":"0001-01-01T00:00:00.0000000","orderId":"String","paymentMethod":{"paymentType":"String","token":"String","virtualNumber":"String","expYear":"String","expMonth":"String","panLastFour":"String"},"threeDSecure":{"dataType":"String","mpiToken":"String"}},"tenders":[{"kind":"String","code":"String","amountMinor":0,"idempotencyKey":"String","holdId":0,"appliedMinor":0}],"holderName":"String","holderEmail":"String","deviceId":"String","returnCards":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"sourceOwnerCardId":0,"sourceOwnerCardTypeId":0,"sourceTypeName":"String","newOwnerCardId":0,"targetOwnerCardTypeId":0,"targetTypeName":"String","relinkedTickets":0,"paymentReference":"String","refundPending":false,"cards":[{"id":0,"ownerId":0,"ownerCardTypeId":0,"phoneVerificationId":0,"initialMaxTickets":0,"currentAvailableTickets":0,"timeStampCreatedUTC":"0001-01-01T00:00:00.0000000","timeStampLastChangedUTC":"0001-01-01T00:00:00.0000000","timeStampBoughtUTC":"0001-01-01T00:00:00.0000000","timeStampOrderedUTC":"0001-01-01T00:00:00.0000000","cardValidFromUTC":"0001-01-01T00:00:00.0000000","cardValidToUTC":"0001-01-01T00:00:00.0000000","hasStoreCredit":false,"cardPrice":0,"pricePaid":0,"initialStoreCredit":0,"currentStoreCredit":0,"phoneFullVerificationNumber":"String","holderId":"String","holderName":"String","holderEmail":"String","cardPriceCurrency":"String","pricePaidCurrency":"String","deviceId":"String","paymentMethodId":"String","paymentReference":"String","phoneVerificationNumber":"String","paymentPhoneNumber":"String","paymentId":"String","paymentStatus":"String","paymentTokenId":"String","maxTicketsPerEvent":0,"multiplePaymentsId":"String","imageUrl":"String","backgroundImageUrl":"String","orderReference":"String","upgradedFromOwnerCardId":0}],"orderReference":"String","isSubscription":false,"monthlyPrice":0,"transactionFee":0,"months":0,"paymentTokenId":"String","subscriptionTokenMissing":false,"priceTotal":0,"discountAmount":0,"giftCardAmount":0,"donationAmount":0,"chargedAmount":0,"reason":"String","statusCode":0,"message":"String","success":false,"paymentIsPending":false,"orderTokenId":"String"}