Skip to main content
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, which needs payments:initiate.
string
required
The bill’s id. The bill must be one your business pays.

Body

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.
string
required
The bill’s vendorKey as you last read it from GET /v1/payables or GET /v1/payables/{payableId}. Copy it unchanged. If the bill now pays another vendor, it is not approved and the call answers 409 payable_changed.
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.
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.

Response

200 with the payable, as on GET /v1/payables/{payableId}. 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, or the API key’s name. For example, Jane Doe approved via ChatGPT. The API response does not include it.

Errors