# Get the stamps

`GET https://api.fiscalisto.com/v1/balance`

The production stamps you have left, by pack. In test mode stamping is free.

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const balance = await fiscalisto.balance.get();
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

balance = fiscalisto.balance.get()
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$balance = $fiscalisto->balance->get();
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var balance = await fiscalisto.Balance.GetAsync();
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	balance, err := client.Balance.Get(ctx)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *balance)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var balance = fiscalisto.balance().get();
System.out.println(balance);
```

## Response 200

OK.

A `Balance` object:

| 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. |

```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
    }
  ]
}
```

## Errors

It can answer 400, 401, 403, 404, 429, 500 with the usual error body; each code is in https://fiscalisto.com/en/docs/api/errores.md.
