---
title: "integrations.unlink"
method: POST
path: "/capabilities/integrations.unlink"
tags: ["Capabilities"]
---

# integrations.unlink

`POST /capabilities/integrations.unlink`

Unlink a document from an integration (supports Xero and QuickBooks). Set dryRun=true (default) to preview, including invoice details and orphaned attachments. Set dryRun=false to execute. This action is IRREVERSIBLE.

## Request body

- object
  - `documentId` string, required — The receipt history document ID
  - `exportRecordId` string, required — The export record ID linking the document to the integration
  - `dryRun` boolean — If true, shows preview without making changes. If false, executes the unlinking.

## Response `200`

Successful response

- object
  - `success` boolean
  - `code` integer
  - `data` object
    - `result` object — Capability-specific result

## Other responses

- `400` — Invalid input
- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.net/receiptor/apis/receiptor-ai-api.md) · [All operations](https://skmtc.net/receiptor/apis/receiptor-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/receiptor/receiptor-ai-api/versions/da17f0eb65a2/schema)
