RE: How can I batch invoices into customer payments using the REST API?
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:
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:
I posted back in March 2021 that the solution here was working well for me. 5 months later, changes in the REST API appear to have broken this. Some of our test cases now throw this error that were previously working on the same records with the same code. CustomerPayment is still a beta record, so I can’t complain.
Instead, we’ve been creating simple RESTlets one by one to replace REST API calls that have proven unreliable. Rock solid.