Skip to content

OTP Code Resend ​

To resend an OTP code via the Partner's website, the check_pan method should be used by sending a request to the server.

Important Information!

Limit on incorrect OTP code entries: The client can enter an incorrect OTP code no more than three times. If this limit is exceeded, the transaction will be canceled, and a new payment registration will be required.

Method check_pan ​

  • URL: https://secure.octo.uz/check_pan
  • Method: POST
  • Content-type: application/json

Request Example ​

json
{
    "pan": "1234123412341234",      // Client's card number
    "expDate": "2601",             // Card expiration date (YYMM)
    "paymentId": "{{payment_id}}"    // Unique payment identifier
}

Request Parameters ​

ParameterTypeRequiredDescription
panstringYesClient's card number used for the transaction
expDatestringYesCard expiration date in the format YYMM
paymentIdintYesUnique payment identifier

Successful Response Example ​

json
{
    "error": 0,
    "errMessage": "",
    "data": {
        "verifyId": 856,
        "phone": "+998** *****33",
        "secondsLeft": 120
    }
}

Successful Response Parameters ​

ParameterTypeRequiredDescription
errorintYesError code: 0 means no errors
errMessagestringNoError message. Empty if no errors
dataobjectYesObject with details of the verification process
verifyIdintYesUnique identifier of the verification process
phonestringYesPhone number for verification (partially hidden for security)
secondsLeftintYesRemaining time (in seconds) until the verification expires

Unsuccessful Response Example ​

json
{
    "error": 17,
    "errMessage": "Maximum number of SMS resend attempts",
    "data": null
}

Unsuccessful Response Parameters ​

ParameterTypeRequiredDescription
errorintYesError code
errMessagestringYesError message
dataobjectNoCore transaction data (in this case null)