9402: Create reservation

Reserve a package of lottery numbers for a limited time.
Endpoint ID:

9402

Method
POST
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

Request body
{
    "size": 5,
    "sessionID":"ceqb4jaw7cs"
}

Response body:

The relevant properties of the currently active lottery.

{
    "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