Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #%RAML 0.8
- title: core-gaming-api
- version: "1.0"
- baseUri: "http://192.168.100.161:8081/api/core/v1"
- mediaType: application/json
- schemas:
- -
- loginUserInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "userName" : {
- "type" : "string",
- "description" : "Player entered username used to log into player web portal. Free from form errors"
- },
- "password" : {
- "type" : "string",
- "description" : "Player entered password used to log into player web portal"
- },
- "loginDateUpdateRequired" : {
- "type" : "boolean",
- "description" : "Will update the last login date with this login command in the player's profile"
- },
- "geofilterInfo" : {
- "type" : "object",
- "properties" : {
- "charset" : {
- "type" : "string",
- "description" : "Characterset attribute of the request"
- },
- "language" : {
- "type" : "string",
- "description" : "Language attribute of the request"
- },
- "browser" : {
- "type" : "string",
- "description" : "User-Agent attribute of the request"
- },
- "clientIP" : {
- "type" : "string",
- "description" : "IPAdress attribute of the request"
- },
- "proxyInfo" : {
- "type" : "string",
- "description" : "Proxy information of the request"
- },
- "localTime" : {
- "type" : "string",
- "description" : "Local Time"
- },
- "timeZoneOffset" : {
- "type" : "string",
- "description" : "Time zone offset"
- },
- "encoding" : {
- "type" : "string",
- "description" : "Encoding attribute if this request"
- }
- }
- }
- },
- "required": [ "userName", "password" ]
- }
- -
- loginUserOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "userId" : {
- "type" : "string",
- "description" : "Player's session id upon successful login"
- },
- "sessionId" : {
- "type" : "string",
- "description" : ""
- },
- "lastLogon" : {
- "type" : "string",
- "description" : ""
- }
- },
- "required": [ "userId", "sessionId"]
- }
- -
- simpleResponse: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "message" : {
- "type" : "string"
- },
- "uuid" : {
- "type" : "string"
- }
- },
- "required": [ "message" ]
- }
- -
- loadPlayerProfileOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "title" : {
- "type" : "string",
- "description" : ""
- },
- "firstName" : {
- "type" : "string",
- "description" : "First name in player's profile"
- },
- "lastName" : {
- "type" : "string",
- "description" : "Last name in player's profile"
- },
- "dateOfBirth" : {
- "type" : "string",
- "description" : "Date of birth in player's profile"
- },
- "gender" : {
- "type" : "string",
- "description" : "Gender attribute in player's profile ('M' for male and 'F' for female)"
- },
- "tlaArea" : {
- "type" : "string",
- "description" : "Player's TLA area designation"
- },
- "tlaLocation" : {
- "type" : "string",
- "description" : "Player's TLA area designation"
- },
- "phone" : {
- "type" : ["string", "null"],
- "description" : "Player's phone number"
- },
- "emailAddress" : {
- "type" : "string",
- "description" : "Player's email address"
- },
- "optInEmailResultsNotify" : {
- "type" : "boolean",
- "description" : "Option to receive draw results by email"
- },
- "optInLottoResults" : {
- "type" : ["boolean", "null"],
- "description" : "Option to receive Lotto family results as part of the 'Get Results Fast' option "
- },
- "bankAccountNumber" : {
- "type" : ["string", "null"],
- "description" : "Bank account number in player's profile"
- },
- "bankAccountConfirmed" : {
- "type" : "boolean",
- "description" : "Status confirmation of player's bank account "
- },
- "helpFlagEnabled" : {
- "type" : "boolean",
- "description" : "Indicates if the player has switched off their step by step help"
- },
- "newPasswordRequired" : {
- "type" : "boolean",
- "description" : "Indicates whether a new password is required (an admin user may reset the password for example)"
- },
- "accountStatus" : {
- "type" : "number",
- "description" : "ESI account status: 0 - active, 1 - closed; 2 - suspended. Note: Player with closed.suspended account is not able to login. So it can be observed only using 'on behalf' mode."
- },
- "loginStatus" : {
- "type" : "number",
- "description" : "Login status, 0 - active (allowed to log in), 1 - suspended (cannot log in)"
- },
- "playerStatus" : {
- "type" : "number",
- "description" : "Player status (also called user type): 1 is applicant, 2 is non confirmed, 3 is ID verified, 4 is confirmed, 5 is wagerging permitted, 6 is email changed "
- },
- "walletStatus" : {
- "type" : "integer",
- "description" : "Player's wallet status, 0 is active, 1 is suspended (e.g. cannot load money to the wallet)"
- },
- "cashBalance" : {
- "type" : "number",
- "description" : "Player's wallet balance; not null"
- },
- "tokenBalance" : {
- "type" : "number",
- "description" : "Token's balance; not null"
- },
- "weeklySpendingLimit" : {
- "type" : "number",
- "description" : "Player's actual weekly spending limits; possibly null (when e.g. the user is not wagering permitted)"
- },
- "monthlySpendingLimit" : {
- "type" : "number",
- "description" : "Player's actual monthly spending limits; possibly null (when e.g. the user is not wagering permitted)"
- },
- "weeklyXferAmt" : {
- "type" : "number",
- "description" : "Total amount of money transfers to the wallet in the current week; not null"
- },
- "loginTime" : {
- "type" : "string",
- "description" : "Last login timestamp; possibly null (is not null if the command was invoked after login)"
- },
- "claimTypeNotificationsCount" : {
- "type" : "number",
- "description" : "The number of notifications about tickets to claim"
- },
- "totalNotifications" : {
- "type" : "number",
- "description" : "Total number of notifications"
- },
- "weeklyTransferCount" : {
- "type" : "number",
- "description" : "Total number of money transfers to the wallet in the current week"
- },
- "winningTypeNotificationsCount" : {
- "type" : "number",
- "description" : "The number of notifications about winning tickets"
- },
- "ageConfirmStatus" : {
- "type" : "number",
- "description" : "Player's age confirmation status: 0 is not requested, 1 is requested, 2 is verified, 3 is denied"
- },
- "homePhone" : {
- "type" : "string",
- "description" : "Player's phone number"
- },
- "mobilePhone" : {
- "type" : "string",
- "description" : ""
- },
- "acctNumber" : {
- "type" : "string",
- "description" : "Unique ID that identifies the player sent through from the player web portal. AcctNumber of the player is nothing but userId concatenated with check digit of the player."
- },
- "sessionActive" : {
- "type" : "boolean",
- "description" : ""
- },
- "tcVersion" : {
- "type" : "string",
- "description" : "Last terms and conditions version accepted by player as stored in ESi database"
- },
- "playerGreeting" : {
- "type" : "string",
- "description" : "Customized player greeting"
- },
- "spentToDateWeek" : {
- "type" : "number",
- "description" : "Actual user spending for a week."
- },
- "spentToDateMonth" : {
- "type" : "number",
- "description" : "Actual user spending for a month."
- },
- "userType" : {
- "type" : "integer",
- "description" : "Returns the user type: 0 is 'Full' - myLotto User, 1 is 'Partial' - 2ndChance user"
- },
- "optInInstantKiwi" : {
- "type" : ["boolean", "null"],
- "description" : "Flag for Opt In Instant Kiwi"
- },
- "optInLottoJackpot" : {
- "type" : ["boolean", "null"],
- "description" : "Flag for Opt In Lotto Jackpot"
- },
- "optInLottoJackpotThreshold" : {
- "type" : ["integer", "null"],
- "description" : "Opt In Lotto Jackpot Threshold"
- },
- "optInMarketing" : {
- "type" : ["boolean", "null"],
- "description" : "Flag for Opt In Marketing"
- }
- }
- }
- -
- purchaseWagerInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "channelId": {
- "type": "integer",
- "description" : "Channel identificator (1 â Desktop, 2 - Mobile). When nothing or 0 set then 1 is put as default."
- },
- "lottoWagers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "purchaseType": {
- "type": "string",
- "description" : "4 possible options: 1. Default 2. DIP 3. Pick Your Own 4. Favourite 5. Subscription:DIP 6. Subscription:Favourite when nothing is entered, Default is used."
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total purchase amount"
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberStrikeBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberPowerballBoards": {
- "type": "integer",
- "description" : "Number of Powerball boards"
- },
- "powerballNumber": {
- "type": "string",
- "description" : "Powerball number to be played."
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "advanceDraw": {
- "type": "integer",
- "description" : "Number of draws in advance wager is purchased for"
- },
- "couponType": {
- "type": "boolean",
- "description" : "Wager is played via manual entry of coupon"
- },
- "strikeWagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "strikeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "Numbers selected"
- }
- }
- }
- }
- },
- "drawDays": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description" : "Draw Day for example: Wed, Sat"
- }
- ]
- }
- }
- }
- },
- "lottoWagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "starterDipType": {
- "type": "boolean",
- "description" : ""
- },
- "lottoLuckyDip": {
- "type": "boolean",
- "description" : "Dip option corresponding to Lotto Lucky Dip"
- },
- "lottoPowerDip": {
- "type": "boolean",
- "description" : "Dip option corresponding to Lotto Power Dip"
- },
- "lottoTripleDip": {
- "type": "boolean",
- "description" : "Dip option corresponding to Lotto Triple Dip"
- },
- "basicDipType": {
- "type": "boolean",
- "description" : "Dip type - basic"
- },
- "superDipType": {
- "type": "boolean",
- "description" : "Dip type - super"
- },
- "superPlusDipType": {
- "type": "boolean",
- "description" : "Dip type - super plus"
- },
- "megaDipType": {
- "type": "boolean",
- "description" : "Dip type - mega"
- },
- "mega24DipType": {
- "type": "boolean",
- "description" : "Dip type - mega24, old type mega with wager amount of $24"
- },
- "lottoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "powerballNumber": {
- "type": "integer",
- "description" : "Powerball number for board if selected"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of LottoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- },
- "drawDays": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description" : "Draw Day for example: Wed, Sat"
- }
- ]
- }
- }
- }
- }
- }
- }
- },
- "bullseyeWagers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "purchaseType": {
- "type": "string",
- "description" : "4 possible options: 1. Default 2. DIP 3. Pick Your Own 4. Favourite when nothing is entered, Default is used."
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total purchase amount"
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "couponType": {
- "type": "boolean",
- "description" : "Wager is played via manual entry of coupon"
- },
- "bullseyeWagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "bullseyeDip": {
- "type": "integer",
- "description" : "Dip option corresponding to Bullseye Dip. The Dip option can be 1, 3 and 7."
- },
- "bullseyeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of BullseyeNumberSelection objects which contains digit selection for each board, the digits compose of the Bullseye number (the digit at 0 position is the most significant and the last is the less significant); there should be always six numbers provided with leading zeros"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "kenoWagers":{
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "purchaseType": {
- "type": "string",
- "description" : "4 possible options: 1. Default 2. DIP 3. Pick Your Own 4. Favourite when nothing is entered, Default is used."
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total purchase amount"
- },
- "pricePerBoard": {
- "type": "number",
- "description" : "Amount wagered per board"
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "couponType": {
- "type": "boolean",
- "description" : "Wager is played via manual entry of coupon"
- },
- "kenoWagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "kenoDip": {
- "type": "integer",
- "description" : "Dip option corresponding to Keno Dip"
- },
- "drawTimes": {
- "type": "array",
- "items": [
- {
- "type": "integer",
- "description" : "Draw times set (Keno only) 10 - 10 AM Draw 13 - 1 PM Draw 15 - 3 PM Draw 18 - 6 PM draw"
- }
- ]
- },
- "kenoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "groupNumber": {
- "type": "integer",
- "description" : "Prize group played per board"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of KenoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "play3Wagers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "purchaseType": {
- "type": "string",
- "description" : "4 possible options: 1. Default 2. DIP 3. Pick Your Own 4. Favourite when nothing is entered, Default is used."
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total purchase amount"
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "couponType": {
- "type": "boolean",
- "description" : "Wager is played via manual entry of coupon"
- },
- "play3WagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "play3Boards": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of play3NumberSelection objects which contains digit selection for each board, the are 3 digits "
- }
- },
- "play3PlayType": {
- "type": "string",
- "description" : "possible values are 'Exact', 'Any', 'Pairs', 'ExactAny', 'ExactPairs', 'ExactAnyPairs' ,'Combo'"
- },
- "play3BoardAmount": {
- "type": "integer",
- "description" : "price for purchased board. Just for validation purpose"
- }
- }
- }
- }
- }
- }
- }
- },
- "required": [
- "purchaseType",
- "wagerAmount",
- "numberOfBoards",
- "numberOfDraws",
- "couponType",
- "play3WagerDetails"
- ]
- }
- }
- },
- "required": [
- "channelId"
- ]
- }
- -
- purchaseWagerOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "lottoWagers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "failureMessage": {
- "type": "string",
- "description": "Reason why this purchase request failed"
- },
- "gameTransactionNumber": {
- "type": "string",
- "description" : "Unique transaction number maintained in ESi to link all wagers which are part of a dip"
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total cost of ticket"
- },
- "walletBalance": {
- "type": "number",
- "description" : "Updated wallet balance"
- },
- "numberOfTicketsGenerated": {
- "type": "integer",
- "description" : "Number of tickets generated (1-2 depending on number of boards)"
- },
- "promoTicketReturned": {
- "type": "boolean",
- "description" : "if a promotion ticket (e.g. voucher) is returned"
- },
- "numberOfStrikeTicketsGenerated": {
- "type": "integer",
- "description" : "Number of tickets generated (1-2 depending on number of boards)"
- },
- "lottoTickets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "transactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- },
- "ticketDetails": {
- "type": "object",
- "properties": {
- "strikeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description": "Numbers selected"
- }
- }
- }
- }
- },
- "drawDays": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description": "Draw Day for example: Wed, Sat"
- }
- ]
- }
- }
- }
- }
- }
- },
- "strikeTickets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "strikeTransactionId": {
- "type": "string",
- "description" : "Strike transaction number maintained in ESi"
- },
- "strikeTicketNumber": {
- "type": "string",
- "description" : "Unique Strike ticket number maintained in ESi"
- },
- "ticketDetails": {
- "type": "object",
- "properties": {
- "strikeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description": "Numbers selected"
- }
- }
- }
- }
- },
- "drawDays": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description": "Draw Day for example: Wed, Sat"
- }
- ]
- }
- }
- }
- }
- }
- },
- "voucherTicket": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "promoTransactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "promoTicketNumber": {
- "type": "integer",
- "description" : "Unique promotion ticket number maintained in ESi"
- },
- "voucherSerial": {
- "type": "integer",
- "description" : "Voucher serial number as created by ESTE"
- },
- "ticketDetails": {
- "type": "object",
- "properties": {
- "gameName": {
- "type": "string",
- "description" : "Game name"
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "systemNumber": {
- "type": "integer",
- "description" : "System number for combo wagers."
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total purchase amount"
- },
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- },
- "ticketType": {
- "type": "string",
- "description" : "Ticket type description"
- },
- "purchaseDate": {
- "type": "string",
- "description" : "Date ticket was purchased"
- },
- "ticketStatus": {
- "type": "string",
- "description" : "Ticket status"
- },
- "gameTransactionNumber": {
- "type": "string",
- "description" : "Unique transaction number maintained in ESi to link all wagers which are part of a dip"
- },
- "couponType": {
- "type": "boolean",
- "description" : "Wager is played via manual entry of coupon"
- },
- "drawWinDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "lottoNumber": {
- "type": "integer",
- "description" : ""
- },
- "bonusTickets": {
- "type": "integer",
- "description" : ""
- },
- "drawDate": {
- "type": "string",
- "description" : "Draw date"
- },
- "drawStatus": {
- "type": "string",
- "description" : "Draw status"
- },
- "winAmount": {
- "type": "number",
- "description" : "Winning amount for cash prizes"
- },
- "winningFlag": {
- "type": "boolean",
- "description" : "Flag to indicate ticket is a winner"
- },
- "drawTicketStatus": {
- "type": "string",
- "description" : ""
- },
- "megaDipType": {
- "type": "boolean",
- "description" : ""
- },
- "drawNumber": {
- "type": "integer",
- "description" : "Draw number"
- },
- "lottoLuckyDip": {
- "type": "boolean",
- "description" : ""
- },
- "lottoPowerDip": {
- "type": "boolean",
- "description" : ""
- },
- "lottoTripleDip": {
- "type": "boolean",
- "description" : ""
- }
- }
- }
- },
- "promoTicketReturned": {
- "type": "boolean",
- "description" : "Wager qualified for a promotion/voucher ticket"
- },
- "startDraw": {
- "type": "integer",
- "description" : "Start draw number of wager."
- },
- "ticketMessage": {
- "type": "string",
- "description" : "Output string 4 lines of 26 characters."
- },
- "voucherDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "voucherMessageField1": {
- "type": "string",
- "description" : "Output string 3 lines of 15 characters."
- },
- "voucherNumber": {
- "type": "integer",
- "description" : "Voucher serial number maintained in ESI"
- },
- "voucherMessageField2": {
- "type": "string",
- "description" : "Output string 5 lines of 25 characters."
- },
- "voucherFixedText1": {
- "type": "string",
- "description" : "Fixed text on voucher ticket."
- },
- "voucherFixedText2": {
- "type": "string",
- "description" : "Fixed text on voucher ticket."
- },
- "promotionNumber": {
- "type": "string",
- "description" : "The last three digits of the promotion number."
- }
- }
- }
- },
- "ticketName": {
- "type": "string",
- "description" : "Name of the ticket as specified in OnlineGames SRS (predefined value); 'Bonus' string will be added at the end of the field if this is a bonus ticket"
- }
- }
- }
- }
- }
- },
- "spentToDateWeek": {
- "type": "number",
- "description" : "The amount a player spent for the remaining week"
- },
- "spentToDateMonth": {
- "type": "number",
- "description" : "The amount a player spent for the remaining month"
- }
- }
- }
- },
- "bullseyeWagers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "failureMessage": {
- "type": "string",
- "description": "Reason why this purchase request failed"
- },
- "transactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- },
- "gameTransactionNumber": {
- "type": "string",
- "description" : "Unique transaction number maintained in ESi to link all wagers which are part of a dip"
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total cost of ticket"
- },
- "walletBalance": {
- "type": "number",
- "description" : "Updated wallet balance"
- },
- "promoTicketReturned": {
- "type": "boolean",
- "description" : "if a promotion ticket (e.g. voucher) is returned"
- },
- "voucherTicket": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "promoTransactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "promoTicketNumber": {
- "type": "integer",
- "description" : "Unique promotion ticket number maintained in ESi"
- },
- "voucherSerial": {
- "type": "integer",
- "description" : "Voucher serial number as created by ESTE"
- }
- }
- }
- },
- "spentToDateWeek": {
- "type": "number",
- "description" : "The amount a player spent for the remaining week"
- },
- "spentToDateMonth": {
- "type": "number",
- "description" : "The amount a player spent for the remaining month"
- },
- "ticketDetails": {
- "type": "object",
- "properties": {
- "bullseyeDip": {
- "type": "integer",
- "description" : "Dip option corresponding to Bullseye Dip. The Dip option can be 1, 3 and 7."
- },
- "bullseyeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of BullseyeNumberSelection objects which contains digit selection for each board, the digits compose of the Bullseye number (the digit at 0 position is the most significant and the last is the less significant); there should be always six numbers provided with leading zeros"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "kenoWagers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "failureMessage": {
- "type": "string",
- "description": "Reason why this purchase request failed"
- },
- "transactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- },
- "gameTransactionNumber": {
- "type": "string",
- "description" : "Unique transaction number maintained in ESi to link all wagers which are part of a dip"
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total cost of ticket"
- },
- "walletBalance": {
- "type": "number",
- "description" : "Updated wallet balance"
- },
- "promoTicketReturned": {
- "type": "boolean",
- "description" : "if a promotion ticket (e.g. voucher) is returned"
- },
- "voucherTicket": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "promoTransactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "promoTicketNumber": {
- "type": "integer",
- "description" : "Unique promotion ticket number maintained in ESi"
- },
- "voucherSerial": {
- "type": "integer",
- "description" : "Voucher serial number as created by ESTE"
- }
- }
- }
- },
- "spentToDateWeek": {
- "type": "number",
- "description" : "The amount a player spent for the remaining week"
- },
- "spentToDateMonth": {
- "type": "number",
- "description" : "The amount a player spent for the remaining month"
- },
- "ticketDetails": {
- "type": "object",
- "properties": {
- "kenoDip": {
- "type": "integer",
- "description": "Dip option corresponding to Keno Dip"
- },
- "drawTimes": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description": "Draw times set (Keno only) 10 - 10 AM Draw 13 - 1 PM Draw 15 - 3 PM Draw 18 - 6 PM draw"
- }
- ]
- },
- "kenoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "groupNumber": {
- "type": "integer",
- "description": "Prize group played per board"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description": "List of KenoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "play3Wagers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "failureMessage": {
- "type": "string",
- "description": "Reason why this purchase request failed"
- },
- "transactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- },
- "gameTransactionNumber": {
- "type": "string",
- "description" : "Unique transaction number maintained in ESi to link all wagers which are part of a dip"
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total cost of ticket"
- },
- "walletBalance": {
- "type": "number",
- "description" : "Updated wallet balance"
- },
- "promoTicketReturned": {
- "type": "boolean",
- "description" : "if a promotion ticket (e.g. voucher) is returned"
- },
- "play3Tickets": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "transactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- }
- }
- }
- },
- "voucherTicket": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "promoTransactionId": {
- "type": "string",
- "description" : "Transaction number maintained in ESi"
- },
- "promoTicketNumber": {
- "type": "integer",
- "description" : "Unique promotion ticket number maintained in ESi"
- },
- "voucherSerial": {
- "type": "integer",
- "description" : "Voucher serial number as created by ESTE"
- }
- }
- }
- },
- "spentToDateWeek": {
- "type": "number",
- "description" : "The amount a player spent for the remaining week"
- },
- "spentToDateMonth": {
- "type": "number",
- "description" : "The amount a player spent for the remaining month"
- },
- "ticketDetails": {
- "type": "object",
- "properties": {
- "play3Boards": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description": "List of play3NumberSelection objects which contains digit selection for each board, the are 3 digits "
- }
- },
- "play3PlayType": {
- "type": "string",
- "description": "possible values are 'Exact', 'Any', 'Pairs', 'ExactAny', 'ExactPairs', 'ExactAnyPairs' ,'Combo'"
- },
- "play3BoardAmount": {
- "type": "number",
- "description": "price for purchased board. Just for validation purpose"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- -
- updatePlayerProfileInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "password" : {
- "type" : "string",
- "description" : "Password entered by player as part of login credentials"
- },
- "username" : {
- "type" : "string",
- "description" : "Player's account number as created and stored in ESi database"
- },
- "firstName" : {
- "type" : "string",
- "description" : "Player's first name"
- },
- "lastName" : {
- "type" : "string",
- "description" : "Player's last name"
- },
- "gender" : {
- "type" : "string",
- "description" : "Player's gender"
- },
- "dateOfBirth" : {
- "type" : "string",
- "description" : "Date of birth in player's profile",
- "pattern": "^[F0-9]{4}-[F0-9]{2}-[F0-9]{2}$"
- },
- "tlaArea" : {
- "type" : "string",
- "description" : "Player's TLA (Territory Local Authority) area designation"
- },
- "tlaLocation" : {
- "type" : "string",
- "description" : "Player's TLA (Territory Local Authority) area location"
- },
- "emailAddress" : {
- "type" : "string",
- "description" : "Player's email address to be used as username"
- },
- "optInEmailResultsNotify" : {
- "type" : "boolean",
- "description" : "Option to receive draw results by email. "
- },
- "optInLottoResults" : {
- "type" : ["boolean", "null"],
- "description" : "Option to receive Lotto family results as part of the 'Get Results Fast' option. "
- },
- "mobilePhone" : {
- "type" : "string",
- "description" : ""
- },
- "bankAccountNumber" : {
- "type" : "string",
- "description" : "Bank account number in player's profile"
- },
- "helpFlagEnabled" : {
- "type" : "boolean",
- "description" : "Indicates if the player has switched off their step by step help"
- },
- "phone" : {
- "type" : "string",
- "description" : "Player's phone number"
- },
- "bankAccountConfirmed" : {
- "type" : "boolean",
- "description" : "Status confirmation of player's bank account "
- },
- "referenceNumber" : {
- "type" : "string",
- "description" : ""
- },
- "postCode" : {
- "type" : "string",
- "description" : ""
- },
- "transAccountId" : {
- "type" : "string",
- "description" : ""
- },
- "transferId" : {
- "type" : "string",
- "description" : ""
- },
- "optInInstantKiwi" : {
- "type" : ["boolean", "null"],
- "description" : "Flag for Opt In Instant Kiwi"
- },
- "optInLottoJackpot" : {
- "type" : ["boolean", "null"],
- "description" : "Flag for Opt In Lotto Jackpot"
- },
- "optInLottoJackpotThreshold" : {
- "type" : ["integer", "null"],
- "description" : "Opt In Lotto Jackpot Threshold"
- },
- "optInMarketing" : {
- "type" : ["boolean", "null"],
- "description" : "Flag for Opt In Marketing"
- }
- },
- "required": [ "password", "tlaArea", "tlaLocation"]
- }
- -
- activationConfirmInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "geofilterInfo" : {
- "type" : "object",
- "description" : "Geofilter information object",
- "properties" : {
- "charset" : {
- "type" : "string",
- "description" : "Geofilter information object"
- },
- "language" : {
- "type" : "string",
- "description" : "Language attribute of the request"
- },
- "browser" : {
- "type" : "string",
- "description" : "User-Agent attribute of the request"
- },
- "clientIP" : {
- "type" : "string",
- "description" : "IPAdress of the client"
- },
- "proxyInfo" : {
- "type" : "string",
- "description" : "Proxy information of the request"
- },
- "localTime" : {
- "type" : "string",
- "description" : "Local Time"
- },
- "timeZoneOffset" : {
- "type" : "string",
- "description" : "Time zone offset"
- },
- "encoding" : {
- "type" : "string",
- "description" : "Encoding attribute of the request"
- }
- }
- },
- "activationId" : {
- "type" : "string",
- "description" : "Activation number contained in email notification to player which when sent to ESi will change the player status to 'Confirmed' "
- }
- },
- "required": [ "activationId" ]
- }
- -
- activationConfirmOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "userId" : {
- "type" : "string",
- "description" : "Playerâs account number as created and stored in ESi database"
- },
- "emailAddress" : {
- "type" : "string",
- "description" : "Playerâs Email"
- },
- "playerStatus" : {
- "type" : "object",
- "properties" : {
- "playerCode" : {
- "type" : "number",
- "description" : "Status code which reflects âNon-Confirmedâ, âVerified IDâ or âConfirmedâ to indicate playerâs status"
- },
- "playerDescription" : {
- "type" : "string",
- "description" : "Text description of the playerCode, e.g. Full MyLotto User"
- }
- }
- },
- "activationIdExpired" : {
- "type" : "boolean",
- "description" : "'true' or 'false' to indicate if activationId is expired or not"
- }
- }
- }
- -
- securityTnCRegistrationInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "password": {
- "type": "string",
- "description": "Password entered by player as part of login credentials"
- },
- "firstName": {
- "type": "string",
- "description": "Playerâs first name"
- },
- "lastName": {
- "type": "string",
- "description": "Playerâs last name"
- },
- "gender": {
- "type": "string",
- "description": "Playerâs gender"
- },
- "dateOfBirth": {
- "type": "string",
- "description": "Playerâs Date of Birth",
- "pattern": "^[F0-9]{4}-[F0-9]{2}-[F0-9]{2}$"
- },
- "tlaArea": {
- "type": "string",
- "description": "Playerâs TLA (Territory Local Authority) area designation"
- },
- "tlaLocation": {
- "type": "string",
- "description": "Playerâs TLA (Territory Local Authority) area location"
- },
- "phone": {
- "type": "string",
- "description": "Playerâs phone number"
- },
- "emailAddress": {
- "type": "string",
- "description": "Playerâs email address to be used as username"
- },
- "optInLottoResults": {
- "type": "boolean",
- "description": "Option to receive Lotto family results as part of the âGet Results Fastâ option. Default value = 'false'"
- },
- "securityQuestionId": {
- "type": "number",
- "description": "Hint ID corresponding to question number 1 entered by player as part of password retrieval process"
- },
- "securityAnswer": {
- "type": "string",
- "description": "Answer to hint question number 1 entered by player as part of password retrieval process"
- },
- "userAgreed": {
- "type": "boolean",
- "description": "Indication that player has agreed and accepted terms and conditions. 'true' or 'false'; if not set to 'true' the registration will stop and empty response object will be returned"
- },
- "geofilterInfo": {
- "type": "object",
- "description": "Geofilter information object",
- "properties": {
- "charset": {
- "type": "string",
- "description": "Geofilter information object"
- },
- "language": {
- "type": "string",
- "description": "Language attribute of the request"
- },
- "browser": {
- "type": "string",
- "description": "User-Agent attribute of the request"
- },
- "clientIP": {
- "type": "string",
- "description": "IPAdress of the client"
- },
- "proxyInfo": {
- "type": "string",
- "description": "Proxy information of the request"
- },
- "localTime": {
- "type": "string",
- "description": "Local Time"
- },
- "timeZoneOffset": {
- "type": "string",
- "description": "Time zone offset"
- },
- "encoding": {
- "type": "string",
- "description": "Encoding attribute of the request"
- }
- }
- },
- "optInInstantKiwi": {
- "type": "boolean",
- "description": "Flag for Opt In Instant Kiwi"
- },
- "optInLottoJackpot": {
- "type": "boolean",
- "description": "Flag for Opt In Lotto Jackpot"
- },
- "optInLottoJackpotThreshold": {
- "type": "integer",
- "description": "Opt In Lotto Jackpot Threshold"
- },
- "optInMarketing": {
- "type": "boolean",
- "description": "Flag for opt In Marketing"
- },
- "playerStatus": {
- "type": "string",
- "description": "Represents player/account status during multistep registration process"
- }
- },
- "required": [
- "password",
- "firstName",
- "lastName",
- "gender",
- "dateOfBirth",
- "tlaArea",
- "tlaLocation",
- "phone",
- "emailAddress",
- "securityQuestionId",
- "securityAnswer",
- "userAgreed",
- "geofilterInfo",
- "optInLottoResults",
- "optInLottoJackpotThreshold",
- "optInLottoJackpot",
- "optInMarketing",
- "optInInstantKiwi"
- ]
- }
- -
- securityTnCRegistrationOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "playerStatus" : {
- "type" : "object",
- "properties" : {
- "playerCode" : {
- "type" : "number",
- "description" : "Status code which reflects âNon-Confirmedâ, âVerified IDâ or âConfirmedâ to indicate playerâs status"
- },
- "playerDescription" : {
- "type" : "string",
- "description" : "Text description of the playerCode, e.g. Full MyLotto User"
- }
- }
- },
- "userId" : {
- "type" : "string",
- "description" : "Playerâs account number as stored in ESi database"
- }
- }
- }
- -
- changePasswordInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "currentPassword" : {
- "type" : "string",
- "description" : "Player entered password used to log into player web portal"
- },
- "newPassword" : {
- "type" : "string",
- "description" : "New password to be changed to, as entered by player"
- }
- },
- "required": ["currentPassword", "newPassword" ]
- }
- -
- getHintQuestionsOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "id": "http://jsonschema.net",
- "type": "array",
- "items": [
- {
- "id": "http://jsonschema.net/0",
- "type": "object",
- "properties": {
- "type": {
- "id": "http://jsonschema.net/0/type",
- "type": "integer"
- },
- "question": {
- "id": "http://jsonschema.net/0/question",
- "type": "string"
- }
- },
- "required": [
- "type",
- "question"
- ]
- }
- ]
- }
- -
- getHintQuestionOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "type" : {
- "type" : "number",
- "description" : "ID corresponding to the hint question"
- },
- "question" : {
- "type" : "string",
- "description" : "Player's hint question corresponding to the question id above, as stored in ESi database"
- }
- }
- }
- -
- changeHintQuestionsAnswersInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "password" : {
- "type" : "string",
- "description" : "Password entered by player as part of login credentials, optional if transaction is done by admin on behalf on user"
- },
- "userId" : {
- "type" : "string",
- "description" : "Player's account number as created and stored in ESi database."
- },
- "username" : {
- "type" : "string",
- "description" : "Player's email address to be used as username"
- },
- "hintId1" : {
- "type" : "number",
- "description" : "ID corresponding to the hint question 1 picked by player; must not be 0"
- },
- "hintId2" : {
- "type" : "number",
- "description" : "ID corresponding to the hint question 2 picked by player; if set to 0 â no hint question number 2 (for newly registered players, after Grand Design), must be consistent with hint question 3 (one hint question or all three)"
- },
- "hintId3" : {
- "type" : "number",
- "description" : "ID corresponding to the hint question 3 picked by player; if set to 0 â no hint question number 3 (for newly registered players, after Grand Design), must be consistent with hint question 2 (one hint question or all three)"
- },
- "hint1Ans" : {
- "type" : "string",
- "description" : "Answer to hint question number 1 entered by player; must not be null"
- },
- "hint2Ans" : {
- "type" : "string",
- "description" : "Answer to hint question number 2 entered by player; ignored if hint id equals 0"
- },
- "hint3Ans" : {
- "type" : "string",
- "description" : "Answer to hint question number 3 entered by player; ignored if hint id equals 0"
- }
- },
- "required": [ "password", "userId", "hintId1", "hint1Ans" ]
- }
- -
- validateHintOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "hintAnswerTrue" : {
- "type" : "boolean",
- "description" : "Whether hint answer is true or not for the player"
- }
- }
- }
- -
- ticketDetailsOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "gameName": {
- "type": "string",
- "description" : "Game name"
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "systemNumber": {
- "type": "integer",
- "description" : "System number for combo wagers."
- },
- "wagerAmount": {
- "type": "number",
- "description" : "Total purchase amount"
- },
- "pricePerBoard": {
- "type": "number",
- "description" : "Amount wagered per board"
- },
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- },
- "ticketType": {
- "type": "string",
- "description" : "Ticket type description"
- },
- "purchaseDate": {
- "type": "string",
- "description" : "Date ticket was purchased"
- },
- "ticketStatus": {
- "type": "string",
- "description" : "Ticket status"
- },
- "gameTransactionNumber": {
- "type": "string",
- "description" : "Unique transaction number maintained in ESi to link all wagers which are part of a dip"
- },
- "couponType": {
- "type": "boolean",
- "description" : "Wager is played via manual entry of coupon"
- },
- "cancelDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "cancelDate": {
- "type": "string"
- },
- "cancelSerial": {
- "type": "string"
- },
- "cancelTime": {
- "type": "string"
- }
- }
- }
- },
- "drawWinDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "lottoNumber": {
- "type": "integer",
- "description" : ""
- },
- "bonusTickets": {
- "type": "integer",
- "description" : ""
- },
- "drawDate": {
- "type": "string",
- "description" : "Draw date"
- },
- "drawStatus": {
- "type": "string",
- "description" : "Draw status"
- },
- "winAmount": {
- "type": "number",
- "description" : "Winning amount for cash prizes"
- },
- "winningFlag": {
- "type": "boolean",
- "description" : "Flag to indicate ticket is a winner"
- },
- "drawTicketStatus": {
- "type": "string",
- "description" : ""
- },
- "megaDipType": {
- "type": "boolean",
- "description" : ""
- },
- "drawNumber": {
- "type": "integer",
- "description" : "Draw number"
- },
- "lottoLuckyDip": {
- "type": "boolean",
- "description" : ""
- },
- "lottoPowerDip": {
- "type": "boolean",
- "description" : ""
- },
- "lottoTripleDip": {
- "type": "boolean",
- "description" : ""
- },
- "winningNumbersSet": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "winningNumbers": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "individualWinningNumber": {
- "type": "integer",
- "description" : ""
- }
- }
- }
- }
- },
- "winningPowerballNumber": {
- "type": "integer",
- "description" : ""
- }
- }
- },
- "bullseyeDivisionRange": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "divisionNumber": {
- "type": "integer",
- "description" : ""
- },
- "divisionLowerNumber": {
- "type": "integer",
- "description" : ""
- },
- "divisionUpperNumber": {
- "type": "integer",
- "description" : ""
- }
- }
- }
- }
- }
- }
- },
- "strikeWagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "strikeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "Numbers selected"
- }
- }
- }
- }
- },
- "drawDays": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description" : "Draw Day for example: Wed, Sat"
- }
- ]
- }
- }
- }
- },
- "lottoWagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "starterDipType": {
- "type": "boolean",
- "description" : ""
- },
- "lottoLuckyDip": {
- "type": "boolean",
- "description" : "Dip option corresponding to Lotto Lucky Dip"
- },
- "lottoPowerDip": {
- "type": "boolean",
- "description" : "Dip option corresponding to Lotto Power Dip"
- },
- "lottoTripleDip": {
- "type": "boolean",
- "description" : "Dip option corresponding to Lotto Triple Dip"
- },
- "basicDipType": {
- "type": "boolean",
- "description" : "Dip type - basic"
- },
- "superDipType": {
- "type": "boolean",
- "description" : "Dip type - super"
- },
- "superPlusDipType": {
- "type": "boolean",
- "description" : "Dip type - super plus"
- },
- "megaDipType": {
- "type": "boolean",
- "description" : "Dip type - mega"
- },
- "mega24DipType": {
- "type": "boolean",
- "description" : "Dip type - mega24, old type mega with wager amount of $24"
- },
- "lottoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "powerballNumber": {
- "type": "integer",
- "description" : "Powerball number for board if selected"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of LottoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- },
- "drawDays": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description" : "Draw Day for example: Wed, Sat"
- }
- ]
- }
- }
- }
- },
- "bullseyeWagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "bullseyeDip": {
- "type": "integer",
- "description" : "Dip option corresponding to Bullseye Dip. The Dip option can be 1, 3 and 7."
- },
- "bullseyeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of BullseyeNumberSelection objects which contains digit selection for each board, the digits compose of the Bullseye number (the digit at 0 position is the most significant and the last is the less significant); there should be always six numbers provided with leading zeros"
- }
- }
- }
- }
- }
- }
- }
- },
- "kenoWagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "kenoDip": {
- "type": "integer",
- "description" : "Dip option corresponding to Keno Dip"
- },
- "drawTimes": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description" : "Draw times set (Keno only) 10 - 10 AM Draw 13 - 1 PM Draw 15 - 3 PM Draw 18 - 6 PM draw"
- }
- ]
- },
- "kenoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "groupNumber": {
- "type": "integer",
- "description" : "Prize group played per board"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of KenoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- }
- }
- }
- },
- "play3WagerDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "play3Boards": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of play3NumberSelection objects which contains digit selection for each board, the are 3 digits "
- }
- },
- "play3PlayType": {
- "type": "string",
- "description" : "possible values are 'Exact', 'Any', 'Pairs', 'ExactAny', 'ExactPairs', 'ExactAnyPairs' ,'Combo'"
- },
- "play3BoardAmount": {
- "type": "number",
- "description" : "price for purchased board. Just for validation purpose"
- }
- }
- }
- }
- }
- }
- },
- "promoTicketReturned": {
- "type": "boolean",
- "description" : "Wager qualified for a promotion/voucher ticket"
- },
- "startDraw": {
- "type": "integer",
- "description" : "Start draw number of wager."
- },
- "ticketMessage": {
- "type": "string",
- "description" : "Output string 4 lines of 26 characters."
- },
- "voucherDetails": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "voucherMessageField1": {
- "type": "string",
- "description" : "Output string 3 lines of 15 characters."
- },
- "voucherNumber": {
- "type": "integer",
- "description" : "Voucher serial number maintained in ESI"
- },
- "voucherMessageField2": {
- "type": "string",
- "description" : "Output string 5 lines of 25 characters."
- },
- "voucherFixedText1": {
- "type": "string",
- "description" : "Fixed text on voucher ticket."
- },
- "voucherFixedText2": {
- "type": "string",
- "description" : "Fixed text on voucher ticket."
- },
- "promotionNumber": {
- "type": "string",
- "description" : "The last three digits of the promotion number."
- }
- }
- }
- },
- "ticketName": {
- "type": "string",
- "description" : "Name of the ticket as specified in OnlineGames SRS (predefined value); 'Bonus' string will be added at the end of the field if this is a bonus ticket"
- }
- }
- }
- -
- loadWalletOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "truncatedCardNumber" : {
- "type" : "string",
- "description" : "First 6, last 2 digits of the player's credit card number"
- },
- "expirationDate" : {
- "type" : "string",
- "description" : "Credit card expiry date in MMYY format"
- },
- "walletStatus" : {
- "type" : "number",
- "description" : "Status code which reflects 'Active' or 'Suspended' to indicate player's wallet status"
- },
- "weeklyTransferredAmount" : {
- "type" : "number",
- "description" : "The cumulative amount the player has transferred for the given week"
- },
- "weeklyTransferredCount" : {
- "type" : "number",
- "description" : "The cumulative count of transfers the player has executed for the given week"
- }
- }
- }
- -
- loadWalletConfirmInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "transactionId" : {
- "type" : "string",
- "description" : "The transaction id as generated by validate"
- }
- },
- "required": [ "transactionId" ]
- }
- -
- loadWalletConfirmOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "walletBalance" : {
- "type" : "number",
- "description" : "Updated wallet balance"
- }
- }
- }
- -
- loadWalletUpdateInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "amount" : {
- "type" : "number",
- "description" : "The amount in dollars"
- },
- "cvc" : {
- "type" : "number",
- "description" : "The Credit Card's CVC code"
- },
- "password" : {
- "type" : "string",
- "description" : "The user's accoutn password"
- }
- },
- "required": [ "amount", "cvc", "password" ]
- }
- -
- loadWalletValidateInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "password" : {
- "type" : "string",
- "description" : "Player entered password used to log into player web portal . Optional when admin user is used."
- },
- "returnUrl" : {
- "type" : "string",
- "description" : "The URL DPS will redirect the form submit to"
- }
- },
- "required": [ "password", "returnUrl" ]
- }
- -
- loadWalletValidateOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "transactionId" : {
- "type" : "string",
- "description" : "Transactionid for this operation"
- }
- }
- }
- -
- unloadWalletInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "password" : {
- "type" : "string",
- "description" : "Player entered password used to log into player web portal . Optional when admin user is used."
- },
- "transferAmount" : {
- "type" : "number",
- "description" : "The transfer amount requested by player at time of transfer"
- }
- },
- "required": [ "password", "transferAmount" ]
- }
- -
- unloadWalletOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "walletStatus" : {
- "type" : "number",
- "description" : "Status code which reflects 'Active' or 'Suspended' to indicate player's wallet status"
- },
- "walletBalance" : {
- "type" : "number",
- "description" : "Updated wallet balance"
- }
- }
- }
- -
- getLockedGamesOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "array",
- "items": [
- {
- "id": "http://jsonschema.net/games/1",
- "type": "object",
- "properties": {
- "game": {
- "type": "string",
- "description" : "Game type, possibel valeus are Lotto, Play3, Keno and Bullseye"
- },
- "locked": {
- "type": "boolean",
- "description" : "'true' or 'false' to indicate if player has been excluded from this game"
- },
- "reactivationDate": {
- "type": "string",
- "description" : "Date of game to be re-activated"
- }
- }
- }
- ]
- }
- -
- editLockedGamesInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "id": "http://jsonschema.net",
- "type": "object",
- "properties": {
- "password": {
- "type": "string",
- "description" : "Password entered by player as part of login credentials"
- },
- "games": {
- "type": "array",
- "items": [
- {
- "id": "http://jsonschema.net/games/1",
- "type": "object",
- "properties": {
- "game": {
- "enum": [ "Lotto", "Play3", "Keno", "Bullseye" ],
- "description" : "Game type, possible values are Lotto, Play3, Keno and Bullseye"
- },
- "locked": {
- "type": "boolean",
- "description" : "'true' or 'false' to indicate if player has been excluded from this game"
- },
- "reactivationDate": {
- "type": "string",
- "description" : "Date of game to be re-activated",
- "pattern": "^[F0-9]{4}-[F0-9]{2}-[F0-9]{2}$"
- }
- }
- }
- ]
- }
- }
- }
- -
- gameHistOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "drawStartDate": {
- "type": "string",
- "description" : ""
- },
- "drawEndDate": {
- "type": "string",
- "description" : ""
- },
- "gameHistory": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "gameName": {
- "type": "string",
- "description" : "Game name"
- },
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- },
- "drawId": {
- "type": "string",
- "description" : ""
- },
- "drawDate": {
- "type": "string",
- "description" : ""
- },
- "merchandiseDescription": {
- "type": "string",
- "description" : "Description of merchandise prize if applicable"
- },
- "ticketType": {
- "type": "string",
- "description" : "Ticket type description"
- },
- "drawStartDate": {
- "type": "string",
- "description" : "Draw start date for the ticket"
- },
- "drawEndDate": {
- "type": "string",
- "description" : "Draw end date for the ticket"
- },
- "purchaseDate": {
- "type": "string",
- "description" : "Date ticket was purchased"
- },
- "purchaseAmount": {
- "type": "string",
- "description" : ""
- },
- "ticketStatus": {
- "type": "string",
- "description" : "Ticket status"
- },
- "gameTransactionNumber": {
- "type": "string",
- "description" : "Unique transaction number maintained in ESi to link all wagers which are part of a dip"
- },
- "promoId": {
- "type": "integer",
- "description" : "Last three digits of the promotion id, if the ticket is of type voucher"
- },
- "drawHistoryInfo": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "drawId": {
- "type": "integer",
- "description" : "Draw number"
- },
- "drawDate": {
- "type": "string",
- "description" : "Date of draw"
- },
- "merchandiseDescription": {
- "type": "string",
- "description" : ""
- },
- "drawStatus": {
- "type": "string",
- "description" : "Draw status"
- },
- "winoutcome": {
- "type": "string",
- "description" : ""
- },
- "drawTicketStatus": {
- "type": "string",
- "description" : "Draw ticket status"
- }
- }
- }
- },
- "drawStatus": {
- "type": "string",
- "description" : ""
- },
- "gamePrizeWon": {
- "type": "string",
- "description" : ""
- },
- "gameStatus": {
- "type": "string",
- "description" : ""
- },
- "gameTicketNumber": {
- "type": "string",
- "description" : ""
- },
- "gameTypeName": {
- "type": "string",
- "description" : ""
- },
- "gameWinStatus": {
- "type": "string",
- "description" : ""
- },
- "orderId": {
- "type": "string",
- "description" : ""
- },
- "outComeTier": {
- "type": "string",
- "description" : ""
- },
- "ticketTransasctionId": {
- "type": "string",
- "description" : ""
- },
- "chequeNo": {
- "type": "string",
- "description" : ""
- },
- "winAmount": {
- "type": "number",
- "description" : ""
- },
- "winningFlag": {
- "type": "boolean",
- "description" : ""
- },
- "winoutcome": {
- "type": "string",
- "description" : ""
- }
- }
- }
- }
- },
- "required": [
- "gameHistory"
- ]
- }
- -
- listFavouriteOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "id": "http://jsonschema.net",
- "type": "object",
- "properties": {
- "favourites": {
- "type": "array",
- "items": [
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "favouriteName": {
- "type": "string",
- "description" : ""
- },
- "sequenceId": {
- "type": "integer",
- "description" : "Sequence ID of favourite play"
- },
- "gameName": {
- "type": "string",
- "description" : "Game name for which favourite play is configured"
- },
- "playSlipId": {
- "type": "string",
- "description" : ""
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "pricePerBoard": {
- "type": "number",
- "description" : "Amount wagered per board"
- },
- "systemNumber": {
- "type": "integer",
- "description" : "System number for combo wagers"
- },
- "numberStrikeBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberPowerballBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "drawTimes": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description" : "Draw times set (Keno only) 10 - 10 AM Draw 13 - 1 PM Draw 15 - 3 PM Draw 18 - 6 PM draw"
- }
- ]
- },
- "lottoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "powerballNumber": {
- "type": "integer",
- "description" : "Powerball number for board if selected"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of LottoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- },
- "kenoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "groupNumber": {
- "type": "integer",
- "description" : "Prize group played per board"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of KenoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- },
- "strikeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "Numbers selected"
- }
- }
- }
- }
- },
- "bullseyeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of BullseyeNumberSelection objects which contains digit selection for each board, the digits compose of the Bullseye number (the digit at 0 position is the most significant and the last is the less significant); there should be always six numbers provided with leading zeros"
- }
- }
- }
- }
- },
- "play3Boards": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of play3NumberSelection objects which contains digit selection for each board, the are 3 digits "
- }
- },
- "play3PlayType": {
- "type": "string",
- "description" : "possible values are 'Exact', 'Any', 'Pairs', 'ExactAny', 'ExactPairs', 'ExactAnyPairs' ,'Combo'"
- },
- "play3BoardAmount": {
- "type": "integer",
- "description" : "price for purchased board. Just for validation purpose"
- }
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- -
- editFavouriteInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "favouriteId": {
- "type": "string",
- "description" : ""
- },
- "sequenceId": {
- "type": "integer",
- "description" : "Sequence ID of favourite play"
- },
- "gameName": {
- "type": "string",
- "description" : "Game name for which favourite play is configured"
- },
- "playSlipId": {
- "type": "string",
- "description" : ""
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "pricePerBoard": {
- "type": "number",
- "description" : "Amount wagered per board"
- },
- "systemNumber": {
- "type": "integer",
- "description" : "System number for combo wagers"
- },
- "numberStrikeBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "drawTimes": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description" : "Draw times set (Keno only) 10 - 10 AM Draw 13 - 1 PM Draw 15 - 3 PM Draw 18 - 6 PM draw"
- }
- ]
- },
- "lottoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "powerballNumber": {
- "type": "integer",
- "description" : "Powerball number for board if selected"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of LottoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- },
- "kenoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "groupNumber": {
- "type": "integer",
- "description" : "Prize group played per board"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of KenoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- },
- "strikeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "Numbers selected"
- }
- }
- }
- }
- },
- "bullseyeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of BullseyeNumberSelection objects which contains digit selection for each board, the digits compose of the Bullseye number (the digit at 0 position is the most significant and the last is the less significant); there should be always six numbers provided with leading zeros"
- }
- }
- }
- }
- },
- "play3Boards": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of play3NumberSelection objects which contains digit selection for each board, the are 3 digits "
- }
- },
- "play3PlayType": {
- "type": "string",
- "description" : "possible values are 'Exact', 'Any', 'Pairs', 'ExactAny', 'ExactPairs', 'ExactAnyPairs' ,'Combo'"
- },
- "play3BoardAmount": {
- "type": "integer",
- "description" : "price for purchased board. Just for validation purpose"
- }
- }
- }
- }
- }
- }
- -
- saveFavouriteInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "favouriteId": {
- "type": "string",
- "description" : ""
- },
- "favouriteName": {
- "type": "string",
- "description" : "Name of favourite play"
- },
- "sequenceId": {
- "type": "integer",
- "description" : "Sequence ID of favourite play"
- },
- "gameName": {
- "type": "string",
- "description" : "Game name for which favourite play is configured"
- },
- "playSlipId": {
- "type": "string",
- "description" : ""
- },
- "numberOfBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "numberOfDraws": {
- "type": "integer",
- "description" : "Number of draws wager is purchased for, starting from current draw"
- },
- "pricePerBoard": {
- "type": "number",
- "description" : "Amount wagered per board"
- },
- "systemNumber": {
- "type": "integer",
- "description" : "System number for combo wagers"
- },
- "numberStrikeBoards": {
- "type": "integer",
- "description" : "Number of boards wager is purchased for"
- },
- "drawTimes": {
- "type": "array",
- "items": [
- {
- "type": "string",
- "description" : "Draw times set (Keno only) 10 - 10 AM Draw 13 - 1 PM Draw 15 - 3 PM Draw 18 - 6 PM draw"
- }
- ]
- },
- "lottoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "powerballNumber": {
- "type": "integer",
- "description" : "Powerball number for board if selected"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of LottoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- },
- "kenoBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "groupNumber": {
- "type": "integer",
- "description" : "Prize group played per board"
- },
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of KenoNumberSelection objects which contains number selection for each board"
- }
- }
- }
- }
- },
- "strikeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "Numbers selected"
- }
- }
- }
- }
- },
- "bullseyeBoard": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of BullseyeNumberSelection objects which contains digit selection for each board, the digits compose of the Bullseye number (the digit at 0 position is the most significant and the last is the less significant); there should be always six numbers provided with leading zeros"
- }
- }
- }
- }
- },
- "play3Boards": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "numbers": {
- "type": "array",
- "items": {
- "type": "integer",
- "description" : "List of play3NumberSelection objects which contains digit selection for each board, the are 3 digits "
- }
- },
- "play3PlayType": {
- "type": "string",
- "description" : "possible values are 'Exact', 'Any', 'Pairs', 'ExactAny', 'ExactPairs', 'ExactAnyPairs' ,'Combo'"
- },
- "play3BoardAmount": {
- "type": "integer",
- "description" : "price for purchased board. Just for validation purpose"
- }
- }
- }
- }
- },
- "required": [
- "favouriteName"
- ]
- }
- -
- TlaAreaLocationOutput: |
- {
- "type": "object",
- "properties": {
- "tlaAreaLocationList": {
- "type": "array",
- "items": [
- {
- "type": "object",
- "properties": {
- "tlaAreaCode": {
- "type": "string",
- "description" : "TLA Area unique code"
- },
- "tlaAreaDescription": {
- "type": "string",
- "description" : "TLA Area Description"
- },
- "tlaLocationList": {
- "type": "array",
- "description" : "List of tlaLocation objects associated with the Area",
- "items": [
- {
- "type": "object",
- "properties": {
- "tlaLocationCode": {
- "type": "string",
- "description" : "TLA Location unique code"
- },
- "tlaLocationDescription": {
- "type": "string",
- "description" : "TLA Location Description"
- }
- }
- }
- ]
- }
- }
- }
- ]
- }
- }
- }
- -
- closeAccountInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "password": {
- "type": "string",
- "description" : "Player's password as stored in ESi database."
- },
- "reasonText": {
- "type": "string",
- "description" : "The reason for closing the account"
- }
- },
- "required": [
- "password"
- ]
- }
- -
- fastValidateInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "drawId": {
- "type": "integer",
- "description" : "Draw number"
- }
- },
- "required": [
- "drawId"
- ]
- }
- -
- fastValidateOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "ticketNumber": {
- "type": "string",
- "description" : "Unique ticket number maintained in ESi"
- },
- "walletSuspended": {
- "type": "boolean",
- "description" : "WalletSuspended attribute"
- },
- "bonusTickets": {
- "type": "integer",
- "description" : "Count of bonus tickets won if applicable"
- },
- "gameDescription": {
- "type": "string",
- "description" : "Game name and/or description"
- },
- "merchandiseDescription": {
- "type": "string",
- "description" : "Description of merchandise prize if applicable"
- },
- "prizeAmount": {
- "type": "number",
- "description" : "Winning amount for cash prizes"
- },
- "ticketType": {
- "type": "string",
- "description" : "Ticket type description"
- },
- "wagerDate": {
- "type": "string",
- "description" : "Date and time ticket was purchased"
- },
- "drawID": {
- "type": "integer",
- "description" : "Draw number"
- },
- "winOutcome": {
- "type": "string",
- "description" : "Winning amount for cash prizes"
- }
- }
- }
- -
- validationInquiryInstantOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "amount": {
- "type": "number",
- "description" : "Win amount"
- },
- "resultText": {
- "type": "string",
- "description" : "Description of inquiry result."
- },
- "freeTicketsNumber": {
- "type": "integer",
- "description" : "Free tickets number as bonus prize"
- },
- "prizeLevel": {
- "type": "integer",
- "description" : ""
- }
- }
- }
- -
- validationInquiryOnlineOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "cashAmount": {
- "type": "number",
- "description" : "Win amount"
- },
- "claimAmount": {
- "type": "number",
- "description" : "Claim amount"
- },
- "resultText": {
- "type": "string",
- "description" : "Description of inquiry result."
- },
- "freeTicketsNumber": {
- "type": "integer",
- "description" : "Free tickets number as bonus prize"
- },
- "refundAmount": {
- "type": "number",
- "description" : "Refund amount"
- }
- }
- }
- -
- listClaimsOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "bankAccountNumber": {
- "type": "string",
- "description": "Player's bank account number."
- },
- "bankAccountConfirmed": {
- "type": "boolean",
- "description": "Status confirmation of player's bank account"
- },
- "walletSuspended": {
- "type": "boolean",
- "description": "WalletSuspended attribute"
- },
- "claimWinsInfo": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "bankAccountNumber": {
- "type": "string",
- "description": "Player's bank account number."
- },
- "bankAccountConfirmed": {
- "type": "boolean",
- "description": "Status confirmation of player's bank account"
- },
- "drawId": {
- "type": "integer",
- "description": "Draw number"
- },
- "ticketNumber": {
- "type": "string",
- "description": "Unique ticket number maintained in ESi"
- },
- "walletSuspended": {
- "type": "boolean",
- "description": "WalletSuspended attribute"
- },
- "bonusTickets": {
- "type": "integer",
- "description": "Count of bonus tickets won if applicable"
- },
- "drawDate": {
- "type": "string",
- "description": "Draw date"
- },
- "gameDescription": {
- "type": "string",
- "description": "Game name and or description"
- },
- "merchandiseDescription": {
- "type": "string",
- "description": "Description of merchandise prize if applicable"
- },
- "prizeAmount": {
- "type": "number",
- "description": "Winning amount for cash prizes"
- },
- "ticketType": {
- "type": "string",
- "description": "Ticket type description"
- },
- "wagerDate": {
- "type": "string",
- "description": "Date and time ticket was purchased"
- }
- }
- }
- }
- }
- }
- -
- payPrizeInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "password": {
- "type": "string",
- "description" : "Player's password as stored in ESi database."
- },
- "addressLine1": {
- "type": "string",
- "description" : "Player's address line 1"
- },
- "addressLine2": {
- "type": "string",
- "description" : "Player's address line 2"
- },
- "city": {
- "type": "string",
- "description" : "Player's town or city"
- },
- "phonenumber": {
- "type": "string",
- "description" : "Player's phone number"
- },
- "drawId": {
- "type": "integer",
- "description" : "Draw number"
- },
- "poBox": {
- "type": "integer",
- "description" : "Player's POBox"
- },
- "postalCode": {
- "type": "integer",
- "description" : "Player's postal code"
- }
- },
- "required": [
- "password"
- ]
- }
- -
- loadGlobalOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "kenoPricePerBoard": {
- "type": "number",
- "description": "Cost of Keno price per board or line"
- },
- "lottoPowerballPricePerBoard": {
- "type": "number",
- "description": "Cost of Lotto Powerball price per board or line"
- },
- "lottoPricePerBoard": {
- "type": "number",
- "description": "Cost of Lotto price per board or line"
- },
- "strikePricePerBoard": {
- "type": "number",
- "description": "Cost of Lotto Strike price per board or line"
- },
- "systemMonthlyLimit": {
- "type": "string",
- "description": "System Monthly Limit"
- },
- "systemWeeklyLimit": {
- "type": "string",
- "description": "System Weekly Limit"
- },
- "tcCurrentVersion": {
- "type": "number",
- "description": "Terms and Conditions most current version"
- },
- "viewGamingHistoryDefaultNumberDays": {
- "type": "number",
- "description": "Time period for viewing historical game play history"
- },
- "viewTransHistoryDefaultNumberDays": {
- "type": "number",
- "description": "Time period for viewing historical financial transaction history"
- },
- "walletMaxTransfer": {
- "type": "number",
- "description": "Maximum amount allowed to be transferred to wallet"
- },
- "walletMinTransfer": {
- "type": "number",
- "description": "Minimum amount allowed to be transferred to wallet"
- },
- "maxWalletWeeklyTransferAmountTo": {
- "type": "number",
- "description": "Maximum amount of transfers per week to wallet"
- },
- "maxWalletWeeklyTransfersTo": {
- "type": "number",
- "description": "Maximum number of transfers per week to wallet"
- },
- "maxWalletWeeklyTransfersFrom": {
- "type": "number"
- },
- "maxWalletWeeklyTransferAmountFrom": {
- "type": "number",
- "description": "Maximum number of transfers per week from wallet"
- },
- "lottoGameActive": {
- "type": "boolean",
- "description": "true if Lotto Game is Active, otherwise returns false"
- },
- "kenoGameActive": {
- "type": "boolean",
- "description": "true if Ken o Game is active, otherwise returns false"
- },
- "bullseyePricePerBoardFor1Draw": {
- "type": "number",
- "description": "Cost of Bullseye per board for a single draw ticket"
- },
- "bullseyePricePerBoardFor7Draws": {
- "type": "number",
- "description": "Cost of Bullseye per board for a 7 draw ticket"
- },
- "bullseyePricePerBoardFor14Draws": {
- "type": "number",
- "description": "Cost of Bullseye per board for a 14 draw ticket"
- },
- "bullseyeGameActive": {
- "type": "boolean",
- "description": "true if Bullseye game is active, otherwise returns false"
- },
- "play3PricePerBoard": {
- "type": "array",
- "description": "key value list of name and Cost of Play3 price per board or line in cents",
- "items": [
- {
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "description": "Name of board"
- },
- "value": {
- "type": "number",
- "description": "Price of board"
- }
- }
- }
- ]
- },
- "play3GameActive": {
- "type": "boolean"
- }
- }
- }
- -
- viewSpendingLimitsOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "playerStatus": {
- "type": "number",
- "description" : ""
- },
- "weeklySpendingLimit": {
- "type": "number",
- "description" : "The cumulative amount a player can spend in a week"
- },
- "monthlySpendingLimit": {
- "type": "number",
- "description" : "The cumulative amount a player can spend in a month"
- },
- "spentToDateWeek": {
- "type": "number",
- "description" : "The amount a player spent for the remaining week"
- },
- "spentToDateMonth": {
- "type": "number",
- "description" : "The amount a player spent for the remaining month"
- }
- }
- }
- -
- editSpendingLimitsInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "password": {
- "type": "string",
- "description" : "Password entered by player as part of login credentials"
- },
- "userId": {
- "type": "string",
- "description" : "Player's account number as created and stored in ESi database"
- },
- "weeklyActualLimit": {
- "type": "number",
- "description" : "The cumulative amount a player can spend in a week"
- },
- "monthlyActualLimit": {
- "type": "number",
- "description" : "The cumulative amount a player can spend in a month"
- },
- "acctNumber": {
- "type": "string",
- "description" : "Bank account number"
- }
- },
- "required": [
- "password",
- "weeklyActualLimit",
- "monthlyActualLimit"
- ]
- }
- -
- spendingLimitsInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "weeklyActualLimit": {
- "type": "number",
- "description" : "The cumulative amount a player can spend in a week"
- },
- "monthlyActualLimit": {
- "type": "number",
- "description" : "The cumulative amount a player can spend in a month"
- },
- "acctNumber": {
- "type": "string",
- "description" : "Bank account number"
- }
- },
- "required": [
- "weeklyActualLimit",
- "monthlyActualLimit",
- "acctNumber"
- ]
- }
- -
- spendingLimitsOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "playerStatus" : {
- "type" : "object",
- "properties" : {
- "playerCode" : {
- "type" : "number",
- "description" : "Status code which reflects âNon-Confirmedâ, âVerified IDâ or âConfirmedâ to indicate playerâs status"
- },
- "playerDescription" : {
- "type" : "string",
- "description" : "Text description of the playerCode, e.g. Full MyLotto User"
- }
- }
- },
- "weeklySpendingLimit": {
- "type": "number",
- "description" : "The cumulative amount a player can spend in a week"
- },
- "monthlySpendingLimit": {
- "type": "number",
- "description" : "The cumulative amount a player can spend in a month"
- },
- "spentToDateWeek": {
- "type": "number",
- "description" : "The amount a player spent for the remaining week"
- },
- "spentToDateMonth": {
- "type": "number",
- "description" : "The amount a player spent for the remaining month"
- }
- }
- }
- -
- resetPasswordInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "dateOfBirth" : {
- "type" : "string",
- "description" : "Date Of Birth of the player",
- "pattern": "^[F0-9]{4}-[F0-9]{2}-[F0-9]{2}$"
- },
- "type" : {
- "type" : "number",
- "description" : "ID corresponding random hint question"
- },
- "answer" : {
- "type" : "string",
- "description" : "Player's answer to the hint question"
- }
- },
- "required": [ "dateOfBirth", "type", "answer" ]
- }
- -
- resetPasswordOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "emailAddress" : {
- "type" : "string",
- "description" : "Player's email address as stored in ESi database"
- }
- }
- }
- -
- updatePasswordInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "newPassword" : {
- "type" : "string",
- "description" : "Newly entered password"
- },
- "verifyNewPassword" : {
- "type" : "string",
- "description" : "Verify password"
- }
- },
- "required": [ "newPassword", "verifyNewPassword" ]
- }
- -
- updatePasswordOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "passwordUpdated" : {
- "type" : "boolean",
- "description" : "Flag to check whether new password has been updated or not"
- }
- }
- }
- -
- termsAndConditionsInput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "userName" : {
- "type" : "string",
- "description" : "Player's email address to be used as username"
- },
- "pageId" : {
- "type" : "string",
- "description" : "Page or screen id corresponding to screen on web portal where player clicks a button to initiate on-line application, if set to NULL the command only updates terms and condition version"
- },
- "applicationNumber" : {
- "type" : "string",
- "description" : "Player's application id upon successful generation of application number, if set to NULL the command only updates terms and condition version"
- },
- "userAgreed" : {
- "type" : "boolean",
- "description" : "Indication that player has agreed and accepted terms and conditions. 'true' or 'false'"
- }
- },
- "required": [ "userName", "userAgreed" ]
- }
- -
- termsAndConditionsOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "userId" : {
- "type" : "string",
- "description" : "Player's account number as stored in ESi database; NULL indicates and thus terms and conditions version was not updated (alternatively palyer not registered)userAgreed flag was set to FALSE"
- },
- "playerStatus" : {
- "type" : "number",
- "description" : "Status code which reflects 'Non-Confirmed', 'Verified ID' or 'Confirmed' to indicate player's status; NULL indicates userAgreed flag was set to FALSE and thus terms and conditions version was not updated (alternatively palyer not registered)"
- }
- }
- }
- -
- versionOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type" : "object",
- "properties" : {
- "version" : {
- "type" : "string",
- "description" : "Version number of the ESi WebService"
- }
- }
- }
- -
- transHistOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "transHistory": {
- "type": "array",
- "items": [
- {
- "type": "object",
- "properties": {
- "gameName": {
- "type": "string",
- "description": "Game name"
- },
- "ticketNumber": {
- "type": "string",
- "description": "ESI ticket number"
- },
- "ticketType": {
- "type": "string",
- "description": "Ticket type description"
- },
- "transactionType": {
- "type": "string",
- "description": "Type of transaction (All or Deposits or Purchase or Wins or Withdrawal)"
- },
- "amount": {
- "type": "number",
- "description": "Amount transferred"
- },
- "externalTransactionReference": {
- "type": "number",
- "description": "Unique transaction number maintained in DPS "
- },
- "transactionDate": {
- "type": "string",
- "description": "Date of transaction"
- },
- "transactionReference": {
- "type": "number",
- "description": "Unique transaction number maintained in ESi "
- },
- "transferAccountNumber": {
- "type": "string",
- "description": "Bank account number for transfers from wallet. Truncated credit card number (from DPS) for transfers to wallet by credit card"
- },
- "walletBalance": {
- "type": "number",
- "description": "Updated wallet balance"
- },
- "description": {
- "type": "string",
- "description": "Detailed description of financial transaction"
- }
- }
- }
- ]
- }
- }
- }
- -
- notificationsOutput: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "notifications": {
- "type": "array",
- "items": [
- {
- "type": "object",
- "properties": {
- "header": {
- "type": "string",
- "description": "Header content"
- },
- "messageId": {
- "type": "number",
- "description": "Notification identifier"
- },
- "messageType": {
- "type": "number",
- "description": "Notification type"
- },
- "messageDate": {
- "type": "string",
- "description": "Date notification was created"
- },
- "subject": {
- "type": "string",
- "description": "Subject content "
- },
- "greeting": {
- "type": "string",
- "description": "Greeting content "
- },
- "body": {
- "type": "string",
- "description": "Body content "
- },
- "signature": {
- "type": "string",
- "description": "Signature "
- },
- "notificationClass": {
- "type": "string",
- "description": "ENotification class â standard, winning, claim"
- },
- "linkId": {
- "type": "number",
- "description": "Link ID used by the front end to identify a link "
- }
- }
- }
- ]
- }
- }
- }
- -
- validateHintQuestion: |
- {
- "$schema": "http://json-schema.org/draft-04/schema#",
- "type": "object",
- "properties": {
- "type": {
- "type": "integer",
- "description": "ID corresponding random hint question"
- },
- "answer": {
- "type": "string",
- "description": "Player's answer to the hint question"
- }
- },
- "required": [
- "type",
- "answer"
- ]
- }
- traits:
- -
- error-responses:
- displayName: error-responses
- -
- header-params:
- displayName: header-params
- -
- header-username-param:
- displayName: header-username-param
- -
- header-userid-sessionid-params:
- displayName: header-userid-sessionid-params
- /accounts:
- displayName: accounts
- description: An account is a logged in user profile in the Gaming System.
- post:
- description: Sign up of new user
- body:
- application/json:
- schema: securityTnCRegistrationInput
- example: |
- {
- "password": "notpassword99",
- "firstName": "mule",
- "lastName": "transform",
- "gender": "F",
- "dateOfBirth": "1981-04-23",
- "tlaArea": "Auckland",
- "tlaLocation": "Auckland City",
- "phone": "44 7900550078",
- "emailAddress": "mule2@test.com",
- "optInLottoResults": false,
- "securityQuestionId": 1,
- "securityAnswer": "I don not know",
- "userAgreed": true,
- "geofilterInfo":
- {
- "language": "en-GB,en-US;q=0.8,en;q=0.6",
- "encoding": "gzip,deflate,sdch",
- "charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.3",
- "clientIP": "202.160.48.160",
- "browser": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36"
- },
- "optInLottoJackpotThreshold": 0,
- "optInLottoJackpot": false,
- "optInMarketing": false,
- "optInInstantKiwi": false
- }
- responses:
- "200":
- body:
- application/json:
- schema: securityTnCRegistrationOutput
- example: |
- {
- "playerStatus": {
- "playerCode": 2,
- "playerDescription": "Full MyLotto User"
- },
- "userId": "100980037"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /{userid}:
- uriParameters:
- userid:
- displayName: userid
- type: string
- required: true
- repeat: false
- get:
- description: loadPlayerProfile for the given userid and sessionid
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- queryParameters:
- engageFields:
- description: Fetch user data from Engage DB along with ESi
- type: boolean
- required: false
- repeat: false
- default: "false"
- example: "false"
- responses:
- "200":
- body:
- application/json:
- schema: loadPlayerProfileOutput
- example: |
- {
- "firstName": "Graham",
- "lastName": "McDermid",
- "dateOfBirth": "1980-04-01+12:00",
- "gender": "M",
- "tlaArea": "Auckland",
- "tlaLocation": "Auckland City",
- "phone": "447900550079",
- "emailAddress": "userid004@testme.co.nz",
- "optInEmailResultsNotify": true,
- "optInLottoResults": true,
- "bankAccountNumber": "1200000000000000",
- "bankAccountConfirmed": true,
- "helpFlagEnabled": true,
- "newPasswordRequired": false,
- "accountStatus": 0,
- "loginStatus": 0,
- "playerStatus": 5,
- "walletStatus": false,
- "cashBalance": 61.6,
- "tokenBalance": 0,
- "weeklySpendingLimit": 999,
- "monthlySpendingLimit": 999,
- "weeklyXferAmt": 0,
- "loginTime": "2015-12-02T10:58:43.077+13:00",
- "claimTypeNotificationsCount": 0,
- "totalNotifications": 23,
- "weeklyTransferCount": 0,
- "winningTypeNotificationsCount": 15,
- "ageConfirmStatus": 1,
- "acctNumber": "1007850118",
- "sessionActive": false,
- "tcVersion": "8.00",
- "playerGreeting": "Graham",
- "spentToDateWeek": 984.6,
- "spentToDateMonth": 984.6,
- "optInInstantKiwi": false,
- "optInLottoJackpot": false,
- "optInLottoJackpotThreshold": 0,
- "optInMarketing": false
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- put:
- description: Update player profile for a given userid, password and sessionid
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: updatePlayerProfileInput
- example: |
- {
- "password": "test123",
- "tlaArea": "Auckland",
- "tlaLocation": "Auckland City",
- "phone": "44 7900550078",
- "dateOfBirth": "2016-01-28"
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /terminations:
- post:
- description: Delete a account (closing the account)
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: closeAccountInput
- example: |
- {
- "password": "test123"
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /passwords:
- put:
- description: Update player profile for a given userid, password and sessionid
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: changePasswordInput
- example: |
- {
- "currentPassword" : "test123",
- "newPassword" : "testXYZ123"
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /spendinglimits:
- get:
- description: Retrieve and return the spending limits for the logged in player
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- responses:
- "200":
- body:
- application/json:
- schema: viewSpendingLimitsOutput
- example: |
- {
- "playerStatus": 0,
- "weeklySpendingLimit": 999.0,
- "monthlySpendingLimit": 999.0,
- "spentToDateWeek": 996.2,
- "spentToDateMonth": 996.2
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- put:
- description: Send and persist in ESi the spending limits for the logged in player.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: editSpendingLimitsInput
- example: |
- {
- "password": "notpassword99",
- "weeklyActualLimit": 150,
- "monthlyActualLimit": 300
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- post:
- description: API to create ESi spending limits and bank account number entered by player as part of the registration process.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: spendingLimitsInput
- example: |
- {
- "weeklyActualLimit": 150,
- "monthlyActualLimit": 300,
- "acctNumber": "1539664689709000"
- }
- responses:
- "200":
- body:
- application/json:
- schema: spendingLimitsOutput
- example: |
- {
- "playerStatus": 5
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /lockedgames:
- get:
- description: Return a list of game categories and an indication whether the logged in player is excluded from that game family.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- responses:
- "200":
- body:
- application/json:
- schema: getLockedGamesOutput
- example: |
- [
- {
- "game": "Lotto",
- "locked": false
- },
- {
- "game": "Keno",
- "locked": true,
- "reactivationDate": "2015-12-19+13:00"
- },
- {
- "game": "Bullseye",
- "locked": false
- },
- {
- "game": "Play3",
- "locked": true,
- "reactivationDate": "2015-12-19+13:00"
- }
- ]
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- put:
- description: Sets a game category to be excluded from the logged in playerâs profile. This prevents the player from playing the game.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: editLockedGamesInput
- example: |
- {
- "password": "test123",
- "games": [
- {
- "game": "Lotto",
- "locked": false
- },
- {
- "game": "Keno",
- "locked": true,
- "reactivationDate": "2016-02-19"
- },
- {
- "game": "Bullseye",
- "locked": false
- },
- {
- "game": "Play3",
- "locked": true,
- "reactivationDate": "2016-02-19"
- }
- ]
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /activations:
- post:
- description: Creates a new activation and emails it to the given user
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /claims:
- get:
- description: Get all claims for a specific user
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- responses:
- "200":
- body:
- application/json:
- schema: listClaimsOutput
- example: |
- {
- "claimWinsInfo": [
- {
- "bankAccountNumber": "01-2345-6789012",
- "bankAccountConfirmed": true,
- "drawId": 1240,
- "ticketNumber": 30550008,
- "walletSuspended": false,
- "bonusTickets": 0,
- "drawDate": "2015-12-04+13:00",
- "gameDescription": "Lotto/Powerball",
- "merchandiseDescription": "Lotto/Powerball",
- "prizeAmount": 1.5,
- "ticketType": "Lotto",
- "wagerDate": "2015-12-04+13:00"
- }
- ]
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /{ticketnumber}:
- uriParameters:
- ticketnumber:
- displayName: ticketnumber
- type: string
- required: true
- repeat: false
- put:
- description: Updates a specific claim and pays the prize to the winner
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: payPrizeInput
- example: |
- {
- "password": "test123",
- "addressLine1": "Crombie Lockwood Tower",
- "addressLine2": "191 Queen Street",
- "city": "Auckland",
- "phonenumber": "23565454343",
- "drawId":1348,
- "poBox": 1001,
- "postalCode": 1010
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /passwords:
- /{username}:
- uriParameters:
- username:
- displayName: username
- type: string
- required: true
- repeat: false
- post:
- description: Resets the user's password and sends temporary password to player's designated email address.
- body:
- application/json:
- schema: resetPasswordInput
- example: |
- {
- "dateOfBirth": "1980-04-01",
- "type" : 1,
- "answer" : "pink"
- }
- responses:
- "200":
- body:
- application/json:
- schema: resetPasswordOutput
- example: |
- {
- "emailAddress": "userid003@testme.co.nz"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- put:
- description: Send the newly entered password for specified username to ESi, and upon successful execution newly enetered password will be assigned and updated to player.
- headers:
- USER_NAME:
- description: User name of the user
- type: string
- required: true
- repeat: false
- example: mule@test.com
- body:
- application/json:
- schema: updatePasswordInput
- example: |
- {
- "newPassword": "test123",
- "verifyNewPassword" : "test123"
- }
- responses:
- "200":
- body:
- application/json:
- schema: updatePasswordOutput
- example: |
- {
- "passwordUpdated": true
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-username-param]
- /status:
- put:
- description: Activation confirmed of a specified activationId
- body:
- application/json:
- schema: activationConfirmInput
- example: |
- {
- "geofilterInfo":
- {
- "language": "en-GB,en-US;q=0.8,en;q=0.6",
- "encoding": "gzip,deflate,sdch",
- "charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.3",
- "clientIP": "202.160.48.160",
- "browser": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36"
- },
- "activationId": "6900204399"
- }
- responses:
- "200":
- body:
- application/json:
- schema: activationConfirmOutput
- example: |
- {
- "userId": "100980037",
- "emailAddress": "mule2@test.com",
- "playerStatus": 4,
- "activationIdExpired": false
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /hintquestions:
- get:
- description: Get random hint Questions
- responses:
- "200":
- body:
- application/json:
- schema: getHintQuestionsOutput
- example: |
- [
- {
- "type": 1,
- "question": "What was my first pet's name?"
- },
- {
- "type": 2,
- "question": "What town was I born in?"
- },
- {
- "type": 3,
- "question": "What is the name of my first school?"
- },
- {
- "type": 4,
- "question": "What street did I grow up in?"
- },
- {
- "type": 5,
- "question": "What is my mother's maiden name?"
- },
- {
- "type": 6,
- "question": "What was the make of my first car?"
- },
- {
- "type": 7,
- "question": "What is my dad's middle name?"
- },
- {
- "type": 8,
- "question": "What is my favourite movie?"
- },
- {
- "type": 9,
- "question": "What was the last name of my best friend in school?"
- }
- ]
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /{username}:
- uriParameters:
- username:
- displayName: username
- type: string
- required: true
- repeat: false
- get:
- description: Get hint question of specified user
- queryParameters:
- firstname:
- description: Player's first name
- type: string
- required: true
- repeat: false
- example: John
- lastname:
- description: Player's last name
- type: string
- required: true
- repeat: false
- example: blog
- responses:
- "200":
- body:
- application/json:
- schema: getHintQuestionOutput
- example: |
- {
- "type": 1,
- "question": "What was my first pet's name?"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- put:
- description: Change Hint Question and Answer of specified user
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- USER_NAME:
- description: User name of the user
- type: string
- required: true
- repeat: false
- example: mule@test.com
- body:
- application/json:
- schema: changeHintQuestionsAnswersInput
- example: |
- {
- "password": "test123",
- "hintId1": 1,
- "hint1Ans": "pink",
- "userId": "100785011"
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-params]
- /validations:
- post:
- description: Validate whether the specified hint question and answer of the player is correct or not.
- body:
- application/json:
- schema: validateHintQuestion
- example: |
- {
- "type": 1,
- "answer": "Pink"
- }
- responses:
- "200":
- body:
- application/json:
- schema: validateHintOutput
- example: |
- {
- "hintAnswerTrue" : true
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /sessions:
- displayName: sessions
- description: Create and delete a session in the Gaming System
- post:
- description: Generate a new Session for a given username and password
- body:
- application/json:
- schema: loginUserInput
- example: |
- {
- "userName": "userid001@testme.co.nz",
- "password": "test123",
- "geofilterInfo":
- {
- "language": "en-GB,en-US;q=0.8,en;q=0.6",
- "encoding": "gzip,deflate,sdch",
- "charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.3",
- "clientIP": "202.160.48.160",
- "browser": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31"
- }
- }
- responses:
- "200":
- body:
- application/json:
- schema: loginUserOutput
- example: |
- {
- "userId": "100785008",
- "sessionId": "RQ6UYO5YI2SKPSNIXKEEGS1F7496YH5I",
- "lastLogon": "2015-10-28T12:14:04.801+13:00"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /{userid}:
- uriParameters:
- userid:
- displayName: userid
- type: string
- required: true
- repeat: false
- delete:
- description: Delete a session for a user
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /wagers:
- displayName: wagers
- description: A wager is a logical representation of tickets. It can be one or multiple tickets. A wager can be for any game type.
- /{userid}:
- uriParameters:
- userid:
- displayName: userid
- type: string
- required: true
- repeat: false
- get:
- description: Returns the ticket history for a user
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- queryParameters:
- startdate:
- description: Start date to filter on tickets
- type: string
- required: true
- repeat: false
- pattern: |
- (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).(\d{3})Z
- example: "2015-10-10T00:00:00.000Z"
- enddate:
- description: End date to filter on tickets
- type: string
- required: true
- repeat: false
- pattern: |
- (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).(\d{3})Z
- example: "2016-01-10T00:00:00.000Z"
- lotto:
- description: Return tickets for the Lotto game
- type: boolean
- required: false
- repeat: false
- default: "false"
- example: "true"
- keno:
- description: Return tickets for the Keno game
- type: boolean
- required: false
- repeat: false
- default: "false"
- example: "true"
- strikeCategory:
- description: Return tickets for the Strike game
- type: boolean
- required: false
- repeat: false
- default: "true"
- example: "true"
- bullseye:
- description: Return tickets for the Bullseye game
- type: boolean
- required: false
- repeat: false
- default: "false"
- example: "true"
- play3:
- description: Return tickets for the Play3 game
- type: boolean
- required: false
- repeat: false
- default: "false"
- example: "true"
- responses:
- "200":
- body:
- application/json:
- schema: gameHistOutput
- example: |
- {
- "gameHistory": [
- {
- "gameName": "Play3",
- "ticketNumber": "19351567",
- "ticketType": "Coupon",
- "drawStartDate": "2012-01-01+13:00",
- "drawEndDate": "2012-01-01+13:00",
- "purchaseDate": "2015-12-04+13:00",
- "purchaseAmount": "1.00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2976051",
- "promoId": 0,
- "drawHistoryInfo": {
- "drawId": 1,
- "drawDate": "2012-01-01+13:00",
- "drawStatus": "Active",
- "drawTicketStatus": "PURCH"
- },
- "orderId": "19351567",
- "winAmount": 0,
- "winningFlag": false,
- "winoutcome": "-"
- },
- {
- "gameName": "Bullseye",
- "ticketNumber": "19351566",
- "ticketType": "Coupon",
- "drawStartDate": "2009-10-15+13:00",
- "drawEndDate": "2009-10-15+13:00",
- "purchaseDate": "2015-12-04+13:00",
- "purchaseAmount": "2.00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2976050",
- "promoId": 0,
- "drawHistoryInfo": {
- "drawId": 1,
- "drawDate": "2009-10-15+13:00",
- "drawStatus": "Active",
- "drawTicketStatus": "PURCH"
- },
- "orderId": "19351566",
- "winAmount": 0,
- "winningFlag": false,
- "winoutcome": "-"
- },
- {
- "gameName": "Keno",
- "ticketNumber": "19351565",
- "ticketType": "Coupon",
- "drawStartDate": "2009-11-14+13:00",
- "drawEndDate": "2009-11-15+13:00",
- "purchaseDate": "2015-12-04+13:00",
- "purchaseAmount": "6.00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2976049",
- "promoId": 0,
- "drawHistoryInfo": [
- {
- "drawId": 6290,
- "drawDate": "2009-11-14+13:00",
- "drawStatus": "Active",
- "drawTicketStatus": "PURCH"
- },
- {
- "drawId": 6291,
- "drawDate": "2009-11-14+13:00",
- "drawStatus": "Announced",
- "drawTicketStatus": "PURCH"
- },
- {
- "drawId": 6292,
- "drawDate": "2009-11-15+13:00",
- "drawStatus": "Announced",
- "drawTicketStatus": "PURCH"
- }
- ],
- "orderId": "19351565",
- "winAmount": 0,
- "winningFlag": false,
- "winoutcome": "-"
- },
- {
- "gameName": "Lotto Powerball",
- "ticketNumber": "19351564",
- "ticketType": "Starter Lucky Dip",
- "drawStartDate": "2012-10-06+13:00",
- "drawEndDate": "2012-10-06+13:00",
- "purchaseDate": "2015-12-04+13:00",
- "purchaseAmount": "4.80",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2976048",
- "promoId": 0,
- "drawHistoryInfo": {
- "drawId": 1156,
- "drawDate": "2012-10-06+13:00",
- "drawStatus": "Active",
- "drawTicketStatus": "PURCH"
- },
- "orderId": "19351564",
- "winAmount": 0,
- "winningFlag": false,
- "winoutcome": "-"
- }
- ]
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- post:
- description: Purchase a wager for the different game types
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- queryParameters:
- returntickets:
- description: Whether ticket details should be fetched and returned with each ticket
- type: boolean
- required: false
- repeat: false
- body:
- application/json:
- schema: purchaseWagerInput
- example: |
- {
- "channelId": 1,
- "lottoWagers": [
- {
- "purchaseType": "DIP",
- "wagerAmount": 4.8,
- "numberOfBoards": 8,
- "numberStrikeBoards": 0,
- "numberPowerballBoards": 0,
- "powerballNumber": "Random",
- "numberOfDraws": 1,
- "advanceDraw": 0,
- "couponType": false,
- "lottoWagerDetails": [
- {
- "starterDipType": true,
- "lottoLuckyDip": true,
- "lottoPowerDip": false,
- "lottoTripleDip": false,
- "basicDipType": false,
- "superDipType": false,
- "superPlusDipType": false,
- "megaDipType": false,
- "mega24DipType": false,
- "drawDays": [
- "Wed"
- ]
- }
- ]
- },
- {
- "purchaseType": "Pick Your Own",
- "wagerAmount": 13.6,
- "numberOfBoards": 4,
- "numberStrikeBoards": 2,
- "numberPowerballBoards": 4,
- "numberOfDraws": 2,
- "couponType": true,
- "strikeWagerDetails": [
- {
- "strikeBoard": [
- {
- "numbers": [ 1,26,13,5 ]
- },
- {
- "numbers": [ 9, 17, 25, 22 ]
- }
- ],
- "drawDays": [
- "Sat",
- "Wed"
- ]
- }
- ],
- "lottoWagerDetails": [
- {
- "lottoBoard": [
- {
- "powerballNumber": 8,
- "numbers": [ 8, 15, 21, 26, 29, 32 ]
- },
- {
- "powerballNumber": 1,
- "numbers": [ 3, 8, 12, 14, 20, 25 ]
- },
- {
- "powerballNumber": 2,
- "numbers": [ 4, 7, 25, 34, 35, 40 ]
- },
- {
- "powerballNumber": 1,
- "numbers": [ 18, 19, 20, 21, 26, 36 ]
- }
- ],
- "drawDays": [
- "Sat",
- "Wed"
- ]
- }
- ]
- }
- ],
- "bullseyeWagers": [
- {
- "purchaseType": "DIP",
- "wagerAmount": 2,
- "numberOfBoards": 1,
- "numberOfDraws": 1,
- "couponType": true,
- "bullseyeWagerDetails": [
- {
- "bullseyeBoard": [
- {
- "numbers": [ 5, 6, 5, 8, 8, 5 ]
- }
- ]
- }
- ]
- },
- {
- "purchaseType": "Pick Your Own",
- "wagerAmount": 12,
- "numberOfBoards": 2,
- "numberOfDraws": 3,
- "couponType": true,
- "bullseyeWagerDetails": [
- {
- "bullseyeBoard": [
- {
- "numbers": [ 7, 8, 1, 8, 6, 3 ]
- },
- {
- "numbers": [ 8, 2, 9, 3, 1, 3 ]
- }
- ]
- }
- ]
- }
- ],
- "kenoWagers": [
- {
- "purchaseType": "DIP",
- "wagerAmount": 5,
- "pricePerBoard": 1,
- "numberOfBoards": 1,
- "numberOfDraws": 5,
- "couponType": true,
- "kenoWagerDetails": [
- {
- "kenoDip": 0,
- "drawTimes": [ 10, 13, 15, 18 ],
- "kenoBoard": [
- {
- "groupNumber": 10,
- "numbers": [ 4, 71, 5, 12, 29, 58, 11, 16, 8, 73 ]
- }
- ]
- }
- ]
- },
- {
- "purchaseType": "Pick Your Own",
- "wagerAmount": 6,
- "pricePerBoard": 3,
- "numberOfBoards": 1,
- "numberOfDraws": 2,
- "couponType": true,
- "kenoWagerDetails": [
- {
- "drawTimes": [ 10, 13, 15, 18 ],
- "kenoBoard": [
- {
- "groupNumber": 4,
- "numbers": [ 35, 62, 1, 71 ]
- }
- ]
- }
- ]
- }
- ],
- "play3Wagers": [
- {
- "purchaseType": "Pick Your Own",
- "wagerAmount": 6,
- "numberOfBoards": 2,
- "numberOfDraws": 2,
- "couponType": true,
- "play3WagerDetails": [
- {
- "play3Boards": [
- {
- "numbers": [ 0, 6, 3 ],
- "play3PlayType": "Any",
- "play3BoardAmount": 1
- },
- {
- "numbers": [ 5, 6, 5 ],
- "play3PlayType": "ExactPairs",
- "play3BoardAmount": 2
- }
- ]
- }
- ]
- }
- ]
- }
- responses:
- "200":
- body:
- application/json:
- schema: purchaseWagerOutput
- example: |
- {
- "lottoWagers": [
- {
- "gameTransactionNumber": "2985114",
- "wagerAmount": 4.8,
- "walletBalance": 64.2,
- "numberOfTicketsGenerated": 1,
- "promoTicketReturned": false,
- "numberOfStrikeTicketsGenerated": 0,
- "lottoTickets": [
- {
- "transactionId": "23000163",
- "ticketNumber": "19450170",
- "ticketDetails": {
- "gameName": "Lotto Powerball",
- "numberOfBoards": 8,
- "numberOfDraws": 1,
- "systemNumber": 0,
- "wagerAmount": 4.8,
- "ticketNumber": "19450170",
- "ticketType": "Starter Lucky Dip",
- "purchaseDate": "2016-06-22+12:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2985114",
- "couponType": false,
- "drawWinDetails": [
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2012-10-10+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1157,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- }
- ],
- "lottoWagerDetails": [
- {
- "lottoLuckyDip": true,
- "lottoPowerDip": false,
- "lottoTripleDip": false,
- "starterDipType": true,
- "basicDipType": false,
- "superDipType": false,
- "superPlusDipType": false,
- "megaDipType": false,
- "mega24DipType": false,
- "lottoBoard": [
- {
- "powerballNumber": 0,
- "numbers": [
- 16,
- 17,
- 20,
- 21,
- 34,
- 38
- ]
- },
- {
- "powerballNumber": 0,
- "numbers": [
- 6,
- 26,
- 29,
- 30,
- 33,
- 36
- ]
- },
- {
- "powerballNumber": 0,
- "numbers": [
- 3,
- 4,
- 9,
- 14,
- 15,
- 25
- ]
- },
- {
- "powerballNumber": 0,
- "numbers": [
- 19,
- 27,
- 28,
- 35,
- 39,
- 40
- ]
- },
- {
- "powerballNumber": 0,
- "numbers": [
- 5,
- 6,
- 9,
- 11,
- 27,
- 31
- ]
- },
- {
- "powerballNumber": 0,
- "numbers": [
- 1,
- 3,
- 10,
- 33,
- 35,
- 36
- ]
- },
- {
- "powerballNumber": 0,
- "numbers": [
- 8,
- 15,
- 20,
- 23,
- 30,
- 39
- ]
- },
- {
- "powerballNumber": 0,
- "numbers": [
- 17,
- 22,
- 29,
- 32,
- 38,
- 40
- ]
- }
- ],
- "drawDays": [
- "Wed"
- ]
- }
- ],
- "promoTicketReturned": false,
- "startDraw": 1157,
- "ticketName": "Lucky Dip"
- }
- }
- ],
- "spentToDateWeek": 4.8,
- "spentToDateMonth": 4.8
- },
- {
- "gameTransactionNumber": "2985115",
- "wagerAmount": 13.6,
- "walletBalance": 50.6,
- "numberOfTicketsGenerated": 1,
- "strikeTickets": [
- {
- "strikeTransactionId": "23000164",
- "strikeTicketNumber": "19450172",
- "ticketDetails": {
- "gameName": "Lotto Strike",
- "numberOfBoards": 2,
- "numberOfDraws": 2,
- "systemNumber": 0,
- "wagerAmount": 4,
- "ticketNumber": "19450172",
- "ticketType": "Coupon",
- "purchaseDate": "2016-06-22+12:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2985115",
- "couponType": true,
- "drawWinDetails": [
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2012-10-06+13:00",
- "drawStatus": "Active",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1156,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2012-10-10+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1157,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- }
- ],
- "strikeWagerDetails": [
- {
- "strikeBoard": [
- {
- "numbers": [
- 1,
- 26,
- 13,
- 5
- ]
- },
- {
- "numbers": [
- 9,
- 17,
- 25,
- 22
- ]
- }
- ],
- "drawDays": [
- "Wed",
- "Sat"
- ]
- }
- ],
- "promoTicketReturned": false,
- "startDraw": 1156,
- "ticketMessage": " YOU MAY HAVE JUST HELPED\r FUND A KIWI BLOCKBUSTER.\r NZ LOTTERIES PROFITS HELP\r FUND NZ FILM COMMISSION.",
- "ticketName": "Lotto Strike"
- }
- }
- ],
- "promoTicketReturned": false,
- "numberOfStrikeTicketsGenerated": 1,
- "lottoTickets": [
- {
- "transactionId": "23000164",
- "ticketNumber": "19450171",
- "ticketDetails": {
- "gameName": "Lotto Powerball",
- "numberOfBoards": 4,
- "numberOfDraws": 2,
- "systemNumber": 0,
- "wagerAmount": 9.6,
- "ticketNumber": "19450171",
- "ticketType": "Coupon",
- "purchaseDate": "2016-06-22+12:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2985115",
- "couponType": true,
- "drawWinDetails": [
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2012-10-06+13:00",
- "drawStatus": "Active",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1156,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2012-10-10+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1157,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- }
- ],
- "lottoWagerDetails": [
- {
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false,
- "starterDipType": false,
- "basicDipType": false,
- "superDipType": false,
- "superPlusDipType": false,
- "megaDipType": false,
- "mega24DipType": false,
- "lottoBoard": [
- {
- "powerballNumber": 8,
- "numbers": [
- 8,
- 15,
- 21,
- 26,
- 29,
- 32
- ]
- },
- {
- "powerballNumber": 1,
- "numbers": [
- 3,
- 8,
- 12,
- 14,
- 20,
- 25
- ]
- },
- {
- "powerballNumber": 2,
- "numbers": [
- 4,
- 7,
- 25,
- 34,
- 35,
- 40
- ]
- },
- {
- "powerballNumber": 1,
- "numbers": [
- 18,
- 19,
- 20,
- 21,
- 26,
- 36
- ]
- }
- ],
- "drawDays": [
- "Wed",
- "Sat"
- ]
- }
- ],
- "promoTicketReturned": false,
- "startDraw": 1156,
- "ticketName": "Lotto Powerball"
- }
- }
- ],
- "spentToDateWeek": 18.4,
- "spentToDateMonth": 18.4
- }
- ],
- "bullseyeWagers": [
- {
- "transactionId": "19450173",
- "ticketNumber": "19450173",
- "gameTransactionNumber": "2985116",
- "wagerAmount": 2,
- "walletBalance": 48.6,
- "promoTicketReturned": false,
- "spentToDateWeek": 20.4,
- "spentToDateMonth": 20.4,
- "ticketDetails": {
- "gameName": "Bullseye",
- "numberOfBoards": 1,
- "numberOfDraws": 1,
- "systemNumber": 0,
- "wagerAmount": 2,
- "pricePerBoard": 2,
- "ticketNumber": "19450173",
- "ticketType": "Coupon",
- "purchaseDate": "2016-06-22+12:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2985116",
- "couponType": true,
- "drawWinDetails": [
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-10-15+13:00",
- "drawStatus": "Active",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- }
- ],
- "bullseyeWagerDetails": [
- {
- "bullseyeBoard": [
- {
- "numbers": [
- 5,
- 6,
- 5,
- 8,
- 8,
- 5
- ]
- }
- ],
- "bullseyeDip": 0
- }
- ],
- "promoTicketReturned": false,
- "startDraw": 1,
- "ticketMessage": "2 DAW BULLSEYE TICKET MSG",
- "ticketName": "Bullseye"
- }
- },
- {
- "transactionId": "19450174",
- "ticketNumber": "19450174",
- "gameTransactionNumber": "2985117",
- "wagerAmount": 12,
- "walletBalance": 36.6,
- "promoTicketReturned": false,
- "spentToDateWeek": 32.4,
- "spentToDateMonth": 32.4,
- "ticketDetails": {
- "gameName": "Bullseye",
- "numberOfBoards": 2,
- "numberOfDraws": 3,
- "systemNumber": 0,
- "wagerAmount": 12,
- "pricePerBoard": 2,
- "ticketNumber": "19450174",
- "ticketType": "Coupon",
- "purchaseDate": "2016-06-22+12:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2985117",
- "couponType": true,
- "drawWinDetails": [
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-10-15+13:00",
- "drawStatus": "Active",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-10-16+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 2,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-10-17+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 3,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- }
- ],
- "bullseyeWagerDetails": [
- {
- "bullseyeBoard": [
- {
- "numbers": [
- 7,
- 8,
- 1,
- 8,
- 6,
- 3
- ]
- },
- {
- "numbers": [
- 8,
- 2,
- 9,
- 3,
- 1,
- 3
- ]
- }
- ],
- "bullseyeDip": 0
- }
- ],
- "promoTicketReturned": false,
- "startDraw": 1,
- "ticketMessage": "2 DAW BULLSEYE TICKET MSG",
- "ticketName": "Bullseye"
- }
- }
- ],
- "kenoWagers": [
- {
- "transactionId": "23000167",
- "ticketNumber": "19450175",
- "gameTransactionNumber": "2985118",
- "wagerAmount": 5,
- "walletBalance": 31.6,
- "promoTicketReturned": false,
- "spentToDateWeek": 37.4,
- "spentToDateMonth": 37.4,
- "ticketDetails": {
- "gameName": "Keno",
- "numberOfBoards": 1,
- "numberOfDraws": 5,
- "systemNumber": 0,
- "wagerAmount": 5,
- "pricePerBoard": 1,
- "ticketNumber": "19450175",
- "ticketType": "Coupon",
- "purchaseDate": "2016-06-22+12:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2985118",
- "couponType": true,
- "drawWinDetails": [
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-11-14+13:00",
- "drawStatus": "Active",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 6290,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-11-14+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 6291,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-11-15+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 6292,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-11-15+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 6293,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-11-16+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 6294,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- }
- ],
- "kenoWagerDetails": [
- {
- "kenoDip": 0,
- "kenoBoard": [
- {
- "groupNumber": 0,
- "numbers": [
- 4,
- 71,
- 5,
- 12,
- 29,
- 58,
- 11,
- 16,
- 8,
- 73
- ]
- }
- ],
- "drawTimes": [
- "10",
- "18",
- "15",
- "13"
- ]
- }
- ],
- "promoTicketReturned": false,
- "startDraw": 6290,
- "ticketName": "Keno"
- }
- },
- {
- "transactionId": "23000168",
- "ticketNumber": "19450176",
- "gameTransactionNumber": "2985119",
- "wagerAmount": 6,
- "walletBalance": 25.6,
- "promoTicketReturned": false,
- "spentToDateWeek": 43.4,
- "spentToDateMonth": 43.4,
- "ticketDetails": {
- "gameName": "Keno",
- "numberOfBoards": 1,
- "numberOfDraws": 2,
- "systemNumber": 0,
- "wagerAmount": 6,
- "pricePerBoard": 3,
- "ticketNumber": "19450176",
- "ticketType": "Coupon",
- "purchaseDate": "2016-06-22+12:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2985119",
- "couponType": true,
- "drawWinDetails": [
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-11-14+13:00",
- "drawStatus": "Active",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 6290,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2009-11-14+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 6291,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- }
- ],
- "kenoWagerDetails": [
- {
- "kenoDip": 0,
- "kenoBoard": [
- {
- "groupNumber": 0,
- "numbers": [
- 35,
- 62,
- 1,
- 71
- ]
- }
- ],
- "drawTimes": [
- "10",
- "18",
- "15",
- "13"
- ]
- }
- ],
- "promoTicketReturned": false,
- "startDraw": 6290,
- "ticketName": "Keno"
- }
- }
- ],
- "play3Wagers": [
- {
- "transactionId": "23000169",
- "ticketNumber": "19450177",
- "gameTransactionNumber": "2985120",
- "wagerAmount": 6,
- "walletBalance": 19.6,
- "promoTicketReturned": false,
- "spentToDateWeek": 49.4,
- "spentToDateMonth": 49.4,
- "ticketDetails": {
- "gameName": "Play3",
- "numberOfBoards": 2,
- "numberOfDraws": 2,
- "systemNumber": 0,
- "wagerAmount": 6,
- "ticketNumber": "19450177",
- "ticketType": "Coupon",
- "purchaseDate": "2016-06-22+12:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2985120",
- "couponType": true,
- "drawWinDetails": [
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2012-01-01+13:00",
- "drawStatus": "Active",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- },
- {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2012-01-02+13:00",
- "drawStatus": "Announced",
- "winAmount": 0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 2,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false
- }
- ],
- "play3WagerDetails": [
- {
- "play3Boards": [
- {
- "play3BoardAmount": 1,
- "play3PlayType": "Any",
- "numbers": [
- 0,
- 6,
- 3
- ]
- },
- {
- "play3BoardAmount": 2,
- "play3PlayType": "ExactPairs",
- "numbers": [
- 5,
- 6,
- 5
- ]
- }
- ]
- }
- ],
- "promoTicketReturned": false,
- "startDraw": 1,
- "ticketMessage": "PLAY3 TICKET MSG"
- }
- }
- ]
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /tickets:
- /{ticketnumber}:
- uriParameters:
- ticketnumber:
- displayName: ticketnumber
- type: string
- required: true
- repeat: false
- get:
- description: Returns the Ticket detailes for a specific ticketNumber
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- responses:
- "200":
- body:
- application/json:
- schema: ticketDetailsOutput
- example: |
- {
- "gameName": "Lotto Powerball",
- "numberOfBoards": 8,
- "numberOfDraws": 1,
- "systemNumber": 0,
- "wagerAmount": 9.6,
- "ticketNumber": "19351562",
- "ticketType": "Starter Lucky Dip",
- "purchaseDate": "2015-12-03+13:00",
- "ticketStatus": "OPEN",
- "gameTransactionNumber": "2976047",
- "couponType": false,
- "drawWinDetails": {
- "lottoNumber": 0,
- "bonusTickets": 0,
- "drawDate": "2012-10-06+13:00",
- "drawStatus": "Active",
- "winAmount": 0.0,
- "winningFlag": false,
- "drawTicketStatus": "PURCH",
- "megaDipType": false,
- "drawNumber": 1156,
- "lottoLuckyDip": false,
- "lottoPowerDip": false,
- "lottoTripleDip": false,
- "winningNumbersSet": [
- {
- "winningNumbers": [
- {
- "individualWinningNumber": 1
- },
- {
- "individualWinningNumber": 2
- },
- {
- "individualWinningNumber": 3
- },
- {
- "individualWinningNumber": 4
- },
- {
- "individualWinningNumber": 5
- },
- {
- "individualWinningNumber": 6
- }
- ],
- "winningPowerballNumber": 7
- }
- ]
- },
- "lottoWagerDetails": {
- "lottoLuckyDip": true,
- "lottoPowerDip": false,
- "lottoTripleDip": false,
- "starterDipType": true,
- "basicDipType": false,
- "superDipType": false,
- "superPlusDipType": false,
- "megaDipType": false,
- "mega24DipType": false,
- "lottoBoard": [
- {
- "powerballNumber": 9,
- "numbers": [ 4, 7, 10, 30, 36, 38 ]
- },
- {
- "powerballNumber": 4,
- "numbers": [ 15, 19, 22, 26, 31, 35 ]
- },
- {
- "powerballNumber": 3,
- "numbers": [ 1, 11, 23, 24, 25, 33 ]
- },
- {
- "powerballNumber": 7,
- "lottoNumbersPicked": [ 2, 3, 5, 12, 17, 29 ]
- },
- {
- "powerballNumber": 10,
- "lottoNumbersPicked": [ 1, 3, 6, 7, 18, 27 ]
- },
- {
- "powerballNumber": 4,
- "lottoNumbersPicked": [ 9, 20, 29, 30, 36, 37 ]
- },
- {
- "powerballNumber": 7,
- "lottoNumbersPicked": [ 4, 13, 16, 22, 33, 39 ]
- },
- {
- "powerballNumber": 5,
- "lottoNumbersPicked": [ 2, 10, 15, 21, 34, 38 ]
- }
- ],
- "drawDays": [
- "Sat",
- "Wed"
- ]
- },
- "promoTicketReturned": false,
- "startDraw": 1156,
- "ticketName": "Lucky Dip"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /validations:
- post:
- description: validates a ticket and returns the winoutcome (Fastvalidation). Fastvalidation is only possible during the period where the draw is closed but the ticket is not validated yet.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: fastValidateInput
- example: |
- {
- "drawId": 1384
- }
- responses:
- "200":
- body:
- application/json:
- schema: fastValidateOutput
- example: |
- {
- "drawID": 1384,
- "ticketNumber": "5433455343"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /instanttickets:
- /{ticketserial}:
- uriParameters:
- ticketserial:
- displayName: ticketserial
- type: string
- required: true
- repeat: false
- get:
- description: Command to allow to attempt to inquiry a purchased ticket. User doesnât have tobe logged in and ticket could be non ESI. See Apendix F for detailed list of all possible results.
- queryParameters:
- checkdigits:
- description: check digits located on printed tickets. Integer numbers, might be separated with '-'
- type: string
- required: true
- repeat: false
- channelid:
- description: by default 1, use 1 for Desktop and 2 mobile
- type: integer
- required: true
- repeat: false
- responses:
- "200":
- body:
- application/json:
- schema: validationInquiryInstantOutput
- example: |
- {
- "amount": 25.8,
- "resultText": "Prize payable"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /onlinetickets:
- /{ticketserial}:
- uriParameters:
- ticketserial:
- displayName: ticketserial
- type: string
- required: true
- repeat: false
- get:
- description: Command to allow to attempt to inquiry a purchased ticket. User doesnât have tobe logged in and ticket could be non ESI. Please see appendix E for detailed list of results.
- queryParameters:
- channelid:
- description: by default 1, use 1 for Desktop and 2 mobile
- type: integer
- required: true
- repeat: false
- responses:
- "200":
- body:
- application/json:
- schema: validationInquiryOnlineOutput
- example: |
- {
- "cashAmount": 25.8,
- "claimAmount": 25.8,
- "resultText": "Prize payable"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /favourites:
- displayName: favourites
- description: A favourite is a basic wager and can be of any game type
- /{userid}:
- description: Returns a collection of favourites for a specific user
- uriParameters:
- userid:
- displayName: userid
- type: string
- required: true
- repeat: false
- get:
- description: Get a list of favourites for a specific user
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- queryParameters:
- favouriteid:
- description: Id of favourite
- type: string
- required: false
- repeat: false
- favouritename:
- description: The name of the favourite
- type: string
- required: false
- repeat: false
- lotto:
- description: Return favourites for the Lotto game
- type: boolean
- required: false
- repeat: false
- default: "true"
- example: "true"
- keno:
- description: Return favourites for the Keno game
- type: boolean
- required: false
- repeat: false
- default: "false"
- example: "true"
- strikeCategory:
- description: Return favourites for the Strike game
- type: boolean
- required: false
- repeat: false
- default: "true"
- example: "true"
- bullseye:
- description: Return favourites for the Bullseye game
- type: boolean
- required: false
- repeat: false
- default: "false"
- example: "true"
- play3:
- description: Return tickets for the Play3 game
- type: boolean
- required: false
- repeat: false
- default: "false"
- example: "true"
- responses:
- "200":
- body:
- application/json:
- schema: listFavouriteOutput
- example: |
- {
- "favourites": [
- {
- "favouriteName": "bullseyeFav",
- "sequenceId": 1,
- "gameName": "Bullseye",
- "numberOfBoards": 2,
- "numberOfDraws": 1,
- "systemNumber": 0,
- "numberStrikeBoards": 0,
- "numberPowerballBoards": 0,
- "bullseyeBoardDetails": [
- {
- "numbers": [ 7, 5, 6, 5, 6, 0 ]
- },
- {
- "numbers": [ 0, 1, 6, 7, 4, 1 ]
- }
- ]
- },
- {
- "favouriteName": "qwe123",
- "sequenceId": 1,
- "gameName": "Lotto Powerball",
- "numberOfBoards": 4,
- "numberOfDraws": 0,
- "systemNumber": 0,
- "numberStrikeBoards": 0,
- "numberPowerballBoards": 4,
- "lottoBoard": [
- {
- "powerballNumber": 2,
- "numbers": [ 3, 5, 14, 21, 27, 32 ]
- },
- {
- "powerballNumber": 3,
- "numbers": [ 2, 12, 13, 22, 24, 33 ]
- },
- {
- "powerballNumber": 6,
- "numbers": [ 25, 28, 32, 34, 39, 40 ]
- },
- {
- "powerballNumber": 3,
- "numbers": [ 11, 12, 17, 23, 32, 34 ]
- }
- ]
- },
- {
- "favouriteName": "qwe123",
- "sequenceId": 2,
- "gameName": "Lotto Strike",
- "numberOfBoards": 4,
- "numberOfDraws": 0,
- "systemNumber": 0,
- "numberStrikeBoards": 4,
- "numberPowerballBoards": 0,
- "strikeBoard": [
- {
- "numbers": [ 39, 16, 14, 6 ]
- },
- {
- "numbers": [ 26, 33, 9, 23 ]
- },
- {
- "numbers": [ 40, 18, 4, 11 ]
- },
- {
- "numbers": [ 37, 15, 18, 4 ]
- }
- ]
- }
- ]
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- post:
- description: Save a new favourite. Command to save a recently purchased wager as a favourite play for the logged in player.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: saveFavouriteInput
- example: |
- {
- "favouriteName": "qwe123",
- "sequenceId": 1,
- "gameName": "Lotto Powerball",
- "numberOfBoards": 4,
- "numberOfDraws": 1,
- "numberStrikeBoards": 0,
- "lottoBoard": [
- {
- "powerballNumber": 2,
- "numbers": [ 3, 5, 14, 21, 27, 32 ]
- },
- {
- "powerballNumber": 3,
- "numbers": [ 2, 12, 13, 22, 24, 33 ]
- },
- {
- "powerballNumber": 6,
- "numbers": [ 25, 28, 32, 34, 39, 40 ]
- },
- {
- "powerballNumber": 3,
- "numbers": [ 11, 12, 17, 23, 32, 34 ]
- }
- ]
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /{favouritename}:
- uriParameters:
- favouritename:
- displayName: favouritename
- type: string
- required: true
- repeat: false
- put:
- description: Edit a favourite. Name has to be unique. Restricted by Gaming System.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: editFavouriteInput
- example: |
- {
- "sequenceId": 1,
- "gameName": "Lotto Powerball",
- "numberOfBoards": 4,
- "numberOfDraws": 1,
- "numberStrikeBoards": 0,
- "lottoBoard": [
- {
- "powerballNumber": 2,
- "numbers": [ 3, 5, 14, 21, 27, 32 ]
- },
- {
- "powerballNumber": 3,
- "numbers": [ 2, 12, 13, 22, 24, 33 ]
- },
- {
- "powerballNumber": 6,
- "numbers": [ 25, 28, 32, 34, 39, 40 ]
- },
- {
- "powerballNumber": 3,
- "numbers": [ 11, 12, 17, 23, 32, 34 ]
- }
- ]
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- delete:
- description: Delete a Favourite by name for a user
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- queryParameters:
- gamename:
- description: Game name for which favourite play is configured
- type: string
- required: true
- repeat: false
- default: Bullseye
- example: Bullseye
- sequenceid:
- description: Sequence ID of favourite play
- type: integer
- required: true
- repeat: false
- default: "1"
- example: "1"
- favouriteid:
- description: Favourite ID
- type: string
- required: false
- repeat: false
- default: "123"
- example: "123"
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /wallets:
- displayName: wallets
- description: A wallet is the result of transactions and billings from the payment provider and the ESi Back End
- /{userid}:
- uriParameters:
- userid:
- displayName: userid
- type: string
- required: true
- repeat: false
- get:
- description: Load wallet details of given user
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- responses:
- "200":
- body:
- application/json:
- schema: loadWalletOutput
- example: |
- {
- "truncatedCardNumber": "411111........11",
- "expirationDate": "1020",
- "walletStatus": 0,
- "weeklyTransferredAmount": 10.0,
- "weeklyTransferredCount": 1.0
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /banktransfers:
- post:
- description: Removes balance from the users wallet (withdrawal)
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: unloadWalletInput
- example: |
- {
- "transferAmount": 10.0,
- "password": "test123"
- }
- responses:
- "200":
- body:
- application/json:
- schema: unloadWalletOutput
- example: |
- {
- "walletStatus": 0,
- "walletBalance": 50.0
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /topups:
- post:
- description: Register a new Credit Card
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: loadWalletConfirmInput
- example: |
- {
- "transactionId": "000003006022096500a849a2f68f4343"
- }
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- put:
- description: Top up with registered Credit Card
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: loadWalletUpdateInput
- example: |
- {
- "amount": 15.00,
- "cvc": 192,
- "password": "password1"
- }
- responses:
- "200":
- body:
- application/json:
- schema: loadWalletConfirmOutput
- example: |
- {
- "walletBalance" : 60
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /validations:
- post:
- description: Verify payment details and generate a new DPS billing ID.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- body:
- application/json:
- schema: loadWalletValidateInput
- example: |
- {
- "password" : "test123",
- "returnUrl": "http://test.com"
- }
- responses:
- "200":
- body:
- application/json:
- schema: loadWalletValidateOutput
- example: |
- {
- "transactionId": "0000030021996668"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /systems:
- displayName: systems
- description: System wide operations not related to a specific user
- /areacodes:
- get:
- description: Returns TLA Area unique codes and list of TLA location unique codes associated with each area.
- responses:
- "200":
- body:
- application/json:
- schema: TlaAreaLocationOutput
- example: |
- {
- "tlaAreaLocationList": [
- {
- "tlaAreaCode": "2",
- "tlaAreaDescription": "Auckland",
- "tlaLocationList": [
- {
- "tlaLocationCode": "7",
- "tlaLocationDescription": "Auckland City"
- },
- {
- "tlaLocationCode": "10",
- "tlaLocationDescription": "Franklin"
- },
- {
- "tlaLocationCode": "8",
- "tlaLocationDescription": "Manukau"
- },
- {
- "tlaLocationCode": "5",
- "tlaLocationDescription": "North Shore"
- },
- {
- "tlaLocationCode": "9",
- "tlaLocationDescription": "Papakura"
- },
- {
- "tlaLocationCode": "4",
- "tlaLocationDescription": "Rodney"
- },
- {
- "tlaLocationCode": "6",
- "tlaLocationDescription": "Waitakere"
- }
- ]
- },
- {
- "tlaAreaCode": "4",
- "tlaAreaDescription": "Bay of Plenty",
- "tlaLocationList": [
- {
- "tlaLocationCode": "25",
- "tlaLocationDescription": "Kawerau"
- },
- {
- "tlaLocationCode": "26",
- "tlaLocationDescription": "Opotiki"
- },
- {
- "tlaLocationCode": "21",
- "tlaLocationDescription": "Rotorua"
- },
- {
- "tlaLocationCode": "20",
- "tlaLocationDescription": "Taupo"
- },
- {
- "tlaLocationCode": "23",
- "tlaLocationDescription": "Tauranga"
- },
- {
- "tlaLocationCode": "22",
- "tlaLocationDescription": "Western B.O.P"
- },
- {
- "tlaLocationCode": "24",
- "tlaLocationDescription": "Whakatane"
- }
- ]
- },
- {
- "tlaAreaCode": "13",
- "tlaAreaDescription": "Canterbury",
- "tlaLocationList": [
- {
- "tlaLocationCode": "61",
- "tlaLocationDescription": "Ashburton"
- },
- {
- "tlaLocationCode": "59",
- "tlaLocationDescription": "Banks Peninsula"
- },
- {
- "tlaLocationCode": "58",
- "tlaLocationDescription": "Christchurch City"
- },
- {
- "tlaLocationCode": "56",
- "tlaLocationDescription": "Huranui"
- },
- {
- "tlaLocationCode": "55",
- "tlaLocationDescription": "Kaikoura"
- },
- {
- "tlaLocationCode": "63",
- "tlaLocationDescription": "Mackenzie"
- },
- {
- "tlaLocationCode": "60",
- "tlaLocationDescription": "Selwyn"
- },
- {
- "tlaLocationCode": "62",
- "tlaLocationDescription": "Timaru"
- },
- {
- "tlaLocationCode": "57",
- "tlaLocationDescription": "Waimakariri"
- },
- {
- "tlaLocationCode": "64",
- "tlaLocationDescription": "Waimate"
- },
- {
- "tlaLocationCode": "65",
- "tlaLocationDescription": "Waitaki"
- }
- ]
- },
- {
- "tlaAreaCode": "17",
- "tlaAreaDescription": "Chatham Islands",
- "tlaLocationList": {
- "tlaLocationCode": "74",
- "tlaLocationDescription": "Chatham Islands"
- }
- },
- {
- "tlaAreaCode": "5",
- "tlaAreaDescription": "Gisborne",
- "tlaLocationList": {
- "tlaLocationCode": "27",
- "tlaLocationDescription": "Gisborne"
- }
- },
- {
- "tlaAreaCode": "6",
- "tlaAreaDescription": "Hawkes Bay",
- "tlaLocationList": [
- {
- "tlaLocationCode": "31",
- "tlaLocationDescription": "Central Hawkes Bay"
- },
- {
- "tlaLocationCode": "29",
- "tlaLocationDescription": "Hastings"
- },
- {
- "tlaLocationCode": "30",
- "tlaLocationDescription": "Napier"
- },
- {
- "tlaLocationCode": "32",
- "tlaLocationDescription": "Rangitikei"
- },
- {
- "tlaLocationCode": "20",
- "tlaLocationDescription": "Taupo"
- },
- {
- "tlaLocationCode": "28",
- "tlaLocationDescription": "Wairoa"
- }
- ]
- },
- {
- "tlaAreaCode": "8",
- "tlaAreaDescription": "Manawatu - Wanganui",
- "tlaLocationList": [
- {
- "tlaLocationCode": "41",
- "tlaLocationDescription": "Horowhenua"
- },
- {
- "tlaLocationCode": "38",
- "tlaLocationDescription": "Manawatu"
- },
- {
- "tlaLocationCode": "39",
- "tlaLocationDescription": "Palmerston North"
- },
- {
- "tlaLocationCode": "32",
- "tlaLocationDescription": "Rangitikei"
- },
- {
- "tlaLocationCode": "34",
- "tlaLocationDescription": "Stratford"
- },
- {
- "tlaLocationCode": "40",
- "tlaLocationDescription": "Tararua"
- },
- {
- "tlaLocationCode": "20",
- "tlaLocationDescription": "Taupo"
- },
- {
- "tlaLocationCode": "19",
- "tlaLocationDescription": "Waitomo"
- },
- {
- "tlaLocationCode": "37",
- "tlaLocationDescription": "Wanganui"
- }
- ]
- },
- {
- "tlaAreaCode": "11",
- "tlaAreaDescription": "Marlborough",
- "tlaLocationList": {
- "tlaLocationCode": "51",
- "tlaLocationDescription": "Marlborough"
- }
- },
- {
- "tlaAreaCode": "14",
- "tlaAreaDescription": "Nelson",
- "tlaLocationList": {
- "tlaLocationCode": "66",
- "tlaLocationDescription": "Nelson City"
- }
- },
- {
- "tlaAreaCode": "1",
- "tlaAreaDescription": "Northland",
- "tlaLocationList": [
- {
- "tlaLocationCode": "1",
- "tlaLocationDescription": "Far North"
- },
- {
- "tlaLocationCode": "3",
- "tlaLocationDescription": "Kaipara"
- },
- {
- "tlaLocationCode": "2",
- "tlaLocationDescription": "Whangarei"
- }
- ]
- },
- {
- "tlaAreaCode": "15",
- "tlaAreaDescription": "Otago",
- "tlaLocationList": [
- {
- "tlaLocationCode": "67",
- "tlaLocationDescription": "Central Otago"
- },
- {
- "tlaLocationCode": "70",
- "tlaLocationDescription": "Clutha"
- },
- {
- "tlaLocationCode": "69",
- "tlaLocationDescription": "Dunedin City"
- },
- {
- "tlaLocationCode": "68",
- "tlaLocationDescription": "Queenstown Lakes"
- },
- {
- "tlaLocationCode": "65",
- "tlaLocationDescription": "Waitaki"
- }
- ]
- },
- {
- "tlaAreaCode": "16",
- "tlaAreaDescription": "Southland",
- "tlaLocationList": [
- {
- "tlaLocationCode": "72",
- "tlaLocationDescription": "Gore"
- },
- {
- "tlaLocationCode": "73",
- "tlaLocationDescription": "Invercargill City"
- },
- {
- "tlaLocationCode": "71",
- "tlaLocationDescription": "Southland"
- }
- ]
- },
- {
- "tlaAreaCode": "7",
- "tlaAreaDescription": "Taranaki",
- "tlaLocationList": [
- {
- "tlaLocationCode": "33",
- "tlaLocationDescription": "New Plymouth"
- },
- {
- "tlaLocationCode": "35",
- "tlaLocationDescription": "South Taranaki"
- },
- {
- "tlaLocationCode": "34",
- "tlaLocationDescription": "Stratford"
- }
- ]
- },
- {
- "tlaAreaCode": "10",
- "tlaAreaDescription": "Tasman",
- "tlaLocationList": {
- "tlaLocationCode": "50",
- "tlaLocationDescription": "Tasman"
- }
- },
- {
- "tlaAreaCode": "3",
- "tlaAreaDescription": "Waikato",
- "tlaLocationList": [
- {
- "tlaLocationCode": "10",
- "tlaLocationDescription": "Franklin"
- },
- {
- "tlaLocationCode": "15",
- "tlaLocationDescription": "Hamilton"
- },
- {
- "tlaLocationCode": "12",
- "tlaLocationDescription": "Hauraki"
- },
- {
- "tlaLocationCode": "14",
- "tlaLocationDescription": "Matamata-Piako"
- },
- {
- "tlaLocationCode": "17",
- "tlaLocationDescription": "Otorohanga"
- },
- {
- "tlaLocationCode": "21",
- "tlaLocationDescription": "Rotorua"
- },
- {
- "tlaLocationCode": "18",
- "tlaLocationDescription": "South Waikato"
- },
- {
- "tlaLocationCode": "20",
- "tlaLocationDescription": "Taupo"
- },
- {
- "tlaLocationCode": "11",
- "tlaLocationDescription": "Thames-Coromandel"
- },
- {
- "tlaLocationCode": "13",
- "tlaLocationDescription": "Waikato"
- },
- {
- "tlaLocationCode": "16",
- "tlaLocationDescription": "Waipa"
- },
- {
- "tlaLocationCode": "19",
- "tlaLocationDescription": "Waitomo"
- }
- ]
- },
- {
- "tlaAreaCode": "9",
- "tlaAreaDescription": "Wellington",
- "tlaLocationList": [
- {
- "tlaLocationCode": "48",
- "tlaLocationDescription": "Carterton"
- },
- {
- "tlaLocationCode": "42",
- "tlaLocationDescription": "Kapiti Coast"
- },
- {
- "tlaLocationCode": "45",
- "tlaLocationDescription": "Lower Hutt"
- },
- {
- "tlaLocationCode": "47",
- "tlaLocationDescription": "Masterton"
- },
- {
- "tlaLocationCode": "26",
- "tlaLocationDescription": "Opotiki"
- },
- {
- "tlaLocationCode": "43",
- "tlaLocationDescription": "Porirua"
- },
- {
- "tlaLocationCode": "49",
- "tlaLocationDescription": "South Wairarapa"
- },
- {
- "tlaLocationCode": "40",
- "tlaLocationDescription": "Tararua"
- },
- {
- "tlaLocationCode": "44",
- "tlaLocationDescription": "Upper Hutt"
- },
- {
- "tlaLocationCode": "46",
- "tlaLocationDescription": "Wellington"
- }
- ]
- },
- {
- "tlaAreaCode": "12",
- "tlaAreaDescription": "West Coast",
- "tlaLocationList": [
- {
- "tlaLocationCode": "52",
- "tlaLocationDescription": "Buller"
- },
- {
- "tlaLocationCode": "53",
- "tlaLocationDescription": "Grey"
- },
- {
- "tlaLocationCode": "54",
- "tlaLocationDescription": "Westland"
- }
- ]
- }
- ]
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /globals:
- get:
- description: Retrieves configuration parameters loaded and stored in ESIProperties.
- responses:
- "200":
- body:
- application/json:
- schema: loadGlobalOutput
- example: |
- {
- "kenoPricePerBoard": 1.0,
- "lottoPowerballPricePerBoard": 0.6,
- "lottoPricePerBoard": 0.6,
- "strikePricePerBoard": 1.0,
- "systemMonthlyLimit": "300",
- "systemWeeklyLimit": "150",
- "TCCurrentVersion": 8,
- "viewGamingHistoryDefaultNumberDays": 365,
- "viewTransHistoryDefaultNumberDays": 367,
- "walletMaxTransfer": 150.0,
- "walletMinTransfer": 10.0,
- "maxWalletWeeklyTransferAmountTo": 400.0,
- "maxWalletWeeklyTransfersTo": 30,
- "maxWalletWeeklyTransfersFrom": 1000,
- "maxWalletWeeklyTransferAmountFrom": 9999999.0,
- "lottoGameActive": true,
- "kenoGameActive": true,
- "bullseyePricePerBoardFor1Draw": 2.0,
- "bullseyePricePerBoardFor7Draws": 10.0,
- "bullseyePricePerBoardFor14Draws": 20.0,
- "bullseyeGameActive": true,
- "play3PricePerBoard": [
- {
- "key": "Exact",
- "value": 100
- },
- {
- "key": "Any",
- "value": 100
- },
- {
- "key": "Pairs",
- "value": 100
- },
- {
- "key": "ExactAny",
- "value": 200
- },
- {
- "key": "ExactPairs",
- "value": 200
- },
- {
- "key": "ExactAnyPairs",
- "value": 300
- },
- {
- "key": "Combo3",
- "value": 300
- },
- {
- "key": "Combo6",
- "value": 600
- }
- ],
- "play3GameActive": true
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /termsandconditions:
- post:
- description: API to indicate to ESi that the player has read, accepted and agreed to the latest terms and conditions. This API will be used for both Login -Terms And conditions as well as Registration â Terms and conditions. If Application number and page id parameters are populated Registration Terms and conditions will be invoked, other wise Login terms and conditions will be invoked.
- body:
- application/json:
- schema: termsAndConditionsInput
- example: |
- {
- "userName": "mule10@test.com",
- "pageId": "1",
- "applicationNumber": "568277630605",
- "userAgreed": true
- }
- responses:
- "200":
- body:
- application/json:
- schema: termsAndConditionsOutput
- example: |
- {
- "userId": "100985018",
- "playerStatus": 2
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /versions:
- get:
- description: Get the version of the ESi webService.
- responses:
- "200":
- body:
- application/json:
- schema: versionOutput
- example: |
- {
- "version": "27.0.0",
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses]
- /transactions:
- displayName: transactions
- description: A transaction is a financial operation associated to a user
- /{userid}:
- uriParameters:
- userid:
- displayName: userid
- type: string
- required: true
- repeat: false
- get:
- description: Retrieve and return the financial transaction history for the logged in player.
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- queryParameters:
- startdate:
- description: Date to start search from
- type: string
- required: false
- repeat: false
- default: "10/11/2015"
- example: "10/11/2015"
- enddate:
- description: Date to end search on
- type: string
- required: false
- repeat: false
- default: "10/12/2015"
- example: "10/12/2015"
- transactiontype:
- description: Type of financial transaction to search
- type: string
- required: false
- repeat: false
- default: All
- example: All
- responses:
- "200":
- body:
- application/json:
- schema: transHistOutput
- example: |
- {
- "transHistory": [
- {
- "transactionType": "Deposits",
- "amount": 10.0,
- "externalTransactionReference": 8355265007315,
- "transactionDate": "2015-12-03T17:03:24.320+13:00",
- "transactionReference": 22901114,
- "transferAccountNumber": "11",
- "walletBalance": 60.0,
- "description": "Deposit from credit card"
- },
- {
- "transactionType": "WITHDRAWAL",
- "amount": -10.0,
- "externalTransactionReference": 0,
- "transactionDate": "2015-12-03T14:51:12.288+13:00",
- "transactionReference": 22901113,
- "transferAccountNumber": "1200000000000000",
- "walletBalance": 50.0,
- "description": "Withdrawal to bank a/c"
- },
- {
- "transactionType": "Deposits",
- "amount": 10.0,
- "externalTransactionReference": 0,
- "transactionDate": "2015-12-03T14:47:12.009+13:00",
- "transactionReference": 22901112,
- "transferAccountNumber": "11",
- "walletBalance": 60.0,
- "description": "Deposit from credit card"
- },
- {
- "gameName": "Lotto Powerball",
- "ticketNumber": "19351549",
- "ticketType": "Coupon",
- "transactionType": "PURCHASE",
- "amount": -5.8,
- "externalTransactionReference": 0,
- "transactionDate": "2015-12-02T16:17:59.958+13:00",
- "transactionReference": 22901101,
- "walletBalance": 50.0,
- "description": "Purchase Lotto"
- },
- {
- "gameName": "Lotto Powerball",
- "ticketNumber": "19351547",
- "ticketType": "Coupon",
- "transactionType": "PURCHASE",
- "amount": -5.8,
- "externalTransactionReference": 0,
- "transactionDate": "2015-12-02T16:01:19.163+13:00",
- "transactionReference": 22901100,
- "walletBalance": 55.8,
- "description": "Purchase Lotto"
- },
- {
- "gameName": "Lotto Powerball",
- "ticketNumber": "19351440",
- "ticketType": "Mega Triple Dip",
- "transactionType": "PURCHASE",
- "amount": -26.0,
- "externalTransactionReference": 0,
- "transactionDate": "2015-11-27T12:05:35.011+13:00",
- "transactionReference": 22901041,
- "walletBalance": 61.6,
- "description": "Purchase Lotto"
- },
- {
- "gameName": "Lotto Powerball",
- "ticketNumber": "19351438",
- "ticketType": "Super Plus Triple Dip",
- "transactionType": "PURCHASE",
- "amount": -20.0,
- "externalTransactionReference": 0,
- "transactionDate": "2015-11-27T12:05:28.318+13:00",
- "transactionReference": 22901040,
- "walletBalance": 87.6,
- "description": "Purchase Lotto"
- },
- {
- "gameName": "Lotto Powerball",
- "ticketNumber": "19351401",
- "ticketType": "Mega Triple Dip",
- "transactionType": "PURCHASE",
- "amount": -26.0,
- "externalTransactionReference": 0,
- "transactionDate": "2015-11-27T12:00:41.701+13:00",
- "transactionReference": 22901022,
- "walletBalance": 107.6,
- "description": "Purchase Lotto"
- },
- {
- "gameName": "Lotto Powerball",
- "ticketNumber": "19351399",
- "ticketType": "Super Plus Triple Dip",
- "transactionType": "PURCHASE",
- "amount": -20.0,
- "externalTransactionReference": 0,
- "transactionDate": "2015-11-27T12:00:29.980+13:00",
- "transactionReference": 22901021,
- "walletBalance": 133.6,
- "description": "Purchase Lotto"
- }
- ]
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- /notifications:
- displayName: Notifications
- description: Notifications are messages associated to users
- /{userid}:
- uriParameters:
- userid:
- displayName: userid
- type: string
- required: true
- repeat: false
- get:
- description: Retrieve random outstanding player notifications from ESi
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- responses:
- "200":
- body:
- application/json:
- schema: notificationsOutput
- example: |
- {
- "notifications": [
- {
- "messageId": 15341659,
- "messageType": 3,
- "messageDate": "2009-05-10+12:00",
- "subject": "You have won a prize",
- "greeting": "Dear Vincent,",
- "body": "Congratulations, you have won a prize!\n\nWinning ticket details:\n\n- Ticket Number: 14700120\n\n- Winning Outcome: $0 and 1 Bonus Tickets\n\nIf you have won a cash prize it has been paid directly into your MyLotto account.\n\nIf you have won a bonus ticket you will be able to view the details in the My Tickets area of your account.",
- "signature": "<br\>\n<br\>\n\nKind Regards,\n\nMyLotto Customer Support\n\nPhone: 0800 MYLOTTO (0800 6956886)\n\nE-mail: customersupport@mylotto.co.nz\n\n<br\>\n\n<br\>",
- "notificationClass": "Win",
- "linkId": 4
- },
- {
- "messageId": 15040005,
- "messageType": 3,
- "messageDate": "2009-05-04+12:00",
- "subject": "Financial adjustment to your MyLotto account",
- "greeting": "Dear Vincent,",
- "body": "An adjustment to your MyLotto account has been processed by the MyLotto customer support team.\n\nIf you require assistance please contact MyLotto customer support.",
- "signature": "<br\><br\>Kind Regards,\n\nMyLotto Customer Support\n\nPhone: 0800 MYLOTTO (0800 6956886)\n\nE-mail: customersupport@mylotto.co.nz\n\n<br\>\n\n<br\>",
- "notificationClass": "Standard",
- "linkId": 1
- }
- ]
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
- delete:
- description: Delete a Notification by message id
- headers:
- ESI_SID:
- description: The ESi Session Id
- type: string
- required: true
- repeat: false
- example: AEPXW2IQ8HI733C4APNTE6D2QXSTJIKW
- USER_ID:
- description: Esi User Id
- type: string
- required: true
- repeat: false
- example: "100980037"
- queryParameters:
- messageid:
- description: Notification identifier
- type: number
- required: true
- repeat: false
- default: "16660016"
- example: "16660016"
- responses:
- "200":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "success"
- }
- "400":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "nz.co.nzlotteries.exception.InvalidUserCredentialsException"
- }
- "500":
- body:
- application/json:
- schema: simpleResponse
- example: |
- {
- "message": "Runtime Exception - Contact Administrator"
- }
- is: [error-responses, header-userid-sessionid-params]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement