Adding Cash Receipt Bank Fee via API

Hi all,

Has anyone had any luck adding a bank fee to a cash receipt via rest api? I’ve had no issue creating cash receipt groups, headers, and details but keep getting an error with bank fees. I’ve tried with and without the group being locked to my userid and verified it allows me to create it in the UI with the same user account being used as with the api call. Version 10.2.300.16. I also made sure it is registering the correct group id (if using an invalid one, a different error is shown, “A valid Cash Group is required.”)

post Erp.BO.CashRecSvc/BankTrans
inputting fields

{
    "Company": "companyid",
    "BankAcctID": "bankacctid",
    "TranNum": "nexttrannum",
    "TranRef": "checkreffromheader",
    "DocTranAmt": "15",
    "CurrencyCode": "USD",
    "GroupID": "groupid",
    "BankFeeID": "bankfeeid",
    "HeadNum": "headerheadnum",
    "RowMod": "A"
}

error

{
  "HttpStatus": 400,
  "ReasonPhrase": "REST API Exception",
  "ErrorMessage": "Cash Group is not available.",
  "ErrorType": "Ice.Common.BusinessObjectException",
  "ErrorDetails": [
    {
      "Message": "Cash Group is not available.",
      "Type": "Error",
      "Table": "BankTran",
      "Program": "Epicor.RESTApi.dll",
      "Method": "ThrowUpdateExtRESTApiException",
      "ColumnNumber": 17,
      "LineNumber": 194
    }
  ]
}

Do not use the o data endpoint for this

Try a function or a legacy rpc method

Thanks! Yes you are right using the “custom method” works for this.