Updates the employee's bank account with the specified ID.

Request

PUT https://api.nzpayroll.co.nz/api/v2/ess/{employeeId}/bankaccounts/{id}/swagrequired2fa

Path parameters

Parameter name Value Description Additional
id int32 Required
employeeId string Required

Request body

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

{
    "accountCode": "string",
    "accountName": "string",
    "accountNumber": "string",
    "accountParticulars": "string",
    "accountType": "string",
    "allocateBalance": "boolean",
    "allocatedPercentage": "double",
    "bsb": "string",
    "canBeDeleted": "boolean",
    "employeeId": "int32",
    "externalReferenceId": "string",
    "fixedAmount": "double",
    "id": "int32",
    "isEmployeeEditable": "boolean"
}

Properties

Name Type Description
accountCode string String
accountName string String
accountNumber string String
accountParticulars string String
accountType string BankAccountTypeEnum

Possible values are:

  • Electronic
  • ManualDeposit
  • CashOrCheque
allocateBalance boolean Boolean
allocatedPercentage double Nullable
bsb string String
canBeDeleted boolean Boolean
employeeId int32 Int32
externalReferenceId string String
fixedAmount double Nullable
id int32 Int32
isEmployeeEditable boolean Boolean

Response

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

Status code Description Resource
200 OK

OK

NzEssSaveBankAccountResponseModel