Skip to content

FISCALISTO / API / REFERENCE

Get a SAT query · SAT tax returns

Open in ChatGPTOpen in ClaudeOpen in Cursor
GET
/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.

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Path parameters

id*string

The object's id.

Response body

OK.

application/json
  1. response

A check at the SAT for the issuer's tax returns or a document (compliance opinion, constancia or mailbox): it answers on acceptance (status processing) and finishes on its own; sat_refresh.completed or sat_refresh.failed say how.

object*string

What kind of object it is («invoice», «customer»…).

id*string

The check's id (srf_…): GET /v1/sat_refreshes/{id} says how it is going.

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer.

document*string

What was checked: declarations, compliance_opinion, tax_status_certificate or sat_mailbox.

One of"declarations""compliance_opinion""tax_status_certificate""sat_mailbox"
status*string

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

One of"processing""completed""failed"
result*||

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.

error*|

With status failed: what the SAT said. null for the rest.

charged*boolean

true when its stamp was used (the SAT answered). Always false in test mode: no stamps are used.

timbre_held*boolean

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

When it was requested.

Formatdate-time
completed_at*|

When it finished (completed or failed). null while it continues.

refreshed_at*string

When it was requested (same as created_at).

Formatdate-time
next_refresh_at*string

From when it can be requested again for the same issuer (10 minutes later).

Formatdate-time
url*string

Where to read what it brought.

Errors

  • 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): Errors. They all carry code, message and, when it's about a field, param.

curl -X GET 'https://api.fiscalisto.com/v1/sat_refreshes/srf_7Hq2mXc9LpR4tVb8NzK1' \  -H 'Authorization: Bearer fk_test_…'
{  "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"}

Was this page helpful?