Accounts API

Update account

PUT /rest/v1/subjects/customers/:customer_id/accounts/:account_id

Request

Headers

Accept: application/json
Content-Type: application/json

Route

PUT /rest/v1/subjects/customers/78299201/accounts/78299501

Body

{"account":{"vc_rem":"Test VC_REM for account"}}

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 654

Status

200 OK

Body

{"account":{"n_account_id":78299501,"n_currency_id":1044,"vc_code":"1099","vc_name":"\u041b\u0438\u0446\u0435\u0432\u043e\u0439 \u0441\u0447\u0435\u0442 \u21161099","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"}}}