Update Authorized user's address

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

FieldTypeRequiredDescription
subProfileIdinteger (int32)NoUnique identifier of the authorized user (subProfile) whose address is being updated.
updatePaymentCardBillingAddressbooleanYesWhen true, the new address will also be applied as the billing address for all payment cards associated with the authorized user.
streetAddressstringYesPrimary street address. Must begin with a number followed by a street name (e.g., 123 Main St). Min length: 1. Pattern enforced.
extendedAddressstringNoSecondary address line such as apartment, suite, or unit number (e.g., Apt 4B). Nullable.
postalCodestringYesUS ZIP code. Must be exactly 5 digits (e.g., 30301).
stateinteger (int32)YesUS state represented as an integer enum value (1–53, mapping to US states and territories).
localitystringYesCity or locality name. Min length: 1, max length: 128.
countryCodeAlpha3stringYesISO 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

CodeWhen it happens
400Missing required fields, invalid field format (e.g., postal code not 5 digits, invalid country code length), or pattern validation failure on streetAddress
401Token missing, expired, or invalid
403Insufficient permissions — caller is not authorized to modify subProfile addresses
404SubProfile with the specified subProfileId not found
500Internal server error

Common Mistakes

  • Omitting updatePaymentCardBillingAddress — this field is required even when you do not intend to update card billing addresses; pass false explicitly if no card update is needed.
  • Providing a postalCode that is not exactly 5 numeric digits — values like "6270" (4 digits) or "62701-1234" (ZIP+4 format) will fail validation.
  • Supplying a countryCodeAlpha3 that is not exactly 3 characters — the schema enforces minLength: 3 and maxLength: 3; use ISO alpha-3 codes such as "USA".
  • Passing an invalid state integer — the enum accepts values 1 through 53 only; values outside this range will be rejected.
  • Formatting streetAddress incorrectly — 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 customer
  • GET /api/subProfiles/{subProfileId} — Retrieve details of a specific authorized user
  • POST /api/subProfiles/phone — Update the phone number of an authorized user
  • POST /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"
  }'
Body Params
int32
boolean
required
string
required
length ≥ 1
string | null
^[a-zA-Z\d',. \-#]+(([',. \-#][a-zA-Z ])?[a-zA-Z.]*)*$
string
required
length ≥ 1
^\d{5}$
int32
enum
required
string
required
length between 1 and 128
string
required
length between 3 and 3
Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response
200

Success

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here!