{
    "item": [
        {
            "name": "v1-documents",
            "description": "",
            "item": [
                {
                    "id": "d0893938-2769-4463-b12f-ce1d98b70687",
                    "name": "Emitir (= encolar) un DTE",
                    "request": {
                        "name": "Emitir (= encolar) un DTE",
                        "description": {
                            "content": "Encola un documento. Responde **202** `{ status: \"queued\" }` — NO es\naceptación del SII. Pollea `/{id}/states` o usa webhooks. Requiere el\nscope `dte:create`. Manda `Idempotency-Key` para reintentos seguros.\nLímite: 120 req/min por cuenta.\n",
                            "type": "text/plain"
                        },
                        "url": {
                            "path": [
                                "v1-documents"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "disabled": false,
                                "description": {
                                    "content": "Clave de idempotencia para reintentos seguros de emisión (el folio es irreversible).",
                                    "type": "text/plain"
                                },
                                "key": "Idempotency-Key",
                                "value": "<string>"
                            },
                            {
                                "disabled": false,
                                "description": {
                                    "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                    "type": "text/plain"
                                },
                                "key": "X-Use-Defaults",
                                "value": "<string>"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 39,\n  \"ambiente\": \"prod\",\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\",\n    \"key_1\": 1782\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": true,\n      \"key_2\": true\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": 8680,\n        \"key_1\": 9286.2785082685\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 5002.216098267918,\n        \"key_2\": 9725.959111071928,\n        \"key_3\": 1980.0337873311557\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": \"string\"\n  }\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        },
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "dfde597d-45e5-42e9-bf40-531f04e0bf17",
                            "name": "Documento encolado.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Clave de idempotencia para reintentos seguros de emisión (el folio es irreversible).",
                                            "type": "text/plain"
                                        },
                                        "key": "Idempotency-Key",
                                        "value": "<string>"
                                    },
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                            "type": "text/plain"
                                        },
                                        "key": "X-Use-Defaults",
                                        "value": "<string>"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 39,\n  \"ambiente\": \"prod\",\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\",\n    \"key_1\": 1782\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": true,\n      \"key_2\": true\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": 8680,\n        \"key_1\": 9286.2785082685\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 5002.216098267918,\n        \"key_2\": 9725.959111071928,\n        \"key_3\": 1980.0337873311557\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": \"string\"\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Accepted",
                            "code": 202,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"id\": \"<uuid>\",\n  \"folio\": \"<integer>\",\n  \"status\": \"<string>\",\n  \"tipo\": 34,\n  \"ambiente\": \"cert\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "668fd14e-8c57-48b1-9be4-8a21d74f3ecc",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Clave de idempotencia para reintentos seguros de emisión (el folio es irreversible).",
                                            "type": "text/plain"
                                        },
                                        "key": "Idempotency-Key",
                                        "value": "<string>"
                                    },
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                            "type": "text/plain"
                                        },
                                        "key": "X-Use-Defaults",
                                        "value": "<string>"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 39,\n  \"ambiente\": \"prod\",\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\",\n    \"key_1\": 1782\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": true,\n      \"key_2\": true\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": 8680,\n        \"key_1\": 9286.2785082685\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 5002.216098267918,\n        \"key_2\": 9725.959111071928,\n        \"key_3\": 1980.0337873311557\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": \"string\"\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "0013be33-9928-45ae-942a-48e70688dc21",
                            "name": "Scope insuficiente, ambiente no permitido por la key, o emisor fuera de scope.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Clave de idempotencia para reintentos seguros de emisión (el folio es irreversible).",
                                            "type": "text/plain"
                                        },
                                        "key": "Idempotency-Key",
                                        "value": "<string>"
                                    },
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                            "type": "text/plain"
                                        },
                                        "key": "X-Use-Defaults",
                                        "value": "<string>"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 39,\n  \"ambiente\": \"prod\",\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\",\n    \"key_1\": 1782\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": true,\n      \"key_2\": true\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": 8680,\n        \"key_1\": 9286.2785082685\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 5002.216098267918,\n        \"key_2\": 9725.959111071928,\n        \"key_3\": 1980.0337873311557\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": \"string\"\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Forbidden",
                            "code": 403,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "04ff9901-f6c2-48ce-836b-210517f006c8",
                            "name": "Emisor no existe o no pertenece a tu cuenta.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Clave de idempotencia para reintentos seguros de emisión (el folio es irreversible).",
                                            "type": "text/plain"
                                        },
                                        "key": "Idempotency-Key",
                                        "value": "<string>"
                                    },
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                            "type": "text/plain"
                                        },
                                        "key": "X-Use-Defaults",
                                        "value": "<string>"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 39,\n  \"ambiente\": \"prod\",\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\",\n    \"key_1\": 1782\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": true,\n      \"key_2\": true\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": 8680,\n        \"key_1\": 9286.2785082685\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 5002.216098267918,\n        \"key_2\": 9725.959111071928,\n        \"key_3\": 1980.0337873311557\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": \"string\"\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "5838adf6-8ba0-43b1-92bf-7815b4368b55",
                            "name": "Falta certificado / CAF / folios para ese tipo y ambiente.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Clave de idempotencia para reintentos seguros de emisión (el folio es irreversible).",
                                            "type": "text/plain"
                                        },
                                        "key": "Idempotency-Key",
                                        "value": "<string>"
                                    },
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                            "type": "text/plain"
                                        },
                                        "key": "X-Use-Defaults",
                                        "value": "<string>"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 39,\n  \"ambiente\": \"prod\",\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\",\n    \"key_1\": 1782\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": true,\n      \"key_2\": true\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": 8680,\n        \"key_1\": 9286.2785082685\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 5002.216098267918,\n        \"key_2\": 9725.959111071928,\n        \"key_3\": 1980.0337873311557\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": \"string\"\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Conflict",
                            "code": 409,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "1be0809a-22ac-4703-8ff2-86416bb5d6f1",
                            "name": "Cuerpo inválido (montos descuadrados, RUT inválido, falta referencia en NC/ND, etc.).",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Clave de idempotencia para reintentos seguros de emisión (el folio es irreversible).",
                                            "type": "text/plain"
                                        },
                                        "key": "Idempotency-Key",
                                        "value": "<string>"
                                    },
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                            "type": "text/plain"
                                        },
                                        "key": "X-Use-Defaults",
                                        "value": "<string>"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 39,\n  \"ambiente\": \"prod\",\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\",\n    \"key_1\": 1782\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": true,\n      \"key_2\": true\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": 8680,\n        \"key_1\": 9286.2785082685\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 5002.216098267918,\n        \"key_2\": 9725.959111071928,\n        \"key_3\": 1980.0337873311557\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": \"string\"\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                            "code": 422,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "14cb0886-ebbc-4c2f-97ab-2bd14633a26c",
                            "name": "Demasiadas solicitudes. Reintenta tras el `Retry-After`.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Clave de idempotencia para reintentos seguros de emisión (el folio es irreversible).",
                                            "type": "text/plain"
                                        },
                                        "key": "Idempotency-Key",
                                        "value": "<string>"
                                    },
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                            "type": "text/plain"
                                        },
                                        "key": "X-Use-Defaults",
                                        "value": "<string>"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 39,\n  \"ambiente\": \"prod\",\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\",\n    \"key_1\": 1782\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": true,\n      \"key_2\": true\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": 8680,\n        \"key_1\": 9286.2785082685\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": \"string\"\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 5002.216098267918,\n        \"key_2\": 9725.959111071928,\n        \"key_3\": 1980.0337873311557\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": \"string\"\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Too Many Requests",
                            "code": 429,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                },
                                {
                                    "disabled": false,
                                    "description": {
                                        "content": "Segundos a esperar.",
                                        "type": "text/plain"
                                    },
                                    "key": "Retry-After",
                                    "value": "<integer>"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "id": "c5a0c74b-55c1-480c-b080-6504c318f219",
                    "name": "Listar documentos de la cuenta",
                    "request": {
                        "name": "Listar documentos de la cuenta",
                        "description": {
                            "content": "Más recientes primero. Requiere el scope `dte:read`.",
                            "type": "text/plain"
                        },
                        "url": {
                            "path": [
                                "v1-documents"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [
                                {
                                    "disabled": false,
                                    "description": {
                                        "content": "",
                                        "type": "text/plain"
                                    },
                                    "key": "limit",
                                    "value": "20"
                                }
                            ],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "GET",
                        "body": {},
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "7590d4b5-92db-4e68-acd8-0736febe817d",
                            "name": "Lista de documentos.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "limit",
                                            "value": "20"
                                        }
                                    ],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "OK",
                            "code": 200,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"documents\": [\n    {\n      \"id\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"receptor_rut\": \"<string,null>\",\n      \"receptor_razon_social\": \"<string,null>\",\n      \"monto\": \"<integer>\",\n      \"status\": \"<string>\",\n      \"created_at\": \"<dateTime>\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"receptor_rut\": \"<string,null>\",\n      \"receptor_razon_social\": \"<string,null>\",\n      \"monto\": \"<integer>\",\n      \"status\": \"<string>\",\n      \"created_at\": \"<dateTime>\"\n    }\n  ]\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "0e1b7373-29ac-4cea-95ba-2c69c200efcc",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-documents"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "limit",
                                            "value": "20"
                                        }
                                    ],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "name": "batch",
                    "description": "",
                    "item": [
                        {
                            "id": "7f3581b4-6ce5-4aeb-94b0-96521d026f62",
                            "name": "Emitir un lote (≤ 100 documentos)",
                            "request": {
                                "name": "Emitir un lote (≤ 100 documentos)",
                                "description": {
                                    "content": "Emite un lote (boleta de alto volumen). No aborta si uno falla: devuelve\nresultado por documento. Idempotencia opcional por item\n(`idempotencyKey`). Responde 202 si al menos uno se encoló, 422 si todos\nfallaron. Límite: 120 req/min por cuenta.\n",
                                    "type": "text/plain"
                                },
                                "url": {
                                    "path": [
                                        "v1-documents",
                                        "batch"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "disabled": false,
                                        "description": {
                                            "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                            "type": "text/plain"
                                        },
                                        "key": "X-Use-Defaults",
                                        "value": "<string>"
                                    },
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"documents\": [\n    {\n      \"emisorId\": \"<uuid>\",\n      \"tipo\": 33,\n      \"ambiente\": \"test\",\n      \"receptor\": {\n        \"rut\": \"<string>\",\n        \"razonSocial\": \"<string>\",\n        \"giro\": \"<string>\",\n        \"email\": \"<email>\",\n        \"phone\": \"<string>\",\n        \"extranjero\": {\n          \"numId\": \"<string>\",\n          \"nacionalidad\": \"<integer>\"\n        }\n      },\n      \"montos\": {\n        \"total\": \"<integer>\",\n        \"neto\": \"<integer>\",\n        \"iva\": \"<integer>\",\n        \"exento\": \"<integer>\"\n      },\n      \"exenta\": \"<boolean>\",\n      \"glosa\": \"<string>\",\n      \"paymentForm\": \"<integer>\",\n      \"serviceIndicator\": \"<integer>\",\n      \"exemptIndicator\": \"<integer>\",\n      \"references\": [\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        },\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        }\n      ],\n      \"despacho\": {\n        \"indTraslado\": \"<integer>\",\n        \"tipoDespacho\": \"<integer>\"\n      },\n      \"transporte\": {\n        \"key_0\": \"string\",\n        \"key_1\": false\n      },\n      \"exportacion\": {\n        \"tpoMoneda\": \"<string>\",\n        \"otraMoneda\": {\n          \"key_0\": 6216,\n          \"key_1\": 6824,\n          \"key_2\": 3752.825481410731\n        },\n        \"fmaPagExp\": \"<integer>\",\n        \"fchCancel\": \"<date>\",\n        \"indServicio\": \"<integer>\"\n      },\n      \"liquidacion\": {\n        \"items\": [\n          {\n            \"key_0\": 8360\n          },\n          {\n            \"key_0\": 2811\n          }\n        ],\n        \"comisiones\": [\n          {\n            \"key_0\": 8013,\n            \"key_1\": 9724.957454910125,\n            \"key_2\": \"string\"\n          },\n          {\n            \"key_0\": 119.64654429843624,\n            \"key_1\": true,\n            \"key_2\": \"string\"\n          }\n        ],\n        \"exento\": \"<integer>\",\n        \"ivaProp\": \"<integer>\",\n        \"ivaTerc\": \"<integer>\",\n        \"valComNeto\": \"<integer>\",\n        \"valComExe\": \"<integer>\",\n        \"valComIVA\": \"<integer>\"\n      },\n      \"compra\": {\n        \"key_0\": false\n      },\n      \"idempotencyKey\": \"<string>\"\n    }\n  ]\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                },
                                "auth": null
                            },
                            "response": [
                                {
                                    "id": "9bc21bec-e128-4cfe-bc73-ac8de7fdda6c",
                                    "name": "Lote procesado (al menos uno encolado).",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                "batch"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "disabled": false,
                                                "description": {
                                                    "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                                    "type": "text/plain"
                                                },
                                                "key": "X-Use-Defaults",
                                                "value": "<string>"
                                            },
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"documents\": [\n    {\n      \"emisorId\": \"<uuid>\",\n      \"tipo\": 33,\n      \"ambiente\": \"test\",\n      \"receptor\": {\n        \"rut\": \"<string>\",\n        \"razonSocial\": \"<string>\",\n        \"giro\": \"<string>\",\n        \"email\": \"<email>\",\n        \"phone\": \"<string>\",\n        \"extranjero\": {\n          \"numId\": \"<string>\",\n          \"nacionalidad\": \"<integer>\"\n        }\n      },\n      \"montos\": {\n        \"total\": \"<integer>\",\n        \"neto\": \"<integer>\",\n        \"iva\": \"<integer>\",\n        \"exento\": \"<integer>\"\n      },\n      \"exenta\": \"<boolean>\",\n      \"glosa\": \"<string>\",\n      \"paymentForm\": \"<integer>\",\n      \"serviceIndicator\": \"<integer>\",\n      \"exemptIndicator\": \"<integer>\",\n      \"references\": [\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        },\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        }\n      ],\n      \"despacho\": {\n        \"indTraslado\": \"<integer>\",\n        \"tipoDespacho\": \"<integer>\"\n      },\n      \"transporte\": {\n        \"key_0\": \"string\",\n        \"key_1\": false\n      },\n      \"exportacion\": {\n        \"tpoMoneda\": \"<string>\",\n        \"otraMoneda\": {\n          \"key_0\": 6216,\n          \"key_1\": 6824,\n          \"key_2\": 3752.825481410731\n        },\n        \"fmaPagExp\": \"<integer>\",\n        \"fchCancel\": \"<date>\",\n        \"indServicio\": \"<integer>\"\n      },\n      \"liquidacion\": {\n        \"items\": [\n          {\n            \"key_0\": 8360\n          },\n          {\n            \"key_0\": 2811\n          }\n        ],\n        \"comisiones\": [\n          {\n            \"key_0\": 8013,\n            \"key_1\": 9724.957454910125,\n            \"key_2\": \"string\"\n          },\n          {\n            \"key_0\": 119.64654429843624,\n            \"key_1\": true,\n            \"key_2\": \"string\"\n          }\n        ],\n        \"exento\": \"<integer>\",\n        \"ivaProp\": \"<integer>\",\n        \"ivaTerc\": \"<integer>\",\n        \"valComNeto\": \"<integer>\",\n        \"valComExe\": \"<integer>\",\n        \"valComIVA\": \"<integer>\"\n      },\n      \"compra\": {\n        \"key_0\": false\n      },\n      \"idempotencyKey\": \"<string>\"\n    }\n  ]\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        }
                                    },
                                    "status": "Accepted",
                                    "code": 202,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"count\": \"<integer>\",\n  \"results\": [\n    {\n      \"index\": \"<integer>\",\n      \"ok\": \"<boolean>\",\n      \"id\": \"<uuid>\",\n      \"folio\": \"<integer>\",\n      \"status\": \"<string>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"error\": \"<string>\",\n      \"detail\": \"<string>\"\n    },\n    {\n      \"index\": \"<integer>\",\n      \"ok\": \"<boolean>\",\n      \"id\": \"<uuid>\",\n      \"folio\": \"<integer>\",\n      \"status\": \"<string>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"error\": \"<string>\",\n      \"detail\": \"<string>\"\n    }\n  ]\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "e3dcd0cd-544c-4c67-8af0-57be50cb34f2",
                                    "name": "API key o sesión inválida.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                "batch"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "disabled": false,
                                                "description": {
                                                    "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                                    "type": "text/plain"
                                                },
                                                "key": "X-Use-Defaults",
                                                "value": "<string>"
                                            },
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"documents\": [\n    {\n      \"emisorId\": \"<uuid>\",\n      \"tipo\": 33,\n      \"ambiente\": \"test\",\n      \"receptor\": {\n        \"rut\": \"<string>\",\n        \"razonSocial\": \"<string>\",\n        \"giro\": \"<string>\",\n        \"email\": \"<email>\",\n        \"phone\": \"<string>\",\n        \"extranjero\": {\n          \"numId\": \"<string>\",\n          \"nacionalidad\": \"<integer>\"\n        }\n      },\n      \"montos\": {\n        \"total\": \"<integer>\",\n        \"neto\": \"<integer>\",\n        \"iva\": \"<integer>\",\n        \"exento\": \"<integer>\"\n      },\n      \"exenta\": \"<boolean>\",\n      \"glosa\": \"<string>\",\n      \"paymentForm\": \"<integer>\",\n      \"serviceIndicator\": \"<integer>\",\n      \"exemptIndicator\": \"<integer>\",\n      \"references\": [\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        },\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        }\n      ],\n      \"despacho\": {\n        \"indTraslado\": \"<integer>\",\n        \"tipoDespacho\": \"<integer>\"\n      },\n      \"transporte\": {\n        \"key_0\": \"string\",\n        \"key_1\": false\n      },\n      \"exportacion\": {\n        \"tpoMoneda\": \"<string>\",\n        \"otraMoneda\": {\n          \"key_0\": 6216,\n          \"key_1\": 6824,\n          \"key_2\": 3752.825481410731\n        },\n        \"fmaPagExp\": \"<integer>\",\n        \"fchCancel\": \"<date>\",\n        \"indServicio\": \"<integer>\"\n      },\n      \"liquidacion\": {\n        \"items\": [\n          {\n            \"key_0\": 8360\n          },\n          {\n            \"key_0\": 2811\n          }\n        ],\n        \"comisiones\": [\n          {\n            \"key_0\": 8013,\n            \"key_1\": 9724.957454910125,\n            \"key_2\": \"string\"\n          },\n          {\n            \"key_0\": 119.64654429843624,\n            \"key_1\": true,\n            \"key_2\": \"string\"\n          }\n        ],\n        \"exento\": \"<integer>\",\n        \"ivaProp\": \"<integer>\",\n        \"ivaTerc\": \"<integer>\",\n        \"valComNeto\": \"<integer>\",\n        \"valComExe\": \"<integer>\",\n        \"valComIVA\": \"<integer>\"\n      },\n      \"compra\": {\n        \"key_0\": false\n      },\n      \"idempotencyKey\": \"<string>\"\n    }\n  ]\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        }
                                    },
                                    "status": "Unauthorized",
                                    "code": 401,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "78e4043e-1a97-4656-ae7b-e5026f680784",
                                    "name": "Lote vacío, demasiado grande, o todos los items fallaron.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                "batch"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "disabled": false,
                                                "description": {
                                                    "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                                    "type": "text/plain"
                                                },
                                                "key": "X-Use-Defaults",
                                                "value": "<string>"
                                            },
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"documents\": [\n    {\n      \"emisorId\": \"<uuid>\",\n      \"tipo\": 33,\n      \"ambiente\": \"test\",\n      \"receptor\": {\n        \"rut\": \"<string>\",\n        \"razonSocial\": \"<string>\",\n        \"giro\": \"<string>\",\n        \"email\": \"<email>\",\n        \"phone\": \"<string>\",\n        \"extranjero\": {\n          \"numId\": \"<string>\",\n          \"nacionalidad\": \"<integer>\"\n        }\n      },\n      \"montos\": {\n        \"total\": \"<integer>\",\n        \"neto\": \"<integer>\",\n        \"iva\": \"<integer>\",\n        \"exento\": \"<integer>\"\n      },\n      \"exenta\": \"<boolean>\",\n      \"glosa\": \"<string>\",\n      \"paymentForm\": \"<integer>\",\n      \"serviceIndicator\": \"<integer>\",\n      \"exemptIndicator\": \"<integer>\",\n      \"references\": [\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        },\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        }\n      ],\n      \"despacho\": {\n        \"indTraslado\": \"<integer>\",\n        \"tipoDespacho\": \"<integer>\"\n      },\n      \"transporte\": {\n        \"key_0\": \"string\",\n        \"key_1\": false\n      },\n      \"exportacion\": {\n        \"tpoMoneda\": \"<string>\",\n        \"otraMoneda\": {\n          \"key_0\": 6216,\n          \"key_1\": 6824,\n          \"key_2\": 3752.825481410731\n        },\n        \"fmaPagExp\": \"<integer>\",\n        \"fchCancel\": \"<date>\",\n        \"indServicio\": \"<integer>\"\n      },\n      \"liquidacion\": {\n        \"items\": [\n          {\n            \"key_0\": 8360\n          },\n          {\n            \"key_0\": 2811\n          }\n        ],\n        \"comisiones\": [\n          {\n            \"key_0\": 8013,\n            \"key_1\": 9724.957454910125,\n            \"key_2\": \"string\"\n          },\n          {\n            \"key_0\": 119.64654429843624,\n            \"key_1\": true,\n            \"key_2\": \"string\"\n          }\n        ],\n        \"exento\": \"<integer>\",\n        \"ivaProp\": \"<integer>\",\n        \"ivaTerc\": \"<integer>\",\n        \"valComNeto\": \"<integer>\",\n        \"valComExe\": \"<integer>\",\n        \"valComIVA\": \"<integer>\"\n      },\n      \"compra\": {\n        \"key_0\": false\n      },\n      \"idempotencyKey\": \"<string>\"\n    }\n  ]\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        }
                                    },
                                    "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                                    "code": 422,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "55bf437d-b586-4db4-b797-21bb14eabc41",
                                    "name": "Demasiadas solicitudes. Reintenta tras el `Retry-After`.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                "batch"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "disabled": false,
                                                "description": {
                                                    "content": "Si está presente (y distinto de \"false\"/\"0\"), el servidor autocompleta campos opcionales para que mandes lo mínimo: `ambiente` se deriva del ambiente de la API key (live→prod, test→cert) si lo omites, y en un documento AFECTO donde solo envías `montos.total` se calcula el split de IVA 19% (`neto` = redondeo(total/1.19), `iva` = total − neto). No aplica a exentos/exportación/43/46.\n",
                                                    "type": "text/plain"
                                                },
                                                "key": "X-Use-Defaults",
                                                "value": "<string>"
                                            },
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"documents\": [\n    {\n      \"emisorId\": \"<uuid>\",\n      \"tipo\": 33,\n      \"ambiente\": \"test\",\n      \"receptor\": {\n        \"rut\": \"<string>\",\n        \"razonSocial\": \"<string>\",\n        \"giro\": \"<string>\",\n        \"email\": \"<email>\",\n        \"phone\": \"<string>\",\n        \"extranjero\": {\n          \"numId\": \"<string>\",\n          \"nacionalidad\": \"<integer>\"\n        }\n      },\n      \"montos\": {\n        \"total\": \"<integer>\",\n        \"neto\": \"<integer>\",\n        \"iva\": \"<integer>\",\n        \"exento\": \"<integer>\"\n      },\n      \"exenta\": \"<boolean>\",\n      \"glosa\": \"<string>\",\n      \"paymentForm\": \"<integer>\",\n      \"serviceIndicator\": \"<integer>\",\n      \"exemptIndicator\": \"<integer>\",\n      \"references\": [\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        },\n        {\n          \"tipo\": \"<integer>\",\n          \"folio\": \"<integer>\",\n          \"fecha\": \"<date>\",\n          \"razon\": \"<string>\",\n          \"codigo\": \"<integer>\"\n        }\n      ],\n      \"despacho\": {\n        \"indTraslado\": \"<integer>\",\n        \"tipoDespacho\": \"<integer>\"\n      },\n      \"transporte\": {\n        \"key_0\": \"string\",\n        \"key_1\": false\n      },\n      \"exportacion\": {\n        \"tpoMoneda\": \"<string>\",\n        \"otraMoneda\": {\n          \"key_0\": 6216,\n          \"key_1\": 6824,\n          \"key_2\": 3752.825481410731\n        },\n        \"fmaPagExp\": \"<integer>\",\n        \"fchCancel\": \"<date>\",\n        \"indServicio\": \"<integer>\"\n      },\n      \"liquidacion\": {\n        \"items\": [\n          {\n            \"key_0\": 8360\n          },\n          {\n            \"key_0\": 2811\n          }\n        ],\n        \"comisiones\": [\n          {\n            \"key_0\": 8013,\n            \"key_1\": 9724.957454910125,\n            \"key_2\": \"string\"\n          },\n          {\n            \"key_0\": 119.64654429843624,\n            \"key_1\": true,\n            \"key_2\": \"string\"\n          }\n        ],\n        \"exento\": \"<integer>\",\n        \"ivaProp\": \"<integer>\",\n        \"ivaTerc\": \"<integer>\",\n        \"valComNeto\": \"<integer>\",\n        \"valComExe\": \"<integer>\",\n        \"valComIVA\": \"<integer>\"\n      },\n      \"compra\": {\n        \"key_0\": false\n      },\n      \"idempotencyKey\": \"<string>\"\n    }\n  ]\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        }
                                    },
                                    "status": "Too Many Requests",
                                    "code": 429,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        },
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "Segundos a esperar.",
                                                "type": "text/plain"
                                            },
                                            "key": "Retry-After",
                                            "value": "<integer>"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                }
                            ],
                            "event": [],
                            "protocolProfileBehavior": {
                                "disableBodyPruning": true
                            }
                        }
                    ]
                },
                {
                    "name": "{id}",
                    "description": "",
                    "item": [
                        {
                            "id": "9ec72cc1-9322-47a0-8e38-7b68757ad7db",
                            "name": "Un documento (metadatos, opcionalmente con artefactos)",
                            "request": {
                                "name": "Un documento (metadatos, opcionalmente con artefactos)",
                                "description": {
                                    "content": "Metadatos del documento. Con `?incluir=pdf,xml,states` embebe los\nartefactos en una sola respuesta (`pdfBase64`, `xml`, `states`). Si un\nartefacto no está listo aún, su campo viene `null`.\n",
                                    "type": "text/plain"
                                },
                                "url": {
                                    "path": [
                                        "v1-documents",
                                        ":id"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "Lista separada por comas. Cualquier combinación de `pdf`, `xml`, `states`.",
                                                "type": "text/plain"
                                            },
                                            "key": "incluir",
                                            "value": "<string>"
                                        }
                                    ],
                                    "variable": [
                                        {
                                            "type": "any",
                                            "value": "<uuid>",
                                            "key": "id",
                                            "disabled": false,
                                            "description": {
                                                "content": "(Required) ",
                                                "type": "text/plain"
                                            }
                                        }
                                    ]
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "method": "GET",
                                "body": {},
                                "auth": null
                            },
                            "response": [
                                {
                                    "id": "a6188928-98c7-474c-8c88-ec612c603529",
                                    "name": "Documento.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                ":id"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "Lista separada por comas. Cualquier combinación de `pdf`, `xml`, `states`.",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "incluir",
                                                    "value": "<string>"
                                                }
                                            ],
                                            "variable": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    },
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id"
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "OK",
                                    "code": 200,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"id\": \"<uuid>\",\n  \"tipo\": \"<integer>\",\n  \"folio\": \"<integer>\",\n  \"ambiente\": \"<string>\",\n  \"status\": \"<string>\",\n  \"monto\": \"<integer>\",\n  \"monto_neto\": \"<integer,null>\",\n  \"monto_iva\": \"<integer,null>\",\n  \"monto_exento\": \"<integer,null>\",\n  \"receptor_rut\": \"<string,null>\",\n  \"receptor_razon_social\": \"<string,null>\",\n  \"track_id\": \"<string,null>\",\n  \"sii_code\": \"<string,null>\",\n  \"detalle_sii\": {\n    \"code\": \"<string>\",\n    \"glosa\": \"<string>\",\n    \"causa\": \"<string>\",\n    \"solucion\": \"<string>\"\n  },\n  \"created_at\": \"<dateTime>\",\n  \"states\": [\n    {\n      \"from_status\": \"<string,null>\",\n      \"to_status\": \"<string>\",\n      \"sii_code\": \"<string,null>\",\n      \"detail\": \"<string,null>\",\n      \"ts\": \"<dateTime>\",\n      \"detalle_sii\": {\n        \"code\": \"<string>\",\n        \"glosa\": \"<string>\",\n        \"causa\": \"<string>\",\n        \"solucion\": \"<string>\"\n      }\n    },\n    {\n      \"from_status\": \"<string,null>\",\n      \"to_status\": \"<string>\",\n      \"sii_code\": \"<string,null>\",\n      \"detail\": \"<string,null>\",\n      \"ts\": \"<dateTime>\",\n      \"detalle_sii\": {\n        \"code\": \"<string>\",\n        \"glosa\": \"<string>\",\n        \"causa\": \"<string>\",\n        \"solucion\": \"<string>\"\n      }\n    }\n  ],\n  \"xml\": \"<string,null>\",\n  \"pdfBase64\": \"<string,null>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "1f6108ec-5360-4fc9-9f3e-8cd44a8154c4",
                                    "name": "API key o sesión inválida.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                ":id"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "Lista separada por comas. Cualquier combinación de `pdf`, `xml`, `states`.",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "incluir",
                                                    "value": "<string>"
                                                }
                                            ],
                                            "variable": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    },
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id"
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "Unauthorized",
                                    "code": 401,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "e4dc9af2-36dc-4e02-bee5-3133ea10e9b1",
                                    "name": "Recurso no encontrado (o fuera de tu cuenta).",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                ":id"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "Lista separada por comas. Cualquier combinación de `pdf`, `xml`, `states`.",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "incluir",
                                                    "value": "<string>"
                                                }
                                            ],
                                            "variable": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    },
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id"
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "Not Found",
                                    "code": 404,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                }
                            ],
                            "event": [],
                            "protocolProfileBehavior": {
                                "disableBodyPruning": true
                            }
                        },
                        {
                            "name": "states",
                            "description": "",
                            "item": [
                                {
                                    "id": "1fd7e982-1dce-4276-8082-0bd4eddb0e7b",
                                    "name": "Línea de tiempo de estados",
                                    "request": {
                                        "name": "Línea de tiempo de estados",
                                        "description": {
                                            "content": "Historial de transiciones (queued → sent → accepted/…). Cada estado con\n`sii_code` trae `detalle_sii` traducido (glosa/causa/solución).\n",
                                            "type": "text/plain"
                                        },
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                ":id",
                                                "states"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "090d10a8-a74c-45df-8883-c7f4756c665b",
                                            "name": "Estados del documento.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "states"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"id\": \"<uuid>\",\n  \"states\": [\n    {\n      \"from_status\": \"<string,null>\",\n      \"to_status\": \"<string>\",\n      \"sii_code\": \"<string,null>\",\n      \"detail\": \"<string,null>\",\n      \"ts\": \"<dateTime>\",\n      \"detalle_sii\": {\n        \"code\": \"<string>\",\n        \"glosa\": \"<string>\",\n        \"causa\": \"<string>\",\n        \"solucion\": \"<string>\"\n      }\n    },\n    {\n      \"from_status\": \"<string,null>\",\n      \"to_status\": \"<string>\",\n      \"sii_code\": \"<string,null>\",\n      \"detail\": \"<string,null>\",\n      \"ts\": \"<dateTime>\",\n      \"detalle_sii\": {\n        \"code\": \"<string>\",\n        \"glosa\": \"<string>\",\n        \"causa\": \"<string>\",\n        \"solucion\": \"<string>\"\n      }\n    }\n  ]\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "195dec9a-3410-4d0d-b77d-e17dc6fa8e96",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "states"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "94eca864-2913-444f-868b-ff59e21e2ff3",
                                            "name": "Recurso no encontrado (o fuera de tu cuenta).",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "states"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        },
                        {
                            "name": "xml",
                            "description": "",
                            "item": [
                                {
                                    "id": "a82d5f26-987f-498d-98cf-9329eefe0851",
                                    "name": "EnvioDTE firmado (XML)",
                                    "request": {
                                        "name": "EnvioDTE firmado (XML)",
                                        "description": {
                                            "content": "XML crudo del EnvioDTE firmado, codificado ISO-8859-1 (no JSON).",
                                            "type": "text/plain"
                                        },
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                ":id",
                                                "xml"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/xml"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "92038c9f-38eb-47fd-ba56-18ba46ad385d",
                                            "name": "EnvioDTE firmado.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "xml"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/xml"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/xml"
                                                }
                                            ],
                                            "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<element>(string)</element>",
                                            "cookie": [],
                                            "_postman_previewlanguage": "xml"
                                        },
                                        {
                                            "id": "4168cca1-7977-4d96-b53d-49226c477c63",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "xml"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "5296922a-8093-48b7-8355-4a53d8683d48",
                                            "name": "Recurso no encontrado (o fuera de tu cuenta).",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "xml"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        },
                        {
                            "name": "pdf",
                            "description": "",
                            "item": [
                                {
                                    "id": "5e63b5b7-2dba-4ab9-9ac6-6c4a5e9e7fbc",
                                    "name": "Muestra impresa (PDF con timbre PDF417)",
                                    "request": {
                                        "name": "Muestra impresa (PDF con timbre PDF417)",
                                        "description": {
                                            "content": "PDF de la representación impresa. Render lazy + cacheado.",
                                            "type": "text/plain"
                                        },
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                ":id",
                                                "pdf"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/pdf"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "bfbbf91e-62a1-45be-b042-535f305ce5d4",
                                            "name": "PDF.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "pdf"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/pdf"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/pdf"
                                                }
                                            ],
                                            "body": "<binary>",
                                            "cookie": [],
                                            "_postman_previewlanguage": "text"
                                        },
                                        {
                                            "id": "39a53824-7e3f-4eb7-a07a-e5e96724d51c",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "pdf"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "0f3b8a26-701d-4b0a-a246-3e04c157af2c",
                                            "name": "Recurso no encontrado (o fuera de tu cuenta).",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "pdf"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "5af2cf9c-bf13-4136-8cb7-884d50bcfa89",
                                            "name": "Aún no hay XML firmado para renderizar.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "pdf"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Conflict",
                                            "code": 409,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        },
                        {
                            "name": "share",
                            "description": "",
                            "item": [
                                {
                                    "id": "e76038f7-e292-44ab-b8e9-a828fc86db5d",
                                    "name": "Crear (o reusar) el enlace del portal del receptor",
                                    "request": {
                                        "name": "Crear (o reusar) el enlace del portal del receptor",
                                        "description": {
                                            "content": "Devuelve un token opaco (256 bits) y las URLs del portal público. El\nreceptor descarga XML/PDF **sin login**. Idempotente: reusa un token\nactivo si existe. El token expira (6 años) y es revocable.\n",
                                            "type": "text/plain"
                                        },
                                        "url": {
                                            "path": [
                                                "v1-documents",
                                                ":id",
                                                "share"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "b925580f-d177-4507-9999-b1796e2605e1",
                                            "name": "Enlace de descarga.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "share"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Created",
                                            "code": 201,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"token\": \"<string>\",\n  \"url\": \"<uri>\",\n  \"xmlUrl\": \"<uri>\",\n  \"pdfUrl\": \"<uri>\",\n  \"expiresAt\": \"<dateTime>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "26f81a82-9283-4967-8100-964229a8ebdb",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "share"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "c4af8484-0f21-411b-9e9b-5b9880fd69d6",
                                            "name": "Recurso no encontrado (o fuera de tu cuenta).",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-documents",
                                                        ":id",
                                                        "share"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "v1-folios",
            "description": "",
            "item": [
                {
                    "id": "ca40be35-f2d8-4192-bb59-8f9f7fdb432b",
                    "name": "Stock de folios por tipo",
                    "request": {
                        "name": "Stock de folios por tipo",
                        "description": {
                            "content": "Disponibles = range_hasta − next_folio + 1. Requiere scope `caf:read` (vía key con scopes).",
                            "type": "text/plain"
                        },
                        "url": {
                            "path": [
                                "v1-folios"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [
                                {
                                    "disabled": false,
                                    "description": {
                                        "content": "",
                                        "type": "text/plain"
                                    },
                                    "key": "emisorId",
                                    "value": "<uuid>"
                                }
                            ],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "GET",
                        "body": {},
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "cd2a814a-0b72-471b-918f-a3aa137264f2",
                            "name": "Stock.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-folios"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "emisorId",
                                            "value": "<uuid>"
                                        }
                                    ],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "OK",
                            "code": 200,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"stock\": [\n    {\n      \"emisor_id\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"next_folio\": \"<integer>\",\n      \"range_hasta\": \"<integer>\",\n      \"disponibles\": \"<integer>\"\n    },\n    {\n      \"emisor_id\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"next_folio\": \"<integer>\",\n      \"range_hasta\": \"<integer>\",\n      \"disponibles\": \"<integer>\"\n    }\n  ]\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "1952e70f-2d20-4e4e-8c5b-be7767a3247e",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-folios"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "emisorId",
                                            "value": "<uuid>"
                                        }
                                    ],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "name": "request",
                    "description": "",
                    "item": [
                        {
                            "id": "0ba02f57-48a2-4fca-9064-f7c1b03b906b",
                            "name": "Solicitar + timbrar un CAF al SII",
                            "request": {
                                "name": "Solicitar + timbrar un CAF al SII",
                                "description": {
                                    "content": "Síncrono: descifra el .pfx en el borde de firma, solicita el CAF al SII\ndel ambiente del emisor y persiste el rango. Requiere el scope\n`caf:write`. Límite: 10 req/min por cuenta (acción real al SII).\n",
                                    "type": "text/plain"
                                },
                                "url": {
                                    "path": [
                                        "v1-folios",
                                        "request"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 112,\n  \"cantidad\": \"<integer>\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                },
                                "auth": null
                            },
                            "response": [
                                {
                                    "id": "ba2d5d8d-41fa-4575-9f12-58e096f62292",
                                    "name": "CAF otorgado.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-folios",
                                                "request"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 112,\n  \"cantidad\": \"<integer>\"\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        }
                                    },
                                    "status": "OK",
                                    "code": 200,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"tipo\": \"<integer>\",\n  \"rango_desde\": \"<integer>\",\n  \"rango_hasta\": \"<integer>\",\n  \"cantidad\": \"<integer>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "f732e3cc-ebfc-46cb-9537-79d57b165ed5",
                                    "name": "API key o sesión inválida.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-folios",
                                                "request"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 112,\n  \"cantidad\": \"<integer>\"\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        }
                                    },
                                    "status": "Unauthorized",
                                    "code": 401,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "354d3f94-3d6d-49ec-acbf-c8c70a5d1368",
                                    "name": "Falta el scope caf:write.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-folios",
                                                "request"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 112,\n  \"cantidad\": \"<integer>\"\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        }
                                    },
                                    "status": "Forbidden",
                                    "code": 403,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "0d94eeef-3e1d-4285-9f2e-e600896d3a33",
                                    "name": "Demasiadas solicitudes. Reintenta tras el `Retry-After`.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-folios",
                                                "request"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"emisorId\": \"<uuid>\",\n  \"tipo\": 112,\n  \"cantidad\": \"<integer>\"\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        }
                                    },
                                    "status": "Too Many Requests",
                                    "code": 429,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        },
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "Segundos a esperar.",
                                                "type": "text/plain"
                                            },
                                            "key": "Retry-After",
                                            "value": "<integer>"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                }
                            ],
                            "event": [],
                            "protocolProfileBehavior": {
                                "disableBodyPruning": true
                            }
                        }
                    ]
                },
                {
                    "name": "gaps",
                    "description": "",
                    "item": [
                        {
                            "id": "b08e031c-4825-4416-b5e7-3a9517d8357e",
                            "name": "Folios quemados a declarar (Declaración de Avance)",
                            "request": {
                                "name": "Folios quemados a declarar (Declaración de Avance)",
                                "description": {
                                    "content": "Folios que murieron sin que el SII los viera (huecos en la secuencia).",
                                    "type": "text/plain"
                                },
                                "url": {
                                    "path": [
                                        "v1-folios",
                                        "gaps"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "emisorId",
                                            "value": "<uuid>"
                                        }
                                    ],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "method": "GET",
                                "body": {},
                                "auth": null
                            },
                            "response": [
                                {
                                    "id": "d1997591-6d36-49c7-b14e-c29f45fc8e27",
                                    "name": "Huecos de folios.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-folios",
                                                "gaps"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "emisorId",
                                                    "value": "<uuid>"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "OK",
                                    "code": 200,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"gaps\": [\n    {\n      \"emisor_id\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"folio\": \"<integer>\",\n      \"motivo\": \"<string,null>\",\n      \"status\": \"<string>\",\n      \"document_id\": \"<string,null>\",\n      \"created_at\": \"<dateTime>\",\n      \"declared_at\": \"<string,null>\"\n    },\n    {\n      \"emisor_id\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"folio\": \"<integer>\",\n      \"motivo\": \"<string,null>\",\n      \"status\": \"<string>\",\n      \"document_id\": \"<string,null>\",\n      \"created_at\": \"<dateTime>\",\n      \"declared_at\": \"<string,null>\"\n    }\n  ]\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "a1118840-c45e-44db-95c1-f4702af7fb27",
                                    "name": "API key o sesión inválida.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-folios",
                                                "gaps"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "emisorId",
                                                    "value": "<uuid>"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "Unauthorized",
                                    "code": 401,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                }
                            ],
                            "event": [],
                            "protocolProfileBehavior": {
                                "disableBodyPruning": true
                            }
                        }
                    ]
                }
            ]
        },
        {
            "name": "v1-emisores",
            "description": "",
            "item": [
                {
                    "id": "729c3fad-98aa-4865-9cdc-a19e0ee8dd79",
                    "name": "Listar emisores de la cuenta",
                    "request": {
                        "name": "Listar emisores de la cuenta",
                        "description": {},
                        "url": {
                            "path": [
                                "v1-emisores"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "GET",
                        "body": {},
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "22c76147-f35e-4835-a8e5-af15759ba873",
                            "name": "Emisores.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-emisores"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "OK",
                            "code": 200,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"emisores\": [\n    {\n      \"id\": \"<uuid>\",\n      \"rut\": \"<string>\",\n      \"razon_social\": \"<string>\",\n      \"ambiente\": \"<string>\",\n      \"onboarding_state\": \"<string>\",\n      \"mandatario_status\": \"<string,null>\",\n      \"status\": \"<string>\",\n      \"created_at\": \"<dateTime>\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"rut\": \"<string>\",\n      \"razon_social\": \"<string>\",\n      \"ambiente\": \"<string>\",\n      \"onboarding_state\": \"<string>\",\n      \"mandatario_status\": \"<string,null>\",\n      \"status\": \"<string>\",\n      \"created_at\": \"<dateTime>\"\n    }\n  ]\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "c84335e4-54b7-42a7-9fdc-d4c7ea5bbc98",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-emisores"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "id": "3de18355-c054-40cf-8e61-a1ea4748ef04",
                    "name": "Alta de un emisor",
                    "request": {
                        "name": "Alta de un emisor",
                        "description": {},
                        "url": {
                            "path": [
                                "v1-emisores"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"rut\": \"<string>\",\n  \"razonSocial\": \"<string>\",\n  \"giro\": \"<string>\",\n  \"acteco\": \"<string>\",\n  \"direccion\": \"<string>\",\n  \"comuna\": \"<string>\",\n  \"ciudad\": \"<string>\",\n  \"ambiente\": \"prod\"\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        },
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "1c5f4814-e38c-4e67-b296-a192ebe374bc",
                            "name": "Emisor creado.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-emisores"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"rut\": \"<string>\",\n  \"razonSocial\": \"<string>\",\n  \"giro\": \"<string>\",\n  \"acteco\": \"<string>\",\n  \"direccion\": \"<string>\",\n  \"comuna\": \"<string>\",\n  \"ciudad\": \"<string>\",\n  \"ambiente\": \"prod\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"emisor\": {\n    \"id\": \"<uuid>\",\n    \"rut\": \"<string>\",\n    \"razon_social\": \"<string>\",\n    \"ambiente\": \"<string>\",\n    \"onboarding_state\": \"<string>\",\n    \"mandatario_status\": \"<string,null>\",\n    \"status\": \"<string>\",\n    \"created_at\": \"<dateTime>\"\n  }\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "9c26d5f4-9c58-4774-89aa-72e4035c165e",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-emisores"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"rut\": \"<string>\",\n  \"razonSocial\": \"<string>\",\n  \"giro\": \"<string>\",\n  \"acteco\": \"<string>\",\n  \"direccion\": \"<string>\",\n  \"comuna\": \"<string>\",\n  \"ciudad\": \"<string>\",\n  \"ambiente\": \"prod\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "31ee20cc-59a4-4c64-9feb-5526e693e916",
                            "name": "No se pudo crear (¿RUT+ambiente ya existe?).",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-emisores"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"rut\": \"<string>\",\n  \"razonSocial\": \"<string>\",\n  \"giro\": \"<string>\",\n  \"acteco\": \"<string>\",\n  \"direccion\": \"<string>\",\n  \"comuna\": \"<string>\",\n  \"ciudad\": \"<string>\",\n  \"ambiente\": \"prod\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Conflict",
                            "code": 409,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "7da1b1bb-e9ba-4be5-b2ed-ce8d5d9d0291",
                            "name": "RUT o razón social inválidos.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-emisores"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"rut\": \"<string>\",\n  \"razonSocial\": \"<string>\",\n  \"giro\": \"<string>\",\n  \"acteco\": \"<string>\",\n  \"direccion\": \"<string>\",\n  \"comuna\": \"<string>\",\n  \"ciudad\": \"<string>\",\n  \"ambiente\": \"prod\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                            "code": 422,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "name": "{emisorId}",
                    "description": "",
                    "item": [
                        {
                            "name": "credentials",
                            "description": "",
                            "item": [
                                {
                                    "id": "f121388d-3cb9-44d0-888b-a562350b96fb",
                                    "name": "Cargar el certificado (.pfx) en custodia",
                                    "request": {
                                        "name": "Cargar el certificado (.pfx) en custodia",
                                        "description": {
                                            "content": "El .pfx se valida con su password, se cifra de inmediato (envelope\nencryption) y se guarda en custodia. **El material nunca se retorna ni se\nloguea.** Solo se descifra en memoria, en el borde de firma.\n",
                                            "type": "text/plain"
                                        },
                                        "url": {
                                            "path": [
                                                "v1-emisores",
                                                ":emisorId",
                                                "credentials"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "emisorId",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Content-Type",
                                                "value": "application/json"
                                            },
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {
                                            "mode": "raw",
                                            "raw": "{\n  \"pfxBase64\": \"<string>\",\n  \"password\": \"<string>\",\n  \"fingerprint\": \"<string>\",\n  \"subjectRut\": \"<string>\",\n  \"expires\": \"<date>\"\n}",
                                            "options": {
                                                "raw": {
                                                    "headerFamily": "json",
                                                    "language": "json"
                                                }
                                            }
                                        },
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "c98d6538-2f5c-46eb-8c63-8676021a412c",
                                            "name": "Certificado en custodia.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-emisores",
                                                        ":emisorId",
                                                        "credentials"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "emisorId"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Content-Type",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {
                                                    "mode": "raw",
                                                    "raw": "{\n  \"pfxBase64\": \"<string>\",\n  \"password\": \"<string>\",\n  \"fingerprint\": \"<string>\",\n  \"subjectRut\": \"<string>\",\n  \"expires\": \"<date>\"\n}",
                                                    "options": {
                                                        "raw": {
                                                            "headerFamily": "json",
                                                            "language": "json"
                                                        }
                                                    }
                                                }
                                            },
                                            "status": "Created",
                                            "code": 201,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"ok\": \"<boolean>\",\n  \"credentialId\": \"<uuid>\",\n  \"message\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "00869010-4c6f-42bd-8890-cd923abf62e6",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-emisores",
                                                        ":emisorId",
                                                        "credentials"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "emisorId"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Content-Type",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {
                                                    "mode": "raw",
                                                    "raw": "{\n  \"pfxBase64\": \"<string>\",\n  \"password\": \"<string>\",\n  \"fingerprint\": \"<string>\",\n  \"subjectRut\": \"<string>\",\n  \"expires\": \"<date>\"\n}",
                                                    "options": {
                                                        "raw": {
                                                            "headerFamily": "json",
                                                            "language": "json"
                                                        }
                                                    }
                                                }
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "739449b8-2fc7-46ef-a0ea-743058434a54",
                                            "name": "Recurso no encontrado (o fuera de tu cuenta).",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-emisores",
                                                        ":emisorId",
                                                        "credentials"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "emisorId"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Content-Type",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {
                                                    "mode": "raw",
                                                    "raw": "{\n  \"pfxBase64\": \"<string>\",\n  \"password\": \"<string>\",\n  \"fingerprint\": \"<string>\",\n  \"subjectRut\": \"<string>\",\n  \"expires\": \"<date>\"\n}",
                                                    "options": {
                                                        "raw": {
                                                            "headerFamily": "json",
                                                            "language": "json"
                                                        }
                                                    }
                                                }
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "9c669a07-4d0e-4632-b444-687197429a57",
                                            "name": ".pfx inválido o contraseña incorrecta.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-emisores",
                                                        ":emisorId",
                                                        "credentials"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "emisorId"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Content-Type",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {
                                                    "mode": "raw",
                                                    "raw": "{\n  \"pfxBase64\": \"<string>\",\n  \"password\": \"<string>\",\n  \"fingerprint\": \"<string>\",\n  \"subjectRut\": \"<string>\",\n  \"expires\": \"<date>\"\n}",
                                                    "options": {
                                                        "raw": {
                                                            "headerFamily": "json",
                                                            "language": "json"
                                                        }
                                                    }
                                                }
                                            },
                                            "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                                            "code": 422,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                },
                                {
                                    "name": "revoke",
                                    "description": "",
                                    "item": [
                                        {
                                            "id": "ae4426fe-3522-4c8e-87cc-5c6346422ac0",
                                            "name": "Revocar el certificado activo del emisor",
                                            "request": {
                                                "name": "Revocar el certificado activo del emisor",
                                                "description": {
                                                    "content": "Deja de descifrarse para firmar (el material cifrado queda). Útil ante .pfx comprometido o rotación.",
                                                    "type": "text/plain"
                                                },
                                                "url": {
                                                    "path": [
                                                        "v1-emisores",
                                                        ":emisorId",
                                                        "credentials",
                                                        "revoke"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "emisorId",
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            }
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {},
                                                "auth": null
                                            },
                                            "response": [
                                                {
                                                    "id": "922b7588-1365-4128-acbe-9b5afc728f7c",
                                                    "name": "Certificado revocado.",
                                                    "originalRequest": {
                                                        "url": {
                                                            "path": [
                                                                "v1-emisores",
                                                                ":emisorId",
                                                                "credentials",
                                                                "revoke"
                                                            ],
                                                            "host": [
                                                                "{{baseUrl}}"
                                                            ],
                                                            "query": [],
                                                            "variable": [
                                                                {
                                                                    "disabled": false,
                                                                    "description": {
                                                                        "content": "(Required) ",
                                                                        "type": "text/plain"
                                                                    },
                                                                    "type": "any",
                                                                    "value": "<uuid>",
                                                                    "key": "emisorId"
                                                                }
                                                            ]
                                                        },
                                                        "header": [
                                                            {
                                                                "key": "Accept",
                                                                "value": "application/json"
                                                            },
                                                            {
                                                                "description": {
                                                                    "content": "Added as a part of security scheme: bearer",
                                                                    "type": "text/plain"
                                                                },
                                                                "key": "Authorization",
                                                                "value": "Bearer <token>"
                                                            }
                                                        ],
                                                        "method": "POST",
                                                        "body": {}
                                                    },
                                                    "status": "OK",
                                                    "code": 200,
                                                    "header": [
                                                        {
                                                            "key": "Content-Type",
                                                            "value": "application/json"
                                                        }
                                                    ],
                                                    "body": "{\n  \"ok\": \"<boolean>\",\n  \"revoked\": \"<integer>\",\n  \"message\": \"<string>\"\n}",
                                                    "cookie": [],
                                                    "_postman_previewlanguage": "json"
                                                },
                                                {
                                                    "id": "a4d9aeed-4d0f-4770-b1fd-0ae0bed08865",
                                                    "name": "API key o sesión inválida.",
                                                    "originalRequest": {
                                                        "url": {
                                                            "path": [
                                                                "v1-emisores",
                                                                ":emisorId",
                                                                "credentials",
                                                                "revoke"
                                                            ],
                                                            "host": [
                                                                "{{baseUrl}}"
                                                            ],
                                                            "query": [],
                                                            "variable": [
                                                                {
                                                                    "disabled": false,
                                                                    "description": {
                                                                        "content": "(Required) ",
                                                                        "type": "text/plain"
                                                                    },
                                                                    "type": "any",
                                                                    "value": "<uuid>",
                                                                    "key": "emisorId"
                                                                }
                                                            ]
                                                        },
                                                        "header": [
                                                            {
                                                                "key": "Accept",
                                                                "value": "application/json"
                                                            },
                                                            {
                                                                "description": {
                                                                    "content": "Added as a part of security scheme: bearer",
                                                                    "type": "text/plain"
                                                                },
                                                                "key": "Authorization",
                                                                "value": "Bearer <token>"
                                                            }
                                                        ],
                                                        "method": "POST",
                                                        "body": {}
                                                    },
                                                    "status": "Unauthorized",
                                                    "code": 401,
                                                    "header": [
                                                        {
                                                            "key": "Content-Type",
                                                            "value": "application/json"
                                                        }
                                                    ],
                                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                                    "cookie": [],
                                                    "_postman_previewlanguage": "json"
                                                },
                                                {
                                                    "id": "e6ca55f3-9e86-4805-8e1b-876b289a7fb9",
                                                    "name": "Emisor inexistente o sin certificado activo.",
                                                    "originalRequest": {
                                                        "url": {
                                                            "path": [
                                                                "v1-emisores",
                                                                ":emisorId",
                                                                "credentials",
                                                                "revoke"
                                                            ],
                                                            "host": [
                                                                "{{baseUrl}}"
                                                            ],
                                                            "query": [],
                                                            "variable": [
                                                                {
                                                                    "disabled": false,
                                                                    "description": {
                                                                        "content": "(Required) ",
                                                                        "type": "text/plain"
                                                                    },
                                                                    "type": "any",
                                                                    "value": "<uuid>",
                                                                    "key": "emisorId"
                                                                }
                                                            ]
                                                        },
                                                        "header": [
                                                            {
                                                                "key": "Accept",
                                                                "value": "application/json"
                                                            },
                                                            {
                                                                "description": {
                                                                    "content": "Added as a part of security scheme: bearer",
                                                                    "type": "text/plain"
                                                                },
                                                                "key": "Authorization",
                                                                "value": "Bearer <token>"
                                                            }
                                                        ],
                                                        "method": "POST",
                                                        "body": {}
                                                    },
                                                    "status": "Not Found",
                                                    "code": 404,
                                                    "header": [
                                                        {
                                                            "key": "Content-Type",
                                                            "value": "application/json"
                                                        }
                                                    ],
                                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                                    "cookie": [],
                                                    "_postman_previewlanguage": "json"
                                                }
                                            ],
                                            "event": [],
                                            "protocolProfileBehavior": {
                                                "disableBodyPruning": true
                                            }
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "v1-keys",
            "description": "",
            "item": [
                {
                    "id": "ef1756ac-7b79-4dc1-a5ab-3aa8b5265c53",
                    "name": "Listar API keys (sin la cruda ni el hash)",
                    "request": {
                        "name": "Listar API keys (sin la cruda ni el hash)",
                        "description": {},
                        "url": {
                            "path": [
                                "v1-keys"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "GET",
                        "body": {},
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "8d6108bb-aacd-4971-8657-684e05cdaad7",
                            "name": "Keys.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-keys"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "OK",
                            "code": 200,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"keys\": [\n    {\n      \"id\": \"<uuid>\",\n      \"prefix\": \"<string>\",\n      \"environment\": \"<string>\",\n      \"scopes\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"scope_emisor_id\": \"<string,null>\",\n      \"name\": \"<string,null>\",\n      \"last_used_at\": \"<string,null>\",\n      \"revoked_at\": \"<string,null>\",\n      \"created_at\": \"<dateTime>\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"prefix\": \"<string>\",\n      \"environment\": \"<string>\",\n      \"scopes\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"scope_emisor_id\": \"<string,null>\",\n      \"name\": \"<string,null>\",\n      \"last_used_at\": \"<string,null>\",\n      \"revoked_at\": \"<string,null>\",\n      \"created_at\": \"<dateTime>\"\n    }\n  ]\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "469948e0-abd2-4a4c-8dad-72503f69f1f0",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-keys"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "id": "d3cabd93-9b8f-4d3a-8bf7-808f3152d4f2",
                    "name": "Crear una API key",
                    "request": {
                        "name": "Crear una API key",
                        "description": {
                            "content": "Devuelve la key cruda **una sola vez**. Guárdala.",
                            "type": "text/plain"
                        },
                        "url": {
                            "path": [
                                "v1-keys"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"environment\": \"test\",\n  \"name\": \"<string>\",\n  \"scopes\": [\n    \"caf:write\",\n    \"caf:write\"\n  ],\n  \"scopeEmisorId\": \"<uuid>\"\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        },
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "ab91466e-a3dd-4630-b178-ff12560f365e",
                            "name": "Key creada (cruda visible una vez).",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-keys"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"environment\": \"test\",\n  \"name\": \"<string>\",\n  \"scopes\": [\n    \"caf:write\",\n    \"caf:write\"\n  ],\n  \"scopeEmisorId\": \"<uuid>\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"id\": \"<uuid>\",\n  \"key\": \"<string>\",\n  \"prefix\": \"<string>\",\n  \"environment\": \"<string>\",\n  \"scopes\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"scopeEmisorId\": \"<string,null>\",\n  \"name\": \"<string,null>\",\n  \"createdAt\": \"<dateTime>\",\n  \"message\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "f7b4a3fc-801d-4143-a775-b516bf7b3622",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-keys"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"environment\": \"test\",\n  \"name\": \"<string>\",\n  \"scopes\": [\n    \"caf:write\",\n    \"caf:write\"\n  ],\n  \"scopeEmisorId\": \"<uuid>\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "c794a355-d173-43c2-a034-af2178cfabf8",
                            "name": "Scope inválido o cuerpo inválido.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-keys"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"environment\": \"test\",\n  \"name\": \"<string>\",\n  \"scopes\": [\n    \"caf:write\",\n    \"caf:write\"\n  ],\n  \"scopeEmisorId\": \"<uuid>\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                            "code": 422,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "name": "{id}",
                    "description": "",
                    "item": [
                        {
                            "name": "revoke",
                            "description": "",
                            "item": [
                                {
                                    "id": "229b1ddb-cfde-431e-8039-cb864715bd99",
                                    "name": "Revocar una API key",
                                    "request": {
                                        "name": "Revocar una API key",
                                        "description": {},
                                        "url": {
                                            "path": [
                                                "v1-keys",
                                                ":id",
                                                "revoke"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "5927ec44-fb7b-4336-95fd-c4ea2b3bf3fd",
                                            "name": "Key revocada.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-keys",
                                                        ":id",
                                                        "revoke"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"id\": \"<uuid>\",\n  \"revoked\": \"<boolean>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "27c75b1f-fe95-4f6f-8fc0-5695e595c242",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-keys",
                                                        ":id",
                                                        "revoke"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "ba9bdcaf-4da9-4407-8162-bc2f447ee9ca",
                                            "name": "Key no encontrada o ya revocada.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-keys",
                                                        ":id",
                                                        "revoke"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "v1-webhooks",
            "description": "",
            "item": [
                {
                    "id": "6808969f-2abf-4556-8dc4-28af023edfd0",
                    "name": "Listar webhooks (sin el secret)",
                    "request": {
                        "name": "Listar webhooks (sin el secret)",
                        "description": {},
                        "url": {
                            "path": [
                                "v1-webhooks"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "GET",
                        "body": {},
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "ab327151-5862-4d8e-822d-21dc7c46af9e",
                            "name": "Webhooks.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-webhooks"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "OK",
                            "code": 200,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"webhooks\": [\n    {\n      \"id\": \"<uuid>\",\n      \"url\": \"<uri>\",\n      \"events\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"active\": \"<boolean>\",\n      \"created_at\": \"<dateTime>\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"url\": \"<uri>\",\n      \"events\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"active\": \"<boolean>\",\n      \"created_at\": \"<dateTime>\"\n    }\n  ]\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "49b4e3cf-557b-4f0b-8b09-b3c85df58f51",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-webhooks"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "id": "4541d485-080a-4f16-bddc-aa67d1503d48",
                    "name": "Registrar un endpoint de webhook",
                    "request": {
                        "name": "Registrar un endpoint de webhook",
                        "description": {
                            "content": "Requiere el scope `webhooks:write`. La `url` debe ser https y apuntar a un\nhost público. Devuelve el `secret` **una sola vez**: cada entrega se firma\nHMAC-SHA256 y viaja en el header `X-RuralDTE-Signature` (+ timestamp).\n`events` es un subconjunto del catálogo (ver `WebhookEvent`); `[]` = todos.\n",
                            "type": "text/plain"
                        },
                        "url": {
                            "path": [
                                "v1-webhooks"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"url\": \"<uri>\",\n  \"events\": [\n    \"dte.rechazado\",\n    \"folios.bajos\"\n  ]\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        },
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "4a5e4061-e6b8-491c-8614-5ceacd037e20",
                            "name": "Webhook registrado (secret visible una vez).",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-webhooks"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"url\": \"<uri>\",\n  \"events\": [\n    \"dte.rechazado\",\n    \"folios.bajos\"\n  ]\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"id\": \"<uuid>\",\n  \"url\": \"<uri>\",\n  \"events\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"active\": \"<boolean>\",\n  \"secret\": \"<string>\",\n  \"createdAt\": \"<dateTime>\",\n  \"message\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "4d2493b8-a9db-4525-ad60-6280adcfb995",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-webhooks"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"url\": \"<uri>\",\n  \"events\": [\n    \"dte.rechazado\",\n    \"folios.bajos\"\n  ]\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "a65966b1-0ff2-4678-811f-37e9dd9e0b37",
                            "name": "Falta el scope webhooks:write.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-webhooks"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"url\": \"<uri>\",\n  \"events\": [\n    \"dte.rechazado\",\n    \"folios.bajos\"\n  ]\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Forbidden",
                            "code": 403,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "65c3592b-1037-42ec-9b91-eb2e6741f5b2",
                            "name": "URL inválida o evento desconocido.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-webhooks"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"url\": \"<uri>\",\n  \"events\": [\n    \"dte.rechazado\",\n    \"folios.bajos\"\n  ]\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
                            "code": 422,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "name": "{id}",
                    "description": "",
                    "item": [
                        {
                            "name": "disable",
                            "description": "",
                            "item": [
                                {
                                    "id": "83c082be-c24d-4f3d-a6d7-5627d37180d1",
                                    "name": "Deshabilitar un webhook",
                                    "request": {
                                        "name": "Deshabilitar un webhook",
                                        "description": {},
                                        "url": {
                                            "path": [
                                                "v1-webhooks",
                                                ":id",
                                                "disable"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "f3b82d97-c458-43db-8d75-d87b81a13e13",
                                            "name": "Webhook deshabilitado.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-webhooks",
                                                        ":id",
                                                        "disable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"id\": \"<uuid>\",\n  \"active\": \"<boolean>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "010444ae-3e9d-40d3-8c2f-a43da1c78d9d",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-webhooks",
                                                        ":id",
                                                        "disable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "390bd811-9991-4c8e-b90e-ebe2de55d820",
                                            "name": "Webhook no encontrado o ya deshabilitado.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-webhooks",
                                                        ":id",
                                                        "disable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "v1-reportes",
            "description": "",
            "item": [
                {
                    "name": "ventas",
                    "description": "",
                    "item": [
                        {
                            "id": "529a91b5-9acf-4570-bbd1-f5fa601e1ed1",
                            "name": "Serie diaria de ventas",
                            "request": {
                                "name": "Serie diaria de ventas",
                                "description": {
                                    "content": "Conteo + montos CLP por día (zona horaria de Chile). Requiere scope `dte:read`.",
                                    "type": "text/plain"
                                },
                                "url": {
                                    "path": [
                                        "v1-reportes",
                                        "ventas"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "desde",
                                            "value": "<date>"
                                        },
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "hasta",
                                            "value": "<date>"
                                        },
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "emisorId",
                                            "value": "<uuid>"
                                        },
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": " (This can only be one of test,cert,prod)",
                                                "type": "text/plain"
                                            },
                                            "key": "ambiente",
                                            "value": "test"
                                        }
                                    ],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "method": "GET",
                                "body": {},
                                "auth": null
                            },
                            "response": [
                                {
                                    "id": "c06f904a-2ee5-415a-a08c-9f51a2bbe04b",
                                    "name": "Ventas diarias.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-reportes",
                                                "ventas"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "desde",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "hasta",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "emisorId",
                                                    "value": "<uuid>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": " (This can only be one of test,cert,prod)",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "ambiente",
                                                    "value": "test"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "OK",
                                    "code": 200,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"ventas\": [\n    {\n      \"dia\": \"<date>\",\n      \"documentos\": \"<integer>\",\n      \"monto_total\": \"<integer>\",\n      \"monto_neto\": \"<integer>\",\n      \"monto_iva\": \"<integer>\"\n    },\n    {\n      \"dia\": \"<date>\",\n      \"documentos\": \"<integer>\",\n      \"monto_total\": \"<integer>\",\n      \"monto_neto\": \"<integer>\",\n      \"monto_iva\": \"<integer>\"\n    }\n  ]\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "5181d34f-4f30-4ae6-93da-b4a330c0c362",
                                    "name": "API key o sesión inválida.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-reportes",
                                                "ventas"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "desde",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "hasta",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "emisorId",
                                                    "value": "<uuid>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": " (This can only be one of test,cert,prod)",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "ambiente",
                                                    "value": "test"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "Unauthorized",
                                    "code": 401,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "eae98a27-6ee4-498c-a31a-a94722615588",
                                    "name": "Falta el scope dte:read.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-reportes",
                                                "ventas"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "desde",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "hasta",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "emisorId",
                                                    "value": "<uuid>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": " (This can only be one of test,cert,prod)",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "ambiente",
                                                    "value": "test"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "Forbidden",
                                    "code": 403,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                }
                            ],
                            "event": [],
                            "protocolProfileBehavior": {
                                "disableBodyPruning": true
                            }
                        }
                    ]
                },
                {
                    "name": "top-receptores",
                    "description": "",
                    "item": [
                        {
                            "id": "5bc7beff-1239-4389-8097-4cd0b106aa52",
                            "name": "Top receptores por monto",
                            "request": {
                                "name": "Top receptores por monto",
                                "description": {},
                                "url": {
                                    "path": [
                                        "v1-reportes",
                                        "top-receptores"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "desde",
                                            "value": "<date>"
                                        },
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "hasta",
                                            "value": "<date>"
                                        },
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "limit",
                                            "value": "10"
                                        }
                                    ],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "method": "GET",
                                "body": {},
                                "auth": null
                            },
                            "response": [
                                {
                                    "id": "460cabab-4a73-4e38-b04d-92eb6e6a23c8",
                                    "name": "Top receptores.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-reportes",
                                                "top-receptores"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "desde",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "hasta",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "limit",
                                                    "value": "10"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "OK",
                                    "code": 200,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"receptores\": [\n    {\n      \"receptor_rut\": \"<string>\",\n      \"receptor_razon_social\": \"<string,null>\",\n      \"documentos\": \"<integer>\",\n      \"monto_total\": \"<integer>\"\n    },\n    {\n      \"receptor_rut\": \"<string>\",\n      \"receptor_razon_social\": \"<string,null>\",\n      \"documentos\": \"<integer>\",\n      \"monto_total\": \"<integer>\"\n    }\n  ]\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "12b06bb9-48b6-4b05-a272-8f79a7541e4a",
                                    "name": "API key o sesión inválida.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-reportes",
                                                "top-receptores"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "desde",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "hasta",
                                                    "value": "<date>"
                                                },
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "limit",
                                                    "value": "10"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "Unauthorized",
                                    "code": 401,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                }
                            ],
                            "event": [],
                            "protocolProfileBehavior": {
                                "disableBodyPruning": true
                            }
                        }
                    ]
                },
                {
                    "name": "folios-bajos",
                    "description": "",
                    "item": [
                        {
                            "id": "9408aacc-21ef-41fb-86bc-3c4d6220e40d",
                            "name": "Cursores con stock bajo",
                            "request": {
                                "name": "Cursores con stock bajo",
                                "description": {
                                    "content": "Folios con disponibles ≤ umbral. Requiere scope `caf:read`.",
                                    "type": "text/plain"
                                },
                                "url": {
                                    "path": [
                                        "v1-reportes",
                                        "folios-bajos"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [
                                        {
                                            "disabled": false,
                                            "description": {
                                                "content": "",
                                                "type": "text/plain"
                                            },
                                            "key": "umbral",
                                            "value": "100"
                                        }
                                    ],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "method": "GET",
                                "body": {},
                                "auth": null
                            },
                            "response": [
                                {
                                    "id": "44695524-601e-4f08-a246-c562d1423bb8",
                                    "name": "Folios bajos.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-reportes",
                                                "folios-bajos"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "umbral",
                                                    "value": "100"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "OK",
                                    "code": 200,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"foliosBajos\": [\n    {\n      \"emisor_id\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"disponibles\": \"<integer>\"\n    },\n    {\n      \"emisor_id\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"disponibles\": \"<integer>\"\n    }\n  ]\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "4da73380-89ca-404e-add2-453cce1d0e31",
                                    "name": "API key o sesión inválida.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-reportes",
                                                "folios-bajos"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "",
                                                        "type": "text/plain"
                                                    },
                                                    "key": "umbral",
                                                    "value": "100"
                                                }
                                            ],
                                            "variable": []
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "Unauthorized",
                                    "code": 401,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                }
                            ],
                            "event": [],
                            "protocolProfileBehavior": {
                                "disableBodyPruning": true
                            }
                        }
                    ]
                }
            ]
        },
        {
            "name": "v1-scheduled",
            "description": "",
            "item": [
                {
                    "id": "a5b80ab0-4e41-41f1-a285-c71e4f534057",
                    "name": "Listar programaciones",
                    "request": {
                        "name": "Listar programaciones",
                        "description": {
                            "content": "Resumen + diagnóstico de la última corrida del cron. Requiere scope `dte:read`.",
                            "type": "text/plain"
                        },
                        "url": {
                            "path": [
                                "v1-scheduled"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "GET",
                        "body": {},
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "230e5dd7-0834-464e-96ad-894d67c0f2ac",
                            "name": "Programaciones.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-scheduled"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "OK",
                            "code": 200,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"schedules\": [\n    {\n      \"id\": \"<uuid>\",\n      \"emisorId\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"cadence\": \"biweekly\",\n      \"nextRun\": \"<date>\",\n      \"active\": \"<boolean>\",\n      \"lastRunAt\": \"<string,null-date-time>\",\n      \"lastDocumentId\": \"<string,null>\",\n      \"runCount\": \"<integer>\",\n      \"lastError\": \"<string,null>\",\n      \"receptorRut\": \"<string,null>\",\n      \"receptorRazonSocial\": \"<string,null>\",\n      \"createdAt\": \"<dateTime>\"\n    },\n    {\n      \"id\": \"<uuid>\",\n      \"emisorId\": \"<uuid>\",\n      \"tipo\": \"<integer>\",\n      \"ambiente\": \"<string>\",\n      \"cadence\": \"weekly\",\n      \"nextRun\": \"<date>\",\n      \"active\": \"<boolean>\",\n      \"lastRunAt\": \"<string,null-date-time>\",\n      \"lastDocumentId\": \"<string,null>\",\n      \"runCount\": \"<integer>\",\n      \"lastError\": \"<string,null>\",\n      \"receptorRut\": \"<string,null>\",\n      \"receptorRazonSocial\": \"<string,null>\",\n      \"createdAt\": \"<dateTime>\"\n    }\n  ]\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "dc794115-1918-4e09-9799-018d06f05d45",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-scheduled"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "GET",
                                "body": {}
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "id": "3e7394fd-2b2d-40e6-8722-f00411b6154b",
                    "name": "Programar un DTE recurrente",
                    "request": {
                        "name": "Programar un DTE recurrente",
                        "description": {
                            "content": "Guarda la plantilla del DTE (misma forma que emit) + la recurrencia. Un\ncron diario lo encola en su fecha. Requiere scope `dte:create`.\n",
                            "type": "text/plain"
                        },
                        "url": {
                            "path": [
                                "v1-scheduled"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"ambiente\": \"prod\",\n  \"cadence\": \"weekly\",\n  \"emisorId\": \"<uuid>\",\n  \"firstRun\": \"<date>\",\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"tipo\": 61,\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\"\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": 2536,\n      \"key_2\": 5760.638022791742,\n      \"key_3\": \"string\"\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3655.27345117136,\n        \"key_2\": \"string\"\n      },\n      {\n        \"key_0\": 1512.6097344073908,\n        \"key_1\": 9294.416681093016,\n        \"key_2\": \"string\",\n        \"key_3\": true\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": false,\n        \"key_1\": false\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3383\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": 5334.332106734657\n  }\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        },
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "cc832142-30f6-4e4b-bf18-d04ce3ed138f",
                            "name": "Programación creada.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-scheduled"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"ambiente\": \"prod\",\n  \"cadence\": \"weekly\",\n  \"emisorId\": \"<uuid>\",\n  \"firstRun\": \"<date>\",\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"tipo\": 61,\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\"\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": 2536,\n      \"key_2\": 5760.638022791742,\n      \"key_3\": \"string\"\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3655.27345117136,\n        \"key_2\": \"string\"\n      },\n      {\n        \"key_0\": 1512.6097344073908,\n        \"key_1\": 9294.416681093016,\n        \"key_2\": \"string\",\n        \"key_3\": true\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": false,\n        \"key_1\": false\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3383\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": 5334.332106734657\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"id\": \"<uuid>\",\n  \"nextRun\": \"<date>\",\n  \"cadence\": \"weekly\",\n  \"active\": \"<boolean>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "b9be20c6-70cc-4f6e-96aa-2d71b039974d",
                            "name": "Validación de la plantilla o de la recurrencia.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-scheduled"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"ambiente\": \"prod\",\n  \"cadence\": \"weekly\",\n  \"emisorId\": \"<uuid>\",\n  \"firstRun\": \"<date>\",\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"tipo\": 61,\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\"\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": 2536,\n      \"key_2\": 5760.638022791742,\n      \"key_3\": \"string\"\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3655.27345117136,\n        \"key_2\": \"string\"\n      },\n      {\n        \"key_0\": 1512.6097344073908,\n        \"key_1\": 9294.416681093016,\n        \"key_2\": \"string\",\n        \"key_3\": true\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": false,\n        \"key_1\": false\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3383\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": 5334.332106734657\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Bad Request",
                            "code": 400,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "2b896f58-e218-44b0-ae6c-61ae177ce319",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-scheduled"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"ambiente\": \"prod\",\n  \"cadence\": \"weekly\",\n  \"emisorId\": \"<uuid>\",\n  \"firstRun\": \"<date>\",\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"tipo\": 61,\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\"\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": 2536,\n      \"key_2\": 5760.638022791742,\n      \"key_3\": \"string\"\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3655.27345117136,\n        \"key_2\": \"string\"\n      },\n      {\n        \"key_0\": 1512.6097344073908,\n        \"key_1\": 9294.416681093016,\n        \"key_2\": \"string\",\n        \"key_3\": true\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": false,\n        \"key_1\": false\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3383\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": 5334.332106734657\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "966d80ca-3cef-4e84-9b46-ec5c567c0342",
                            "name": "Scope o ambiente no permitidos por la key.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-scheduled"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"ambiente\": \"prod\",\n  \"cadence\": \"weekly\",\n  \"emisorId\": \"<uuid>\",\n  \"firstRun\": \"<date>\",\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"tipo\": 61,\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\"\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": 2536,\n      \"key_2\": 5760.638022791742,\n      \"key_3\": \"string\"\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3655.27345117136,\n        \"key_2\": \"string\"\n      },\n      {\n        \"key_0\": 1512.6097344073908,\n        \"key_1\": 9294.416681093016,\n        \"key_2\": \"string\",\n        \"key_3\": true\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": false,\n        \"key_1\": false\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3383\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": 5334.332106734657\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Forbidden",
                            "code": 403,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "dc995783-8a3c-40cb-8018-d315abb1e0ff",
                            "name": "Recurso no encontrado (o fuera de tu cuenta).",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-scheduled"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"ambiente\": \"prod\",\n  \"cadence\": \"weekly\",\n  \"emisorId\": \"<uuid>\",\n  \"firstRun\": \"<date>\",\n  \"montos\": {\n    \"total\": \"<integer>\",\n    \"neto\": \"<integer>\",\n    \"iva\": \"<integer>\",\n    \"exento\": \"<integer>\"\n  },\n  \"receptor\": {\n    \"rut\": \"<string>\",\n    \"razonSocial\": \"<string>\",\n    \"giro\": \"<string>\",\n    \"email\": \"<email>\",\n    \"phone\": \"<string>\",\n    \"extranjero\": {\n      \"numId\": \"<string>\",\n      \"nacionalidad\": \"<integer>\"\n    }\n  },\n  \"tipo\": 61,\n  \"exenta\": \"<boolean>\",\n  \"glosa\": \"<string>\",\n  \"paymentForm\": \"<integer>\",\n  \"serviceIndicator\": \"<integer>\",\n  \"exemptIndicator\": \"<integer>\",\n  \"references\": [\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    },\n    {\n      \"tipo\": \"<integer>\",\n      \"folio\": \"<integer>\",\n      \"fecha\": \"<date>\",\n      \"razon\": \"<string>\",\n      \"codigo\": \"<integer>\"\n    }\n  ],\n  \"despacho\": {\n    \"indTraslado\": \"<integer>\",\n    \"tipoDespacho\": \"<integer>\"\n  },\n  \"transporte\": {\n    \"key_0\": \"string\"\n  },\n  \"exportacion\": {\n    \"tpoMoneda\": \"<string>\",\n    \"otraMoneda\": {\n      \"key_0\": \"string\",\n      \"key_1\": 2536,\n      \"key_2\": 5760.638022791742,\n      \"key_3\": \"string\"\n    },\n    \"fmaPagExp\": \"<integer>\",\n    \"fchCancel\": \"<date>\",\n    \"indServicio\": \"<integer>\"\n  },\n  \"liquidacion\": {\n    \"items\": [\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3655.27345117136,\n        \"key_2\": \"string\"\n      },\n      {\n        \"key_0\": 1512.6097344073908,\n        \"key_1\": 9294.416681093016,\n        \"key_2\": \"string\",\n        \"key_3\": true\n      }\n    ],\n    \"comisiones\": [\n      {\n        \"key_0\": false,\n        \"key_1\": false\n      },\n      {\n        \"key_0\": \"string\",\n        \"key_1\": 3383\n      }\n    ],\n    \"exento\": \"<integer>\",\n    \"ivaProp\": \"<integer>\",\n    \"ivaTerc\": \"<integer>\",\n    \"valComNeto\": \"<integer>\",\n    \"valComExe\": \"<integer>\",\n    \"valComIVA\": \"<integer>\"\n  },\n  \"compra\": {\n    \"key_0\": 5334.332106734657\n  }\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Not Found",
                            "code": 404,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                },
                {
                    "name": "{id}",
                    "description": "",
                    "item": [
                        {
                            "name": "disable",
                            "description": "",
                            "item": [
                                {
                                    "id": "09a21c4b-563e-4438-88dc-9c39deee7d2e",
                                    "name": "Pausar una programación",
                                    "request": {
                                        "name": "Pausar una programación",
                                        "description": {},
                                        "url": {
                                            "path": [
                                                "v1-scheduled",
                                                ":id",
                                                "disable"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "ac734aab-3208-4930-9279-46b47a7f6f2b",
                                            "name": "Programación pausada.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-scheduled",
                                                        ":id",
                                                        "disable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"id\": \"<uuid>\",\n  \"active\": \"<boolean>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "49007361-6f88-45f0-94a4-4706ad26a506",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-scheduled",
                                                        ":id",
                                                        "disable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "aa7f739a-8fe3-4c17-856c-6c6b9696b8c4",
                                            "name": "Recurso no encontrado (o fuera de tu cuenta).",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-scheduled",
                                                        ":id",
                                                        "disable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        },
                        {
                            "name": "enable",
                            "description": "",
                            "item": [
                                {
                                    "id": "811db76d-7140-44fa-97db-60fdd8c5ecb6",
                                    "name": "Reactivar una programación",
                                    "request": {
                                        "name": "Reactivar una programación",
                                        "description": {},
                                        "url": {
                                            "path": [
                                                "v1-scheduled",
                                                ":id",
                                                "enable"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "<uuid>",
                                                    "key": "id",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) ",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            }
                                        ],
                                        "method": "POST",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "37f7bedd-dc61-4d73-921d-536140173ea3",
                                            "name": "Programación reactivada.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-scheduled",
                                                        ":id",
                                                        "enable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"id\": \"<uuid>\",\n  \"active\": \"<boolean>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "205b823a-2e22-4660-94c0-6f90c19550ca",
                                            "name": "API key o sesión inválida.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-scheduled",
                                                        ":id",
                                                        "enable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Unauthorized",
                                            "code": 401,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        },
                                        {
                                            "id": "cc96c05c-a505-4139-84f3-65a9ef1555f7",
                                            "name": "Recurso no encontrado (o fuera de tu cuenta).",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-scheduled",
                                                        ":id",
                                                        "enable"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) ",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "<uuid>",
                                                            "key": "id"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "POST",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "v1-intercambio",
            "description": "",
            "item": [
                {
                    "id": "5a80a691-0112-42d9-a394-abc8a826d6c6",
                    "name": "Recibir un EnvioDTE entrante y devolver los acuses firmados",
                    "request": {
                        "name": "Recibir un EnvioDTE entrante y devolver los acuses firmados",
                        "description": {
                            "content": "Un tercero te envió un DTE. Devuelve los 3 acuses **firmados**:\nRecepcionEnvio (acuse de recibo) + ResultadoDTE (resultado comercial) +\nEnvioRecibos (recibo de mercaderías, Ley 19.983). En cert los acusa a la\ncasilla del SII; en prod, a `replyTo` si se provee.\n",
                            "type": "text/plain"
                        },
                        "url": {
                            "path": [
                                "v1-intercambio"
                            ],
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "query": [],
                            "variable": []
                        },
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "method": "POST",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"ambiente\": \"test\",\n  \"envioXml\": \"<string>\",\n  \"replyTo\": \"<email>\"\n}",
                            "options": {
                                "raw": {
                                    "headerFamily": "json",
                                    "language": "json"
                                }
                            }
                        },
                        "auth": null
                    },
                    "response": [
                        {
                            "id": "6a3d8832-aabf-4368-8bd4-566fdb6d778f",
                            "name": "EnvioDTE acusado.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-intercambio"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"ambiente\": \"test\",\n  \"envioXml\": \"<string>\",\n  \"replyTo\": \"<email>\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Created",
                            "code": 201,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"id\": \"<string,null-uuid>\",\n  \"setId\": \"<string,null>\",\n  \"dteCount\": \"<integer>\",\n  \"rutEmisor\": \"<string>\",\n  \"estado\": \"acusado\",\n  \"acusesEnviados\": \"<boolean>\",\n  \"enviadoA\": \"<string,null>\",\n  \"recibosOmitidos\": \"<integer>\",\n  \"acuses\": {\n    \"recepcionEnvio\": \"<string>\",\n    \"resultadoDte\": \"<string>\",\n    \"envioRecibos\": \"<string,null>\"\n  },\n  \"archived\": {\n    \"key_0\": \"<string>\"\n  }\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        },
                        {
                            "id": "a1925450-ab81-4ddd-868e-20cb5f127f10",
                            "name": "API key o sesión inválida.",
                            "originalRequest": {
                                "url": {
                                    "path": [
                                        "v1-intercambio"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": []
                                },
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    },
                                    {
                                        "description": {
                                            "content": "Added as a part of security scheme: bearer",
                                            "type": "text/plain"
                                        },
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                    }
                                ],
                                "method": "POST",
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"ambiente\": \"test\",\n  \"envioXml\": \"<string>\",\n  \"replyTo\": \"<email>\"\n}",
                                    "options": {
                                        "raw": {
                                            "headerFamily": "json",
                                            "language": "json"
                                        }
                                    }
                                }
                            },
                            "status": "Unauthorized",
                            "code": 401,
                            "header": [
                                {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                            "cookie": [],
                            "_postman_previewlanguage": "json"
                        }
                    ],
                    "event": [],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    }
                }
            ]
        },
        {
            "name": "v1-portal",
            "description": "",
            "item": [
                {
                    "name": "{token}",
                    "description": "",
                    "item": [
                        {
                            "id": "58726ba4-8fbb-45e0-900b-aef7081a6478",
                            "name": "Metadatos del documento (público, por token)",
                            "request": {
                                "name": "Metadatos del documento (público, por token)",
                                "description": {
                                    "content": "PÚBLICO — sin API key. El token (256 bits) es la credencial. Toda\nrespuesta lleva `X-Robots-Tag: noindex`. El token mapea a UN documento.\n",
                                    "type": "text/plain"
                                },
                                "url": {
                                    "path": [
                                        "v1-portal",
                                        ":token"
                                    ],
                                    "host": [
                                        "{{baseUrl}}"
                                    ],
                                    "query": [],
                                    "variable": [
                                        {
                                            "type": "any",
                                            "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                            "key": "token",
                                            "disabled": false,
                                            "description": {
                                                "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                "type": "text/plain"
                                            }
                                        }
                                    ]
                                },
                                "header": [
                                    {
                                        "key": "Accept",
                                        "value": "application/json"
                                    }
                                ],
                                "method": "GET",
                                "body": {},
                                "auth": null
                            },
                            "response": [
                                {
                                    "id": "6661e9db-a5d3-45b9-bc08-b97210621e1b",
                                    "name": "Metadatos + links de descarga.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-portal",
                                                ":token"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                        "type": "text/plain"
                                                    },
                                                    "type": "any",
                                                    "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                                    "key": "token"
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "OK",
                                    "code": 200,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"tipo\": \"<integer>\",\n  \"folio\": \"<integer>\",\n  \"ambiente\": \"<string>\",\n  \"emisor\": null,\n  \"receptor\": {\n    \"rut\": \"<string,null>\",\n    \"razonSocial\": \"<string,null>\"\n  },\n  \"monto\": \"<integer>\",\n  \"xmlUrl\": \"<uri>\",\n  \"pdfUrl\": \"<uri>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                },
                                {
                                    "id": "c8a6947a-fae5-496e-bb49-b0f3de340229",
                                    "name": "Enlace inválido o expirado.",
                                    "originalRequest": {
                                        "url": {
                                            "path": [
                                                "v1-portal",
                                                ":token"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                        "type": "text/plain"
                                                    },
                                                    "type": "any",
                                                    "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                                    "key": "token"
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/json"
                                            },
                                            {
                                                "description": {
                                                    "content": "Added as a part of security scheme: bearer",
                                                    "type": "text/plain"
                                                },
                                                "key": "Authorization",
                                                "value": "Bearer <token>"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {}
                                    },
                                    "status": "Not Found",
                                    "code": 404,
                                    "header": [
                                        {
                                            "key": "Content-Type",
                                            "value": "application/json"
                                        }
                                    ],
                                    "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                    "cookie": [],
                                    "_postman_previewlanguage": "json"
                                }
                            ],
                            "event": [],
                            "protocolProfileBehavior": {
                                "disableBodyPruning": true
                            }
                        },
                        {
                            "name": "xml",
                            "description": "",
                            "item": [
                                {
                                    "id": "c6b67300-2926-4dfb-90ce-d862777c6c75",
                                    "name": "Descargar el XML (público, por token)",
                                    "request": {
                                        "name": "Descargar el XML (público, por token)",
                                        "description": {},
                                        "url": {
                                            "path": [
                                                "v1-portal",
                                                ":token",
                                                "xml"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                                    "key": "token",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/xml"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "4fd8000a-2b27-48ae-bedd-0ad58232c977",
                                            "name": "EnvioDTE firmado.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-portal",
                                                        ":token",
                                                        "xml"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                                            "key": "token"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/xml"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/xml"
                                                }
                                            ],
                                            "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<element>(string)</element>",
                                            "cookie": [],
                                            "_postman_previewlanguage": "xml"
                                        },
                                        {
                                            "id": "a67cc782-4f93-464c-a409-cd5aae501e21",
                                            "name": "Enlace inválido o expirado.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-portal",
                                                        ":token",
                                                        "xml"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                                            "key": "token"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        },
                        {
                            "name": "pdf",
                            "description": "",
                            "item": [
                                {
                                    "id": "6647f493-2540-4975-9b0d-2c4645d3838b",
                                    "name": "Descargar el PDF (público, por token)",
                                    "request": {
                                        "name": "Descargar el PDF (público, por token)",
                                        "description": {},
                                        "url": {
                                            "path": [
                                                "v1-portal",
                                                ":token",
                                                "pdf"
                                            ],
                                            "host": [
                                                "{{baseUrl}}"
                                            ],
                                            "query": [],
                                            "variable": [
                                                {
                                                    "type": "any",
                                                    "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                                    "key": "token",
                                                    "disabled": false,
                                                    "description": {
                                                        "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                        "type": "text/plain"
                                                    }
                                                }
                                            ]
                                        },
                                        "header": [
                                            {
                                                "key": "Accept",
                                                "value": "application/pdf"
                                            }
                                        ],
                                        "method": "GET",
                                        "body": {},
                                        "auth": null
                                    },
                                    "response": [
                                        {
                                            "id": "d4d8f533-b8c7-4ee8-ab87-993a7723bbde",
                                            "name": "Muestra impresa.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-portal",
                                                        ":token",
                                                        "pdf"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                                            "key": "token"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/pdf"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "OK",
                                            "code": 200,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/pdf"
                                                }
                                            ],
                                            "body": "<binary>",
                                            "cookie": [],
                                            "_postman_previewlanguage": "text"
                                        },
                                        {
                                            "id": "1da743a5-246b-4905-a2b3-edf90b1d5358",
                                            "name": "Enlace inválido o expirado.",
                                            "originalRequest": {
                                                "url": {
                                                    "path": [
                                                        "v1-portal",
                                                        ":token",
                                                        "pdf"
                                                    ],
                                                    "host": [
                                                        "{{baseUrl}}"
                                                    ],
                                                    "query": [],
                                                    "variable": [
                                                        {
                                                            "disabled": false,
                                                            "description": {
                                                                "content": "(Required) Token opaco de 64 chars hex (256 bits).",
                                                                "type": "text/plain"
                                                            },
                                                            "type": "any",
                                                            "value": "c2741d03e0d56de9e6fb200b08ac7317a51793b85eb06b2b73f72381cef77394",
                                                            "key": "token"
                                                        }
                                                    ]
                                                },
                                                "header": [
                                                    {
                                                        "key": "Accept",
                                                        "value": "application/json"
                                                    },
                                                    {
                                                        "description": {
                                                            "content": "Added as a part of security scheme: bearer",
                                                            "type": "text/plain"
                                                        },
                                                        "key": "Authorization",
                                                        "value": "Bearer <token>"
                                                    }
                                                ],
                                                "method": "GET",
                                                "body": {}
                                            },
                                            "status": "Not Found",
                                            "code": 404,
                                            "header": [
                                                {
                                                    "key": "Content-Type",
                                                    "value": "application/json"
                                                }
                                            ],
                                            "body": "{\n  \"error\": \"<string>\",\n  \"detail\": \"<string>\"\n}",
                                            "cookie": [],
                                            "_postman_previewlanguage": "json"
                                        }
                                    ],
                                    "event": [],
                                    "protocolProfileBehavior": {
                                        "disableBodyPruning": true
                                    }
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "type": "any",
                "value": "{{bearerToken}}",
                "key": "token"
            }
        ]
    },
    "event": [],
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://api.ruraldte.cl"
        }
    ],
    "info": {
        "_postman_id": "1b647613-cdb2-4f6e-b7c8-c304555f5d3e",
        "name": "RuralDTE API",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
        "description": {
            "content": "Motor de facturación electrónica chilena (DTE) certificado por el SII.\nEmite boletas y facturas desde tu software, tu WhatsApp o tu agente de IA,\nsin pagar por documento.\n\n## Autenticación\nTodas las llamadas usan una **API key Bearer**:\n`Authorization: Bearer rdte_live_…` (producción) o `rdte_test_…` (sandbox/cert).\nLa key fija el ambiente: una key `live` solo emite en `prod`; una `test` solo\nen `test`/`cert`. Se guarda solo `sha256(key)` + prefijo; la key cruda se ve\n**una sola vez** al crearla.\n\n## Scopes\nUna key puede acotarse a un subconjunto de scopes (key sin scopes = full):\n`dte:create`, `dte:read`, `caf:read`, `caf:write`, `emisores:read`,\n`webhooks:write`. Una key también puede restringirse a un emisor\n(`scopeEmisorId`).\n\n## Idempotencia\nManda el header `Idempotency-Key` en `POST /documents` para que un reintento\nno encole dos veces el mismo documento (el folio es irreversible).\n\n## Emitir = encolar (asíncrono)\n`POST /documents` responde **202** con `status: \"queued\"`. El worker drena la\ncola, firma con el motor y pollea el SII. Sigue el desenlace por\n`GET /documents/{id}/states` o por **webhooks** (ver el esquema\n`WebhookEvent`).\n\n## Errores del SII explicados\nCuando el SII devuelve un código (`sii_code`), la API lo traduce a\n`detalle_sii` = `{ code, glosa, causa, solucion }` (en tuteo chileno) para que\nsepas qué pasó y qué hacer. Ver el esquema `SiiExplanation`.\n\n\nContact Support:\n Name: RuralDTE",
            "type": "text/plain"
        }
    }
}