Finalize a draft invoice

This endpoint is used for finalizing a draft invoice.