person.update
Update a specific Person entity
POST http://api.kompliant.com/person.update (OpenAPI specification)
Usage Info
The Person entity stores comprehensive information about individuals, including personal details, contact information, identification, and addresses. This entity can be associated with businesses as owners or used independently within a Subject Record. Use this method if you want to change or add more information for an existing person.
Request
Authentication: KSig1-HMAC-SHA256
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| person_id | string | Yes | The Person entity to update. |
| person | object | No | The person parameter defined in the tables below. |
Person Parameters
| Parameter | Type | Required | Nullable | Description |
|---|---|---|---|---|
| string | No | Yes | The personal email address of the person. The email must be a validly formatted email address. | |
| first_name | string | No | Yes | The legal first given name for the person. |
| middle_name | string | No | Yes | The legal middle name for the person. |
| last_name | string | No | Yes | The legal last name for the person. |
| date_of_birth | string | No | Yes | The legal date of birth for the person. This must be in the YYYY-MM-DD format and contain only digits [0-9] and dashes. The value cannot be in the future nor can the value be more than 130 years in the past. |
| tax_id | string | No | Yes | The tax ID for the person. In the US this is typically the SSN or ITIN. This field must be 9 characters long and only contain digits [0-9]. Dashes are not accepted. |
| citizenship | string | No | Yes | Two character code for the country of citizenship for the person. Must be one of the COUNTRIES . |
| phone_number | string | No | Yes | The primary personal phone number of the person. This field must be 10 characters long and must be in the pattern of NXXNXXXXXX, where N represents any digit from 2-9 and X represents any digit from 0-9. It must follow all other requirements of the North American Number Plan. |
| addresses | array | No | Yes | The list of addresses for the person. Only one address of each type can be added to the list. This parameter is not required. However, if an address parameter is provided, then type is required. At this time, only one a single entry of Person Address Type of PRIMARY_RESIDENCE is allowed. No other entries are supported. |
Note:
- Nullable parameter unsets the value.
- Nullable Parameters of type array removes all the items from the parameter.
- Empty array for a parameter removes all the items
Addresses Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | The type of address. Must be one of the PERSON_ADDRESS_TYPES. |
| line1 | string | No | Primary street address information (building number, street name). |
| line2 | string | No | Secondary address information (apartment, suite, unit, etc.) |
| city | string | No | City or municipality name |
| state | string | No | Two character code for the state. Must be one of the STATES. |
| postal_code | string | No | ZIP or postal code for mail delivery |
| country | string | No | Two character code for the country where the address is located. Must be one of the COUNTRIES. |
Example
{
"subject_record_id": "sr_57WfSCnafMnxDiWMKcy3EW",
"person": {
"email": "[email protected]",
"first_name": "Sarah",
"middle_name": "Elizabeth",
"last_name": "Johnson",
"date_of_birth": "1985-07-15",
"tax_id": "123456789",
"citizenship": "US",
"phone_number": "5551234567",
"addresses": [
{
"type": "PRIMARY_RESIDENCE",
"line1": "123 Maple Avenue",
"line2": "Apartment 4B",
"city": "Portland",
"state": "OR",
"postal_code": "97204",
"country": "US"
}
]
}
}
Errors
| Error Code | HTTP Code | Possible Cause |
|---|---|---|
| BAD_REQUEST | 400 | Required parameters not provided. Enum value provided does not correspond to an available type. |
| ENTITY_NOT_FOUND | 400 | The peson_id provided does not exist. |
System Rule Violations
When a SYSTEM_RULE_VIOLATION error occurs, the response will include additional entity_type and sub_code fields to provide more specific information:
| Entity Type | Sub-code | Description |
|---|---|---|
| Business | OWNERSHIP_DATE_BEFORE_BIRTH_DATE | The ownership date cannot precede the person's date of birth. Ownership cannot begin before the person was born. |
| Business | CONTROL_PRONG_AGE_REQUIREMENT | Control prong owners must be at least 18 years of age. |
Updated 6 months ago