> For the complete documentation index, see [llms.txt](https://docs.alternativepayments.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alternativepayments.io/getting-started/changelog.md).

# Changelog

Changes to the Alternative Payments API responses, newest first. Dates are the day the change reached production.

## 2026-11-06: invoice PDF upload for invoices created with `POST /invoices`

**Endpoints:** `POST /invoices/{id}/pdf`, `GET /invoices/{id}/pdf-link`, `GET /checkout/invoice/pdf-link`

**Changed**

* `POST /invoices/{id}/pdf` now accepts invoices you created with `POST /invoices`. Before this change those returned `422 unsupported_invoice`; they now return `200` with the stored `path`, the same as invoices synced from your accounting system. Both `content` and `url` work.
* Once you upload a PDF for such an invoice, `GET /invoices/{id}/pdf-link`, the Web SDK's `GET /checkout/invoice/pdf-link` and the customer payment portal serve your PDF instead of the one Alternative Payments generates. Without an upload, nothing changes.
* The `422 unsupported_invoice` response keeps its status, `code` and shape (`{"code", "message"}`). Only the `message` text changed, and it now appears only in the rare case the upload can't be stored:
  * Before: `Invoice PDFs are only supported for invoices synced from an accounting integration`
  * After: `This invoice cannot accept a PDF upload right now. Contact support if this continues.`

**What to do**

* Nothing for invoices synced from your accounting system: they behave exactly as before.
* If your integration branches on the error `message` text, branch on `code` instead.

## 2026-10-27: non-billable line items

**Endpoints:** `GET /invoices`, `GET /invoices/{id}`, `POST /invoices`, `DELETE /invoices/{id}`, `POST /invoices/{id}/restore`

**Added**

* `line_items[].non_billable` (boolean): `true` when the customer is not charged for the line, for example an item included in a ConnectWise agreement (`NoCharge`). The line keeps its `amount` (unit price) and `quantity` so you can see what was included.

**Changed**

* A non-billable line returns `line_items[].total: 0` and is not part of `sub_total`. Before this change the line was priced as `quantity × amount`, which inflated `sub_total` and `line_items[].total` on invoices with included items, so `sub_total + tax` did not equal `total`.
* Invoices synced before 2026-10-27 were re-published with the flag, so existing invoices return the corrected values too.

**What to do**

* If you sum line items yourself, use `line_items[].total` or skip lines where `non_billable` is `true`.
* `total` and `outstanding_amount` did not change.

## 2026-10-26: `outstanding_amount` on invoices

**Endpoints:** `GET /invoices`, `GET /invoices/{id}`, `POST /invoices`, `DELETE /invoices/{id}`, `POST /invoices/{id}/restore`

**Added**

* `outstanding_amount` (number, dollars): the balance still owed on the invoice. It is `total` less payments and credits, including payments recorded in your accounting system. A paid invoice returns `0`; a partially paid invoice returns the remaining balance.

**What to do**

* Use `outstanding_amount` for the amount due and to total open A/R. Before this release the API had no balance-due field.

## 2026-10-20: invoice line items and totals match the portal

**Endpoints:** `GET /invoices`, `GET /invoices/{id}`, `POST /invoices`, `DELETE /invoices/{id}`, `POST /invoices/{id}/restore`

**Changed**

* `sub_total` is now the sum of the line item totals before tax. Before this change it returned the amount still owed (`0` on every paid invoice). It no longer changes when the invoice is paid.
* `line_items[].quantity` is a decimal (`number`) instead of a whole number (`integer`). Hourly and partial quantities such as `0.25` or `1.5` are returned as stored. Whole quantities still serialize as before (`2`). The `POST /invoices` request still takes an integer `quantity`.
* `line_items[].amount` is the full-precision unit price (for example `0.039`) instead of a value rounded to the cent.

**Added**

* `tax` (number, dollars): sales tax on the invoice. `sub_total + tax = total`, unless the invoice carries a discount that is not itemized as a negative line.
* `line_items[].total` (number, dollars): the line total rounded to the cent. Line totals add up to `sub_total`.

**What to do**

* If your integration read `sub_total` as the amount due, switch to `outstanding_amount` (available from 2026-10-26).
* If your integration typed `line_items[].quantity` as an integer, accept decimals.
* `total` did not change.

{% hint style="info" %}
`GET /payments` lists only payments collected through Alternative Payments. Payments recorded directly in your accounting system reduce `outstanding_amount` but do not appear there.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.alternativepayments.io/getting-started/changelog.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
