Create a Draft Invoice Batch
post
/public/v1/invoice-batchesstart and end bound the days the batch draws charges from, inclusive, and each
takes either a calendar date as YYYY-MM-DD or a full instant carrying a timezone.
Send the calendar date. It says what you mean whatever offset you are on.
Either form names a day where the provider is: an instant is converted to the
provider's timezone and the day it lands on there is the day used, so an offset
ahead of the provider's can name the previous day. The batch then runs from the
start of that provider day to the end of it.
Each charge is compared in its own service location's timezone, which can differ from the provider's.
Body
application/jsonstartstringrequiredendstringrequiredcharge_typeenum<string> | nullAvailable options:direct_chargesupporttaskparticipantsobject[] | nullmax items 1000▶Show 1 child attributesHide child attributes
idstringrequired
management_typesenum<string>[] | nullmax items 4
Response
201application/jsonInvoiceBatchResource
dataobjectrequired▶Show 6 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_automaticallyfinalised_atstring | nullrequiredExample:2024-01-15T10:30:00+00:00created_atstringrequiredExample:2024-01-15T10:30:00+00:00
401Unauthenticated403Authorization error422Validation error