# The Receipts endpoint is deprecated

Xero API deprecated /api.xro/2.0/Receipts* without giving a shutdown date yet.

The Receipts endpoint has been deprecated without a shutdown date. This deprecation affects all calls matching /api.xro/2.0/Receipts*, which will ultimately fail. The provider announced on July 31, 2025, that it is deprecating the endpoint.

## What to use instead

Stop creating draft expense claim receipts and instead record spend using PUT /api.xro/2.0/BankTransactions or bills via PUT /api.xro/2.0/Invoices with Type ACCPAY. This move requires more than changing an identifier, as receipts belong to the retiring Classic Expenses product and switching alters how expenses are recorded.

Receipts belong to the retiring Classic Expenses product; moving to bills or bank transactions changes how expenses are recorded.

- API: Xero API (api.xero.com)
- Kind: Endpoint removal
- Announced: July 31, 2025
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `/api.xro/2.0/Receipts*`
- Source: [Announcement](https://developer.xero.com/changelog)
- Verified: October 27, 2026, against Xero API's own pages
- Page: https://www.okapi.bot/providers/xero-api/breaking-changes/the-receipts-endpoint-is-deprecated/

## Xero API's words

> We will also be deprecating the Receipts endpoint.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
