Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

Reserve a package of lottery numbers for a limited time.


Endpoint ID:

94019402

Method
Status
colourGreen
titlePOST
URL:

/lottery/reservation

Request body:

JSON data describing the desired reservation

size: The number of lottery numbers that should be reserved. Must correspond to a package size configured in Rubiq Cloud

sessionID: An ID used to monitor the purchase session, and keep the session alive

Code Block
languagejs
titleRequest body
{
    "size": 5,
    "sessionID":"ceqb4jaw7cs"
}



Span (Deprecated)
stylewhite-space:nowrap

Response body:


The relevant properties of the currently active lottery.

Code Block
languagejs
{
    "reservation": {
        "id": "6cb32bf9-fe31-4b2e-b1a7-94215c453915",
        "numbers": ["346345", "234545", "3645675", "253156", "354125"],
        "expiresInSeconds": 900
    }
}


Status codes:

HttpStatusCode
ApiStatusSubCode
Description
200
Success
404
There is no currently active lottery

...