Updates the location specific chart of accounts configuration for the business.

Request

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

Path parameters

Parameter name Value Description Additional
locationId int32 Required
businessId string Required

Request body

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

{
    "deductionCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "liabilityAccountId": "int32",
            "name": "string"
        }
    ],
    "defaultAccounts": {
        "benefitsInKindExpenseAccountId": "int32",
        "benefitsInKindLiabilityAccountId": "int32",
        "cp38ExpenseAccountId": "int32",
        "cp38LiabilityAccountId": "int32",
        "defaultExpenseAccountId": "int32",
        "defaultLiabilityAccountId": "int32",
        "eisEmployeeLiabilityAccountId": "int32",
        "eisEmployerExpenseAccountId": "int32",
        "eisEmployerLiabilityAccountId": "int32",
        "employeeExpenseAccountId": "int32",
        "employerLiabilityExpenseAccountId": "int32",
        "employerLiabilityLiabilityAccountId": "int32",
        "epfEmployeeLiabilityAccountId": "int32",
        "epfEmployerExpenseAccountId": "int32",
        "epfEmployerLiabilityAccountId": "int32",
        "hrdfEmployerExpenseAccountId": "int32",
        "hrdfEmployerLiabilityAccountId": "int32",
        "paymentAccountId": "int32",
        "pcbBorneByEmployerExpenseAccountId": "int32",
        "pcbBorneByEmployerLiabilityAccountId": "int32",
        "pcbLiabilityAccountId": "int32",
        "socsoEmployeeLiabilityAccountId": "int32",
        "socsoEmployerExpenseAccountId": "int32",
        "socsoEmployerLiabilityAccountId": "int32"
    },
    "employeeExpenseCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "name": "string"
        }
    ],
    "employerLiabilityCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "liabilityAccountId": "int32",
            "name": "string"
        }
    ],
    "locationId": "int32",
    "payCategories": [
        {
            "expenseAccountId": "int32",
            "id": "int32",
            "name": "string"
        }
    ]
}

Properties

Name Type Description
deductionCategories[] array
deductionCategories[].expenseAccountId int32 Nullable
deductionCategories[].id int32 Int32
deductionCategories[].liabilityAccountId int32 Nullable
deductionCategories[].name string String
defaultAccounts object MyChartOfAccountsLocationAccountsModel
defaultAccounts.benefitsInKindExpenseAccountId int32 Nullable
defaultAccounts.benefitsInKindLiabilityAccountId int32 Nullable
defaultAccounts.cp38ExpenseAccountId int32 Nullable
defaultAccounts.cp38LiabilityAccountId int32 Nullable
defaultAccounts.defaultExpenseAccountId int32 Nullable
defaultAccounts.defaultLiabilityAccountId int32 Nullable
defaultAccounts.eisEmployeeLiabilityAccountId int32 Nullable
defaultAccounts.eisEmployerExpenseAccountId int32 Nullable
defaultAccounts.eisEmployerLiabilityAccountId int32 Nullable
defaultAccounts.employeeExpenseAccountId int32 Nullable
defaultAccounts.employerLiabilityExpenseAccountId int32 Nullable
defaultAccounts.employerLiabilityLiabilityAccountId int32 Nullable
defaultAccounts.epfEmployeeLiabilityAccountId int32 Nullable
defaultAccounts.epfEmployerExpenseAccountId int32 Nullable
defaultAccounts.epfEmployerLiabilityAccountId int32 Nullable
defaultAccounts.hrdfEmployerExpenseAccountId int32 Nullable
defaultAccounts.hrdfEmployerLiabilityAccountId int32 Nullable
defaultAccounts.paymentAccountId int32 Nullable
defaultAccounts.pcbBorneByEmployerExpenseAccountId int32 Nullable
defaultAccounts.pcbBorneByEmployerLiabilityAccountId int32 Nullable
defaultAccounts.pcbLiabilityAccountId int32 Nullable
defaultAccounts.socsoEmployeeLiabilityAccountId int32 Nullable
defaultAccounts.socsoEmployerExpenseAccountId int32 Nullable
defaultAccounts.socsoEmployerLiabilityAccountId int32 Nullable
employeeExpenseCategories[] array
employeeExpenseCategories[].expenseAccountId int32 Nullable
employeeExpenseCategories[].id int32 Int32
employeeExpenseCategories[].name string String
employerLiabilityCategories[] array
employerLiabilityCategories[].expenseAccountId int32 Nullable
employerLiabilityCategories[].id int32 Int32
employerLiabilityCategories[].liabilityAccountId int32 Nullable
employerLiabilityCategories[].name string String
locationId int32 Int32
payCategories[] array
payCategories[].expenseAccountId int32 Nullable
payCategories[].id int32 Int32
payCategories[].name string String

Response

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

Status code Description Resource
200 OK

OK

MyChartOfAccountsLocationGroupModel