Log In

Create a Draft Invoice Batch

post/public/v1/invoice-batches

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

  • Authorizationstringrequired

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

Body

application/json
  • startstringrequired
  • endstringrequired
  • charge_typeenum<string> | null
    Available options:direct_chargesupporttask
  • participantsobject[] | nullmax items 1000
    ▶Show 1 child attributes
    • idstringrequired
  • management_typesenum<string>[] | nullmax items 4

Response

201application/json

InvoiceBatchResource

  • dataobjectrequired
    ▶Show 6 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
    • finalised_atstring | nullrequired
      Example:2024-01-15T10:30:00+00:00
    • created_atstringrequired
      Example:2024-01-15T10:30:00+00:00
  • 401Unauthenticated
  • 403Authorization error
  • 422Validation error