Updates the default chart of accounts configuration for the business.
POST https://api.yourpayroll.com.au/api/v2/business/{businessId}/chartofaccounts
Parameter name | Value | Description | Additional |
---|---|---|---|
businessId | string | Required |
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"
}
]
}
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:
|
defaultAccounts.defaultExpenseSplitByLocation | boolean | Boolean |
defaultAccounts.defaultLiabilityAccountId | int32 |
Nullable |
defaultAccounts.defaultLiabilitySplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.defaultLiabilitySplitByLocation | boolean | Boolean |
defaultAccounts.employeeExpenseAccountId | int32 |
Nullable |
defaultAccounts.employeeExpenseSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.employeeExpenseSplitByLocation | boolean | Boolean |
defaultAccounts.employerLiabilityExpenseAccountId | int32 |
Nullable |
defaultAccounts.employerLiabilityExpenseSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.employerLiabilityExpenseSplitByLocation | boolean | Boolean |
defaultAccounts.employerLiabilityLiabilityAccountId | int32 |
Nullable |
defaultAccounts.employerLiabilityLiabilitySplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.employerLiabilityLiabilitySplitByLocation | boolean | Boolean |
defaultAccounts.paygExpenseAccountId | int32 |
Nullable |
defaultAccounts.paygExpenseSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.paygExpenseSplitByLocation | boolean | Boolean |
defaultAccounts.paygLiabilityAccountId | int32 |
Nullable |
defaultAccounts.paygLiabilityAccountSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.paygLiabilityAccountSplitByLocation | boolean | Boolean |
defaultAccounts.paymentAccountId | int32 |
Nullable |
defaultAccounts.paymentAccountSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.paymentAccountSplitByLocation | boolean | Boolean |
defaultAccounts.superannuationExpenseAccountId | int32 |
Nullable |
defaultAccounts.superannuationExpenseSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.superannuationExpenseSplitByLocation | boolean | Boolean |
defaultAccounts.superannuationLiabilityAccountId | int32 |
Nullable |
defaultAccounts.superannuationLiabilitySplit | string |
AccountSplit
Possible values are:
|
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 |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK OK |
AuChartOfAccountsModel |