> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cleo-pay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Flag a payable

> POST /v1/payables/{payableId}/flags puts a note on a bill saying what does not match, for the team to review. The bill's status does not change.

```
POST /v1/payables/{payableId}/flags
```

**Scope:** `payables:approve`  ·  **Idempotency-Key:** optional

Puts a note on the bill saying what does not match. Use it instead of approving when a bill does not match what the business expects.

A flag changes nothing else. The bill keeps its status, and nobody is assigned. The flag shows as **Flagged** with the reason in the bill's activity in the Cleo web app, and in `flags` on [`GET /v1/payables/{payableId}`](https://docs.cleo-pay.com/api-reference/payables/get). Only your business sees it. The vendor never does. A flag does not move the bill's `updatedAt`.

**payableId** `string` *required*

The bill's `id`. The bill must be one your business pays.

## Body

**reason** `string` *required*

What does not match and what you compared it with, in words a teammate can act on. Up to 1,000 characters, not blank.

Unknown fields answer `400 validation_error`.

## Example

```bash theme={null}
curl -X POST https://api.stg.cleo-pay.com/v1/payables/b1e2c3d4-5f6a-4b8c-9d0e-1f2a3b4c5d6e/flags \
  --header "Authorization: Bearer $CLEO_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{ "reason": "The P&L has $1,150.00 for Acme catering on 2026-10-12. This bill is $1,250.00." }'
```

## Response

`200` with the [payable](https://docs.cleo-pay.com/concepts/payables.md). Its `flags` lists every flag on the bill, newest first:

```json theme={null}
{
  "id": "b1e2c3d4-5f6a-4b8c-9d0e-1f2a3b4c5d6e",
  "status": "pending_approval",
  "flags": [
    {
      "id": "e4f5a6b7-c8d9-4e0f-9a1b-2c3d4e5f6a7b",
      "reason": "The P&L has $1,150.00 for Acme catering on 2026-10-12. This bill is $1,250.00.",
      "flaggedBy": "Alex Rivera",
      "createdAt": "2026-11-18T15:04:22.000Z"
    }
  ]
}
```

The other fields of the payable are left out of this example.

## Errors

| Code | When |
| - | - |
| `validation_error` (400) | `reason` is missing, blank or over 1,000 characters, or the body has an unknown field. |
| `not_found` | The bill does not exist or your business does not pay it. |
| `forbidden_scope` | The key lacks `payables:approve`, or its member's role cannot approve bills. |

## Related

* [Approve a payable](https://docs.cleo-pay.com/api-reference/payables/approve.md)
* [List members](https://docs.cleo-pay.com/api-reference/members/list.md): name who should look at a flagged bill


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.