Updates the default chart of accounts configuration for the business.

Request

POST https://api.yourpayroll.com.au/api/v2/business/{businessId}/chartofaccounts

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

The request body takes a complete AuChartOfAccountsGroupModel resource, containing the following writable properties:

{
    "deductionCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "liabilityAccountId": "int32",
            "name": "string",
            "splitByLocation": "boolean"
        }
    ],
    "defaultAccounts": {
        "defaultExpenseAccountId": "int32",
        "defaultExpenseSplit": "string",
        "defaultExpenseSplitByLocation": "boolean",
        "defaultLiabilityAccountId": "int32",
        "defaultLiabilitySplit": "string",
        "defaultLiabilitySplitByLocation": "boolean",
        "employeeExpenseAccountId": "int32",
        "employeeExpenseSplit": "string",
        "employeeExpenseSplitByLocation": "boolean",
        "employerLiabilityExpenseAccountId": "int32",
        "employerLiabilityExpenseSplit": "string",
        "employerLiabilityExpenseSplitByLocation": "boolean",
        "employerLiabilityLiabilityAccountId": "int32",
        "employerLiabilityLiabilitySplit": "string",
        "employerLiabilityLiabilitySplitByLocation": "boolean",
        "paygExpenseAccountId": "int32",
        "paygExpenseSplit": "string",
        "paygExpenseSplitByLocation": "boolean",
        "paygLiabilityAccountId": "int32",
        "paygLiabilityAccountSplit": "string",
        "paygLiabilityAccountSplitByLocation": "boolean",
        "paymentAccountId": "int32",
        "paymentAccountSplit": "string",
        "paymentAccountSplitByLocation": "boolean",
        "superannuationExpenseAccountId": "int32",
        "superannuationExpenseSplit": "string",
        "superannuationExpenseSplitByLocation": "boolean",
        "superannuationLiabilityAccountId": "int32",
        "superannuationLiabilitySplit": "string",
        "superannuationLiabilitySplitByLocation": "boolean"
    },
    "employeeExpenseCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "name": "string",
            "splitByLocation": "boolean"
        }
    ],
    "employerLiabilityCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "liabilityAccountId": "int32",
            "name": "string",
            "splitByLocation": "boolean"
        }
    ],
    "leaveCategories": [
        {
            "accrueFromContingentPeriod": "boolean",
            "expenseAccountId": "int32",
            "id": "int32",
            "liabilityAccountId": "int32",
            "name": "string",
            "splitByLocation": "boolean"
        }
    ],
    "payCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "name": "string",
            "splitByLocation": "boolean"
        }
    ]
}

Properties

Name Type Description
deductionCategories[] array
deductionCategories[].expenseAccountId int32 Nullable
deductionCategories[].id int32 Int32
deductionCategories[].liabilityAccountId int32 Nullable
deductionCategories[].name string String
deductionCategories[].splitByLocation boolean Boolean
defaultAccounts object AuChartOfAccountsDefaultAccountsModel
defaultAccounts.defaultExpenseAccountId int32 Nullable
defaultAccounts.defaultExpenseSplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.defaultExpenseSplitByLocation boolean Boolean
defaultAccounts.defaultLiabilityAccountId int32 Nullable
defaultAccounts.defaultLiabilitySplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.defaultLiabilitySplitByLocation boolean Boolean
defaultAccounts.employeeExpenseAccountId int32 Nullable
defaultAccounts.employeeExpenseSplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.employeeExpenseSplitByLocation boolean Boolean
defaultAccounts.employerLiabilityExpenseAccountId int32 Nullable
defaultAccounts.employerLiabilityExpenseSplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.employerLiabilityExpenseSplitByLocation boolean Boolean
defaultAccounts.employerLiabilityLiabilityAccountId int32 Nullable
defaultAccounts.employerLiabilityLiabilitySplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.employerLiabilityLiabilitySplitByLocation boolean Boolean
defaultAccounts.paygExpenseAccountId int32 Nullable
defaultAccounts.paygExpenseSplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.paygExpenseSplitByLocation boolean Boolean
defaultAccounts.paygLiabilityAccountId int32 Nullable
defaultAccounts.paygLiabilityAccountSplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.paygLiabilityAccountSplitByLocation boolean Boolean
defaultAccounts.paymentAccountId int32 Nullable
defaultAccounts.paymentAccountSplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.paymentAccountSplitByLocation boolean Boolean
defaultAccounts.superannuationExpenseAccountId int32 Nullable
defaultAccounts.superannuationExpenseSplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.superannuationExpenseSplitByLocation boolean Boolean
defaultAccounts.superannuationLiabilityAccountId int32 Nullable
defaultAccounts.superannuationLiabilitySplit string AccountSplit

Possible values are:

  • None
  • Location
  • EmployingEntity
defaultAccounts.superannuationLiabilitySplitByLocation boolean Boolean
employeeExpenseCategories[] array
employeeExpenseCategories[].expenseAccountId int32 Nullable
employeeExpenseCategories[].id int32 Int32
employeeExpenseCategories[].name string String
employeeExpenseCategories[].splitByLocation boolean Boolean
employerLiabilityCategories[] array
employerLiabilityCategories[].expenseAccountId int32 Nullable
employerLiabilityCategories[].id int32 Int32
employerLiabilityCategories[].liabilityAccountId int32 Nullable
employerLiabilityCategories[].name string String
employerLiabilityCategories[].splitByLocation boolean Boolean
leaveCategories[] array
leaveCategories[].accrueFromContingentPeriod boolean Boolean
leaveCategories[].expenseAccountId int32 Nullable
leaveCategories[].id int32 Int32
leaveCategories[].liabilityAccountId int32 Nullable
leaveCategories[].name string String
leaveCategories[].splitByLocation boolean Boolean
payCategories[] array
payCategories[].expenseAccountId int32 Nullable
payCategories[].id int32 Int32
payCategories[].name string String
payCategories[].splitByLocation boolean Boolean

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

OK

AuChartOfAccountsModel