Exclude Charges from an Invoice Batch
post
/public/v1/invoice-batches/{invoiceBatch}/exclude-chargesTakes the charges out of a draft batch, so finalising it does not invoice them. Each charge must be in the batch.
invoiceBatchstringrequiredThe invoice batch UUID
Body
application/jsonchargesobject[]requiredmin items 1max items 100▶Show 1 child attributesHide child attributes
idstringrequired
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 is not a draft, or its charges changed while they were being excluded.422Validation error