Hello,
in the first place
Cash account '6842' cannot found in the system. Check whether you have access rights to this object.
"6842" is an AccountID what is assigned to every specific Account that can be found in the Financials UI:Chart of Accounts > ScreenID=GL202500
When it comes to Creating a Customer Payment Method 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 while creating a customerPaymentMethod.
Example JSON
POST:https://integration.visma.net/API/controller/api/v1/customerpaymentmethod
{
"customerId": {
"value": "10015"
},
"paymentMethodId": {
"value": "01"
},
"active": {
"value": true
},
"cashAccountId": {
"value": "1930"
},
"paymentMethodDetails": [
{
"detailId": {
"value": "01"
},
"value": {
"value": "123456789"
}
}
]
}
Regarding,
@Anonymous wrote:
Now, the thing is, the cash account we need to set turns out to be configured in Visma to be branch-specific, so it belongs to one branch only. I can reproduce the error above in the UI when I don't select this branch in the dropdown in the upper right corner.
Please make sure that "Multi-branch" and "Inter-branch transactions" are active in your licence and enabled in the Financials ERP company. ScreenID:CS100000
Afterward, go to desired "Cash Account" screenID:CA2020PL and set "restrict visibility with branch : false"
... View more