Log In

Sync an Invoice Batch's Payments

post/public/v1/invoice-batches/{invoiceBatch}/sync-payments

Queues 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.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • invoiceBatchstringrequired

    The invoice batch UUID

Response

200application/json

InvoiceBatchResource

  • dataobjectrequired
    ▶Show 7 child attributes
    • idstringrequired
      Example:b1a2t3c4-f5a6-47b8-9c0d-1e2f3a4b5c6d
    • referencestringrequired
      Example:BATCH-2024-001
    • statusenum<string>required
      Available options:draftfinalisedprocessingqueued
    • invoice_sending_behaviourenum<string>required
      Available options:do_not_send_automaticallysend_automatically
    • accounting_sync_statusenum<string> | nullrequired
      Available options:failedpendingqueuedsynced
    • finalised_atstring | nullrequired
      Example:2024-01-15T10:30:00+00:00
    • created_atstringrequired
      Example:2024-01-15T10:30:00+00:00
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 409The batch has not synced with the account's connected accounting platform, has nothing outstanding, or has only NDIS-managed invoices.