Available in API 2.0+
Automatically generate invoices.
To generate an invoice from an existing booking:
Required Parameters | Possible Values | Description |
booking | Booking ID | The numeric ID of the existing booking for which to generate an invoice for |
Example Response |
{
"invoice_created":"MIDAS00075"
} |
Variables Returned | Description |
invoice_created | The Invoice number/reference of the newly generated invoice |
To generate a series of invoices for bookings across a date range:
Required Parameters | Possible Values | Description |
start | Valid date and time (Format: YYYYMMDDHHMM) | Sets the start of the window in which bookings should be included in generated invoices |
end | Valid date and time (Format: YYYYMMDDHHMM) | Sets the end of the window in which bookings should be included in generated invoices |
Optional Parameters | Possible Values | Description |
client | Client ID | The numeric ID of the existing client who's bookings should be included on the generated invoice |
Including the optional "
client
" parameter will limit invoice generation to a single invoice containing all bookings for the specified client which take place between the specified
start
/
end
values.
Omitting the optional "
client
" parameter will generate separate invoices for each client with bookings taking place between the specified
start
/
end
values.
Example Response |
{
"invoices_created":"MIDAS00076,MIDAS00077,MIDAS00078,MIDAS00079"
} |
Variables Returned | Description |
invoices_created | A comma-separated list of all newly generated invoices |