Accounts API

Create account

POST /rest/v1/subjects/customers/:customer_id/accounts

Request

Headers

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

Route

POST /rest/v1/subjects/customers/78299201/accounts

Body

{"account":{"n_currency_id":1044,"vc_code":"New test account","vc_name":"New test account \u2116test_account","vc_account":"test_account","vc_rem":null,"n_max_credit_limit":null}}

Response

Headers

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

Status

201 Created

Body

{"account":{"n_account_id":88434001,"n_currency_id":1044,"vc_name":"New test account \u2116test_account","vc_code":"New test account","vc_account":"test_account","vc_rem":null,"n_sum_bal":"0","n_sum_free":"0","n_max_credit_limit":null,"n_sum_reserved_total":"0","n_sum_reserved":"0","permanent_credit_limit":{"n_sum":null},"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/88434001/edit"}}}