Log In

Exclude Charges from an Invoice Batch

post/public/v1/invoice-batches/{invoiceBatch}/exclude-charges

Takes the charges out of a draft batch, so finalising it does not invoice them. Each charge must be in the batch.

  • 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
  • chargesobject[]requiredmin items 1max items 100
    ▶Show 1 child attributes
    • idstringrequired

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, or its charges changed while they were being excluded.
  • 422Validation error