# Assemble the answer

`POST https://api.fiscalisto.com/v1/sat_reviews/{id}/answer`

Like «Armar respuesta»: assembles in the background a ZIP with what the review asks for: the XMLs and the list of the period's CFDIs, the working paper, the electronic accounting with the order number, the tax returns, the documents uploaded in the app and an index of which file answers each item. Answers with the review with answer.status processing; look up GET /v1/sat_reviews/{id} until it's completed and download it with GET /v1/sat_reviews/{id}/answer. One at a time (answer_running). It doesn't use stamps.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | The object's id. |
| `Idempotency-Key` | header |  | Optional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge). |

## With the TypeScript SDK

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

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

const satReview = await fiscalisto.satReviews.armAnswer("srv_OufpKqnrvx9p1A", { idempotencyKey: "pedido-A-1042" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

sat_review = fiscalisto.sat_reviews.arm_answer("srv_OufpKqnrvx9p1A", idempotency_key="pedido-A-1042")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$satReview = $fiscalisto->satReviews->armAnswer('srv_OufpKqnrvx9p1A', ['idempotency_key' => 'pedido-A-1042']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var satReview = await fiscalisto.SatReviews.ArmAnswerAsync("srv_OufpKqnrvx9p1A", new RequestOptions { IdempotencyKey = "pedido-A-1042" });
```

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

	satReview, err := client.SatReviews.ArmAnswer(ctx, "srv_OufpKqnrvx9p1A", fiscalisto.WithIdempotencyKey("pedido-A-1042"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(satReview.ID)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;

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

var satReview = fiscalisto.satReviews().armAnswer("srv_OufpKqnrvx9p1A", RequestOptions.idempotencyKey("pedido-A-1042"));
System.out.println(satReview.getId());
```

## Response 200

OK.

A `SatReview` object:

| 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` | `"sat_review"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer whose RFC received the official letter. |
| `type` | `invitation_letter`, `return_clarification`, `missing_returns`, `desk_audit`, `field_audit`, `electronic_audit`, `supplier_69b`, `presumption_69b`, `csd_restriction`, `tax_discrepancy`, `refund`, `other` | yes | What it received (invitation_letter, desk_audit, field_audit…). |
| `type_name` | string | yes | Its name as the app shows it («Revisión de gabinete»). |
| `status` | `open`, `answered`, `concluded`, `assessed`, `in_defense`, `closed` | yes | open (to attend to), answered, concluded (without observations), assessed (with a tax assessment), in_defense or closed. |
| `status_name` | string | yes | Its status as the app shows it («Por atender»). |
| `reference` | string or null | yes | The official letter's number, or null. |
| `order_number` | string or null | yes | The order or procedure number that goes in the electronic accounting journal entries, or null. |
| `authority` | string or null | yes | The authority that signs it, or null. |
| `period_start` | string or null | yes | First day of the period reviewed, or null. |
| `period_end` | string or null | yes | Last day of the period reviewed, or null. |
| `amount` | number or null | yes | The amount the SAT points out, in pesos, or null. |
| `due_on` | string or null | yes | The last day to answer the pending official letter (the most recent unanswered one), or null if the law gives no deadline or all have been answered. |
| `business_days_left` | integer or null | yes | Business days left: 0 is today, negative has passed. null without a deadline. |
| `sat_must_conclude_by` | string or null | yes | The day the SAT must finish the review (12 months for desk and field audits, 6 for electronic ones), or null. |
| `notices` | array of object | yes | Its official letters, from first to last, each with its deadline. |
| `notices[].step` | string | yes | Which official letter it is, among those of its type. |
| `notices[].name` | string | yes | Its name («Solicitud de información»). |
| `notices[].notified_on` | string | yes | The day it was served. |
| `notices[].effective_on` | string | yes | The day it takes effect (the next business day). |
| `notices[].business_days` | integer or null | yes | The business days it gives, with the extension if requested; null if the law gives no deadline. |
| `notices[].extension` | boolean | yes | Whether the extension was requested or the notice filed. |
| `notices[].due_on` | string or null | yes | Its last day to answer, or null. |
| `notices[].business_days_left` | integer or null | yes | Business days left (0 is today, negative has passed), or null. |
| `notices[].answered_on` | string or null | yes | The day it was answered, or null. |
| `notices[].law` | string | yes | The article that sets the deadline («art. 53 inciso c) CFF»). |
| `notices[].conclusive_agreement_until` | string or null | yes | Until when a conclusive agreement can be requested at Prodecon (art. 69-C CFF), when it applies. |
| `requests` | array of object | yes | What the official letter asks to deliver and how ready it is. |
| `requests[].key` | `working_paper`, `tax_discrepancy`, `issued_invoices`, `received_invoices`, `retentions`, `tax_returns`, `electronic_accounting`, `materiality`, `bank_statements`, `contracts`, `inventory`, `assets_and_staff`, `articles_and_power`, `written_answer`, `other` | yes | What it asks for. |
| `requests[].name` | string | yes | What it is called (or as the official letter says it). |
| `requests[].made_by` | `fiscalisto`, `you` | yes | fiscalisto: the answer builds it with your data; you: it is uploaded (contracts, a written statement…). |
| `requests[].done` | boolean | yes | Whether you marked it as ready. |
| `requests[].note` | string or null | yes | Its note, or null. |
| `requests[].have` | string or null | yes | What Fiscalisto has for it in the period («412 CFDI»), or null. |
| `requests[].documents` | integer | yes | How many documents you uploaded for it in the app. (from -9007199254740991 to 9007199254740991) |
| `requests[].ready` | boolean | yes | Ready: you marked it, Fiscalisto builds it with what it has, or you uploaded at least one document. |
| `ready` | integer | yes | How many of the requests are ready («Ya tiene N de M»). (from -9007199254740991 to 9007199254740991) |
| `total` | integer | yes | How many it asks for. (from -9007199254740991 to 9007199254740991) |
| `answer` | object or null | yes | The last answer built (POST /v1/sat_reviews/{id}/answer), or null. Download it with GET /v1/sat_reviews/{id}/answer. |
| `answer.status` | `processing`, `completed`, `failed`, `expired` | yes | processing, completed (downloadable), failed or expired. |
| `answer.size_bytes` | integer or null | yes | The ZIP's size, once complete. |
| `answer.error` | string or null | yes | Why it failed, or null. |
| `answer.created_at` | string (date-time) | yes | When it was requested. |
| `answer.completed_at` | string (date-time) or null | yes | When it was ready, or null. |
| `answer.expires_at` | string (date-time) or null | yes | Until when it can be downloaded, or null. |
| `notes` | string or null | yes | Your notes, or null. |
| `created_at` | string (date-time) | yes | When it was recorded. |
| `updated_at` | string (date-time) | yes | Its last change. |

```json
{
  "id": "srv_OufpKqnrvx9p1A",
  "object": "sat_review",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "type": "desk_audit",
  "type_name": "Revisión de gabinete",
  "status": "open",
  "status_name": "Por atender",
  "reference": "500-05-2026-1234",
  "order_number": "GAO0900001/26",
  "authority": "ADAF de Occidente",
  "period_start": "2024-01-01",
  "period_end": "2024-12-31",
  "amount": null,
  "due_on": "2026-03-25",
  "business_days_left": 12,
  "sat_must_conclude_by": "2027-03-02",
  "notices": [
    {
      "step": "solicitud",
      "name": "Solicitud de información",
      "notified_on": "2026-03-02",
      "effective_on": "2026-03-03",
      "business_days": 15,
      "extension": false,
      "due_on": "2026-03-25",
      "business_days_left": 12,
      "answered_on": null,
      "law": "art. 48 y 53 inciso c) CFF",
      "conclusive_agreement_until": null
    }
  ],
  "requests": [
    {
      "key": "issued_invoices",
      "name": "CFDI emitidos",
      "made_by": "fiscalisto",
      "done": false,
      "note": null,
      "have": "412 CFDI",
      "documents": 0,
      "ready": true
    },
    {
      "key": "contracts",
      "name": "Contratos",
      "made_by": "you",
      "done": false,
      "note": null,
      "have": null,
      "documents": 0,
      "ready": false
    }
  ],
  "ready": 1,
  "total": 2,
  "answer": {
    "status": "processing",
    "size_bytes": null,
    "error": null,
    "created_at": "2026-03-10T09:00:00-06:00",
    "completed_at": null,
    "expires_at": null
  },
  "notes": null,
  "created_at": "2026-03-04T10:15:44-06:00",
  "updated_at": "2026-03-04T10:15:44-06:00"
}
```

## Errors

- `answer_running` (409): The answer to this SAT review is already being armed. Wait until answer.status is completed (GET /v1/sat_reviews/{id}).
- `feature_not_in_plan` (403): Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
- `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.
