/
v3.0.11Get access

createValidationCode

Generates a unique 12-digit Sweepstakes Coins Request Code for the logged-in user as part of the Alternative Method of Entry (AMOE) mail-in process. Users can find this under the Sweepstakes Rules page, where they click "Request Code" (protected by Captcha) to receive a code they must include in a physical mail request to claim Sweepstakes Coins. The code remains visible for 5 minutes within the same session, after which a new one can be generated. Each code is tied to the user's account, can only be used once, and expires after 60 days.

Request parameters:

The method works without parameters
This method is usually used with these methods:

Call example:

createValidationCode()

Response examples:

{
  details: {
    Code: 'A1B2C3',
    Created: 1706620800
  }
}

Response parameters:

NameDescriptionTypeValues
details
Object containing the generated code infoobject
└─ Code
Generated validation code string-
└─ Created
Timestamp when the code was creatednumber-