Create account
{ "account": { "name": "Blaname", "code": "1234", "accountable_type": "AssetAccount", "assignee_ids": [1, 2, 55] } }
Param name | Description |
---|---|
account required |
Validations:
|
account[name] required |
Account name. Validations:
|
account[code] required |
Account code. Validations:
|
account[deactivated] optional , nil allowed |
Whether account should be hidden from transaction form. Default: false. Possible values: either 1 or 0. Validations:
|
account[accountable_type] required |
Accepts string with the type of account: either “AssetAccount” or “ExpenseAccount”. Validations:
|
account[default_vat_id] optional , nil allowed |
Validations:
|
account[assignee_ids] optional , nil allowed |
Ids of users assigned to this account. Passing nil here will remove all assignees. Validations:
|
account[netsuite] optional , nil allowed |
NetSuite settings in free form hash Validations:
|
account[limit] optional , nil allowed |
For Expense Account only. Combined receipts total amount limit in company currency per user for this Expense Account. Validations:
|
account[limit_type] optional , nil allowed |
For Expense Account only. Validations:
|
account[show_participants_field] optional , nil allowed |
For Expense Account only. Show participants field (with label Participants) on Receipt form when that Expense Account is selected. Defaults to false Validations:
|