Confirming the Funds Transfer

Once the user enters the OTP, the Cion Digital platform calls the "Confirming the Funds Transfer" method.

params object:

Key

Definition/meaning

otp1

OTP corresponding to fieldLabel1

otp2

OTP corresponding to fieldLabel2

Example params object:

{
    "otp1": "123456",
    "otp2": "987654"
}

Response if OTP is correct:

Key

Definition/meaning

otp_verified

true

message

Message to be shown to the user

address

Address to which funds will be sent (in case of collateral withdraw and loan disbursement)

Example response result object in case of success:

{
    "otp_verified": true,
    "message": "Your collateral deposit request will be processed soon.",
    "address": "0x5Bd7897dFe0ED054E6a18d2bBa4e655BBC5B4B56"
}

Response result object if OTP is not correct:

Key

Definition/meaning

otp_verified

false

message

Message to be shown to the user

retry

false, if user has exceed maximum retry limit else true

Example result object in case of failure:

{
    "otp_verified": false,
    "message": "Incorrect OTP, please try again.",
    "retry": true
}

Last updated