Skip to main content

Verify PIN

POST/subscribers/{id}/verify-pinOpen in the API playground →
Info

Use this endpoint to verify a subscriber's PIN before processing sensitive operations.

Request

Authorizationstringheaderrequired

Bearer olive_live_xxx or Bearer eyJ... (JWT)

Path Parameters

idstringpathrequired

Subscriber UUID (e.g., sub_abc123)

Body Parameters

pinstringbodyrequired

4-digit PIN to verify


Response

successboolean

Whether PIN is valid

messagestring

Result message


Examples

Request
cURL
curl -X POST "https://demo.api.vultlocal.com/api/v1/subscribers/sub_abc123/verify-pin" \
-H "Authorization: Bearer olive_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"pin": "1234"
}'
Response
200 Valid PIN
{
"success": true,
"message": "PIN verified successfully"
}
401 Invalid PIN
{
"success": false,
"message": "Invalid PIN",
"attempts_remaining": 2
}
403 Account Locked
{
"success": false,
"message": "Account locked due to too many failed attempts",
"locked_until": "2025-01-20T16:00:00Z"
}

PIN Security

Attempt Limits
  • 3 failed attempts allowed
  • Account locked for 30 minutes
  • Counter resets on success
Audit Logging
  • All attempts logged
  • IP address recorded
  • Used for fraud detection

Use Cases

Use CaseDescription
POS PaymentVerify before deducting funds
P2P TransferConfirm sender identity
Cash-OutAuthenticate withdrawal
Profile ChangeVerify before sensitive updates

Errors

StatusCodeDescription
400INVALID_PIN_FORMATPIN must be 4 digits
401UNAUTHORIZEDInvalid or missing API key
401INVALID_PINPIN does not match
403ACCOUNT_LOCKEDToo many failed attempts
404NOT_FOUNDSubscriber not found
500INTERNAL_ERRORServer error

Change PIN

Change subscriber's PIN to a new value