# PaymentRequiredError

> A priced tool was invoked without a verified payment.

```python
from ai_economy_sdk import PaymentRequiredError
```

```python
class PaymentRequiredError(AIEconomyError, ToolError)
```

A priced tool was invoked without a verified payment.

Raised by the server-side settlement middleware when a tool call reaches the
FastMCP server without having passed through the payment gate (for example over a
transport the gate does not cover). The call is refused rather than served unpaid.

Source: [ai_economy_sdk/exceptions.py](https://github.com/x402-avm/ai-economy-sdk/blob/main/ai_economy_sdk/exceptions.py#L65)

Source: https://x402-avm.github.io/reference/python/ai-economy-sdk/payment-required-error
