POST api/Bank/{employeeNo}/{sortCode}/{accountNumber}

Update a Bank for an Employee. The key for updates is the previous sort code and account number

Request Information

URI Parameters

NameDescriptionTypeAdditional information
employeeNo

Employee Number

string

Required

sortCode

Previous Sort code

string

Required

accountNumber

Previous Account Number

string

Required

Body Parameters

In request Body: Employee Bank Details

BankDetail
NameDescriptionTypeAdditional information
EmployeeBankID

integer

None.

AccountName

string

Required

AccountNumber

Must be 8 digits or more

string

Required

SortCode

Must be 6 digits

string

Required

RollNumber

string

None.

BankName

string

None.

Request Formats

application/json, text/json

Sample:
{
    "EmployeeBankID": 1467,
    "AccountName": "RICHARDBANK",
    "AccountNumber": "17380536",
    "SortCode": "111210",
    "RollNumber": "",
    "BankName": "Example Bank"
}

application/xml, text/xml

Sample:
<BankDetail>
  <AccountName>RICHARDBANK</AccountName>
  <AccountNumber>17380536</AccountNumber>
  <BankName>Example Bank</BankName>
  <EmployeeBankID>1467</EmployeeBankID>
  <RollNumber></RollNumber>
  <SortCode>111210</SortCode>
</BankDetail>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result

ResultWithMessage
NameDescriptionTypeAdditional information
result

'OK', 'Error'

string

None.

message

Returns if result is Error

string

None.

returnValue

string

None.

Response Formats

application/json, text/json

Sample:
{
    "result": "OK"
}

{
    "result": "Error",
    "message": "Unable to save: the..."
}

application/xml, text/xml

Sample:
<ResultWithMessage>
    <result>OK</result>
</ResultWithMessage>

<ResultWithMessage>  
    <result>Error</result>
    <message>Unable to save: the...</message>
</ResultWithMessage>