Hello,
the Cash Account ID "6891" shown in the error message is the Account ID of the cash account you've used in the payload
"cashAccount": {
"Value": "0123"
},
This can be found at Chart of accounts(ScreenId=GL202500)
When it comes to the error, apparently you don't have access to that account via the
"branch": {
"Value": "23"
},
In order to be able to Create a Customer Payment with specific PaymentMethod and Cash Account,
Cash Account/s that you'd like to use with "CustomerPaymentMethod" should be defined under the Payment methods:"Allowed Cash Accounts" in Financials ERP ScreenId=CA204000 regardless of what branch is in use.
then this cash account can be selected when creating a customerPaymentMethod.
Regarding having multiple branches in your company and if those accounts are defined as branch-specific,
Please make sure that "Multi-branch" and "Inter-branch transactions" are active in your licence and enabled in the Financials ERP company.
Afterward, go to desired "Cash Account" screenID:CA2020PL and set "restrict visibility with branch : false"
... View more