cURL
curl --request POST \ --url https://olp-api.nipuntheekshana.com/v1/auth/2fa/disable \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>" } '
Disable two-factor authentication on the merchant’s account
Authorization
{ "code": "739201" }
{ "message": "Two-factor authentication disabled successfully" }
{ "error": { "code": "VALIDATION_ERROR", "message": "Invalid TOTP code" } }
{ "error": { "code": "VALIDATION_ERROR", "message": "Two-factor authentication is not enabled" } }