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