1. Finalizing a drafted invoice
You can finalize the invoice by making the following POST call:sendEmail flag can be used to determine whether the invoice should be sent to the client or not. There are times where a user may want to simply create the invoice for internal tracking reasons, but not send the invoice to the client. The invoice can be sent at a later time, using the /sendInvoice endpoint.
The response will contain an htmlReport attribute, which contains an embeddable HTML body of the user’s invoice, including their custom branding that you set up earlier:
htmlReport field and embed that in your product’s UI for your user to review.