🚀 VaultsPay API v1 is live. See what's new →
UsersUpdate Address

Update Address

PATCH{baseUrl}/us/api/v1/kyc/addresses

Payload

All fields are optional except userId and type (partial update).

AttributeTypeRequiredDescription
userIdIntegerYesTarget user ID.
typeEnumYesMAILING | RESIDENTIAL | BUSINESS | …
countryIdIntegerNoInternal country ID.
countryCodeStringNoISO Alpha-3 code.
stateIdIntegerNoInternal state/province ID.
stateNameStringNoState/province name.
cityIdIntegerNoInternal city ID.
cityNameStringNoCity name.
addressLine1StringNo
addressLine2StringNo
postalCodeStringNo
longitudeStringNo
latitudeStringNo
Request Example
{
  "userId": 604,
  "type": "MAILING",
  "countryId": 1,
  "countryCode": "IND",
  "stateId": 3871,
  "stateName": "California",
  "cityId": 72,
  "cityName": "Los Angeles",
  "addressLine1": "123 Main Street 123445",
  "addressLine2": "Apt 4B",
  "postalCode": "6019",
  "longitude": "-118.2437",
  "latitude": "34.0522",
  "status": true
}

Response

FieldTypeDescription
idIntegerAddress record ID.
userIdIntegerOwner user ID.
typeEnumAddress type.
countryObject{ id, name }.
countryCodeStringISO Alpha-3.
stateObject{ id, name }.
stateNameStringState/province name.
cityObject{ id, name }.
cityNameStringCity name.
addressLine1String
addressLine2String
postalCodeString
longitudeString
latitudeString
statusBooleanActive (true) or inactive (false).
200 — SUCCESS
{
  "data": {
    "id": 11,
    "userId": 604,
    "type": "MAILING",
    "country": { "id": 1, "name": "Afghanistan" },
    "countryCode": "AFG",
    "state": { "id": 3871, "name": "Badghis" },
    "stateName": "Badghis",
    "city": { "id": 72, "name": "Ghormach" },
    "cityName": "Ghormach",
    "addressLine1": "123 Main Street 123445",
    "addressLine2": "Apt 4B",
    "postalCode": "6019",
    "longitude": "-118.2437",
    "latitude": "34.0522",
    "status": false
  }
}