# Xero Fixed Asset Disposal Preflight (`atesen-software/xero-fixed-asset-disposal-preflight`) Actor

Compare a fixed asset register export with a proposed disposal list. Flag missing or ambiguous asset numbers and invalid dates for review before disposal.

- **URL**: https://apify.com/atesen-software/xero-fixed-asset-disposal-preflight.md
- **Developed by:** [Atesen Software](https://apify.com/atesen-software) (community)
- **Categories:** Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.02 / completed preflight

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Xero Fixed Asset Disposal Preflight

Check a planned fixed asset disposal batch against your Xero fixed asset register export before you dispose of anything. You get a review CSV that flags asset numbers missing from the register, duplicates, ambiguous matches, invalid disposal dates and assets the register already marks as disposed. Each completed review costs **$0.02**, whatever the batch size.

### How it works

1. Export the fixed asset register from Xero as a CSV. Remove columns you do not need, such as cost and notes. Keep the asset numbers exactly as they are, including leading zeros.
2. Paste the register CSV and your proposed disposal list (asset number and disposal date, `YYYY-MM-DD`). Enter the exact column headings.
3. Open **Review CSV** in the Output tab. Every proposal row gets a review status and a plain-language finding, with the CSV line numbers on both sides so you can find the row fast.

This tool only reads the two CSVs you paste. It does not connect to Xero, does not dispose of assets and does not calculate gains, losses or tax. A row with no finding still needs a final check in Xero.

### Input

| Field | What it does |
|---|---|
| `registerCsv` | Fixed asset register export (CSV text with headings), up to 256 KiB |
| `proposalCsv` | Proposed disposals: asset number and disposal date per row, up to 256 KiB |
| `registerIdColumn` | Asset number heading in the register, for example `AssetNumber` |
| `proposalIdColumn` | Asset number heading in the proposal (default `Asset Number`) |
| `proposalDateColumn` | Disposal date heading in the proposal (default `Disposal Date`) |
| `registerStatusColumn` | Optional status heading in the register, to catch assets already disposed |

```json
{
  "registerCsv": "AssetNumber,Status\n00017,Registered\nLT-015,Disposed\nM-7,Registered",
  "proposalCsv": "Asset Number,Disposal Date\n00017,2026-10-31\nLT-015,2026-10-31\nMISSING,2026-02-30",
  "registerIdColumn": "AssetNumber",
  "registerStatusColumn": "Status"
}
```

### Output

One `report` row per run. Real output for the input above:

```json
{
  "recordType": "report",
  "proposalCount": 3,
  "reviewRows": 3,
  "flaggedRows": 2,
  "manualVerificationRows": 1,
  "reviewCsv": "Source,CSV line,Asset number,Disposal date,Register line,Register status,Review status,Findings\r\nProposal,2,00017,2026-10-31,2,Registered,Verify in Xero,Confirm eligibility and details in Xero before disposal.\r\nProposal,3,LT-015,2026-10-31,3,Disposed,Review,Register marks this asset disposed.\r\nProposal,4,MISSING,2026-02-30,,,Review,Asset number absent from register. Enter a valid disposal date as YYYY-MM-DD.\r\n"
}
```

The same table is saved as `REVIEW_CSV` in the run's key-value store. When you open it in a spreadsheet, import the asset number column as text so leading zeros stay.

If no report is written (empty or invalid input, or a maximum cost per run below $0.02), the run writes one free `status` row that says what to fix, and charges nothing.

### Use via API

Keep your token in the `Authorization` header, not in the URL:

```bash
curl -X POST "https://api.apify.com/v2/acts/atesen-software~xero-fixed-asset-disposal-preflight/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"registerCsv": "AssetNumber,Status\n00017,Registered", "proposalCsv": "Asset Number,Disposal Date\n00017,2026-10-31", "registerIdColumn": "AssetNumber", "registerStatusColumn": "Status"}'
```

### Pricing

Pay per event: **$0.02 per completed review** (event `report`). There is no start fee and no per-row fee. Status rows for empty or invalid input and a too-low budget are free.

### Data and privacy

The only data is what you paste. Apify keeps the input and the report in your own run storage. Use registers you are allowed to process and leave out columns the check does not need. Column names follow Xero's documented [fixed asset CSV fields](https://central.xero.com/0/article/Import-fixed-assets-US-GL); see also Xero's [disposal guide](https://central.xero.com/0/article/Dispose-of-or-sell-a-fixed-asset). This Actor is independent and is not made or endorsed by Xero.

Built and maintained by Atesen Software

# Actor input Schema

## `registerCsv` (type: `string`):

Paste an authorised, redacted UTF-8 Xero fixed asset register export, including headings. Maximum 256 KiB.

## `proposalCsv` (type: `string`):

Paste a UTF-8 disposal list with an asset number and disposal date per row. Use YYYY-MM-DD and preserve leading zeros. Maximum 256 KiB.

## `registerIdColumn` (type: `string`):

Use the exact heading visible in the register export.

## `proposalIdColumn` (type: `string`):

Use the exact asset number heading from the proposed disposal list.

## `proposalDateColumn` (type: `string`):

Use the exact disposal date heading from the proposed disposal list.

## `registerStatusColumn` (type: `string`):

Optional. Enter the exact status heading only after checking that it contains the Xero asset status.

## Actor input object example

```json
{
  "registerCsv": "AssetNumber,Status\n00017,Registered\nLT-015,Disposed\nM-7,Registered",
  "proposalCsv": "Asset Number,Disposal Date\n00017,2026-10-31\nLT-015,2026-10-31\nMISSING,2026-02-30",
  "registerIdColumn": "AssetNumber",
  "proposalIdColumn": "Asset Number",
  "proposalDateColumn": "Disposal Date",
  "registerStatusColumn": "Status"
}
```

# Actor output Schema

## `reports` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "registerCsv": `AssetNumber,Status
00017,Registered
LT-015,Disposed
M-7,Registered`,
    "proposalCsv": `Asset Number,Disposal Date
00017,2026-10-31
LT-015,2026-10-31
MISSING,2026-02-30`,
    "registerIdColumn": "AssetNumber",
    "registerStatusColumn": "Status"
};

// Run the Actor and wait for it to finish
const run = await client.actor("atesen-software/xero-fixed-asset-disposal-preflight").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "registerCsv": """AssetNumber,Status
00017,Registered
LT-015,Disposed
M-7,Registered""",
    "proposalCsv": """Asset Number,Disposal Date
00017,2026-10-31
LT-015,2026-10-31
MISSING,2026-02-30""",
    "registerIdColumn": "AssetNumber",
    "registerStatusColumn": "Status",
}

# Run the Actor and wait for it to finish
run = client.actor("atesen-software/xero-fixed-asset-disposal-preflight").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "registerCsv": "AssetNumber,Status\\n00017,Registered\\nLT-015,Disposed\\nM-7,Registered",
  "proposalCsv": "Asset Number,Disposal Date\\n00017,2026-10-31\\nLT-015,2026-10-31\\nMISSING,2026-02-30",
  "registerIdColumn": "AssetNumber",
  "registerStatusColumn": "Status"
}' |
apify call atesen-software/xero-fixed-asset-disposal-preflight --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,atesen-software/xero-fixed-asset-disposal-preflight"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kJ32xS0iqqMtckTT7/builds/2JOptAjUk4QDyKTtU/openapi.json
