Hello Team, I try to create a payment using API a...
# suitetalkapi
a
Hello Team, I try to create a payment using API and receive the error that the request for creating payment doesn't include the Payment Option parameter. I see that NetSuite has the Payment Option field in Customer Payments https://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2020_1/script/record/customerpayment.html But, I cannot find this field on UI. Could you please explain in which cases this field is necessary and what condition to use this field? I mean in which cases the request for creating payment should include the same field?
b
sounds payment instrument related: User Interface with and without Payment Instruments
a
Thank you! Could you please explain which values I can send in the request via API? Maybe it's some kind of ID?
On UI, the Payment Option drop-down field has the following values: Visa EMV ACH External Checkout Cash Check What is the correspondence of these values in the request to create a payment? And how to determine which value to transfer? Possibility of dependence on the chosen method of payment?
b
again, no rules, netsuite offers multiple payment options
each customer has different options available to them, with the help page i gave listing those options
that you have options like visa in that list suggests that your account is not setup properly, usually you need a payment processor to handle credit cards and that means it should be represented as one of the payment instrument records
a
How then to understand which option should I pass in the request to create a payment? Or maybe it is possible to transfer something by default? for example true or false?
b
the answer is basically whetever fields you would use when creating the payment in the ui
dont expect to be able to do something via suitetalk without knowing how to do it in the ui
a
Battk, could we call using skype? For literally 5 minutes
b
not interested in the skype call
a
Okay, If I understood correctly when I want to set the ACH payment option in the interface, then in the request to create a payment I must indicate as follows: paymentoption = ACH Is it correct?
b
usually not
record refs are usually internal ids
a
Where I can find the internal ids of payment options?
b
probably easiest is making it in the ui and then loading it to see what internal ids to use
a
okay, thank you a lot!
b
if you have to use an option specific to a particular entity, then getSelectValue
a
thank you!