Persons
Update person
Update person by ID.
Note that if:
- legal address is provided in the request, AND
- shipping_address is not provided in the request, AND
- the customer resource does not have shipping_address then shipping_address will be set to a copy of the legal_address.
patch/persons/{person_id}
Path parameters
person_idstring uuid required
Example:7d943c51-e4ff-4e57-9558-08cab6b963c7
Person's unique identifier.
Headers
Idempotency-Keystring
Example:7d943c51-e4ff-4e57-9558-08cab6b963c7
An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
Request body
Example request
{
"vendor_info": {
"vendor_data": {
"loanpro": {
"customer_id": 12345
}
}
},
"ban_status": "ALLOWED",
"chosen_name": "Annie",
"creation_time": "2010-05-06T12:23:34.321Z",
"customer_active": "2010-05-06T12:23:34.321Z",
"dob": "2000-01-01",
"email": "alice@example.com",
"first_name": "Jane",
"id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"is_customer": true,
"is_user": true,
"last_name": "Smith",
"last_updated_time": "2010-05-06T12:23:34.321Z",
"legal_address": {
"address_line_1": "100 Main St.",
"address_line_2": "Suite 99",
"address_type": "SHIPPING",
"city": "New York",
"country_code": "US",
"id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"is_registered_agent": true,
"nickname": "Home",
"postal_code": "28620",
"state": "NY"
},
"middle_name": "Anne",
"phone_number": "+14374570680",
"shipping_address": {
"address_line_1": "100 Main St.",
"address_line_2": "Suite 99",
"address_type": "SHIPPING",
"city": "New York",
"country_code": "US",
"id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"is_registered_agent": true,
"nickname": "Home",
"postal_code": "28620",
"state": "NY"
},
"spend_control_ids": [
"7d943c51-e4ff-4e57-9558-08cab6b963c7"
],
"ssn": "123-45-6789",
"status": "ACTIVE",
"tenant": "abcdef_ghijkl",
"verification_last_run": "2010-05-06T12:23:34.321Z",
"verification_status": "ACCEPTED"
}Response
Updated person representation.
Example response
{
"ban_status": "ALLOWED",
"chosen_name": "Annie",
"creation_time": "2010-05-06T12:23:34.321Z",
"customer_active": "2010-05-06T12:23:34.321Z",
"dob": "2000-01-01",
"email": "alice@example.com",
"first_name": "Jane",
"id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"is_customer": true,
"is_user": true,
"last_name": "Smith",
"last_updated_time": "2010-05-06T12:23:34.321Z",
"legal_address": {
"address_line_1": "100 Main St.",
"address_line_2": "Suite 99",
"address_type": "SHIPPING",
"city": "New York",
"country_code": "US",
"id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"is_registered_agent": true,
"nickname": "Home",
"postal_code": "28620",
"state": "NY"
},
"middle_name": "Anne",
"phone_number": "+14374570680",
"shipping_address": {
"address_line_1": "100 Main St.",
"address_line_2": "Suite 99",
"address_type": "SHIPPING",
"city": "New York",
"country_code": "US",
"id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"is_registered_agent": true,
"nickname": "Home",
"postal_code": "28620",
"state": "NY"
},
"spend_control_ids": [
"7d943c51-e4ff-4e57-9558-08cab6b963c7"
],
"ssn": "123-45-6789",
"status": "ACTIVE",
"tenant": "abcdef_ghijkl",
"verification_last_run": "2010-05-06T12:23:34.321Z",
"verification_status": "ACCEPTED",
"vendor_info": {
"vendor_data": {
"loanpro": {
"customer_id": 12345
}
}
},
"personal_ids": [
{
"id": "7d943c51-e4ff-4e57-9558-08cab6b963c7",
"id_type": "SSN",
"identifier": "123-45-6789",
"expiry_date": "2020-01-01",
"issue_date": "2020-01-01"
}
]
}