Confirmation Codes

postConfirmCodes

POST
/confirmCodes

Create a confirmCode resource that represents a unique confirmation code issued to an email address, either when a user indicates that they have forgotten their password, or when the system needs to verify the email address associated with a login.

Authorization

APIKEY<token>

In: header

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Create Confirmation Code Request

Create Confirmation Code Request

login*string

The identifier of the Login resource that this confirmation code relates to.

type*confirmCodeType

The type of this confirmCode.

  • password - Forgot Password
  • email - Verify Email

Value in

  • "password"
  • "email"
key*string

The cryptographically secure, randomly generated key to be used for verification.

email?string

If the 'type' of this confirmation code is '2' (email), then this field represents the email address that requires verification.

inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X POST "https://example.com/confirmCodes" \  -H "Content-Type: application/json" \  -d '{    "login": "p1_log_67dd2714959c3331228ffa3",    "type": "email",    "key": "fbdf954596b341d18cb4995b70d321f3",    "email": "vijay.sample@payrix.com",    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "p1_cfc_67dd2714a9a1fc91f994e00",        "created": "2025-03-21 04:45:08.6978",        "modified": "2025-03-21 04:45:08.6978",        "creator": "p1_log_00b869779727da108515d99",        "modifier": "p1_log_00b869779727da108515d99",        "login": "p1_log_67dd2714959c3331228ffa3",        "type": "email",        "key": "fbdf954596b341d18cb4995b70d321f3",        "email": "vijay.sample@payrix.com",        "inactive": 0,        "frozen": 0      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}