Two-Factor Authentication
Merchant Boarding API
2FA
Initiate 2FA
post /enroll/two-factor/initiate
Initialize two-factor authentication on an existing application with a valid primary principal phone number.
Request Schema
externalKey required
string^(?!.*/).*$
Minimum:
1Example:
123abc
Loading...
Example Request
twoFactorAuthInitiateValidRequest
Example Response
200 Initiate two-factor authentication code for existing application.
400 Bad request example.
404 Not found example.
415 Unsupported media type response - Invalid content type
422 Unprocessable entity error response.
Validate 2FA Code
post /enroll/two-factor/validate
Validate two-factor authentication code for an application using the external key.
Request Schema
externalKey required
string^(?!.*/).*$
Minimum:
1Example:
123abc
Loading...
code required
string
Minimum:
1Example:
1234
Loading...
Example Request
Example Response
200 Validate two-factor authentication code for existing application.
400 Bad request example.
404 Not found example.
415 Unsupported media type response - Invalid content type
Get 2FA status
get /enroll/two-factor/status/id/{requestId}/phone/{phone}
Get two-factor authentication status by request ID and phone number.
Parameters
requestId required
string
Example:
0aa000a-000a-00a0-00a0-00000aa00a0
Loading...
phone required
string^\d{10}$10 to 10 characters
Default:
null
Example:
null
Loading...
Example Response
200 Get two-factor authentication status for request ID + phone.
400 Bad request example.