2200 Register participant

Register a participant in instant win


Endpoint ID:2200
Method:

GET

URL:

loyalty/entity/id/{entityID}/instantwin/{apiID}

loyalty/entity/ext-key/{ext-key}/{ext-type}/instantwin/{apiID}


entityIDdialogportal™ master key that uniquely identifies the entity

ext-keyExternal key that uniquely identifies the entity

ext-typeType of external key

apiID

A GUID string identifier for the instant win

Request body:None

Response body:

JSON data with information about winner status

loyalty/instantwin – participant won
{
    "winner": true,
    "details": {
        "id": 1,
        "name": "Some prize",
        "description": "An explanation of the prize",
        "numParticipants": 34,
        "numWinners": 3
    }
}
loyalty/instantwin – participant lost
{
    "winner": false
}
Status codes:200OK

404

Not found

The following sub-codes may be returned:

404.1User not found
404.2External user could not be found
404.4Instant win gain not found
404.5Instant win not found

400.1Invalid data