Update accounts
Use this endpoint to update accounts for customers.
This endpoint requires a JSON body be posted.
Request Body
| Property |
Type |
Required |
Description |
| accounts |
Account[] |
Required |
A list of accounts |
Output
This endpoint returns an HTTP response indicating success (200) or failure (500).
Example
This example shows the following updates taking place:
- Account's portfolio enrollment is changing
- Account's status is being set to
CLOSED
Request
| PUT /v2/data/customers/:sourceCustomerId/accounts
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | {
"accounts": [
{
"sourceAccountId": "42c57311-25f9-4501-b9db-e78afa73c0e3",
"sourceCustomerIds": [
"afa2r21-25f9-4501-b9db-e78afa73c0e3",
"2e052a88-6ae1-4b78-8d96-f3a037402567"
],
"primarySourceCustomerId": "afa2r21-25f9-4501-b9db-e78afa73c0e3",
"status": "CLOSED",
"type": "SBDDA",
"sourcePortfolioId": "76afcd28-b494-4b29-b7f2-3eb614a92f97",
"accountOpenDate": "2023-06-22T13:00:16Z",
"accountCloseDate": "2023-08-22T13:00:16Z"
}
]
}
|
Response
| {
"requestId": "380052b4-3a64-4952-b640-ba696eb9f44b"
}
|