We are building a remittance automation tool that needs to create an AR Payment and apply it to multiple invoices (1,300+ lines) via the REST API in Acumatica 25.200.001.
What we've tried:
- PUT to
/entity/Default/25.200.001/PaymentwithDocumentsToApplyarray containingAdjdDocType,AdjdRefNbr, andCuryAdjgAmt— returns HTTP 200 and updatesLastModifiedDateTimebutAppliedToDocumentsstays 0. Documents are not applied. - Import Scenario via the UI with a CSV provider mapping to the Payments and Applications screen (AR302000) — fails with "The system failed to commit the Adjustments row."
- Screen-based API POST to AR302000 — modern Acumatica 25.x loads the screen via JavaScript so
DataSourceSessionIDandDataSourceLoginIDare not present in the initial HTML response. - REST API
/entity/Default/25.200.001/ImportScenario— returns 404, endpoint does not exist.
Question:
What is the correct method to programmatically create an AR Payment and apply it to multiple invoices in version 25.200.001? Is there a specific action endpoint, a different field name for document application, or a recommended approach for bulk payment application via API?
Any working code samples would be greatly appreciated.
