Firsty

Search...

Search...

API errors

balance_not_available

The eSIM's balance cannot be read or changed in its current lifecycle status.

409application/problem+json

What it means

The eSIM is still preactive, so a balance that accepts credits only cannot be read or credited yet.

The eSIM's lifecycleStatus is terminated, faulted or stale, so its balance can no longer be read or changed. Its history stays readable.

409 · application/problem+json
{
  "type": "https://developers.firsty.app/errors/balance_not_available",
  "title": "Conflict",
  "status": 409,
  "detail": "The eSIM's balance is not available in its current lifecycle status",
  "code": "balance_not_available"
}

How to handle it

  1. For a preactive eSIM, wait for the esim.lifecycle.activated webhook, then retry.

  2. For a terminated, faulted or stale eSIM, do not retry.