Hi Team, I am trying to send a payment from our s...
# suitetalkapi
a
Hi Team, I am trying to send a payment from our system to NetSuite through Cash App. NetSuite returns the following error: You do not have permissions to set a value for element account due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases. I had investigated the problem and found the article - https://netsuite.custhelp.com/app/answers/detail/a_id/80457/kw/you%20do%20not%20have%20[…]rmissions%20to%20set%20a%20value%20for%20element%20account According to this article, could you please provide more details on how the undepFunds field influences on payments, whether there are conditions for which payments this field can be applied, for which it is impossible. Perhaps for some clients this field cannot be used? I want to understand what conditions a should regard to apply this field so that we can understand for which clients and payments is it applicable. Is this field somehow related to the type of payment? For example, payment by card? Thank you!
p
Well, @battk already suggested using the UI first so that you understand what you are doing. Have you done that?
a
Yes
I created payments and select different payment methods. Then, I selected UNDEPOSITED FUNDS or Accounts
I cannot cath this error
but via API I receive it
Could you help me with this question? Maybe you can provide some rules when we should use UNDEPOSITED FUNDS or Accounts value
p
It’s specific to how your business works, isn’t it? Is the cash held in a specific gl account?
a
Currently, we send the undepFunds field an set up the TRUE value: <undepFunds xsi:type='xsd:boolean'>true</undepFunds> But, we cannot analyze the conditions when we should use TRUE or FALSE. I want to find conditions when we should use TRUE or FALSE
b
you should only be getting your error if you set the account field and set undepFunds to true
mostly because those 2 fields are exclusive of each other
your customer payment can only be deposited to an account or not deposited, not both
a
Could you please provide rules in which cases I should use FALSE, or TRUE. As I understand it depends of the Payment Method that we send in the request.
b
There are no rules, payment methods automatically source values for account or undeposited funds
Setting undeposited funds or account overrides those values
a
Thank you a lot!
You very helped me!
Sorry, I have one question. If I use the same request <account xsi:type='platformCore:RecordRef' internalId='**'/> <undepFunds xsi:type='xsd:boolean'>false</undepFunds> As I understand, I can skip requesting the Account Number in the request. Is it correct?
Because, in this case, NetSuite uses the default account number - 1090 Undeposited Funds
b
that sounds like the behavior you would get in the ui
if you dont set an account, you get the default