> This page is for version V1 (default).
> For other versions, use one of these documentation indexes:
> - V1 (default): https://docs.ottimate.com/v-1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ottimate.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ottimate.com/_mcp/server.

# Invoice Approvers

### Adding an Approver to an Invoice

This shows how to add an approver to an existing invoice.

```python
# main.py

approval_addition_response = client.invoices.post_invoices_id_approvers(
    id=ottimate_invoice_id,
    approver=approver_id
)
print("Approval addition response:", approval_addition_response)
```

### Listing Approvers for an Invoice

This demonstrates how to retrieve all approvers for a specific invoice.

```python
# main.py

approvers_response = client.invoices.get_invoices_id_approvers(id=ottimate_invoice_id)
for approver in approvers_response.approvers:
    print(f" - Ottimate Approval ID: {approver.id}, Name: {approver.approver.display_name}")
```

### Deleting an Approver from an Invoice

This shows how to remove an approver from an invoice using the approval ID.

```python
# main.py

deletion_response = client.invoices.delete_invoices_id_approvers(
    id=ottimate_invoice_id,
    approval_id=approval_id
)
print("Deletion response:", deletion_response)
```