SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Accounts

POST

Create an Account

Creates a new account in the chart of accounts.

Parameters

organizationIdUUID!required

Organization ID

nameString!required

Account name

taxCodeIdUUID!required

CRA Tax Code code ID. Determines account type and classification. Use listTaxCodes to get available codes.

lastFourString

Last 4 digits of card/account for payment matching

parentIdUUID

Parent account ID for hierarchical accounts

Request
mutation {
  createAccount(
    organizationId: "a1b2c3d4-..."
    name: "Office Supplies"
    taxCodeId: "tax-code-uuid-for-8711"
  ) {
    account {
      id
      name
      accountType
      classification
      taxCode { code name }
    }
    success
    error
  }
}
Response
{
  "data": {
    "createAccount": {
      "account": {
        "id": "f7e6d5c4-...",
        "name": "Office Supplies",
        "accountType": "expense",
        "classification": "expense",
        "taxCode": {
          "code": "8711",
          "name": "Office stationery and supplies"
        }
      },
      "success": true,
      "error": null
    }
  }
}