# Get a SAT query

`GET https://api.fiscalisto.com/v1/sat_refreshes/{id}`

How a SAT query is going (srf_…): processing while it queries, completed with what it brought in result, or failed with the reason in error (its stamp was returned). It doesn't use stamps.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | The object's id. |

## With the TypeScript SDK

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

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

const satRefresh = await fiscalisto.satRefreshes.get("srf_7Hq2mXc9LpR4tVb8NzK1");
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

sat_refresh = fiscalisto.sat_refreshes.get("srf_7Hq2mXc9LpR4tVb8NzK1")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$satRefresh = $fiscalisto->satRefreshes->get('srf_7Hq2mXc9LpR4tVb8NzK1');
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var satRefresh = await fiscalisto.SatRefreshes.GetAsync("srf_7Hq2mXc9LpR4tVb8NzK1");
```

## 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()

	satRefresh, err := client.SatRefreshes.Get(ctx, "srf_7Hq2mXc9LpR4tVb8NzK1")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(satRefresh.ID)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

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

var satRefresh = fiscalisto.satRefreshes().get("srf_7Hq2mXc9LpR4tVb8NzK1");
System.out.println(satRefresh.getId());
```

## Response 200

OK.

A `SatRefresh` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"sat_refresh"` | yes | What kind of object it is («invoice», «customer»…). |
| `id` | string | yes | The check's id (srf_…): GET /v1/sat_refreshes/{id} says how it is going. |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `issuer` | string | yes | The issuer. |
| `document` | `declarations`, `compliance_opinion`, `tax_status_certificate`, `sat_mailbox` | yes | What was checked: declarations, compliance_opinion, tax_status_certificate or sat_mailbox. |
| `status` | `processing`, `completed`, `failed` | yes | processing (the SAT is being checked), completed (what it brought is in url) or failed (the SAT didn't answer: reason in error, the stamp came back). |
| `result` | object or null | yes | What it brought, with status completed: for declarations how many it listed and downloaded; for the rest, where to read the document. null while it continues or if it failed. |
| `result.found` | integer | yes | How many tax returns the SAT listed in the years checked. (from -9007199254740991 to 9007199254740991) |
| `result.downloaded` | integer | yes | How many files it downloaded. (from -9007199254740991 to 9007199254740991) |
| `result.pending` | integer | yes | How many tax returns still have files to download: they continue on their own within the next hour, with no extra stamp. (from -9007199254740991 to 9007199254740991) |
| `result.warning` | string or null | yes | If one part of the SAT failed (for example, the annual return), what it said; the rest was brought in. |
| `result.completes_at` | string (date-time) or null | yes | With pending: when the missing files and figures should be there. Meanwhile, GET /v1/sat_declarations already lists them, with figures_status pending. |
| `result.url` | string | yes | Where to read the document. |
| `error` | string or null | yes | With status failed: what the SAT said. null for the rest. |
| `charged` | boolean | yes | true when its stamp was used (the SAT answered). Always false in test mode: no stamps are used. |
| `timbre_held` | boolean | yes | true while it continues: its stamp is set aside (GET /v1/balance no longer counts it) and comes back if the SAT doesn't answer. |
| `created_at` | string (date-time) | yes | When it was requested. |
| `completed_at` | string (date-time) or null | yes | When it finished (completed or failed). null while it continues. |
| `refreshed_at` | string (date-time) | yes | When it was requested (same as created_at). |
| `next_refresh_at` | string (date-time) | yes | From when it can be requested again for the same issuer (10 minutes later). |
| `url` | string | yes | Where to read what it brought. |

```json
{
  "object": "sat_refresh",
  "id": "srf_7Hq2mXc9LpR4tVb8NzK1",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "document": "declarations",
  "status": "completed",
  "result": {
    "found": 10,
    "downloaded": 10,
    "pending": 0,
    "warning": null,
    "completes_at": null
  },
  "error": null,
  "charged": false,
  "timbre_held": false,
  "created_at": "2026-10-27T09:12:00-06:00",
  "completed_at": "2026-10-27T09:12:41-06:00",
  "refreshed_at": "2026-10-27T09:12:00-06:00",
  "next_refresh_at": "2026-10-27T09:22:00-06:00",
  "url": "/v1/sat_declarations?issuer=iss_OufpKqnrvx9p"
}
```

## Errors

- `resource_missing` (404): There's no object with that id (or it belongs to another issuer or the other mode).

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
