> ## 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.

# Approve a payable

> POST /v1/payables/{payableId}/approve records the key member's approval at the bill's current approval step. It refuses a bill whose total, vendor or bill number changed since you read it, and it never pays.

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

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

Records the approval of the key's member at the bill's current approval step, as an approve in the Cleo web app does. The business's approval rules apply, and the member's role decides which bills it can approve. An admin can approve any step.

When the call completes the last step, the bill's `status` becomes `approved` and it waits for payment. Approving never pays a bill. Paying it is a separate call to [`POST /v1/payments`](https://docs.cleo-pay.com/api-reference/payments/create), which needs `payments:initiate`.

**payableId** `string` *required*

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

## Body

**expectedTotalAmountCents** `integer` *required*

The bill's `totalAmountCents` as you last read it, at least 0. If the bill's total is different now, it is not approved and the call answers `409 payable_changed`.

**expectedVendorKey** `string` *required*

The bill's `vendorKey` as you last read it from [`GET /v1/payables`](https://docs.cleo-pay.com/api-reference/payables/list) or [`GET /v1/payables/{payableId}`](https://docs.cleo-pay.com/api-reference/payables/get). Copy it unchanged. If the bill now pays another vendor, it is not approved and the call answers `409 payable_changed`.

**expectedCustomNumber** `string | null` *required*

The bill's `customNumber` as you last read it. Send `null` when the bill has no number; a blank number counts as none. Surrounding spaces are ignored, and otherwise the match is exact. If the bill number is different now, it is not approved and the call answers `409 payable_changed`.

**comment** `string`

Why it was approved, for example what it matched. Up to 500 characters. Shown with the approval in the bill's activity in Cleo.

Unknown fields answer `400 validation_error`.

## Example

Send the `totalAmountCents`, `vendorKey` and `customNumber` you read on the bill.

```bash theme={null}
curl -X POST https://api.stg.cleo-pay.com/v1/payables/b1e2c3d4-5f6a-4b8c-9d0e-1f2a3b4c5d6e/approve \
  --header "Authorization: Bearer $CLEO_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: 0f6c1d2e-approve-PAY-00042" \
  --data '{
    "expectedTotalAmountCents": 125000,
    "expectedVendorKey": "vk_3mQ9tXcV7bLk2RfP0aYwZe",
    "expectedCustomNumber": "INV-1042",
    "comment": "Matches the Spring Gala catering line in the October P&L"
  }'
```

## Response

`200` with the [payable](https://docs.cleo-pay.com/concepts/payables.md), as on [`GET /v1/payables/{payableId}`](https://docs.cleo-pay.com/api-reference/payables/get). Its `status` is `approved` when this completed the last step, and stays `pending_approval` while another step or approver is still open.

In the bill's activity in Cleo, the approval shows under the key's member with the agent's name: the OAuth client's name for a [connected agent](https://docs.cleo-pay.com/guides/connect-your-agent.md), or the API key's name. For example, **Jane Doe approved via ChatGPT**. The API response does not include it.

## Errors

| Code | When |
| - | - |
| `payable_changed` (409) | The bill's total, vendor or bill number does not match `expectedTotalAmountCents`, `expectedVendorKey` or `expectedCustomNumber`. The message names what differs, for example `The bill's vendor and total do not match what you sent`. When the bill changes during the call itself, the message says only that the bill changed. Nothing was approved. Read the bill again before you decide. |
| `validation_error` (400) | The bill is not waiting for approval, has no approval step, is waiting on another approver, or already has this member's approval at this step. The business requires categories and the bill has none. Also a missing or negative `expectedTotalAmountCents`, a missing or empty `expectedVendorKey`, a missing `expectedCustomNumber` (send `null` for none), a `comment` over 500 characters, or 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

* [Flag a payable](https://docs.cleo-pay.com/api-reference/payables/flag.md)
* [Reviewing bills](https://docs.cleo-pay.com/guides/mcp-server.md#reviewing-bills): the same steps as MCP tools


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