BatchSyncModel

A BatchSyncModel contains a collection of records to load into the ADS Platform. Data contained
in this batch will be merged with your existing data. Each record will be matched with existing data inside
the ADS Platform using the Identity Column rules.
Any record that represents a new AppEnrollmentId+ErpKey will be inserted. A record that matches an existing
AppEnrollmentId+ErpKey will be updated, but only if the data has changed.

A Sync process permits either a complete data file or a partial / delta data file. ADS recommends
using a sliding time window to avoid the risk of clock skew errors that might accidentally omit records.
Best practice is to run a Sync process daily, and to export all data that has changed in the past 48 hours.

Required Fields

isFullSync

boolean

True if this is a full sync, false if this is a partial sync. Defaults to false.

Optional Fields

appEnrollmentId

uuid, nullable

The optional existing app enrollment to associate with the data in this batch.

currentBatch

int32, nullable

The optional current batch number for this batch sync.

totalBatches

int32, nullable

The optional total number of batchs for this batch sync.

parentSyncRequestId

uuid, nullable

The optional existing parent sync request id for the batch sync.

companies

CompanySyncModel[], nullable

A list of Company records to merge with your ADS Platform data

contacts

ContactSyncModel[], nullable

A list of Contact records to merge with your ADS Platform data

creditMemoApplications

CreditMemoAppliedSyncModel[], nullable

A list of CreditMemoApplied records to merge with your ADS Platform data

invoices

InvoiceSyncModel[], nullable

A list of Invoice records to merge with your ADS Platform data

invoiceLines

InvoiceLineSyncModel[], nullable

A list of InvoiceLine records to merge with your ADS Platform data

customFields

CustomFieldSyncModel[], nullable

A list of CustomField records to merge with your ADS Platform data

payments

PaymentSyncModel[], nullable

A list of Payment records to merge with your ADS Platform data

paymentApplications

PaymentAppliedSyncModel[], nullable

A list of PaymentApplied records to merge with your ADS Platform data

financialYearSettings

FinancialYearSettingSyncModel[], nullable

A list of FinancialYearSetting records to merge with your ADS Platform data

financialAccounts

FinancialAccountSyncModel[], nullable

A list of FinancialAccount records to merge with your ADS Platform data

financialAccountBalanceHistories

FinancialAccountBalanceHistorySyncModel[], nullable

A list of FinancialAccountBalanceHistory records to merge with your ADS Platform data

baseCurrencies

BaseCurrencySyncModel[], nullable

A list of BaseCurrency records to merge with your ADS Platform data

journalEntries

JournalEntrySyncModel[], nullable

A list of JournalEntry records to merge with your ADS Platform data

journalEntryLines

JournalEntryLineSyncModel[], nullable

A list of JournalEntryLine records to merge with your ADS Platform data