Update Authorized User's Address
This endpoint updates the address of an authorized user (subProfile) within a business customer account. By providing the authorized user's unique ID along with the new address details — including street, city, state, and postal code — you can efficiently keep address information current. Optionally, the update can also propagate to any payment card billing addresses associated with the authorized user.
Endpoint
POST /api/subProfiles/address
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 business customer's authorized user has moved or needs their address record corrected. This is relevant for compliance, KYC maintenance, and ensuring billing addresses on payment cards remain accurate. Only authorized integrations with appropriate permissions may modify subProfile addresses.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| subProfileId | integer (int32) | No | Unique identifier of the authorized user (subProfile) whose address is being updated. |
| updatePaymentCardBillingAddress | boolean | Yes | When true, the new address will also be applied as the billing address for all payment cards associated with the authorized user. |
| streetAddress | string | Yes | Primary street address. Must begin with a number followed by a street name (e.g., 123 Main St). Min length: 1. Pattern enforced. |
| extendedAddress | string | No | Secondary address line such as apartment, suite, or unit number (e.g., Apt 4B). Nullable. |
| postalCode | string | Yes | US ZIP code. Must be exactly 5 digits (e.g., 30301). |
| state | integer (int32) | Yes | US state represented as an integer enum value (1–53, mapping to US states and territories). |
| locality | string | Yes | City or locality name. Min length: 1, max length: 128. |
| countryCodeAlpha3 | string | Yes | ISO 3166-1 alpha-3 country code. Must be exactly 3 characters (e.g., USA). |
{
"subProfileId": 4821,
"updatePaymentCardBillingAddress": true,
"streetAddress": "742 Evergreen Terrace",
"extendedAddress": "Suite 100",
"postalCode": "62701",
"state": 14,
"locality": "Springfield",
"countryCodeAlpha3": "USA"
}Response
200 OK
A successful response confirms that the address has been updated for the specified authorized user. The response body on success is empty or a generic success acknowledgment.
{}Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields, invalid field format (e.g., postal code not 5 digits, invalid country code length), or pattern validation failure on streetAddress |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions — caller is not authorized to modify subProfile addresses |
| 404 | SubProfile with the specified subProfileId not found |
| 500 | Internal server error |
Common Mistakes
- Omitting
updatePaymentCardBillingAddress— this field is required even when you do not intend to update card billing addresses; passfalseexplicitly if no card update is needed. - Providing a
postalCodethat is not exactly 5 numeric digits — values like"6270"(4 digits) or"62701-1234"(ZIP+4 format) will fail validation. - Supplying a
countryCodeAlpha3that is not exactly 3 characters — the schema enforcesminLength: 3andmaxLength: 3; use ISO alpha-3 codes such as"USA". - Passing an invalid
stateinteger — the enum accepts values 1 through 53 only; values outside this range will be rejected. - Formatting
streetAddressincorrectly — the field requires a leading street number followed by a street name; P.O. Box formats or address-only strings without a leading number will fail the pattern check.
Related Endpoints
POST /api/subProfiles— Create a new authorized user (subProfile) for a business customerGET /api/subProfiles/{subProfileId}— Retrieve details of a specific authorized userPOST /api/subProfiles/phone— Update the phone number of an authorized userPOST /api/subProfiles/email— Update the email address of an authorized user
Example
curl -X POST https://api.banking.netevia.dev/api/subProfiles/address \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"subProfileId": 4821,
"updatePaymentCardBillingAddress": true,
"streetAddress": "742 Evergreen Terrace",
"extendedAddress": "Suite 100",
"postalCode": "62701",
"state": 14,
"locality": "Springfield",
"countryCodeAlpha3": "USA"
}' 200Success
