---
updatedAt: 2025-10-02T22:23:53.000Z
agentTools:
  projectIndex: https://developer.bill.com/v2/llms.txt
---

# Delete an invoice

Delete an invoice object.

In the response, `isActive` is set as `2` (Inactive).
### What is an invoice?
An invoice represents an amount that you are owed by a customer for goods and services that you provide.

You can create an invoice with [`/v2/Crud/Create/Invoice.json`](ref:ar-customertransactions-createinvoice). In the invoice, add invoice line items to record details about individual goods or services. In addition, you can associate line items to accounts tracking objects, such as item ([`/Item.json`](ref:org-accounts-createitem)) or chart of accounts ([`/ChartOfAccounts.json`](ref:org-accounts-createchartofaccount)).

Other invoice features: 
* You can reduce the total invoice amount with an invoice credit ([`/CreditMemo.json`](ref:ar-customertransactions-createcreditmemo)). Total invoice amount, credit memos, and any remaining invoice amount to be paid or recorded is available with [`/v2/Crud/Read/ReceivedPay.json`](ref:ar-customertransactions-receivedpay).
* You can send invoices to the customer by email ([`/v2/SendInvoice.json`](ref:ar-customertransactions-sendinvoice)) or US mail ([`/v2/MailInvoice.json`](ref:ar-customertransactions-mailinvoice)).
* `exchangeRate` is a required additional field for creating an invoice for an international customer. In addition, each invoice line item `amount` is in the foreign currency. Retrieve the current exchange rate with `/v2/GetDynamicExchangeRateQuote2.json`.

