Rest API – Always return error when calling customerPayment
Hi,
I try to create the customerPayment record using the Rest API, and it always gives error , looks like I am not able to create the JSON request body correctly for customerpayment
Please help me on this to create correct JSON body for customerPayment end point
Error : “Please enter value(s) for: Payment Method.”,”
Request
POST: https://123456-sb2.suitetalk.api.netsuite.com/services/rest/record/v1/customerPayment
Request body
Hi,
Have you tried setting “paymentmethod” field? It appears this may be mandatory in your instance. Do you see it as mandatory in the UI?
Thanks,
Chris
Thanks for reply.
Yes i tried setting the “paymentmethod” field, it’s part of the JSON payload, as you can see above JSON payload. but still getting the same error
yes, its a mandatory field.
Just want to confirm the way we provide “paymentmethod” data to rest API is good. or any other setup /configuration also we need to do?



