Skip to main content
POST
/
v1
/
auth
/
2fa
/
disable
Disable 2FA
curl --request POST \
  --url https://olp-api.nipuntheekshana.com/v1/auth/2fa/disable \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>"
}
'
This endpoint requires a valid Bearer token in the Authorization header.
Disables two-factor authentication for the merchant’s account. Requires a valid TOTP code to confirm the action.

Request Body

code
string
required
Six-digit TOTP code from the authenticator app, or a valid recovery code.

Example Request

{
  "code": "739201"
}

Example Response (200)

{
  "message": "Two-factor authentication disabled successfully"
}

Error Responses

400 Invalid Code
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid TOTP code"
  }
}
400 Not Enabled
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Two-factor authentication is not enabled"
  }
}