Onboarding
Verify Verification Code
Verify an OTP code for customer's contact information
AuthorizationBearer <token>
In: header
Path Parameters
idstring
Customer ID
typestring
Type of verification code
Value in
"phone" | "email"codestring
Verification code
Response Body
curl -X POST "https://api.spherepay.co/v2/customer/customer_66c4168d418a410eae282b83883bdc39/otp-verify" \
-H "Content-Type: application/json" \
-d '{
"type": "email",
"code": "123456"
}'{
"customerId": "customer_66c4168d418a410eae282b83883bdc39",
"verifiedAt": "2025-11-21T07:10:54.598Z"
}{
"status": 400,
"detail": "Invalid request parameters",
"code": "address/invalid",
"correlationId": "28c61e885c6e5eaa78c1a2183a9b883c"
}{
"status": 404,
"detail": "Resource not found",
"code": "resource/not-found",
"correlationId": "28c61e885c6e5eaa78c1a2183a9b883c"
}{
"status": 422,
"detail": "Validation failed",
"code": "validation/failed",
"correlationId": "28c61e885c6e5eaa78c1a2183a9b883c",
"errors": [
{
"detail": "Invalid email format",
"pointer": "/email"
},
{
"detail": "Name is required",
"pointer": "/name"
}
]
}