Smartbooks API icon

Smartbooks API

Interact with Smartbooks API

Module → Add Account

AI-generated

Summary

Adds an account to a subaccounts table within a specific module for a company.

Inputs

  • companyCode (required) — The company code as seen in the URL.
  • moduleCode (required) — The specified module will be used to retrieve data from.
  • subaccountsTableCode (required) — The specified subaccounts table will be used to retrieve data from.
  • code (required) — The code for the account to be added.
  • description (required) — The description of the account.
  • attributes (required) — A JSON array of additional attributes for the account.
  • requestOptions — Options for batching, SSL, proxy, and timeout.

Output shape

a single record

The API response is returned as a single item. Requires the modeling:write scope.

Examples

Example 1: Add a new account to a module's subaccounts table

Set companyCode, moduleCode, subaccountsTableCode, code, and description.

Example 2: Add an account with custom attributes

Provide a JSON array for the attributes parameter alongside other required fields.

Links

Discussion