For more information, please refer to this announcement explaining best practices for getting answers to questions.
Get error when create external bank account for employee though REST API
Hi All,
I tried to create external bank account for employee following the example 5 of this API:
may payload is like this:
{
"BankAccountNumber": "testAPI6.2",
"CountryCode": "US",
"BankNumber": "055",
"BankBranchNumber": "757",
"CurrencyCode": "USD",
"AccountType": "SAVINGS",
"PersonId": "300000005684600",
"Intent": "Person",
"accountOwners": [
{
"AccountOwnerPartyIdentifier": "300000005667840",
"PersonId": "300000005684600",
"Intent": "Person"
}
]
}
It returned:
'The value of the attribute Bank Number isn't valid.
The value of the attribute Branch Number isn't valid.'
while this bank and branch existed in ERP:
But if I use payload like following, it works:
{
"BankAccountNumber": "testAPI6.2",
"CountryCode": "US",
"BankBranchIdentifier": 300000004855901,
"BankIdentifier": 300000004855397,
"CurrencyCode": "USD",
"AccountType": "SAVINGS",
"PersonId": "300000005684600",
"Intent": "Person",
"accountOwners": [
{
"AccountOwnerPartyIdentifier": "300000005667840",
"PersonId": "300000005684600",
"Intent": "Person"
}
]
}
May I know why?