All operations
COMPANY
Inserts or updates company AR records by account number
Each row replaces the company's AR values in full (an omitted amount is saved as 0). A company with no AR record gets one; otherwise its record is updated. Rows whose account number matches no company, or more than one, are skipped and listed with the reason. The whole batch is saved together.
POST
/api/v2/companies/ar/bulk-upsertAuthentication
Choose one supported method for this request.
Request body
One row per account number; an account number may appear only once.
An array. Each item is a CompanyArUpsertRequest:
accountNostringrequiredaged30number · doubleaged60number · doubleaged90number · doubleaged120number · doubleover120number · doublefutureBalancenumber · doubletotalOutstandingnumber · doublecreditLimitnumber · doublecreditTermsstringnullablearAgencyDefaultstringnullableaveragePaymentDaysinteger · int32highestBalancenumber · doublehighestBalanceDatestring · datenullablelastInvoicestring · datenullablelastPaymentstring · datenullablecommentsstringnullable
Responses
Batch processed.
Standard response envelope
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
insertedinteger · int32updatedinteger · int32