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

Create Address

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

Payload

AttributeTypeRequiredDescription
userIdIntegerYesTarget user ID.
typeEnumYesMAILING | RESIDENTIAL | BUSINESS | …
countryIdIntegerYesInternal country ID.
countryCodeStringNoISO Alpha-3 (e.g., USA).
stateIdIntegerYesInternal state/province ID.
stateNameStringNoState/province name.
cityIdIntegerYesInternal city ID.
cityNameStringNoCity name.
addressLine1StringYesStreet/building number etc.
addressLine2StringNoApartment/suite/floor.
postalCodeStringNoZIP/postal code.
longitudeStringNoLongitude (decimal).
latitudeStringNoLatitude (decimal).
Request Example
{
  "userId": 604,
  "type": "MAILING",
  "countryId": 167,
  "countryCode": "USA",
  "stateId": 3169,
  "stateName": "California",
  "cityId": 85475,
  "cityName": "Los Angeles",
  "addressLine1": "123 Main Street",
  "addressLine2": "Apt 4C",
  "postalCode": "90091",
  "longitude": "-118.2437",
  "latitude": "34.0522"
}

Response

FieldTypeDescription
idIntegerAddress record ID.
userIdIntegerOwner user ID.
typeEnumAddress type.
countryObject{ id, name } of country.
countryCodeStringISO Alpha-3 code (e.g., PAK).
stateObject{ id, name } of state/province.
stateNameStringState/province name.
cityObject{ id, name } of city.
cityNameStringCity name.
addressLine1StringMain address line.
addressLine2StringAdditional details.
postalCodeStringZIP/postal code.
longitudeStringLongitude.
latitudeStringLatitude.
statusBooleanActive (true) or inactive (false).
200 — SUCCESS
{
  "data": {
    "id": 11,
    "userId": 604,
    "type": "MAILING",
    "country": { "id": 167, "name": "Pakistan" },
    "countryCode": "PAK",
    "state": { "id": 3169, "name": "Islamabad Capital Territory" },
    "stateName": "Islamabad Capital Territory",
    "city": { "id": 85475, "name": "Islamabad" },
    "cityName": "Islamabad",
    "addressLine1": "123 Main Street",
    "addressLine2": "Apt 4C",
    "postalCode": "90091",
    "longitude": "-118.2437",
    "latitude": "34.0522",
    "status": false
  }
}