---
title: "Xero Resync Reference Batch"
method: POST
path: "/api/v1/xero/resync_reference_batch"
---

# Xero Resync Reference Batch

`POST /api/v1/xero/resync_reference_batch`

Batch resync the Reference field for multiple invoices.

Use this to resync references for multiple invoices at once.
Each invoice will be processed and categorized as successful, failed, or skipped.

Invoices are skipped if:
- Not yet synced to Xero
- No line items found
- No reference data available (clearing_number and payment_ref both empty)

## Request body

- XeroResyncReferenceBatchRequest
  - `bill_ids` integer[], required
  - `plan_manager_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/caresquare/apis/fastapi.md) · [All operations](https://skmtc.dev/caresquare/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/caresquare/fastapi/revisions/c9df874d8d59/schema)
