Skip to content

SetCustomerOTP

Endpoint

PUT /customer/auth/otp

Description

Enables or replaces customer OTP after verifying the setup code.

current_code is required only when OTP is already enabled.

Authorization

Requires SESSION_CUSTOMER token.

Request

{
  "secret": "JBSWY3DPEHPK3PXP",
  "code": "123456",
  "current_code": "654321"
}

Response

{
  "otp_enabled": 1
}