OTP Verification - Email verification using one-time password (OTP) codes.
Key Operations:
- Request OTP code to be sent to customer's email
- Verify OTP code to confirm email ownership
Flow:
- Request OTP via
POST /eapi/v0/verifications/otp - Customer receives OTP code via email
- Verify OTP via
POST /eapi/v0/verifications/otp/verify
Rate Limits:
- OTP requests: 3 per minute per customer
- OTP verification attempts: 4 per minute per customer
Important Notes:
- OTP codes are single-use and expire after a set time
- Email must be verified for certain compliance requirements
- Feature must be enabled for your merchant account
Sends a one-time password (OTP) code to the customer's email address for verification. The OTP code is valid for a limited time and can only be used once. Rate limited to 3 requests per minute per customer.
Security
HMACAuth
Identity reference of an existing customer created through our platform
Example:"c-13344"
- Mock serverhttps://docs.banxa.com/_mock/products/native-api/openapi/eapi/v0/verifications/otp
- Production environment serverhttps://api.banxa.com/eapi/v0/verifications/otp
- Sandbox environment serverhttps://api.banxa-sandbox.com/eapi/v0/verifications/otp
Send OTP code to customer's registered email address
curl -i -X POST \
https://docs.banxa.com/_mock/products/native-api/openapi/eapi/v0/verifications/otp \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"identityReference": "customer-12345",
"email": "[email protected]"
}'Response
{ "message": "OTP sent successfully" }