Loading...

Knowledge Base

Generate OTP for a Customer Using the API

When you want to generate a one-time password for a customer using the API. This article explains the required authentication parameters, customer ID input, OTP generation request, and API response behavior.

Generate OTP

 

Description

Generates an OTP token for the customer.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
customeridIntegerRequiredCustomer ID of the Customer

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/customers/authenticate/generate-otp.json?auth-userid=0&api-key=key&customerid=0

Response

Returns true (Boolean), if the OTP token is generated.

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.