---
title: "Change an AP item's lifecycle status (FSM-enforced)"
method: PATCH
path: "/accountant/companies/{customerId}/ap/{id}/status"
tags: ["AR/AP"]
---

# Change an AP item's lifecycle status (FSM-enforced)

`PATCH /accountant/companies/{customerId}/ap/{id}/status`

## Request

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

## Response `200`

Status changed

## Other responses

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

---

[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)
