---
title: "Detach the document from an AP item"
method: DELETE
path: "/companies/{companyId}/ap/{id}/document"
tags: ["AR/AP"]
---

# Detach the document from an AP item

`DELETE /companies/{companyId}/ap/{id}/document`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/ap/{id}/document`
- Auth: HTTP bearer

## Response `200`

Document detached

## Other responses

- `404`: Not found or AR/AP not enabled

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
