Sync an Invoice Batch's Payments
post
/public/v1/invoice-batches/{invoiceBatch}/sync-paymentsQueues the payments the account's accounting platform holds for the batch's plan-managed and self-managed invoices to be pulled into Astalty. The sync runs in the background, and replaces the payments Astalty holds from the platform, removing any the platform no longer has. Read the batch's invoices afterwards to see what they have been paid.
invoiceBatchstringrequiredThe invoice batch UUID
Response
200application/jsonInvoiceBatchResource
dataobjectrequired▶Show 7 child attributesHide child attributes
idstringrequiredExample:b1a2t3c4-f5a6-47b8-9c0d-1e2f3a4b5c6dreferencestringrequiredExample:BATCH-2024-001statusenum<string>requiredAvailable options:draftfinalisedprocessingqueuedinvoice_sending_behaviourenum<string>requiredAvailable options:do_not_send_automaticallysend_automaticallyaccounting_sync_statusenum<string> | nullrequiredAvailable options:failedpendingqueuedsyncedfinalised_atstring | nullrequiredExample:2024-01-15T10:30:00+00:00created_atstringrequiredExample:2024-01-15T10:30:00+00:00
401Unauthenticated403Authorization error404Not found409The batch has not synced with the account's connected accounting platform, has nothing outstanding, or has only NDIS-managed invoices.