Adding supplier bank account using REST API
Summary:
There is a requirement to assign a bank account on an existing supplier (type: Employee). Bank account is already assigned in HCM for the Employee.
I am using below endpoint and payload to first create the bank account owner :
/fscmRestApi/resources/11.13.18.05/externalBankAccounts/{bank_account_id}/child/accountOwners
{
"AccountOwnerPartyIdentifier": <Supplier Party Id>,
"Intent": "Supplier"
}
This API was successfully processed.
After that, I am using below endpoint and payload to assign the bank account:
/fscmRestApi/resources/11.13.18.05/instrumentAssignments
{
"PaymentPartyId": <Supplier Party Id>,
"PaymentInstrumentId": <Bank Account Id>,
"PaymentFlow": "DISBURSEMENTS",
"PaymentInstrumentType": "BANKACCOUNT",
"Intent": "Supplier"
}
I am getting below error message:
"You must enter a valid external payee identifier and payment flow combination. (IBY-825848)