RE: How can I batch invoices into customer payments using the REST API?
Hi all,
Having trouble creating/transforming invoices into customer payments using the REST API. I have no issue transforming an invoice into a customer payment like so:
POST {{REST_SERVICES}}/record/v1/invoice/4960/!transform/customerpayment
However I’d like to add multiple invoices to a customer payment in one API call, and I’m not sure how to do that. When I structure my request like this;
I get the following error:
Hi Jonathan,
I’ve not tried through REST Web Services but here are some notes I made on using SuiteScript:
————————————————————————————————————————
[…] the sublist on an Invoice Group is not like that on a standard transaction. In fact, the relationship from Invoice to Invoice Group is stored on the Invoices themselves in these two fields:
- For Invoice Grouping (forinvoicegrouping)
- Grouped To (groupedto)
————————————————————————————————————————
Not sure whether those fields are available through REST. Also, contrary to what I believed to be the case, it looks like actions are supported and so it’s worth checking whether these actions are included:
https://netsuite.custhelp.com/app/answers/detail/a_id/87480
Thanks,
Chris