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;

How can I batch invoices into customer payments using the REST API?

I get the following error:

“type”: “”,
“title”: “Error while accessing resource: You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.”,
“status”: 400,
“o:errorCode”: “USER_ERROR”
Ideally I would be able to transform multiple invoices into a customer payment…perhas by using the transformation of customer->customerpayment. But I’m not sure how to include multiple invoices that way.
Jonathan Rookie Asked on August 28, 2020 in SuiteTalk.
Add Comment
8 Answers

Hey Chris,

Yes, I want to specify the invoices which I will turn into a payment. As in, I know I know I want to add a customer payment using invoices 1 and 2, so I’d like to either transform a customer -> customer payment using those invoices, or create a new customer payment using those invoices.


I had issues doing this with 2020.1, but I”m upgrading our sandbox to 2020.2, so I’m going to try and take advantage of the new invoice grouping feature to accomplish this

Rookie Answered on August 31, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.