_new

Create a new Account Category

Required Parameters

name

Define a name for this category

tax_rate

Provide the percentage tax rate to be applied to this category (integer/float)

group_id

Provide the id of an existing Account Category Group

Example

FM_api('AccountCategory_new', ['name'=>'Cost of Sales', 'tax_rate'=>'20', 'group_id'=>'10']);

Result

On Success

Returns id of newly-created Account Category {"ok":1, "id":70}

On Failure

If invalid parameter supplied (e.g. unrecognised group_id), returns false.

false

Last updated