Update account
PUT /rest/v1/subjects/customers/:customer_id/accounts/:account_id
Parameters
Name |
Description |
customer[vc_code]
|
Code
|
customer[vc_name]
|
Name
|
customer[vc_account]
|
Account number
|
customer[n_sum_bal]
|
Current balance
|
customer[n_sum_reserved_total]
|
Reserved
|
customer[n_sum_reserved]
|
Current reserved amount
|
customer[n_sum_free]
|
Free amount
|
customer[n_max_credit_limit]
|
Maximum amount of credit limits
|
customer[d_end]
|
End date
|
customer[vc_rem]
|
Commentary
|
Request
Headers
Route
PUT /rest/v1/subjects/customers/78299201/accounts/78299501
Body
{
"account": {
"vc_rem": "Test VC_REM for account"
}
}
Response
Headers
Status
200 OK
Body
{
"account": {
"n_account_id": 78299501,
"n_currency_id": 1044,
"vc_code": "1099",
"vc_name": "Лицевой счет №1099",
"vc_account": "1099",
"vc_rem": "Test VC_REM for account",
"n_sum_bal": "2000",
"n_sum_free": "5000",
"n_max_credit_limit": null,
"n_sum_reserved_total": "0",
"n_sum_reserved": "0",
"permanent_credit_limit": {
"n_sum": "3000"
},
"temporary_credit_limit": {
"n_sum": null,
"d_end": null
},
"scheduled_services_credit_limit": {
"n_sum": null,
"d_end": null
},
"unscheduled_services_credit_limit": {
"n_sum": null,
"d_end": null
},
"actions": {
"edit": "http://example.org/rest/v1/subjects/customers/78299201/accounts/78299501/edit"
}
}
}