Updates the default chart of accounts configuration for the business.
POST https://apisg.yourpayroll.io/api/v2/business/{businessId}/chartofaccounts
Parameter name | Value | Description | Additional |
---|---|---|---|
businessId | string | Required |
The request body takes a complete SgChartOfAccountsGroupModel resource, containing the following writable properties:
{
"deductionCategories": [
{
"expenseAccountId": "int32",
"id": "int32",
"liabilityAccountId": "int32",
"name": "string",
"splitByLocation": "boolean"
}
],
"defaultAccounts": {
"cpfEmployeeLiabilityAccountId": "int32",
"cpfEmployeeLiabilitySplit": "string",
"cpfEmployeeLiabilitySplitByLocation": "boolean",
"cpfEmployerExpenseAccountId": "int32",
"cpfEmployerExpenseSplit": "string",
"cpfEmployerExpenseSplitByLocation": "boolean",
"cpfEmployerLiabilityAccountId": "int32",
"cpfEmployerLiabilitySplit": "string",
"cpfEmployerLiabilitySplitByLocation": "boolean",
"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",
"paymentAccountId": "int32",
"paymentAccountSplit": "string",
"paymentAccountSplitByLocation": "boolean",
"sdlEmployerExpenseAccountId": "int32",
"sdlEmployerExpenseSplit": "string",
"sdlEmployerExpenseSplitByLocation": "boolean",
"sdlEmployerLiabilityAccountId": "int32",
"sdlEmployerLiabilitySplit": "string",
"sdlEmployerLiabilitySplitByLocation": "boolean",
"taxLiabilityAccountId": "int32",
"taxLiabilitySplitByLocation": "boolean"
},
"employeeExpenseCategories": [
{
"expenseAccountId": "int32",
"id": "int32",
"name": "string",
"splitByLocation": "boolean"
}
],
"employerLiabilityCategories": [
{
"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 | SgChartOfAccountsDefaultAccountsModel |
defaultAccounts.cpfEmployeeLiabilityAccountId | int32 |
Nullable |
defaultAccounts.cpfEmployeeLiabilitySplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.cpfEmployeeLiabilitySplitByLocation | boolean | Boolean |
defaultAccounts.cpfEmployerExpenseAccountId | int32 |
Nullable |
defaultAccounts.cpfEmployerExpenseSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.cpfEmployerExpenseSplitByLocation | boolean | Boolean |
defaultAccounts.cpfEmployerLiabilityAccountId | int32 |
Nullable |
defaultAccounts.cpfEmployerLiabilitySplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.cpfEmployerLiabilitySplitByLocation | boolean | Boolean |
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.paymentAccountId | int32 |
Nullable |
defaultAccounts.paymentAccountSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.paymentAccountSplitByLocation | boolean | Boolean |
defaultAccounts.sdlEmployerExpenseAccountId | int32 |
Nullable |
defaultAccounts.sdlEmployerExpenseSplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.sdlEmployerExpenseSplitByLocation | boolean | Boolean |
defaultAccounts.sdlEmployerLiabilityAccountId | int32 |
Nullable |
defaultAccounts.sdlEmployerLiabilitySplit | string |
AccountSplit
Possible values are:
|
defaultAccounts.sdlEmployerLiabilitySplitByLocation | boolean | Boolean |
defaultAccounts.taxLiabilityAccountId | int32 |
Nullable |
defaultAccounts.taxLiabilitySplitByLocation | 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 |
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 |
SgChartOfAccountsModel |