Create account
POST /rest/v1/subjects/customers/:customer_id/accounts
Parameters
Name |
Description |
customer[n_currency_id]
|
Fixed collection fee currency
|
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
POST /rest/v1/subjects/customers/78299201/accounts
Body
{
"account": {
"n_currency_id": 1044,
"vc_code": "New test account",
"vc_name": "New test account №test_account",
"vc_account": "test_account",
"vc_rem": null,
"n_max_credit_limit": null
}
}
Response
Headers
Status
201 Created
Body
{
"account": {
"n_account_id": 93730001,
"n_currency_id": 1044,
"vc_name": "New test account №test_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/93730001/edit"
}
}
}