Skip to main content

/member/shortCode

Overview​

This endpoint is used to send, retrieve, or verify a short identification code associated with a member. These codes are used for secure identity confirmation across channels such as SMS, email, or embedded displays (e.g., kiosks, QR codes).

When to Use This Endpoint​

Use this endpoint in the following cases:

  • A member accesses a self-service solution and needs to verify their identity
  • A partner system requires a secure one-time code for authentication
  • You want to support short-code based logins without traditional credentials

Key Considerations​

  • Only one identifier must be sent: phoneNumber or email
  • The action must be one of: "send", "get", or "verify"
  • Codes may be delivered via SMS/email or displayed depending on the channel
  • The same short code can later be validated through the /member/details endpoint

Request Details​

Method & URL​

POST /member/shortCode

See API Servers for the base URL to use in place of {{server}}.

Headers​

HeaderTypeRequiredDescription
x-api-keystringYesAPI key for authentication
x-source-typestringYesOrigin of the request (POS, Web, etc.)
x-source-namestringYesName of the integration or client system
x-pos-idstringYesUnique POS terminal identifier
x-branch-idstringYesBranch or location identifier

Request Example​

curl --location --request POST 'https://{{server}}/v1/member/shortCode' --header 'Content-Type: application/json' --header 'x-api-key: {{api-key}}' --header 'x-source-type: POS' --header 'x-source-name: kiosk_01' --header 'x-pos-id: POS001' --header 'x-branch-id: BR001' --data-raw '{
"member": {
"phoneNumber": "123456789"
},
"action": "send"
}'
{
"member": {
"phoneNumber": "123456789"
},
"action": "send"
}

Body​

FieldDescriptionTypeMandatory
memberObject representing the member identifierMemberN
actionAction to be taken: send, get, or verifystringY

Success Response​

{
"status": "success",
"data": {}
}

Response​

FieldDescriptionTypeMandatory
statusStatus of the responsestringY
dataReturned data (if any)objectN
errorError object (for failed requests)ErrorN

Error Response Examples​

Member Not Found​

{
"status": "error",
"error": {
"code": "203",
"message": "Cannot find any member with the given identifier!"
}
}

Invalid Phone Format​

{
"status": "error",
"error": {
"code": "1001",
"message": "phoneNumber is not allowed",
"path": "body.phoneNumber"
}
}

Error Codes​

CodeDescription
203Member not found
901Invalid member object for the given action
902Invalid or missing action
905Error generating short code

Field Reference​

FieldTypeDescription
member.phoneNumberstringOptional. Phone number of the member
member.emailstringOptional. Email of the member
actionstringRequired. One of send, get, or verify
  • Enabling login to kiosks, mobile apps, or web sessions with a short code
  • Authenticating members prior to checkout or benefit redemption
  • Connecting third-party systems to perform identity verification