v1
latestOpenAPI 3.0.12026-07-135618141.0 KBAccounts
Update the display order of accounts in user
Updates the display order of accounts belonging to the user, by accepting an array of accounts in their new display order.
put/users/{id}/accounts
Path parameters
idinteger required
The unique identifier of the user.
Request body
Example request
{
"accounts": [
{
"id": 42,
"title": "Bank of Foo",
"currency_code": "NZD",
"type": "bank",
"primary_transaction_account": {
"id": 96027,
"name": "Sample Credit",
"number": "ASBCRD44554",
"current_balance": 2694.39,
"current_balance_date": "2015-07-03",
"current_balance_in_base_currency": 4041.59,
"current_balance_exchange_rate": 1.5,
"safe_balance": 2694.39,
"safe_balance_in_base_currency": 4041.59,
"starting_balance": 3547.45,
"starting_balance_date": "2015-03-15",
"created_at": "2015-03-17T02:42:10Z",
"updated_at": "2015-07-02T22:14:49Z",
"institution": {
"currency_code": "NZD",
"title": "Bank of Foo",
"updated_at": "2015-04-21T22:42:22Z",
"created_at": "2015-04-21T22:42:22Z",
"id": 57
},
"currency_code": "NZD",
"type": "bank"
},
"primary_scenario": {
"id": 42,
"title": "Wedding",
"interest_rate": 2.4,
"interest_rate_repeat_id": 4,
"type": "no-interest",
"minimum-value": 4000,
"maximum-value": 42,
"starting_balance": 2450,
"starting_balance_date": "2018-02-27",
"closing_balance": 5431.2,
"closing_balance_date": "2018-02-27",
"current_balance": 5431.2,
"current_balance_date": "2018-02-27",
"current_balance_in_base_currency": 8146.8,
"current_balance_exchange_rate": 1.5,
"safe_balance": 5431.2,
"safe_balance_in_base_currency": 8146.8,
"created_at": "2015-04-21T22:42:22Z",
"updated_at": "2015-04-21T22:42:22Z"
},
"transaction_accounts": [
{
"id": 96027,
"name": "Sample Credit",
"number": "ASBCRD44554",
"current_balance": 2694.39,
"current_balance_date": "2015-07-03",
"current_balance_in_base_currency": 4041.59,
"current_balance_exchange_rate": 1.5,
"safe_balance": 2694.39,
"safe_balance_in_base_currency": 4041.59,
"starting_balance": 3547.45,
"starting_balance_date": "2015-03-15",
"created_at": "2015-03-17T02:42:10Z",
"updated_at": "2015-07-02T22:14:49Z",
"institution": {
"currency_code": "NZD",
"title": "Bank of Foo",
"updated_at": "2015-04-21T22:42:22Z",
"created_at": "2015-04-21T22:42:22Z",
"id": 57
},
"currency_code": "NZD",
"type": "bank"
}
],
"scenarios": [
{
"id": 42,
"title": "Wedding",
"interest_rate": 2.4,
"interest_rate_repeat_id": 4,
"type": "no-interest",
"minimum-value": 4000,
"maximum-value": 42,
"starting_balance": 2450,
"starting_balance_date": "2018-02-27",
"closing_balance": 5431.2,
"closing_balance_date": "2018-02-27",
"current_balance": 5431.2,
"current_balance_date": "2018-02-27",
"current_balance_in_base_currency": 8146.8,
"current_balance_exchange_rate": 1.5,
"safe_balance": 5431.2,
"safe_balance_in_base_currency": 8146.8,
"created_at": "2015-04-21T22:42:22Z",
"updated_at": "2015-04-21T22:42:22Z"
}
],
"created_at": "2018-02-27",
"updated_at": "2018-02-27",
"current_balance": 2694.39,
"current_balance_date": "2018-02-27",
"current_balance_in_base_currency": 4041.59,
"current_balance_exchange_rate": 1.5,
"safe_balance": 2694.39,
"safe_balance_in_base_currency": 4041.59
}
]
}Response
Success
Example response
[
{
"id": 42,
"title": "Bank of Foo",
"currency_code": "NZD",
"type": "bank",
"primary_transaction_account": {
"id": 96027,
"name": "Sample Credit",
"number": "ASBCRD44554",
"current_balance": 2694.39,
"current_balance_date": "2015-07-03",
"current_balance_in_base_currency": 4041.59,
"current_balance_exchange_rate": 1.5,
"safe_balance": 2694.39,
"safe_balance_in_base_currency": 4041.59,
"starting_balance": 3547.45,
"starting_balance_date": "2015-03-15",
"created_at": "2015-03-17T02:42:10Z",
"updated_at": "2015-07-02T22:14:49Z",
"institution": {
"currency_code": "NZD",
"title": "Bank of Foo",
"updated_at": "2015-04-21T22:42:22Z",
"created_at": "2015-04-21T22:42:22Z",
"id": 57
},
"currency_code": "NZD",
"type": "bank"
},
"primary_scenario": {
"id": 42,
"title": "Wedding",
"interest_rate": 2.4,
"interest_rate_repeat_id": 4,
"type": "no-interest",
"minimum-value": 4000,
"maximum-value": 42,
"starting_balance": 2450,
"starting_balance_date": "2018-02-27",
"closing_balance": 5431.2,
"closing_balance_date": "2018-02-27",
"current_balance": 5431.2,
"current_balance_date": "2018-02-27",
"current_balance_in_base_currency": 8146.8,
"current_balance_exchange_rate": 1.5,
"safe_balance": 5431.2,
"safe_balance_in_base_currency": 8146.8,
"created_at": "2015-04-21T22:42:22Z",
"updated_at": "2015-04-21T22:42:22Z"
},
"transaction_accounts": [
{
"id": 96027,
"name": "Sample Credit",
"number": "ASBCRD44554",
"current_balance": 2694.39,
"current_balance_date": "2015-07-03",
"current_balance_in_base_currency": 4041.59,
"current_balance_exchange_rate": 1.5,
"safe_balance": 2694.39,
"safe_balance_in_base_currency": 4041.59,
"starting_balance": 3547.45,
"starting_balance_date": "2015-03-15",
"created_at": "2015-03-17T02:42:10Z",
"updated_at": "2015-07-02T22:14:49Z",
"institution": {
"currency_code": "NZD",
"title": "Bank of Foo",
"updated_at": "2015-04-21T22:42:22Z",
"created_at": "2015-04-21T22:42:22Z",
"id": 57
},
"currency_code": "NZD",
"type": "bank"
}
],
"scenarios": [
{
"id": 42,
"title": "Wedding",
"interest_rate": 2.4,
"interest_rate_repeat_id": 4,
"type": "no-interest",
"minimum-value": 4000,
"maximum-value": 42,
"starting_balance": 2450,
"starting_balance_date": "2018-02-27",
"closing_balance": 5431.2,
"closing_balance_date": "2018-02-27",
"current_balance": 5431.2,
"current_balance_date": "2018-02-27",
"current_balance_in_base_currency": 8146.8,
"current_balance_exchange_rate": 1.5,
"safe_balance": 5431.2,
"safe_balance_in_base_currency": 8146.8,
"created_at": "2015-04-21T22:42:22Z",
"updated_at": "2015-04-21T22:42:22Z"
}
],
"created_at": "2018-02-27",
"updated_at": "2018-02-27",
"current_balance": 2694.39,
"current_balance_date": "2018-02-27",
"current_balance_in_base_currency": 4041.59,
"current_balance_exchange_rate": 1.5,
"safe_balance": 2694.39,
"safe_balance_in_base_currency": 4041.59
}
]