Log In

Update an Invoice Batch

put/public/v1/invoice-batches/{invoiceBatch}

Sets whether finalising the batch emails its invoices. Only a draft batch can be updated.

  • 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

Body

application/json
  • invoice_sending_behaviourenum<string>required
    Available options:do_not_send_automaticallysend_automatically

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 is not a draft.
  • 422Validation error