# Account

Your API account and your stamps.

## Endpoints

- [Get the account](https://fiscalisto.com/en/docs/api/referencia/cuenta/get-account.md): `GET /v1/account`
- [Change the API version](https://fiscalisto.com/en/docs/api/referencia/cuenta/update-account.md): `POST /v1/account`
- [Reset the test data](https://fiscalisto.com/en/docs/api/referencia/cuenta/reset-test-data.md): `POST /v1/test_data/reset`
- [Get the stamps](https://fiscalisto.com/en/docs/api/referencia/cuenta/get-balance.md): `GET /v1/balance`

## The Account object

The API account of the key that made the request.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"account"` | yes | What kind of object it is («invoice», «customer»…). |
| `name` | string | yes | The API account's name. |
| `api_version` | string | yes | The account's API version (the one used by your requests without Fiscalisto-Version). See Versions. |
| `latest_api_version` | string | yes | The latest API version. |
| `key` | object | yes | The key the request was made with: id, name and the issuers it is limited to. |
| `key.id` | string | yes | Key id. |
| `key.name` | string | yes | Key name. |
| `key.issuers` | array of string or null | yes | Issuers the key is limited to; null if it can use all of them. |
| `key.read_only` | boolean | yes | true if the key is read-only (key_read_only on everything else). |
| `key.expires_at` | string (date-time) or null | yes | When it stops working: the lifetime chosen when it was created, or the end of the overlap when it was rotated. null if it doesn't expire. |
| `key.sandbox` | string or null | yes | The key's sandbox (sbx_…): it only sees its own issuers, webhooks and events. null if it belongs to the account. |

Example:

```json
{
  "id": "org_39c5a6b2-02b3-8453-9c35-aba6b43c876a",
  "object": "account",
  "livemode": false,
  "name": "Mi plataforma",
  "api_version": "2026-10-24",
  "latest_api_version": "2026-10-24",
  "key": {
    "id": "key_vFQbeTxgHVoTlowHaTLR",
    "name": "Pruebas",
    "issuers": null,
    "read_only": false,
    "expires_at": null,
    "sandbox": null
  }
}
```

## The Balance object

The account's production stamps, by pack, the one expiring soonest first.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"balance"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `available` | integer | yes | Stamps in your packs, in total: a single balance for the API and the app, bought in Desarrolladores or in Plan y pagos. (from -9007199254740991 to 9007199254740991) |
| `unlimited` | boolean | yes | Deprecated: always false. Only Fiscalisto's own internal accounts stamp without using stamps. Kept for compatibility; don't use it. |
| `low_balance_at` | integer | yes | At this amount or less, balance.low arrives (and again when they run out). Chosen in Desarrolladores › Timbres y pagos. (from -9007199254740991 to 9007199254740991) |
| `auto_recharge` | object or null | yes | Automatic recharge with the saved card, or null if it is off (turn it on in Desarrolladores › Timbres y pagos). |
| `auto_recharge.timbres` | integer | yes | Stamps in the pack that is bought. (from -9007199254740991 to 9007199254740991) |
| `auto_recharge.at` | integer | yes | It buys at this amount or less. (from -9007199254740991 to 9007199254740991) |
| `auto_recharge.max_per_month` | integer | yes | At most this many purchases a month. (from -9007199254740991 to 9007199254740991) |
| `use_plan_timbres` | boolean | yes | Deprecated: always true. The company's RFCs (type own) stamp first with their plan's monthly stamps and then with `available`, the packs of their single balance (bought in Desarrolladores or in Plan y pagos). Connected issuers use only `available`. Kept for compatibility. |
| `plan_timbres` | object or null | yes | Your company plan's monthly stamps, which the company's RFCs (type own) use before `available`; they aren't added to `available`. null if the company has no paid plan with monthly stamps (Gratis or an unpaid trial). With test keys it shows the same ones as in production, like `available`. |
| `plan_timbres.plan` | string | yes | The company's plan (despacho, negocio…). |
| `plan_timbres.remaining` | integer | yes | The ones left this month. (from -9007199254740991 to 9007199254740991) |
| `plan_timbres.included` | integer | yes | The ones the plan includes each month. (from -9007199254740991 to 9007199254740991) |
| `plan_timbres.resets_on` | string | yes | The day they are full again (YYYY-MM-DD). |
| `packs` | array of object | yes | The packs with stamps, the one expiring soonest first (they are used in that order). |
| `packs[].type` | `welcome`, `purchase`, `referral` | yes | welcome: the welcome stamps (they don't expire): each company's 10 and, on accounts opened before November 15, 2026, the API's 20 gift stamps, as separate packs; purchase: a bought pack or an automatic recharge; referral: those from a referral. |
| `packs[].timbres` | integer | yes | Stamps in the pack. (from -9007199254740991 to 9007199254740991) |
| `packs[].remaining` | integer | yes | The ones left. (from -9007199254740991 to 9007199254740991) |
| `packs[].purchased_at` | string (date-time) or null | yes | When it was bought. |
| `packs[].expires_at` | string (date-time) or null | yes | When they expire; null if they don't expire. |

Example:

```json
{
  "object": "balance",
  "livemode": true,
  "available": 20,
  "unlimited": false,
  "low_balance_at": 100,
  "auto_recharge": null,
  "use_plan_timbres": true,
  "plan_timbres": null,
  "packs": [
    {
      "type": "welcome",
      "timbres": 20,
      "remaining": 20,
      "purchased_at": "2026-10-24T10:15:42-06:00",
      "expires_at": null
    }
  ]
}
```

## The TestDataReset object

What was deleted (and created) when resetting the test data.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"test_data_reset"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | `false` | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `issuers` | integer | yes | How many test issuers were emptied (archived ones included). (from -9007199254740991 to 9007199254740991) |
| `deleted_rows` | integer | yes | How many records were deleted: invoices, customers, products, batches, links, downloads… (from -9007199254740991 to 9007199254740991) |
| `deleted_events` | integer | yes | How many test events were deleted (with their deliveries). (from -9007199254740991 to 9007199254740991) |
| `customers_created` | integer | yes | Sample customers created (with seed). (from -9007199254740991 to 9007199254740991) |
| `products_created` | integer | yes | Sample products created (with seed). (from -9007199254740991 to 9007199254740991) |

Example:

```json
{
  "object": "test_data_reset",
  "livemode": false,
  "issuers": 1,
  "deleted_rows": 214,
  "deleted_events": 37,
  "customers_created": 2,
  "products_created": 3
}
```
