Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
POST | /paymentCards | Get All Credit, Debit and KSI cards for this phone |
---|
export class BorgunSavedCards
{
public id?: number;
public creationDate?: string;
public lastTokenDate?: string;
public isDebit?: boolean;
public phoneVerificationNumber?: string;
public deviceId?: string;
public virtualCardNumber?: string;
public panLastFour?: string;
public expYear?: string;
public expMonth?: string;
public token?: string;
public cardType?: string;
public deletedByUser?: boolean;
public deletedFromOrigin?: boolean;
public dateDeletedByUser?: string;
public dateDeletedFromOrigin?: string;
public isDeleted?: boolean;
public dateDeletedBySystem?: string;
public deletedBySystem?: boolean;
public constructor(init?: Partial<BorgunSavedCards>) { (Object as any).assign(this, init); }
}
export class KsiCards
{
public id?: number;
public creationDate?: string;
public phoneFullVerificationNumber?: string;
public deviceId?: string;
public ksiCardTypeId?: string;
public ksiClubId?: string;
public holderName?: string;
public canTransferToPhoneFullNumber?: string;
public canTransferToNName?: string;
public expYear?: string;
public expMonth?: string;
public constructor(init?: Partial<KsiCards>) { (Object as any).assign(this, init); }
}
export class OwnerCards
{
public id?: number;
public ownerId?: number;
public ownerCardTypeId?: number;
public phoneVerificationId?: number;
public initialMaxTickets?: number;
public currentAvailableTickets?: number;
public timeStampCreatedUTC?: string;
public timeStampLastChangedUTC?: string;
public timeStampBoughtUTC?: string;
public timeStampOrderedUTC?: string;
public cardValidFromUTC?: string;
public cardValidToUTC?: string;
public hasStoreCredit?: boolean;
public cardPrice?: number;
public pricePaid?: number;
public initialStoreCredit?: number;
public currentStoreCredit?: number;
public phoneFullVerificationNumber?: string;
public holderId?: string;
public holderName?: string;
public holderEmail?: string;
public cardPriceCurrency?: string;
public pricePaidCurrency?: string;
public deviceId?: string;
public paymentMethodId?: string;
public paymentReference?: string;
public phoneVerificationNumber?: string;
public paymentPhoneNumber?: string;
public paymentId?: string;
public paymentStatus?: string;
public paymentTokenId?: string;
public maxTicketsPerEvent?: number;
public multiplePaymentsId?: string;
public imageUrl?: string;
public backgroundImageUrl?: string;
public constructor(init?: Partial<OwnerCards>) { (Object as any).assign(this, init); }
}
export class KsiCardTypes
{
public ksiCardTypeId?: string;
public ksiCardTypeName?: string;
public ksiCardTypeDescription?: string;
public cardTypeOwner?: string;
public maxTicketsPerEvent?: number;
public constructor(init?: Partial<KsiCardTypes>) { (Object as any).assign(this, init); }
}
export class KsiCardInfo
{
public card?: KsiCards;
public cardType?: KsiCardTypes;
public constructor(init?: Partial<KsiCardInfo>) { (Object as any).assign(this, init); }
}
export class OwnerCardType
{
public id?: number;
public ownerId?: number;
public maxTickets?: number;
public timeStampCreatedUTC?: string;
public timeStampLastChangedUTC?: string;
public saleStartDateUTC?: string;
public saleEndDateUTC?: string;
public validStartDateForNewCardsUTC?: string;
public validEndDateForNewCardsUTC?: string;
public hasStoreCredit?: boolean;
public isActive?: boolean;
public onlyForTeamUse?: boolean;
public price?: number;
public initialStoreCredit?: number;
public description?: string;
public name?: string;
public imageUrl?: string;
public currency?: string;
public maxTicketsPerEvent?: number;
public backgroundImageUrl?: string;
public validForConnectedOwners?: boolean;
public superOwnerId?: number;
public constructor(init?: Partial<OwnerCardType>) { (Object as any).assign(this, init); }
}
export class OwnerCardInfo
{
public card?: OwnerCards;
public cardType?: OwnerCardType;
public ownerName?: string;
public constructor(init?: Partial<OwnerCardInfo>) { (Object as any).assign(this, init); }
}
export class PaymentCardsResult
{
public cards?: BorgunSavedCards[];
public ksiCards?: KsiCards[];
public ownerCards?: OwnerCards[];
public ksiCardInfoList?: KsiCardInfo[];
public ownerCardInfoList?: OwnerCardInfo[];
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<PaymentCardsResult>) { (Object as any).assign(this, init); }
}
export class RequestSignature
{
public systemId?: string;
public systemSecret?: string;
public signature?: string;
public constructor(init?: Partial<RequestSignature>) { (Object as any).assign(this, init); }
}
export class PaymentCardsRequest
{
public phoneVerificationNumber?: string;
public deviceId?: string;
public onlyForEventId?: number;
public checkForExpiry?: boolean;
public excludeHiddenCards?: boolean;
public requestUnixUTCTimeStamp?: number;
public includeDeletedCards?: boolean;
public signature?: RequestSignature;
public constructor(init?: Partial<PaymentCardsRequest>) { (Object as any).assign(this, init); }
}
TypeScript PaymentCardsRequest 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 /paymentCards HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PaymentCardsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<CheckForExpiry>false</CheckForExpiry>
<DeviceId>String</DeviceId>
<ExcludeHiddenCards>false</ExcludeHiddenCards>
<IncludeDeletedCards>false</IncludeDeletedCards>
<OnlyForEventId>0</OnlyForEventId>
<PhoneVerificationNumber>String</PhoneVerificationNumber>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</PaymentCardsRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <PaymentCardsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Cards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:BorgunSavedCards> <d2p1:CardType>String</d2p1:CardType> <d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate> <d2p1:DateDeletedBySystem>0001-01-01T00:00:00</d2p1:DateDeletedBySystem> <d2p1:DateDeletedByUser>0001-01-01T00:00:00</d2p1:DateDeletedByUser> <d2p1:DateDeletedFromOrigin>0001-01-01T00:00:00</d2p1:DateDeletedFromOrigin> <d2p1:DeletedBySystem>false</d2p1:DeletedBySystem> <d2p1:DeletedByUser>false</d2p1:DeletedByUser> <d2p1:DeletedFromOrigin>false</d2p1:DeletedFromOrigin> <d2p1:DeviceId>String</d2p1:DeviceId> <d2p1:ExpMonth>String</d2p1:ExpMonth> <d2p1:ExpYear>String</d2p1:ExpYear> <d2p1:Id>0</d2p1:Id> <d2p1:IsDeleted>false</d2p1:IsDeleted> <d2p1:LastTokenDate>0001-01-01T00:00:00</d2p1:LastTokenDate> <d2p1:PanLastFour>String</d2p1:PanLastFour> <d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber> <d2p1:Token>String</d2p1:Token> <d2p1:VirtualCardNumber>String</d2p1:VirtualCardNumber> <d2p1:isDebit>false</d2p1:isDebit> </d2p1:BorgunSavedCards> </Cards> <KsiCardInfoList> <KsiCardInfo> <Card xmlns:d4p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d4p1:CanTransferToNName>String</d4p1:CanTransferToNName> <d4p1:CanTransferToPhoneFullNumber>String</d4p1:CanTransferToPhoneFullNumber> <d4p1:CreationDate>0001-01-01T00:00:00</d4p1:CreationDate> <d4p1:DeviceId>String</d4p1:DeviceId> <d4p1:ExpMonth>String</d4p1:ExpMonth> <d4p1:ExpYear>String</d4p1:ExpYear> <d4p1:HolderName>String</d4p1:HolderName> <d4p1:Id>0</d4p1:Id> <d4p1:KsiCardTypeId>String</d4p1:KsiCardTypeId> <d4p1:KsiClubId>String</d4p1:KsiClubId> <d4p1:PhoneFullVerificationNumber>String</d4p1:PhoneFullVerificationNumber> </Card> <CardType xmlns:d4p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d4p1:CardTypeOwner>String</d4p1:CardTypeOwner> <d4p1:KsiCardTypeDescription>String</d4p1:KsiCardTypeDescription> <d4p1:KsiCardTypeId>String</d4p1:KsiCardTypeId> <d4p1:KsiCardTypeName>String</d4p1:KsiCardTypeName> <d4p1:MaxTicketsPerEvent>0</d4p1:MaxTicketsPerEvent> </CardType> </KsiCardInfo> </KsiCardInfoList> <KsiCards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:KsiCards> <d2p1:CanTransferToNName>String</d2p1:CanTransferToNName> <d2p1:CanTransferToPhoneFullNumber>String</d2p1:CanTransferToPhoneFullNumber> <d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate> <d2p1:DeviceId>String</d2p1:DeviceId> <d2p1:ExpMonth>String</d2p1:ExpMonth> <d2p1:ExpYear>String</d2p1:ExpYear> <d2p1:HolderName>String</d2p1:HolderName> <d2p1:Id>0</d2p1:Id> <d2p1:KsiCardTypeId>String</d2p1:KsiCardTypeId> <d2p1:KsiClubId>String</d2p1:KsiClubId> <d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber> </d2p1:KsiCards> </KsiCards> <Message>String</Message> <OwnerCardInfoList> <OwnerCardInfo> <Card xmlns:d4p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d4p1:BackgroundImageUrl>String</d4p1:BackgroundImageUrl> <d4p1:CardPrice>0</d4p1:CardPrice> <d4p1:CardPriceCurrency>String</d4p1:CardPriceCurrency> <d4p1:CardValidFromUTC>0001-01-01T00:00:00</d4p1:CardValidFromUTC> <d4p1:CardValidToUTC>0001-01-01T00:00:00</d4p1:CardValidToUTC> <d4p1:CurrentAvailableTickets>0</d4p1:CurrentAvailableTickets> <d4p1:CurrentStoreCredit>0</d4p1:CurrentStoreCredit> <d4p1:DeviceId>String</d4p1:DeviceId> <d4p1:HasStoreCredit>false</d4p1:HasStoreCredit> <d4p1:HolderEmail>String</d4p1:HolderEmail> <d4p1:HolderId>String</d4p1:HolderId> <d4p1:HolderName>String</d4p1:HolderName> <d4p1:ID>0</d4p1:ID> <d4p1:ImageUrl>String</d4p1:ImageUrl> <d4p1:InitialMaxTickets>0</d4p1:InitialMaxTickets> <d4p1:InitialStoreCredit>0</d4p1:InitialStoreCredit> <d4p1:MaxTicketsPerEvent>0</d4p1:MaxTicketsPerEvent> <d4p1:MultiplePaymentsId>String</d4p1:MultiplePaymentsId> <d4p1:OwnerCardTypeId>0</d4p1:OwnerCardTypeId> <d4p1:OwnerId>0</d4p1:OwnerId> <d4p1:PaymentId>String</d4p1:PaymentId> <d4p1:PaymentMethodId>String</d4p1:PaymentMethodId> <d4p1:PaymentPhoneNumber>String</d4p1:PaymentPhoneNumber> <d4p1:PaymentReference>String</d4p1:PaymentReference> <d4p1:PaymentStatus>String</d4p1:PaymentStatus> <d4p1:PaymentTokenId>String</d4p1:PaymentTokenId> <d4p1:PhoneFullVerificationNumber>String</d4p1:PhoneFullVerificationNumber> <d4p1:PhoneVerificationId>0</d4p1:PhoneVerificationId> <d4p1:PhoneVerificationNumber>String</d4p1:PhoneVerificationNumber> <d4p1:PricePaid>0</d4p1:PricePaid> <d4p1:PricePaidCurrency>String</d4p1:PricePaidCurrency> <d4p1:TimeStampBoughtUTC>0001-01-01T00:00:00</d4p1:TimeStampBoughtUTC> <d4p1:TimeStampCreatedUTC>0001-01-01T00:00:00</d4p1:TimeStampCreatedUTC> <d4p1:TimeStampLastChangedUTC>0001-01-01T00:00:00</d4p1:TimeStampLastChangedUTC> <d4p1:TimeStampOrderedUTC>0001-01-01T00:00:00</d4p1:TimeStampOrderedUTC> </Card> <CardType xmlns:d4p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d4p1:BackgroundImageUrl>String</d4p1:BackgroundImageUrl> <d4p1:Currency>String</d4p1:Currency> <d4p1:Description>String</d4p1:Description> <d4p1:HasStoreCredit>false</d4p1:HasStoreCredit> <d4p1:ID>0</d4p1:ID> <d4p1:ImageUrl>String</d4p1:ImageUrl> <d4p1:InitialStoreCredit>0</d4p1:InitialStoreCredit> <d4p1:IsActive>false</d4p1:IsActive> <d4p1:MaxTickets>0</d4p1:MaxTickets> <d4p1:MaxTicketsPerEvent>0</d4p1:MaxTicketsPerEvent> <d4p1:Name>String</d4p1:Name> <d4p1:OnlyForTeamUse>false</d4p1:OnlyForTeamUse> <d4p1:OwnerId>0</d4p1:OwnerId> <d4p1:Price>0</d4p1:Price> <d4p1:SaleEndDateUTC>0001-01-01T00:00:00</d4p1:SaleEndDateUTC> <d4p1:SaleStartDateUTC>0001-01-01T00:00:00</d4p1:SaleStartDateUTC> <d4p1:SuperOwnerId>0</d4p1:SuperOwnerId> <d4p1:TimeStampCreatedUTC>0001-01-01T00:00:00</d4p1:TimeStampCreatedUTC> <d4p1:TimeStampLastChangedUTC>0001-01-01T00:00:00</d4p1:TimeStampLastChangedUTC> <d4p1:ValidEndDateForNewCardsUTC>0001-01-01T00:00:00</d4p1:ValidEndDateForNewCardsUTC> <d4p1:ValidForConnectedOwners>false</d4p1:ValidForConnectedOwners> <d4p1:ValidStartDateForNewCardsUTC>0001-01-01T00:00:00</d4p1:ValidStartDateForNewCardsUTC> </CardType> <OwnerName>String</OwnerName> </OwnerCardInfo> </OwnerCardInfoList> <OwnerCards 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> </OwnerCards> <StatusCode>0</StatusCode> </PaymentCardsResult>