Lotto Service Interface (2.0.0)

The Electrum Lotto Service Interface describes an interface for creating, confirming and reversing Lotto wagers.

Download OpenAPI description
Languages
Servers

https://[placeholder].dev/lotto/v2/

Lotto Game Rules Service Interface

The Lotto Game Rules Service Interface API.

Operations

Lotto Games Service Interface

The Lotto Games Service Interface API.

Operations

Lotto Wager Service Interface

The Lotto Wager Service Interface API.

Operations

Schema

Board

Board related data.

quickPickbooleanrequired

Boolean indicating whether or not the selections are determined by the Lotto operator.

selectionsArray of strings

The outcome of a draw which will allow the customer to win a monetary prize.

boardAmountinteger(int64)

The monetary value of the board.

betTypestring

An indication of how the board is to match the three digit number drawn by the Lotto operator. This is only used for the Pick3 game.

Enum"STRAIGHT""BOX3""BOX6""FRONT2""BACK2""SPLIT"
systemBetTypestring

An indication of how varied the results of a QuickPick selection may be.

Enum"NONE""FREE""IQP4""IQP8""IQP16""IQP24""IQP32""IQP64""IQP128""IQP256"
{ "quickPick": true, "selections": [ "string" ], "boardAmount": 0, "betType": "STRAIGHT", "systemBetType": "NONE" }

CardPayment

Base model for all payment types

typestringrequired

The general method of payment used

Enum"AN_32_TOKEN""LOYALTY_CARD""CARD""ACCOUNT""REWARD""WALLET""QR"
Discriminator
namestring

The specific method of payment used

amountobject(LedgerAmount)

An amount object only containing value and currency, and optionally an indicator of DEBIT/CREDIT

issuerobject(Institution)

Originating, acquiring, processing, or receiving institution details

pinobject(Pin)

Base model for capturing either a clear PIN or encrypted PIN

proxystring[ 0 .. 40 ] characters

An alternative identifier for the customer's source of funds. Acts as a stand in for the customer identifier. E.g. a customer's MSISDN or email address.

proxyTypestring

An enumerated value describing the type of value used as the proxy.

Enum"MSISDN""EMAIL""UNKNOWN"
tokenstring[a-zA-Z0-9]{32}required

32 character alphanumeric code which identifies a token

{ "type": "AN_32_TOKEN", "name": "string", "amount": { "amount": 0, "currency": "string", "ledgerIndicator": "DEBIT" }, "issuer": { "id": "string", "name": "string" }, "pin": { "type": "CLEAR_PIN" }, "proxy": "string", "proxyType": "MSISDN", "token": "string" }

EncryptedPin

A PIN required to authorise a transaction. EncryptionParameters should be provided where the service will be performing operations on the encrypted PIN, such as PIN translation. Only the PIN block need be provided where the service is expected to forward it to a third party, where the calling client and said third party have agreed upon encryption parameters beforehand.

pinBlockstring[a-fA-F0-9]{16}|[a-fA-F0-9]{32}required

Hexadecimal string representing the encrypted PIN to be used.

encryptionParametersobject(EncryptionParameters)

Parameters pertaining to the generation of the PIN block. Required if the service is to perform any operations on the encrypted PIN, such as translation.

{ "pinBlock": "string", "encryptionParameters": { "pinBlockFormat": "ISO_9564_FORMAT_0", "accountNumber": "string", "keyIndex": 0 } }