Skip to main content

Create Patron Session

In order to complete a transaction using the VIP Connect an operator must create a session for the end user to use with a valid session ID.

Notes:

  • The API SPECIFICATION section describes the different /api/patronsession calls available.
  • The web component will immediately display a loading modal dialog while the backend-to-backend session creation calls are occurring. The modal dialog will then display the VIP user interface after a valid session ID has been returned to the web component.

API Specification

The following APIs are available to authenticated operators to create sessions for end users that do or do not have an existing VIP account.

POST /api/patronsession/new

For end users that do not have an existing VIP account, submit the end user’s information to open a session.

The ID information will be used to check for an existing VIP account. If a VIP account is found the PII data will be discarded, otherwise the data will be used for enrollment in VIP. End users will need to complete enrollment before continuing to complete a deposit or withdraw.

Example Request:

{
"patronId": "309345c8-3724-481a-9cb4-ea0b8a670fde",
"firstName": "hello",
"middleInitial": "M",
"lastName": "frd",
"dateOfBirth": "07/03/1964",
"email": "8zN2Emyp@5JP6oEaZ.com",
"mobilePhone": "8434811326",
"streetName": "28 NQqodHNdv",
"city": "prZYfAYqa",
"state": "TN",
"zip": "282926017",
"country": "USA",
"idType": "SS",
"idNumber": "111223333",
"routingNumber": "",
"accountNumber": "",
"walletBalance": "1000",
"remainingDailyDeposit": "1000",
"transactionId": "tranid2345",
"transactionAmount": 10.33,
"returnUrl":"https://www.onlinebettingportal.com/success",
"productType":"preferred",
"androidPackageName":"com.pavilionpay.igaming",
"ssn":"111223333",
"oneClickDiscountApplied":true,
"cancelRedirectUrl": "https://www.onlinebettingportal.com/cancel"
}

Parameters List

Parameter NameDescriptionRequiredTypeExampleLength
patronIdUnique ID to identify end user (generated on operator site)YesString309345c8-3724-481a-9cb4-ea0b8a670fde8 - 36
firstNameEnd user first nameYesStringJohn20 max
middleInitialEnd user middle initial (if exists)NoStringK20 max
lastNameEnd user last nameYesStringSmith20 max
dateOfBirthEnd user's date of birthYesDateTime (mm/dd/yyyy)07/03/196410
emailEnd user's email addressYesStringjohn@smith.com40 max
mobilePhoneEnd user's mobile phone numberYesString972458785410 - 15
streetNameEnd user's street addressYesString15th Ave30 max
cityEnd user's city nameYesStringPlano32 max
stateEnd user's stateYesStringTX2
zipEnd user's zip codeYesString750245 or 9
countryEnd user's country nameYesStringUSA32 max
idTypeIdentification number typeYes, if SSN is not providedStringSS2
idNumberIdentification numberYes, if SSN is not providedString1112233336 - 30
accountNumberEnd user selected bank account numberNoString4578521554 - 17
routingNumberRouting number for bank selectedNoString45785215598 or 9
remainingDailyDepositREFER belowNoDecimal25.009 max
walletBalanceREFER belowNoDecimal999.999 max
transactionId*Unique ID to identify deposit/withdraw requestYesAlphanumeric textvip12345Id8 - 36
transactionAmountTransaction amount to deposit/withdrawNoDecimal10.339 max
transactionTypeEnd user selected Transaction Flow (Deposit or Withdraw)YesEnum Value"deposit"(or 0), "withdraw"(or 1)8 max
returnUrlAn Optional value to navigate back to Operator provided URL after successful transaction. This would override the value set in the Operator data.NoStringhttps://www.onlinebettingportal.com/success256 max
cancelRedirectUrlAn Optional value to navigate back to Operator provided URL after the patron cancels the transaction.NoStringhttps://www.onlinebettingportal.com/cancel256 max
productTypeVIP product type (VIP Preferred or VIP Online)NoStringpreferred10 max
androidPackageNameAndroid package to return control toNoStringcom.pavilionpay.igaming256 max
ssnEnd user's social security numberYes, if idType and idNumber are not providedString1112233339
oneClickDiscountAppliedDiscount on transaction enabled for operator (eligibility determined by oneClickDiscountEligible from Account Inquiry response)NoBooleanfalse5
note

transactionId is assigned by the Operator. Max Length: 25 characters, Min Length: 8 characters productType is a future feature and is optional at this time. If not provided it will default to preferred.

Example Success Response:

{
"patronId": "309345c8-3724-481a-9cb4-ea0b8a670fdf",
"sessionId": "78c18d5a-0476-46e3-839a-32a28949ec03",
"expires": "2024-04-26T17:15:04.7345433+00:00",
"enrollmentStatus": "none",
"operatorName": "Operator - 1",
"transactionSucceeded": false,
"depositLimit": 1000.0,
"minDeposit": 10.00,
"withdrawLimit": 1000.0,
"minWithdraw": 1.00,
"transactionId": "tranid2345",
"transactionAmount": 10.33,
"returnUrl": "https://www.onlinebettingportal.com/success",
"patronProductType": "Online",
"oneClickDiscountApplied": false,
"cancelRedirectUrl": "https://www.onlinebettingportal.com/cancel"
}

Example Error Response:

note

If an error occurs, an error model will be included in the response as shown below. If an error is returned then the operatorDeclineDescription should be shown to the user and the VIP Connect should NOT be loaded.
See Error Responses page for list of all possible errors.

{
"patronId": "309345c8-3724-481a-9cb4-ea0b8a670fdf",
"sessionId": "78c18d5a-0476-46e3-839a-32a28949ec03",
"expires": "2024-04-26T17:15:04.7345433+00:00",
"enrollmentStatus": "none",
"operatorName": "Operator - 1",
"transactionSucceeded": false,
"depositLimit": 1000.0,
"minDeposit": 10.00,
"withdrawLimit": 1000.0,
"minWithdraw": 1.00,
"transactionId": "tranid2345",
"transactionAmount": 10.33,
"returnUrl": "https://www.onlinebettingportal.com/success",
"patronProductType": "Online",
"oneClickDiscountApplied": false,
"cancelRedirectUrl": "https://www.onlinebettingportal.com/cancel",
"errorModel": {
"errorCode": "99",
"transactionStage": "VIP Account Inquiry",
"operatorErrorMessage": "Invalid Account.",
"operatorDeclineDescription": "This transaction has been requested from an account that has been closed. For further assistance please contact Pavilion Gaming Services customer support at 1-800-500-1973 with reference code E-99.",
"patronErrorMessage": "Sorry, unable to complete this request. Please contact CAMS at 1-800-500-1973 for support using error code E-99."
}
}

POST /api/patronsession/existing

For end users that do have an existing VIP account, submit the end user’s VIP card number to avoid having to send sensitive PII. An end user’s date of birth will be used to validate the cardholder. All fields are required.

Example Scenario:

  1. Operator makes an authenticated call to VIP Connect API.
  2. VIP Connect API will validate and create a new session.
  3. Session ID and other properties (refer) are returned as response to the operator.
  4. Operator uses the session ID to invoke web component

Example Request

{
"patronId": "309345c8-3724-481a-9cb4-ea0b8a670fde",
"vipCardNumber": "7210536159",
"dateOfBirth": "07/03/1964",
"remainingDailyDeposit": 25.00,
"walletBalance": 1000.23,
"transactionId": "tranid1099",
"transactionAmount": 10.33,
"transactionType": 0,
"returnUrl":"https://www.onlinebettingportal.com/success",
"productType":"preferred",
"androidPackageName":"com.pavilionpay.igaming",
"oneClickDiscountApplied":false,
"cancelRedirectUrl": "https://www.onlinebettingportal.com/cancel"
}

Parameters List

