# INTERNAL_FIO_API_UNAVAILABLE: Fio API is temporarily unavailable.

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

## What happened

The upstream Fio bank API did not return a parseable response within the timeout window. The most common causes are scheduled Fio maintenance, a token that was just rotated, or a brief network glitch between Vercel and Fio. The raw response body is appended to the error message for debugging.

## How to resolve

1. Retry the cron job in the next tick — transient Fio outages typically resolve within minutes.
2. Confirm the Fio API token configured in `shop__bank` is still valid (Fio sometimes invalidates tokens after a long idle period).
3. Check Fio status page if the failure persists for more than 15 minutes.

## Example response

```json
{
  "state": "error",
  "code": 502,
  "message": "Fio API is temporarily unavailable.",
  "errorCode": "INTERNAL_FIO_API_UNAVAILABLE",
  "hint": "The upstream Fio bank API did not return a parseable response within the timeout window. The most common causes are scheduled Fio maintenance, a token that was just rotated, or a brief network glitch between Vercel and Fio. The raw response body is appended to the error message for debugging.",
  "documentationUrl": "https://docs.bizkithub.com/errors/INTERNAL_FIO_API_UNAVAILABLE"
}
```
