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:
|
|
account[show_on_receipt_form]
optional , nil allowed |
For Expense Account only. Allow selecting the account as Purchase type on Receipt form. Default: true. Validations:
|
|
account[pay_to_vendor]
optional , nil allowed |
For Asset Account only in Company that has Vendor feature enabled. Send payment of reimbursable receipts with this account to Vendor instead of User. Default: false. Validations:
|
|
account[approvers_attributes]
optional , nil allowed |
Add/Remove account approvers Validations:
|
|
account[approvers_attributes][id]
optional , nil allowed |
Account approver id, required if user approver already exists. If it’s not supplied, new account approver will be added Validations:
|
|
account[approvers_attributes][approver_id]
required |
Approver id Validations:
|
|
account[approvers_attributes][operator]
required |
Operator specifying approver process logic Validations:
|
|
account[approvers_attributes][_destroy]
optional , nil allowed |
Pass “true” here to delete an existing approver Validations:
|