Change Phone for Account Holder
The /changePhone endpoint allows personal customers to update the phone number associated with their account. This ensures contact information remains current for security verifications, notifications, and all account-related communications. The endpoint supports three request variants: a basic phone change, a phone change for an associated person (authorized user), and a secured phone change that requires OTP verification.
Endpoint
POST /changePhone
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when a personal customer needs to update their phone number due to switching carriers, getting a new phone, or correcting outdated contact details. For business customers updating a phone number on behalf of an authorized user (associated person), use the changeAssociatedPersonPhone variant by including the associatedPersonId field. When the platform requires step-up verification before allowing the change, use the secured variant by supplying oneTimeCode and secureOperationType.
Request Body
This endpoint accepts one of three request schemas depending on the scenario:
Variant 1 — Basic Phone Change (changephonerequest)
| Field | Type | Required | Description |
|---|---|---|---|
| phone | string | Yes | The new phone number to associate with the account. Minimum length: 1 character. |
{
"phone": "15551234567"
}Variant 2 — Change Phone for Associated Person (changeassociatedpersonphonerequest)
Extends Variant 1. Use when updating the phone number of an authorized user linked to a business account.
| Field | Type | Required | Description |
|---|---|---|---|
| phone | string | Yes | The new phone number to associate with the account. Minimum length: 1 character. |
| associatedPersonId | string | Yes | The ID of the Primary Authorized Person and/or Beneficial Owner whose phone number is being updated. |
{
"phone": "15559876543",
"associatedPersonId": "ap_8f3c2d1a4b7e9f06"
}Variant 3 — Secured Phone Change (changephonesecuredrequest)
Extends Variant 1. Use when the platform requires OTP verification before completing the phone number change.
| Field | Type | Required | Description |
|---|---|---|---|
| phone | string | Yes | The new phone number to associate with the account. Minimum length: 1 character. |
| oneTimeCode | string | Yes | A 6-digit numeric one-time passcode. Must match pattern: ^\d{6}$. |
| secureOperationType | string | Yes | The verification method used to generate the OTP. Allowed values: ShortMessageCode, TimeBasedCode, LegacyTimeBasedCode. |
{
"phone": "15552223333",
"oneTimeCode": "847291",
"secureOperationType": "ShortMessageCode"
}Response
200 OK
A 200 status indicates the phone number was successfully updated. No response body is returned.
Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields, invalid phone format, or oneTimeCode does not match the 6-digit pattern |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to update the specified account or associated person |
| 404 | Associated person not found when associatedPersonId is provided |
| 500 | Internal server error |
Common Mistakes
- Omitting the
phonefield — it is required in all three request variants. - Providing an
oneTimeCodethat does not match the exactly 6-digit numeric pattern (^\d{6}$) when using the secured variant. - Using an invalid or unsupported value for
secureOperationType— onlyShortMessageCode,TimeBasedCode, andLegacyTimeBasedCodeare accepted. - Sending
associatedPersonIdfor a personal customer account — this field is only applicable for authorized users linked to business accounts. - Using an expired or missing Bearer token; tokens expire after 10 minutes and must be refreshed before making this call.
Related Endpoints
POST /api/auth/v2— Obtain a Bearer token for authenticationPOST /api/auth/refresh— Refresh an expiring Bearer tokenPOST /changeEmail— Update the email address associated with an accountPOST /changePassword— Update the password for an account holder
Example
Basic phone change:
curl -X POST https://api.banking.netevia.dev/changePhone \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"phone": "15551234567"
}'Secured phone change with OTP verification:
curl -X POST https://api.banking.netevia.dev/changePhone \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"phone": "15552223333",
"oneTimeCode": "847291",
"secureOperationType": "ShortMessageCode"
}'Change phone for an associated person:
curl -X POST https://api.banking.netevia.dev/changePhone \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"phone": "15559876543",
"associatedPersonId": "ap_8f3c2d1a4b7e9f06"
}' 200Success
