# prov.mandate.approvers.route

prov.mandate.approvers.route in Python SDK. Route an approval to the link's approver.

## Signature

```python
prov.mandate.approvers.route(link_id: Optional[str] = …, action_description: str, intent_token: Optional[str] = …, jti: Optional[str] = …, amount: Optional[float] = …, needs_biometric: Optional[bool] = …, approval_expires_in: Optional[int] = …, link_expires_in: Optional[int] = …, channels: Optional[list] = …, delivery: Optional[str] = …, context: Optional[dict] = …, approver_link_ids: Optional[list] = …, reminders: Optional[dict] = …, approvals_needed: Optional[int] = …, deny_rule: Optional[str] = …) -> Any
```

## Parameters

- `link_id` (Optional[str], optional)
- `action_description` (str)
- `intent_token` (Optional[str], optional)
- `jti` (Optional[str], optional)
- `amount` (Optional[float], optional)
- `needs_biometric` (Optional[bool], optional)
- `approval_expires_in` (Optional[int], optional)
- `link_expires_in` (Optional[int], optional)
- `channels` (Optional[list], optional)
- `delivery` (Optional[str], optional)
- `context` (Optional[dict], optional)
- `approver_link_ids` (Optional[list], optional)
- `reminders` (Optional[dict], optional)
- `approvals_needed` (Optional[int], optional)
- `deny_rule` (Optional[str], optional)

## Returns

`Any`

## HTTP operation

[`POST /v1/mandate/approver_links/{id}/approvals`](https://provenanceauth.com/docs/api/approver-network.md#post-v1-mandate-approver-links-id-approvals): Route an approval to an approver

## Errors

- [`approval_already_open`](https://provenanceauth.com/docs/platform/errors.md#approval_already_open)
- [`approver_unauthenticated`](https://provenanceauth.com/docs/platform/errors.md#approver_unauthenticated)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`intent_token_foreign`](https://provenanceauth.com/docs/platform/errors.md#intent_token_foreign)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`link_revoked`](https://provenanceauth.com/docs/platform/errors.md#link_revoked)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`usage_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#usage_limit_reached)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links/lnk_01M5Q2H4DXP9F05T994KREYCNS/approvals`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3Zjc5YTg4NS01ZmM3In0.c2lnbmF0dXJl",
    "action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
    "amount": 850,
    "needs_biometric": true,
    "approval_expires_in": 3600
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/approver_links/lnk_01M5Q2H4DXP9F05T994KREYCNS/approvals", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3Zjc5YTg4NS01ZmM3In0.c2lnbmF0dXJl",
    "action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
    "amount": 850,
    "needs_biometric": True,
    "approval_expires_in": 3600
}).json()
```
