Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Register a participant in instant win


Endpoint ID:2200
Method:

GET

URL:

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

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


apiID

A GUID string identifier for the instant win


entityIDdialogportal™ master key that uniquely identifies the entity

ext-keyExternal key that uniquely identifies the entity

ext-typeType of external key
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

  • No labels