Create account

Examples

{
  account: {
    name: 'Blaname',
    code: 1234,
    accountable_type: 'AssetAccount',
    assignee_ids: [1, 2, 55]
  }
}
    

Params

Param name Description
account
required

Validations:

  • Must be a Hash

account[name]
required

Account name.

Validations:

  • Must be String

account[code]
required

Account code.

Validations:

  • Must be Integer

account[accountable_type]
required

Accepts string with the type of account: either “AssetAccount” or “ExpenseAccount”.

Validations:

  • Must be one of: AssetAccount, ExpenseAccount.

account[default_vat_id]
optional , nil allowed

Validations:

  • Must be Integer

account[assignee_ids]
optional , nil allowed

Ids of users assigned to this account. Passing nil here will remove all assignees.

Validations:

  • Must be an array of Integer

account[netsuite]
optional , nil allowed

NetSuite settings in free form hash

Validations:

  • Must be Hash