Skip to content

Verify enrolment of a user device for authentication using one-time passwords

Request

The second step in enrolling the logged-in user (root or authorised user) to use one-time-passwords to enable verification of transactions.

Note that on the Sandbox Environment, text messages are not sent and the verificationCode is always set to "123456".

Security
apiKey and authToken
Path
channelstringrequired

The unique identifier for the channel.

Value:"SMS"
Bodyapplication/jsonrequired
verificationCodestring, = 6 characters^[0-9]*$required

The code received by the user on the device.

curl -i -X POST \
  'https://sandbox.weavr.io/payment-run/v1/authentication_factors/otp/{channel}/verify' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'api-key: YOUR_API_KEY_HERE' \
  -d '{
    "verificationCode": "string"
  }'

Responses

Success - No Content.

Headers
request-refstringrequired

A request identifier. Providing this reference when contacting our support team will help us investigate your query.

Response
No content