---
title: "Create Xero Import Plan"
method: POST
path: "/v1/matters/{matter_id}/integrations/xero/import-plans"
tags: ["xero"]
---

# Create Xero Import Plan

`POST /v1/matters/{matter_id}/integrations/xero/import-plans`

## Request

- Base URL: `https://api.ender.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ender.au/v1/matters/{matter_id}/integrations/xero/import-plans`
- Auth: HTTP bearer

Discover the files available before the user confirms publication.

## Path parameters

- `matter_id` string, uuid, required

## Request body

- XeroImportPlanCommand
  - `source_id` string, uuid, required

## Response `200`

Successful Response

- XeroImportPlanRead
  - `id` string, uuid, required
  - `source_id` string, uuid, required
  - `organisation_id` string, uuid, required
  - `organisation_name` string, required
  - `appointment_date` string, date, required
  - `status` 'checking' | 'draft' | 'confirmed' | 'expired', required
  - `output_folder` string, required
  - `datasets` XeroImportPlanDataset[], required
    - `key` 'financial_statements' | 'supporting_schedules' | 'aged_payables' | 'aged_receivables' | 'employees' | 'payroll_evidence', required
    - `label` string, required
    - `status` 'available' | 'unavailable', required
    - `file_names` string[], required
    - `record_count` integer, nullable, required
    - `period_from` string, date, nullable, required
    - `period_to` string, date, nullable, required
    - `issue_code` string, nullable, required
    - `recovery_action` string, nullable, required
  - `estimated_provider_calls` integer, required
  - `day_limit_remaining` integer, nullable, required
  - `expires_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ender/apis/ender-backend.md) - [All operations](https://skmtc.dev/ender/apis/ender-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/ender/apis/ender-backend/revisions/bf4373130521?raw)
