Search⌘ K

Send and Delete an Invoice

Explore how to manage invoices by sending them to clients or deleting them using the FreshBooks API in Python. This lesson guides you through making API calls to email invoices and remove unwanted ones, including handling response statuses and adjusting inventory when applicable.

Overview

In this lesson, we’ll discuss two very important operations on invoices using FreshBooks API: sending and deleting an invoice. Both operations use the same endpoint:

  • {base_url}/accounting/account/{ACCOUNT_ID}/invoices/invoices/{INVOICE_ID}

Send an invoice by email

In this section, we’ll see how we can email an invoice to a client. When an invoice is created, it’s in the draft mode. Hence, clients can’t see it. We can send the invoice to the client by making an HTTP PUT request. This endpoint also lets us send an invoice to multiple clients.

Request parameters

The table below shows the parameters that are wrapped in the payload ...