Versions Compared

Key

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


Excerpt

Register a participant in instant win

...

Endpoint ID:2200
Method:

Status
colourGreen
titleGET

URL:

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

loyalty/instantwin/{apiID}/iext-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


Span
stylewhite-space: nowrap
Response body:


JSON data with information about winner status

Code Block
titleloyalty/instantwin – participient won
{
    "winner": ture,
     "details": {
			"id": "1",
            "name": "Some gain",
            "description": "This explains these gain",
            "noofparticipients": 34,
            "noofwinners": 3
        }
    ]
}


Code Block
titleloyalty/instantwin – participient lost
{
    "winner": false,
     "details": ""
    ]
}




Status codes:200OK

404.1Instant win not found

404.2Instant win gain not found

500.3Server erreor

...