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,
Invoice grouping may well get you to the end result from what I’ve seen but I don’t think it’s included in any of the documentation at the moment.
In case you loop back to some of your original thinking, I believe this is the sort of area you’d need to look at in order to update the apply sublist:
https://netsuite.custhelp.com/app/answers/detail/a_id/87133
The keys in question should be the references to the invoices that you want to pay.
I hope this might help and, equally, I’ve done a little playing around with Invoice Groups so please feel free to give me a shout if you want to discuss anything in that area too.
Thanks,
Chris

arod861230
Hi