Parameter NameDescriptionRequiredTypeExampleLength
patronIdUnique ID to identify end user (generated on operator site)YesString309345c8-3724-481a-9cb4-ea0b8a670fde8 - 36
vipCardNumberVIP account numberYesString721053615910
dateOfBirthEnd user's date of birthYesDateTime (mm/dd/yyyy)07/03/196410
remainingDailyDepositREFERNoDecimal25.009 max
walletBalanceREFERNoDecimal999.999 max
transactionId*Unique ID to identify deposit/withdraw requestYesAlphanumeric textvip12345Id8 - 36
transactionAmountTransaction amount to deposit/withdrawYesDecimal10.339 max
transactionTypeEnd user selected Transaction Flow (Deposit or Withdraw)YesEnum Value"deposit"(or 0), "withdraw"(or 1)8 max
returnUrlAn Optional value to navigate back to Operator provided URL after successful transaction. This would override the value set in the Operator data.NoStringhttps://www.onlinebettingportal.com/success256 max
cancelRedirectUrlAn Optional value to navigate back to Operator provided URL after the patron cancels the transaction.NoStringhttps://www.onlinebettingportal.com/cancel256 max
productTypeVIP product type (VIP Preferred or VIP Online)NoStringpreferred10 max
androidPackageNameAndroid package to return control toNoStringcom.pavilionpay.igaming256 max
oneClickDiscountAppliedDiscount enabled for end user (eligibility determined by oneClickDiscountEligible from Account Inquiry response)NoBooleanfalse5
note

transactionId is assigned by the Operator. Max Length: 25 characters, Min Length: 8 characters productType is a future feature and is optional at this time. If not provided it will default to preferred.

Response

StatusDescription
200 OKReturns Session Details

This API will return HTTP 400 if the VIP account does not exist; if this occurs the operator should use the /new api instead.

Example Success Response:

Use the SessionId data to render the web component. The other response fields are informational only and may be disregarded.

{
"patronId": "0ef56720-47b6-46bc-9a3a-b81bd511d10a",
"sessionId": "73a747bb-4d3c-4776-af73-945f8fdeaef8",
"expires": "2024-04-26T17:20:31.6361748+00:00",
"enrollmentStatus": "complete",
"vipCardNumber": "7210536159",
"operatorName": "Operator - 1",
"transactionSucceeded": false,
"depositLimit": 999.99,
"minDeposit": 10.00,
"withdrawLimit": 1000.0,
"minWithdraw": 1.00,
"transactionId": "tranid1099",
"transactionAmount": 10.33,
"returnUrl": "https://www.onlinebettingportal.com/success",
"patronProductType": "Preferred",
"oneClickDiscountApplied": false,
"cancelRedirectUrl": "https://www.onlinebettingportal.com/cancel"
}

Example Error Response:

note

If an error occurs, an error model will be included in the response as shown below. If an error is returned then the operatorDeclineDescription should be shown to the user and the VIP Connect should NOT be loaded.
See Error Responses page for list of all possible errors.

{
"patronId": "0ef56720-47b6-46bc-9a3a-b81bd511d10a",
"sessionId": "00000000-0000-0000-0000-000000000000",
"expires": "2024-04-26T15:18:30.8687626+00:00",
"enrollmentStatus": "none",
"operatorName": "Operator - 1",
"transactionSucceeded": false,
"depositLimit": 999.99,
"minDeposit": 10.00,
"withdrawLimit": 1000.0,
"minWithdraw": 1.00,
"transactionId": "tranid1099",
"transactionAmount": 10.33,
"returnUrl": "https://www.onlinebettingportal.com/success",
"oneClickDiscountApplied": false,
"cancelRedirectUrl": "https://www.onlinebettingportal.com/cancel",
"errorModel": {
"errorCode": "99",
"transactionStage": "VIP Account Inquiry",
"operatorErrorMessage": "Invalid Account.",
"operatorDeclineDescription": "This transaction has been requested from an account that has been closed. For further assistance please contact Pavilion Gaming Services customer support at 1-800-500-1973 with reference code E-99.",
"patronErrorMessage": "Sorry, unable to complete this request. Please contact CAMS at 1-800-500-1973 for support using error code E-99."
}
}

RemainingDailyDeposit

Operators should specify RemainingDailyDeposit value if they institute daily deposit limits for end users. The remaining daily deposit should be recalculated before each session is created to account for any deposits made earlier in the day.

WalletBalance

WalletBalance is the end user’s current balance on the operator site. If provided, the end user will not be allowed to withdraw more than this balance. Negative balances will prevent withdrawal.