Customers
Edit customer information
Edit customer information.
This is a PUT endpoint and so any information in the payload will be treated as the source of truth. Prior to calling this endpoint, please do a GET request to pull down the most recent information. To disable an email/phone/address do not send it in the payload.
put/customers/{customerId}
Request
- Base URLhttps://api.trueaccord.com/api/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"dateOfBirth": {
"day": 6,
"month": 4,
"year": 2012
},
"addresses": [
{
"streetLine1": "101 N First St",
"streetLine2": "Apt 2",
"city": "San Jose",
"state": "CA",
"zipcode": "55555",
"countryCode": "US"
}
],
"emails": [
{
"email": "example@trueaccord.com"
}
],
"comments": [
{
"comment": "Transaction failed due to insufficient funds."
}
],
"reference": "MyRef",
"debts": [
{
"initialPrincipal": {
"amount": 30000,
"currency": "USD"
},
"initialInterest": {
"amount": 30000,
"currency": "USD"
},
"initialFees": {
"amount": 30000,
"currency": "USD"
},
"postChargeOffInformation": {
"balanceAtChargeOff": {
"amount": 30000,
"currency": "USD"
},
"feesAccruedSinceChargeOff": {
"amount": 30000,
"currency": "USD"
},
"interestAccruedSinceChargeOff": {
"amount": 30000,
"currency": "USD"
},
"totalPaidSinceChargeOff": {
"amount": 30000,
"currency": "USD"
}
}
}
],
"ssn": "123456789"
}Response
Returns the updated customer information in the TrueAccord system.
Example response
{
"meta": {
"id": "3ef84ff19ddc",
"isActive": true
},
"dateOfBirth": {
"day": 6,
"month": 4,
"year": 2012
},
"addresses": [
{
"streetLine1": "101 N First St",
"streetLine2": "Apt 2",
"city": "San Jose",
"state": "CA",
"zipcode": "55555",
"countryCode": "US"
}
],
"emails": [
{
"email": "example@trueaccord.com"
}
],
"comments": [
{
"comment": "Transaction failed due to insufficient funds."
}
],
"reference": "MyRef",
"debts": [
{
"initialPrincipal": {
"amount": 30000,
"currency": "USD"
},
"initialInterest": {
"amount": 30000,
"currency": "USD"
},
"initialFees": {
"amount": 30000,
"currency": "USD"
},
"postChargeOffInformation": {
"balanceAtChargeOff": {
"amount": 30000,
"currency": "USD"
},
"feesAccruedSinceChargeOff": {
"amount": 30000,
"currency": "USD"
},
"interestAccruedSinceChargeOff": {
"amount": 30000,
"currency": "USD"
},
"totalPaidSinceChargeOff": {
"amount": 30000,
"currency": "USD"
}
}
}
],
"ssn": "123456789"
}Changes
No recorded changes to this operation across all 1 revision of this API.