POST
/
utils
/
otp-validation
curl --request POST \
  --url https://devapi.withedge.co/gateway/api/v1/utils/otp-validation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'requestId: <requestid>' \
  --data '{
  "otpReferenceId": "<string>",
  "OTP": "<string>"
}'
{
	"statusCode": 00,
	"message": "Completed successfully"
	"data": {},
	"errors": []
}

Validate OTP

Use this endpoint to validate a transfer request by providing the OTP sent to the customer’s phone number.


Additional Information

Note

  • Use the default OTP 123456 when validating OTP requests on sandbox.
  • All OTPs generated expire after 5 minutes.
  • Any active OTP on an account will expire once a new OTP request is made for the same account number.

Request Parameters

requestId
string
required

A unique identifier for the request, used for idempotency.
Example: e0b9f8d0-7a57-4a67-a8b2-4d7c7b5a37c9

otpReferenceId
string
required

The unique identifier for the OTP, returned after successfully initiating a transfer request.
Example: 1234567890

OTP
string
required

The One-Time Password sent to the customer’s phone number.
Example: 123456

{
	"statusCode": 00,
	"message": "Completed successfully"
	"data": {},
	"errors": []
}