# INTERNAL_FIO_TOKEN_INACTIVE: Fio API token is inactive.

- Category: Platform
- HTTP status: 502
- Reference: https://docs.bizkithub.com/en/errors/INTERNAL_FIO_TOKEN_INACTIVE

## What happened

Fio refused the request with `<status>error</status>`. This almost always means the API token stored in `shop__bank` for this account has been revoked, expired, or never activated. Fio tokens must be activated manually in Fio internet banking and have a fixed validity window.

## How to resolve

1. Log in to Fio internet banking, generate a new API token, activate it, and update the value in `shop__bank` (and in the admin UI for the bank account).
2. Check whether the bank account row is still flagged as active — a deactivated account should not run sync.

## Example response

```json
{
  "state": "error",
  "code": 502,
  "message": "Fio API token is inactive.",
  "errorCode": "INTERNAL_FIO_TOKEN_INACTIVE",
  "hint": "Fio refused the request with `<status>error</status>`. This almost always means the API token stored in `shop__bank` for this account has been revoked, expired, or never activated. Fio tokens must be activated manually in Fio internet banking and have a fixed validity window.",
  "documentationUrl": "https://docs.bizkithub.com/errors/INTERNAL_FIO_TOKEN_INACTIVE"
}
```
