Updates the default chart of accounts configuration for the business.

Request

POST https://apimy.yourpayroll.io/api/v2/business/{businessId}/chartofaccounts

Path parameters

Parameter name Value Description Additional
businessId string Required

Request body

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

{
    "deductionCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "liabilityAccountId": "int32",
            "name": "string",
            "splitByLocation": "boolean"
        }
    ],
    "defaultAccounts": {
        "benefitsInKindExpenseAccountId": "int32",
        "benefitsInKindExpenseSplitByLocation": "boolean",
        "benefitsInKindLiabilityAccountId": "int32",
        "benefitsInKindLiabilitySplitByLocation": "boolean",
        "cp38ExpenseAccountId": "int32",
        "cp38ExpenseSplitByLocation": "boolean",
        "cp38LiabilityAccountId": "int32",
        "cp38LiabilitySplitByLocation": "boolean",
        "defaultExpenseAccountId": "int32",
        "defaultExpenseSplitByLocation": "boolean",
        "defaultLiabilityAccountId": "int32",
        "defaultLiabilitySplitByLocation": "boolean",
        "eisEmployeeLiabilityAccountId": "int32",
        "eisEmployeeLiabilitySplitByLocation": "boolean",
        "eisEmployerExpenseAccountId": "int32",
        "eisEmployerExpenseSplitByLocation": "boolean",
        "eisEmployerLiabilityAccountId": "int32",
        "eisEmployerLiabilitySplitByLocation": "boolean",
        "employeeExpenseAccountId": "int32",
        "employeeExpenseSplitByLocation": "boolean",
        "employerLiabilityExpenseAccountId": "int32",
        "employerLiabilityExpenseSplitByLocation": "boolean",
        "employerLiabilityLiabilityAccountId": "int32",
        "employerLiabilityLiabilitySplitByLocation": "boolean",
        "epfEmployeeLiabilityAccountId": "int32",
        "epfEmployeeLiabilitySplitByLocation": "boolean",
        "epfEmployerExpenseAccountId": "int32",
        "epfEmployerExpenseSplitByLocation": "boolean",
        "epfEmployerLiabilityAccountId": "int32",
        "epfEmployerLiabilitySplitByLocation": "boolean",
        "hrdfEmployerExpenseAccountId": "int32",
        "hrdfEmployerExpenseSplitByLocation": "boolean",
        "hrdfEmployerLiabilityAccountId": "int32",
        "hrdfEmployerLiabilitySplitByLocation": "boolean",
        "paymentAccountId": "int32",
        "paymentAccountSplitByLocation": "boolean",
        "pcbBorneByEmployerExpenseAccountId": "int32",
        "pcbBorneByEmployerExpenseSplitByLocation": "boolean",
        "pcbBorneByEmployerLiabilityAccountId": "int32",
        "pcbBorneByEmployerLiabilitySplitByLocation": "boolean",
        "pcbLiabilityAccountId": "int32",
        "pcbLiabilitySplitByLocation": "boolean",
        "socsoEmployeeLiabilityAccountId": "int32",
        "socsoEmployeeLiabilitySplitByLocation": "boolean",
        "socsoEmployerExpenseAccountId": "int32",
        "socsoEmployerExpenseSplitByLocation": "boolean",
        "socsoEmployerLiabilityAccountId": "int32",
        "socsoEmployerLiabilitySplitByLocation": "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"
        }
    ]
}

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 MyChartOfAccountsDefaultAccountsModel
defaultAccounts.benefitsInKindExpenseAccountId int32 Nullable
defaultAccounts.benefitsInKindExpenseSplitByLocation boolean Boolean
defaultAccounts.benefitsInKindLiabilityAccountId int32 Nullable
defaultAccounts.benefitsInKindLiabilitySplitByLocation boolean Boolean
defaultAccounts.cp38ExpenseAccountId int32 Nullable
defaultAccounts.cp38ExpenseSplitByLocation boolean Boolean
defaultAccounts.cp38LiabilityAccountId int32 Nullable
defaultAccounts.cp38LiabilitySplitByLocation boolean Boolean
defaultAccounts.defaultExpenseAccountId int32 Nullable
defaultAccounts.defaultExpenseSplitByLocation boolean Boolean
defaultAccounts.defaultLiabilityAccountId int32 Nullable
defaultAccounts.defaultLiabilitySplitByLocation boolean Boolean
defaultAccounts.eisEmployeeLiabilityAccountId int32 Nullable
defaultAccounts.eisEmployeeLiabilitySplitByLocation boolean Boolean
defaultAccounts.eisEmployerExpenseAccountId int32 Nullable
defaultAccounts.eisEmployerExpenseSplitByLocation boolean Boolean
defaultAccounts.eisEmployerLiabilityAccountId int32 Nullable
defaultAccounts.eisEmployerLiabilitySplitByLocation boolean Boolean
defaultAccounts.employeeExpenseAccountId int32 Nullable
defaultAccounts.employeeExpenseSplitByLocation boolean Boolean
defaultAccounts.employerLiabilityExpenseAccountId int32 Nullable
defaultAccounts.employerLiabilityExpenseSplitByLocation boolean Boolean
defaultAccounts.employerLiabilityLiabilityAccountId int32 Nullable
defaultAccounts.employerLiabilityLiabilitySplitByLocation boolean Boolean
defaultAccounts.epfEmployeeLiabilityAccountId int32 Nullable
defaultAccounts.epfEmployeeLiabilitySplitByLocation boolean Boolean
defaultAccounts.epfEmployerExpenseAccountId int32 Nullable
defaultAccounts.epfEmployerExpenseSplitByLocation boolean Boolean
defaultAccounts.epfEmployerLiabilityAccountId int32 Nullable
defaultAccounts.epfEmployerLiabilitySplitByLocation boolean Boolean
defaultAccounts.hrdfEmployerExpenseAccountId int32 Nullable
defaultAccounts.hrdfEmployerExpenseSplitByLocation boolean Boolean
defaultAccounts.hrdfEmployerLiabilityAccountId int32 Nullable
defaultAccounts.hrdfEmployerLiabilitySplitByLocation boolean Boolean
defaultAccounts.paymentAccountId int32 Nullable
defaultAccounts.paymentAccountSplitByLocation boolean Boolean
defaultAccounts.pcbBorneByEmployerExpenseAccountId int32 Nullable
defaultAccounts.pcbBorneByEmployerExpenseSplitByLocation boolean Boolean
defaultAccounts.pcbBorneByEmployerLiabilityAccountId int32 Nullable
defaultAccounts.pcbBorneByEmployerLiabilitySplitByLocation boolean Boolean
defaultAccounts.pcbLiabilityAccountId int32 Nullable
defaultAccounts.pcbLiabilitySplitByLocation boolean Boolean
defaultAccounts.socsoEmployeeLiabilityAccountId int32 Nullable
defaultAccounts.socsoEmployeeLiabilitySplitByLocation boolean Boolean
defaultAccounts.socsoEmployerExpenseAccountId int32 Nullable
defaultAccounts.socsoEmployerExpenseSplitByLocation boolean Boolean
defaultAccounts.socsoEmployerLiabilityAccountId int32 Nullable
defaultAccounts.socsoEmployerLiabilitySplitByLocation 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

Response

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

Status code Description Resource
200 OK

OK

MyChartOfAccountsModel