### Line item price, markups, & discounts
In your request, either `price` or percentage (`ratePercent`) is required for each `invoiceLineItems` object. If you set one, do not set the other.
* If `price` is set, `amount` is (`quantity`) x (`price`).
* If `ratePercent` is set for a line item, the line item `amount` is (`ratePercent`) x (sum of other line item `amount` values). For example, to apply a discount of 20% in your invoice total of $100, set `ratePercent` as `-20` in the final line item of your request.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "AR | Customer transactions",
    "version": "2.0",
    "description": "BILL is a cloud-based cash flow management system for an organization's Accounts Payable (AP) and Accounts Receivable (AR) automation.\n * **AP**: Automate workflows to pay vendors bills at scale for the goods and services they provide. Pay vendors with a wide range of payment methods. Generate vendor credits, bill credits, and payment disbursement reports.\n * **AR**: Automate workflows to get paid by customers at scale for the goods and services you provide. Generate and send invoices on a schedule, generate customer and invoice credits, and seamlessly charge authorized customers.\n * **Organization**: Manage your bank accounts (for sending and receiving payments), users (with user roles), and sync with your choice of accounting software.\n\nIntegrate with the BILL API to send and receive payments for your business. See [Support Center](https://help.bill.com/hc/en-us) for resources about using the BILL web app.",
    "contact": {
      "email": "developerprogram@hq.bill.com"
    }
  },
  "servers": [
    {
      "url": "https://api-stage.bill.com/api/v2",
      "description": "Sandbox base URL"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "java",
      "javascript",
      "python",
      "ruby"
    ]
  },
  "paths": {
    "/Crud/Delete/Invoice.json": {
      "post": {
        "summary": "Delete an invoice",
        "operationId": "ar-customertransactions-deleteinvoice",
        "description": "Delete an invoice object.\n\nIn the response, `isActive` is set as `2` (Inactive).\n### What is an invoice?\nAn invoice represents an amount that you are owed by a customer for goods and services that you provide.\n\nYou can create an invoice with [`/v2/Crud/Create/Invoice.json`](ref:ar-customertransactions-createinvoice). In the invoice, add invoice line items to record details about individual goods or services. In addition, you can associate line items to accounts tracking objects, such as item ([`/Item.json`](ref:org-accounts-createitem)) or chart of accounts ([`/ChartOfAccounts.json`](ref:org-accounts-createchartofaccount)).\n\nOther invoice features: \n* You can reduce the total invoice amount with an invoice credit ([`/CreditMemo.json`](ref:ar-customertransactions-createcreditmemo)). Total invoice amount, credit memos, and any remaining invoice amount to be paid or recorded is available with [`/v2/Crud/Read/ReceivedPay.json`](ref:ar-customertransactions-receivedpay).\n* You can send invoices to the customer by email ([`/v2/SendInvoice.json`](ref:ar-customertransactions-sendinvoice)) or US mail ([`/v2/MailInvoice.json`](ref:ar-customertransactions-mailinvoice)).\n* `exchangeRate` is a required additional field for creating an invoice for an international customer. In addition, each invoice line item `amount` is in the foreign currency. Retrieve the current exchange rate with `/v2/GetDynamicExchangeRateQuote2.json`.\n\n### Line item price, markups, & discounts\nIn your request, either `price` or percentage (`ratePercent`) is required for each `invoiceLineItems` object. If you set one, do not set the other.\n* If `price` is set, `amount` is (`quantity`) x (`price`).\n* If `ratePercent` is set for a line item, the line item `amount` is (`ratePercent`) x (sum of other line item `amount` values). For example, to apply a discount of 20% in your invoice total of $100, set `ratePercent` as `-20` in the final line item of your request.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateInvoiceResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "devKey",
                  "sessionId",
                  "data"
                ],
                "properties": {
                  "devKey": {
                    "type": "string",
                    "description": "Developer key generated with your BILL developer account"
                  },
                  "sessionId": {
                    "type": "string",
                    "description": "API session ID generated with [`/v2/Login.json`](ref:auth-login)"
                  },
                  "data": {
                    "$ref": "#/components/schemas/DeleteInvoiceRequest"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Invoices"
        ]
      },
      "parameters": []
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code (only when `response_status` is `1`)"
          },
          "error_message": {
            "type": "string",
            "description": "Error message (only when `response_status` is `1`)"
          }
        }
      },
      "CreateInvoiceResponse": {
        "type": "object",
        "properties": {
          "response_status": {
            "type": "integer",
            "description": "Response status.\n* `0`: Success response\n* `1`: Error response. Only `error_code` and `error_message` is returned in `response_data`."
          },
          "response_message": {
            "type": "string",
            "description": "Response status.\n* `Success`: Success response\n* `Error`: Error response. Only `error_code` and `error_message` is returned in `response_data`."
          },
          "response_data": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ErrorResponse"
              }
            ],
            "properties": {
              "entity": {
                "type": "string",
                "description": "Object type. Set as `Invoice`."
              },
              "id": {
                "type": "string",
                "description": "BILL-generated ID of the invoice. The value begins with `00e`."
              },
              "isActive": {
                "type": "string",
                "description": "Object visibility status. Inactive objects are hidden by default in the BILL web app.\n* `1`: Active\n* `2`: Inactive\n* `5`: Draft\n* `6`: Draft deleted"
              },
              "createdBy": {
                "type": "string",
                "description": "BILL-generated ID of the user that created the invoice. The value begins with `006`."
              },
              "createdTime": {
                "type": "string",
                "description": "Created date and time"
              },
              "updatedTime": {
                "type": "string",
                "description": "Updated date and time"
              },
              "customerId": {
                "type": "string",
                "description": "BILL-generated ID of the customer. The value begins with `0cu`."
              },
              "invoiceNumber": {
                "type": "string",
                "description": "User-generated invoice number. This value can be your chosen number scheme or invoice due date."
              },
              "invoiceDate": {
                "type": "string",
                "description": "Invoice creation date. This value is in the YYYY-MM-DD format."
              },
              "dueDate": {
                "type": "string",
                "description": "Date when the invoice is due. The value is in the YYYY-MM-DD format."
              },
              "glPostingDate": {
                "type": "string",
                "description": "Invoice date in your organization’s general ledger in your choice of accounting software. The value is in the YYYY-MM-DD format."
              },
              "amount": {
                "type": "number",
                "description": "Invoice total amount"
              },
              "localAmount": {
                "type": "number",
                "description": "Invoice total amount in local currency"
              },
              "exchangeRate": {
                "type": "number",
                "description": "Exchange rate for creating an invoice for an international customer. This field is required during invoice creation for receiving payments from international customers."
              },
              "amountDue": {
                "type": "number",
                "description": "Total invoice amount for the invoice to be marked as paid"
              },
              "paymentStatus": {
                "type": "string",
                "description": "Invoice payment status.\n* `0`: Paid in full\n* `1`: Open\n* `2`: Partial payment\n* `4`: Scheduled"
              },
              "description": {
                "type": "string",
                "description": "Invoice description"
              },
              "poNumber": {
                "type": "string",
                "description": "Purchase order number associated with the invoice"
              },
              "isToBePrinted": {
                "type": "boolean",
                "description": "Set as `true` if the invoice is to be printed and mailed to the customer"
              },
              "isToBeEmailed": {
                "type": "boolean",
                "description": "Set as `true` if the invoice is to be emailed to the customer"
              },
              "lastSentTime": {
                "type": "string",
                "description": "Date and time when the invoice has been sent to the customer"
              },
              "itemSalesTax": {
                "type": "string",
                "description": "BILL-generated ID of the sales tax applied to all taxable line items in the invoice. The value begins with `0ii`. The `salesTaxTotal` in the response is calculated based on the `itemSalesTax` value.\n\nYou can set your sales tax value with the BILL web app. On the **Settings** page, click **Classifications** under **Accounting**, and then create a new item with the **TYPE** set as **Sales Tax**."
              },
              "salesTaxPercentage": {
                "type": "number",
                "description": "Sales tax percentage applied to the taxable line items in the invoice"
              },
              "salesTaxTotal": {
                "type": "number",
                "description": "Sales tax total amount applied to the invoice. This values is calculated based on the `itemSalesTax` value."
              },
              "terms": {
                "type": "string",
                "description": "Payment terms of the invoice"
              },
              "salesRep": {
                "type": "string",
                "description": "Sales representative associated with the invoice"
              },
              "FOB": {
                "type": "string",
                "description": "Shipping information for the invoice"
              },
              "shipDate": {
                "type": "string",
                "description": "Shipping date when the products are shipped to the customer. This value is in the YYYY-MM-DD format."
              },
              "shipMethod": {
                "type": "string",
                "description": "Shipping method used to ship the products to the customer"
              },
              "departmentId": {
                "type": "string",
                "description": "BILL-generated ID of the department associated with the invoice. This is an accounts tracking object."
              },
              "locationId": {
                "type": "string",
                "description": "BILL-generated ID of the location associated with the invoice. This is an accounts tracking object."
              },
              "actgClassId": {
                "type": "string",
                "description": "BILL-generated ID of the accounting class associated with the invoice. This is an accounts tracking object."
              },
              "jobId": {
                "type": "string",
                "description": "BILL-generated ID of the job associated with the invoice. This is an accounts tracking object."
              },
              "payToBankAccountId": {
                "type": "string",
                "description": "BILL-generated ID of the bank account used to receive the invoice payment. This field is available only for BILL partners."
              },
              "payToChartOfAccountId": {
                "type": "string",
                "description": "BILL-generated ID of the chart of accounts used to receive the invoice payment. This is an accounts tracking object. This field is available only for select BILL partners."
              },
              "invoiceTemplateId": {
                "type": "string",
                "description": "BILL-generated ID of the invoice template"
              },
              "hasAutoPay": {
                "type": "boolean",
                "description": "Set as `true` if the invoice is paid with Autopay"
              },
              "emailDeliveryOption": {
                "type": "string",
                "description": "Invoice email delivery timeline. Email the invoice with `/v2/SendInvoice.json`.\n* `0`: Not selected\n* `1`: Now\n* `2`: Later"
              },
              "mailDeliveryOption": {
                "type": "string",
                "description": "Invoice mail delivery timeline. Send the invoice by US mail with `/v2/MailInvoice.json`.\n* `0`: Not selected\n* `1`: Now\n* `2`: Later"
              },
              "creditAmount": {
                "type": "number",
                "description": "Invoice credit total amount"
              },
              "quickbooksId": {
                "type": "string",
                "description": "Intuit QuickBooks ID"
              },
              "recInvoiceTemplateId": {
                "type": "string",
                "description": "BILL-generated ID of the recurring invoice template"
              },
              "invoiceLineItems": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "entity": {
                      "type": "string",
                      "description": "Object type. Set as `InvoiceLineItem`."
                    },
                    "id": {
                      "type": "string",
                      "description": "BILL-generated ID of the invoice line item. The value begins with `00f`."
                    },
                    "createdTime": {
                      "type": "string",
                      "description": "Created date and time"
                    },
                    "updatedTime": {
                      "type": "string",
                      "description": "Updated date and time"
                    },
                    "invoiceId": {
                      "type": "string",
                      "description": "BILL-generated ID of the invoice. The value begins with `00e`."
                    },
                    "itemId": {
                      "type": "string",
                      "description": "BILL-generated ID of the item associated with the invoice. The value begins with `0ii`."
                    },
                    "quantity": {
                      "type": "number",
                      "description": "Quantity of items sold or time spent providing the service"
                    },
                    "amount": {
                      "type": "number",
                      "description": "Invoice line item total amount. If `ratePercent` is set, `amount` is (`ratePercent`) x (sum of other line item `amount` values). If `price` is set, `amount` is (`quantity`) x (`price`)."
                    },
                    "price": {
                      "type": "number",
                      "description": "Item price or service rate"
                    },
                    "serviceDate": {
                      "type": "string",
                      "description": "Date when the products or service is sold. This value is in the YYYY-MM-DD format."
                    },
                    "ratePercent": {
                      "type": "number",
                      "description": "Item rate percentage.\n* A positive value is a markup. For example, set as `20` for a `20%` markup.\n* A negative value is a discount. For example, set as `-20` for a `20%` discount."
                    },
                    "chartOfAccountId": {
                      "type": "string",
                      "description": "BILL-generated ID of the chart of accounts associated with the invoice line item. This is an accounts tracking object."
                    },
                    "departmentId": {
                      "type": "string",
                      "description": "BILL-generated ID of the department associated with the invoice line item. This is an accounts tracking object."
                    },
                    "locationId": {
                      "type": "string",
                      "description": "BILL-generated ID of the location associated with the invoice line item. This is an accounts tracking object."
                    },
                    "actgClassId": {
                      "type": "string",
                      "description": "BILL-generated ID of the accounting class associated with the invoice line item. This is an accounts tracking object."
                    },
                    "jobId": {
                      "type": "string",
                      "description": "BILL-generated ID of the job associated with the invoice line item. This is an accounts tracking object."
                    },
                    "description": {
                      "type": "string",
                      "description": "Invoice line item description"
                    },
                    "taxable": {
                      "type": "boolean",
                      "description": "Set as `true` if the invoice line item is taxable and is included in the `salesTaxTotal` calculation."
                    },
                    "taxCode": {
                      "type": "string",
                      "description": "Tax code"
                    },
                    "lineOrder": {
                      "type": "number",
                      "description": "Invoice line item order"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "DeleteInvoiceRequest": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "BILL-generated ID of the invoice. The value begins with `00e`."
          }
        }
      }
    }
  }
}
```