fiscalisto 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/generated.js CHANGED
@@ -17,6 +17,17 @@ export class AccountResource {
17
17
  get(options) {
18
18
  return this.#client.request({ method: "GET", path: "/v1/account" }, options);
19
19
  }
20
+ /**
21
+ * Cambiar la versión de la API
22
+ *
23
+ * Mueve la versión de la API de la cuenta: la que reciben sus solicitudes sin el encabezado Fiscalisto-Version y sus webhooks sin api_version propio. Antes, pruebe la nueva mandando Fiscalisto-Version en sus solicitudes. Con una llave de la cuenta con todos los permisos (no de un entorno de prueba). Queda en Desarrolladores › Actividad.
24
+ *
25
+ * POST /v1/account
26
+ * @see https://fiscalisto.com/docs/api/referencia/cuenta/update-account
27
+ */
28
+ update(params, options) {
29
+ return this.#client.request({ method: "POST", path: "/v1/account", body: params, idempotent: true }, options);
30
+ }
20
31
  }
21
32
  /** Cuenta: fiscalisto.testData. */
22
33
  export class TestDataResource {
@@ -345,7 +356,7 @@ export class InvoicesResource {
345
356
  /**
346
357
  * Cancelar una factura
347
358
  *
348
- * Pide la cancelación al SAT. Si el cliente debe aceptarla queda en pending (escuche invoice.canceled o invoice.cancellation_rejected). Usa un timbre la primera vez que el SAT acepta la solicitud; repetirla, o pedirla otra vez después de un rechazo, no. Nunca se niega por falta de timbres.
359
+ * Pide la cancelación al SAT. Si el cliente debe aceptarla queda en pending (escuche invoice.canceled o invoice.cancellation_rejected). No usa timbres.
349
360
  *
350
361
  * POST /v1/invoices/{id}/cancel
351
362
  * @see https://fiscalisto.com/docs/api/referencia/facturas/cancel-invoice
@@ -613,7 +624,7 @@ export class RetentionsResource {
613
624
  /**
614
625
  * Cancelar una constancia
615
626
  *
616
- * Se cancela en el momento (no espera aceptación). Usa un timbre.
627
+ * Se cancela en el momento (no espera aceptación). No usa timbres.
617
628
  *
618
629
  * POST /v1/retentions/{id}/cancel
619
630
  * @see https://fiscalisto.com/docs/api/referencia/retenciones/cancel-retention
@@ -966,7 +977,7 @@ export class SatDownloadsResource {
966
977
  /**
967
978
  * Pedirle al SAT las facturas de un emisor
968
979
  *
969
- * La descarga masiva del SAT: las facturas que el emisor recibió (o emitió) en un periodo de hasta un año, con su XML. Contesta 202 de inmediato; el SAT tarda de minutos a horas y al terminar llega sat_download.completed (o sat_download.failed) y las facturas quedan en GET /v1/sat_invoices. En producción necesita la e.firma guardada del emisor; en pruebas no se le pregunta al SAT: la descarga trae facturas de ejemplo al instante. No usa timbres.
980
+ * La descarga masiva del SAT: las facturas que el emisor recibió (o emitió) en un periodo de hasta un año, con su XML. Contesta 202 de inmediato; el SAT tarda de minutos a horas y al terminar llega sat_download.completed (o sat_download.failed) y las facturas quedan en GET /v1/sat_invoices. En producción necesita la e.firma guardada del emisor; en pruebas no se le pregunta al SAT: la descarga trae facturas de ejemplo al instante. En producción usa 1 timbre por cada 100 CFDI que trae (al menos 1).
970
981
  *
971
982
  * POST /v1/sat_downloads
972
983
  * @see https://fiscalisto.com/docs/api/referencia/descargas-del-sat/create-sat-download
@@ -1031,6 +1042,77 @@ export class SatInvoicesResource {
1031
1042
  return this.#client.request({ method: "GET", path: `/v1/sat_invoices/${encodeURIComponent(id)}/xml`, as: "text" }, options);
1032
1043
  }
1033
1044
  }
1045
+ /** Declaraciones del SAT: fiscalisto.satDeclarations. */
1046
+ export class SatDeclarationsResource {
1047
+ #client;
1048
+ constructor(client) {
1049
+ this.#client = client;
1050
+ }
1051
+ /**
1052
+ * Consultar las declaraciones de un emisor en el SAT
1053
+ *
1054
+ * Entra al SAT con la e.firma guardada del emisor y trae las declaraciones que presentó: provisionales o definitivas (desde 2022), la anual de persona moral (desde 2019) y las del servicio anterior Declaraciones y pagos, con su PDF, su acuse y sus cifras. La primera consulta trae todos los años que el SAT conserva; las siguientes, este año y el anterior. Solo consulta: nunca presenta ni firma nada. En producción usa 1 timbre por consulta (regresa si el SAT no contesta) y se puede hacer una vez cada 10 minutos por emisor. Contesta en menos de un minuto; si queda algo por bajar (status processing), sigue solo en la siguiente hora sin otro timbre. En pruebas no se le pregunta al SAT: trae declaraciones de ejemplo al instante.
1055
+ *
1056
+ * POST /v1/sat_declarations/refresh
1057
+ * @see https://fiscalisto.com/docs/api/referencia/declaraciones-del-sat/refresh-sat-declarations
1058
+ */
1059
+ refresh(params, options) {
1060
+ return this.#client.request({ method: "POST", path: "/v1/sat_declarations/refresh", body: params, idempotent: true }, options);
1061
+ }
1062
+ /**
1063
+ * Listar declaraciones del SAT
1064
+ *
1065
+ * Las declaraciones que trajeron sus consultas, del ejercicio y mes más recientes a los más antiguos (la anual antes de los meses de su año). No usa timbres.
1066
+ *
1067
+ * GET /v1/sat_declarations
1068
+ * @see https://fiscalisto.com/docs/api/referencia/declaraciones-del-sat/list-sat-declarations
1069
+ */
1070
+ list(params, options) {
1071
+ return this.#client.list({ path: "/v1/sat_declarations", query: params }, options);
1072
+ }
1073
+ /**
1074
+ * Ver una declaración del SAT
1075
+ *
1076
+ * GET /v1/sat_declarations/{id}
1077
+ * @see https://fiscalisto.com/docs/api/referencia/declaraciones-del-sat/get-sat-declaration
1078
+ */
1079
+ get(id, options) {
1080
+ return this.#client.request({ method: "GET", path: `/v1/sat_declarations/${encodeURIComponent(id)}` }, options);
1081
+ }
1082
+ /**
1083
+ * Descargar el PDF de una declaración
1084
+ *
1085
+ * La declaración como la da el SAT. No usa timbres.
1086
+ *
1087
+ * GET /v1/sat_declarations/{id}/pdf
1088
+ * @see https://fiscalisto.com/docs/api/referencia/declaraciones-del-sat/get-sat-declaration-pdf
1089
+ */
1090
+ pdf(id, options) {
1091
+ return this.#client.request({ method: "GET", path: `/v1/sat_declarations/${encodeURIComponent(id)}/pdf`, as: "bytes" }, options);
1092
+ }
1093
+ /**
1094
+ * Descargar el acuse de una declaración
1095
+ *
1096
+ * El acuse de recibo, con la línea de captura si hay algo a pagar. No usa timbres.
1097
+ *
1098
+ * GET /v1/sat_declarations/{id}/receipt
1099
+ * @see https://fiscalisto.com/docs/api/referencia/declaraciones-del-sat/get-sat-declaration-receipt
1100
+ */
1101
+ receipt(id, options) {
1102
+ return this.#client.request({ method: "GET", path: `/v1/sat_declarations/${encodeURIComponent(id)}/receipt`, as: "bytes" }, options);
1103
+ }
1104
+ /**
1105
+ * Descargar los estados financieros de una anual
1106
+ *
1107
+ * El Excel de estados financieros de la anual de persona moral, como lo da el SAT. No usa timbres.
1108
+ *
1109
+ * GET /v1/sat_declarations/{id}/financial_statements
1110
+ * @see https://fiscalisto.com/docs/api/referencia/declaraciones-del-sat/get-sat-declaration-financial-statements
1111
+ */
1112
+ financialStatements(id, options) {
1113
+ return this.#client.request({ method: "GET", path: `/v1/sat_declarations/${encodeURIComponent(id)}/financial_statements`, as: "text" }, options);
1114
+ }
1115
+ }
1034
1116
  /** Autofactura: fiscalisto.tickets. */
1035
1117
  export class TicketsResource {
1036
1118
  #client;
@@ -1089,7 +1171,7 @@ export class AccountingResource {
1089
1171
  /**
1090
1172
  * Listar las pólizas de un mes
1091
1173
  *
1092
- * Una póliza de diario por cada CFDI de ingreso o egreso vigente del mes, emitido o recibido (los recibidos con la categoría de su gasto), con sus cuentas y código agrupador del SAT. En pesos; un CFDI en otra moneda sin tipo de cambio no se registra. Es un punto de partida para su contador: no incluye bancos, nómina ni depreciaciones.
1174
+ * Las pólizas de diario del mes, con sus cuentas y código agrupador del SAT: una por cada CFDI de ingreso o egreso vigente, emitido o recibido (los recibidos con la categoría de su gasto); una por cada pago de un complemento; una por cada recibo de nómina, y una con la depreciación de los activos fijos. Un PUE se registra cobrado o pagado según su forma de pago. En pesos; un CFDI en otra moneda sin tipo de cambio no se registra. No incluye movimientos de banco sin CFDI ni provisiones.
1093
1175
  *
1094
1176
  * GET /v1/accounting/journal_entries
1095
1177
  * @see https://fiscalisto.com/docs/api/referencia/contabilidad/list-journal-entries
@@ -1100,7 +1182,7 @@ export class AccountingResource {
1100
1182
  /**
1101
1183
  * Ver la balanza de comprobación
1102
1184
  *
1103
- * Saldo inicial, cargos, abonos y saldo final de cada cuenta en el mes. Los saldos iniciales se acumulan desde el primer CFDI (las de resultados, desde enero), y los resultados de cada año anterior se cierran a capital.
1185
+ * Saldo inicial, cargos, abonos y saldo final de cada cuenta en el mes. Los saldos iniciales se acumulan desde el primer CFDI, o desde los saldos iniciales capturados en la app (las de resultados, desde enero), y los resultados de cada año anterior se cierran a capital.
1104
1186
  *
1105
1187
  * GET /v1/accounting/trial_balance
1106
1188
  * @see https://fiscalisto.com/docs/api/referencia/contabilidad/get-trial-balance
@@ -1108,6 +1190,28 @@ export class AccountingResource {
1108
1190
  trialBalance(params, options) {
1109
1191
  return this.#client.request({ method: "GET", path: "/v1/accounting/trial_balance", query: params }, options);
1110
1192
  }
1193
+ /**
1194
+ * Ver los estados financieros
1195
+ *
1196
+ * El estado de resultados (del mes y del año hasta ese mes) y el balance general al cierre del mes, leídos de la misma balanza, así que siempre suman las mismas pólizas.
1197
+ *
1198
+ * GET /v1/accounting/financial_statements
1199
+ * @see https://fiscalisto.com/docs/api/referencia/contabilidad/get-financial-statements
1200
+ */
1201
+ financialStatements(params, options) {
1202
+ return this.#client.request({ method: "GET", path: "/v1/accounting/financial_statements", query: params }, options);
1203
+ }
1204
+ /**
1205
+ * Cruzar lo declarado con lo facturado
1206
+ *
1207
+ * Cada mes ya vencido del año: el IVA trasladado, acreditable y retenido y los ingresos para ISR que el emisor declaró (de GET /v1/sat_declarations, después de POST /v1/sat_declarations/refresh) contra lo que dicen sus CFDI. Hasta $2 de diferencia es redondeo (las declaraciones van en pesos enteros). Una cifra que la declaración no trae en un renglón reconocible es unreadable con declared null, nunca 0. También el IVA a favor y el régimen con que factura. Gratis: no consulta al SAT.
1208
+ *
1209
+ * GET /v1/accounting/cross_checks
1210
+ * @see https://fiscalisto.com/docs/api/referencia/contabilidad/get-cross-checks
1211
+ */
1212
+ crossChecks(params, options) {
1213
+ return this.#client.request({ method: "GET", path: "/v1/accounting/cross_checks", query: params }, options);
1214
+ }
1111
1215
  /**
1112
1216
  * Ver el catálogo de cuentas
1113
1217
  *
@@ -1541,6 +1645,7 @@ export class FiscalistoApi extends Core {
1541
1645
  satLists = new SatListsResource(this);
1542
1646
  satDownloads = new SatDownloadsResource(this);
1543
1647
  satInvoices = new SatInvoicesResource(this);
1648
+ satDeclarations = new SatDeclarationsResource(this);
1544
1649
  tickets = new TicketsResource(this);
1545
1650
  accounting = new AccountingResource(this);
1546
1651
  storeConnections = new StoreConnectionsResource(this);
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export declare class Fiscalisto extends FiscalistoApi {
20
20
  readonly webhooks: Webhooks;
21
21
  }
22
22
  export default Fiscalisto;
23
- export { type ErrorType, type Fetch, FiscalistoError, type FiscalistoOptions, List, type Page, type RequestOptions, VERSION, } from "./core.js";
23
+ export { API_VERSION, type ErrorType, type Fetch, FiscalistoError, type FiscalistoOptions, List, type Page, type RequestOptions, VERSION, } from "./core.js";
24
24
  export { ErrorCode } from "./error-codes.js";
25
25
  export type * from "./generated.js";
26
26
  export { FiscalistoWebhookError, type VerifyOptions, verifyWebhook, type WebhookHeaders, } from "./webhooks.js";
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@ export class Fiscalisto extends FiscalistoApi {
20
20
  webhooks = new Webhooks();
21
21
  }
22
22
  export default Fiscalisto;
23
- export { FiscalistoError, List, VERSION, } from "./core.js";
23
+ export { API_VERSION, FiscalistoError, List, VERSION, } from "./core.js";
24
24
  export { ErrorCode } from "./error-codes.js";
25
25
  export { FiscalistoWebhookError, verifyWebhook, } from "./webhooks.js";
@@ -0,0 +1,2 @@
1
+ /** [método, ruta, estado, tipo de contenido, ejemplo] de cada ruta de la API. */
2
+ export declare const MOCK_ROUTES: [string, string, number, string, unknown][];
@@ -0,0 +1,3 @@
1
+ // Generado por `bun run openapi` (mock-gen.ts) desde la especificación OpenAPI: no lo edite.
2
+ /** [método, ruta, estado, tipo de contenido, ejemplo] de cada ruta de la API. */
3
+ export const MOCK_ROUTES = [["GET", "/v1/account", 200, "application/json", { "id": "org_39c5a6b2-02b3-8453-9c35-aba6b43c876a", "object": "account", "livemode": false, "name": "Mi plataforma", "api_version": "2026-10-24", "latest_api_version": "2026-10-24", "key": { "id": "key_vFQbeTxgHVoTlowHaTLR", "name": "Pruebas", "issuers": null, "read_only": false, "expires_at": null, "sandbox": null } }], ["POST", "/v1/account", 200, "application/json", { "id": "org_39c5a6b2-02b3-8453-9c35-aba6b43c876a", "object": "account", "livemode": false, "name": "Mi plataforma", "api_version": "2026-10-24", "latest_api_version": "2026-10-24", "key": { "id": "key_vFQbeTxgHVoTlowHaTLR", "name": "Pruebas", "issuers": null, "read_only": false, "expires_at": null, "sandbox": null } }], ["POST", "/v1/test_data/reset", 200, "application/json", { "object": "test_data_reset", "livemode": false, "issuers": 1, "deleted_rows": 214, "deleted_events": 37, "customers_created": 3, "products_created": 3 }], ["POST", "/v1/sandboxes", 201, "application/json", { "id": "sbx_4kQm8ZtR2wLp9XbN", "object": "sandbox", "livemode": false, "name": "Ana", "issuers": 1, "created_at": "2026-10-25T09:40:00-06:00" }], ["GET", "/v1/sandboxes", 200, "application/json", { "object": "list", "data": [{ "id": "sbx_4kQm8ZtR2wLp9XbN", "object": "sandbox", "livemode": false, "name": "Ana", "issuers": 1, "created_at": "2026-10-25T09:40:00-06:00" }], "has_more": false, "url": "/v1/sandboxes" }], ["GET", "/v1/sandboxes/{id}", 200, "application/json", { "id": "sbx_4kQm8ZtR2wLp9XbN", "object": "sandbox", "livemode": false, "name": "Ana", "issuers": 1, "created_at": "2026-10-25T09:40:00-06:00" }], ["DELETE", "/v1/sandboxes/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "deleted": true }], ["POST", "/v1/issuers/{id}/test_clock", 201, "application/json", { "id": "clk_0q1Vmmw52sbD", "object": "test_clock", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "frozen_time": "2026-12-01T09:00:00-06:00", "status": "ready", "created_at": "2026-10-25T09:40:00-06:00", "advanced": { "recurring_invoices": 2, "quotes_expired": 1, "global_invoices": 1 } }], ["GET", "/v1/issuers/{id}/test_clock", 200, "application/json", { "id": "clk_0q1Vmmw52sbD", "object": "test_clock", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "frozen_time": "2026-12-01T09:00:00-06:00", "status": "ready", "created_at": "2026-10-25T09:40:00-06:00", "advanced": { "recurring_invoices": 2, "quotes_expired": 1, "global_invoices": 1 } }], ["DELETE", "/v1/issuers/{id}/test_clock", 200, "application/json", { "id": "clk_0q1Vmmw52sbD", "object": "test_clock", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "frozen_time": "2026-12-01T09:00:00-06:00", "status": "ready", "created_at": "2026-10-25T09:40:00-06:00", "advanced": { "recurring_invoices": 2, "quotes_expired": 1, "global_invoices": 1 } }], ["POST", "/v1/issuers/{id}/test_clock/advance", 200, "application/json", { "id": "clk_0q1Vmmw52sbD", "object": "test_clock", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "frozen_time": "2026-12-01T09:00:00-06:00", "status": "ready", "created_at": "2026-10-25T09:40:00-06:00", "advanced": { "recurring_invoices": 2, "quotes_expired": 1, "global_invoices": 1 } }], ["GET", "/v1/balance", 200, "application/json", { "object": "balance", "livemode": true, "available": 20, "unlimited": false, "low_balance_at": 100, "auto_recharge": null, "packs": [{ "timbres": 20, "remaining": 20, "purchased_at": "2026-10-24T10:15:42-06:00", "expires_at": null }] }], ["POST", "/v1/issuers", 201, "application/json", { "id": "iss_OufpKqnrvx9p", "object": "issuer", "livemode": false, "tax_id": "TOL190312KT4", "legal_name": "TOLPI", "tax_system": "601", "zip": "64000", "status": "active", "requirement": null, "certificate": { "serial_number": "30001000000500003416", "expires_at": "2027-05-18T05:43:51-06:00" }, "sat_downloads": { "available": true, "efirma_expires_at": null }, "employer_registration": null, "curp": null, "stamps_as": "EKU9003173C9", "sandbox": null, "test_clock": null, "created_at": "2026-10-24T10:15:42-06:00", "archived_at": null, "metadata": { "cliente": "42" } }], ["GET", "/v1/issuers", 200, "application/json", { "object": "list", "data": [{ "id": "iss_OufpKqnrvx9p", "object": "issuer", "livemode": false, "tax_id": "TOL190312KT4", "legal_name": "TOLPI", "tax_system": "601", "zip": "64000", "status": "active", "requirement": null, "certificate": { "serial_number": "30001000000500003416", "expires_at": "2027-05-18T05:43:51-06:00" }, "sat_downloads": { "available": true, "efirma_expires_at": null }, "employer_registration": null, "curp": null, "stamps_as": "EKU9003173C9", "sandbox": null, "test_clock": null, "created_at": "2026-10-24T10:15:42-06:00", "archived_at": null, "metadata": { "cliente": "42" } }], "has_more": false, "url": "/v1/issuers" }], ["GET", "/v1/issuers/{id}", 200, "application/json", { "id": "iss_OufpKqnrvx9p", "object": "issuer", "livemode": false, "tax_id": "TOL190312KT4", "legal_name": "TOLPI", "tax_system": "601", "zip": "64000", "status": "active", "requirement": null, "certificate": { "serial_number": "30001000000500003416", "expires_at": "2027-05-18T05:43:51-06:00" }, "sat_downloads": { "available": true, "efirma_expires_at": null }, "employer_registration": null, "curp": null, "stamps_as": "EKU9003173C9", "sandbox": null, "test_clock": null, "created_at": "2026-10-24T10:15:42-06:00", "archived_at": null, "metadata": { "cliente": "42" } }], ["POST", "/v1/issuers/{id}", 200, "application/json", { "id": "iss_OufpKqnrvx9p", "object": "issuer", "livemode": false, "tax_id": "TOL190312KT4", "legal_name": "TOLPI", "tax_system": "601", "zip": "64000", "status": "active", "requirement": null, "certificate": { "serial_number": "30001000000500003416", "expires_at": "2027-05-18T05:43:51-06:00" }, "sat_downloads": { "available": true, "efirma_expires_at": null }, "employer_registration": null, "curp": null, "stamps_as": "EKU9003173C9", "sandbox": null, "test_clock": null, "created_at": "2026-10-24T10:15:42-06:00", "archived_at": null, "metadata": { "cliente": "42" } }], ["DELETE", "/v1/issuers/{id}", 200, "application/json", { "id": "iss_OufpKqnrvx9p", "object": "issuer", "livemode": false, "tax_id": "TOL190312KT4", "legal_name": "TOLPI", "tax_system": "601", "zip": "64000", "status": "active", "requirement": null, "certificate": { "serial_number": "30001000000500003416", "expires_at": "2027-05-18T05:43:51-06:00" }, "sat_downloads": { "available": true, "efirma_expires_at": null }, "employer_registration": null, "curp": null, "stamps_as": "EKU9003173C9", "sandbox": null, "test_clock": null, "created_at": "2026-10-24T10:15:42-06:00", "archived_at": null, "metadata": { "cliente": "42" } }], ["POST", "/v1/issuers/{id}/certificates", 200, "application/json", { "id": "iss_OufpKqnrvx9p", "object": "issuer", "livemode": false, "tax_id": "TOL190312KT4", "legal_name": "TOLPI", "tax_system": "601", "zip": "64000", "status": "active", "requirement": null, "certificate": { "serial_number": "30001000000500003416", "expires_at": "2027-05-18T05:43:51-06:00" }, "sat_downloads": { "available": true, "efirma_expires_at": null }, "employer_registration": null, "curp": null, "stamps_as": "EKU9003173C9", "sandbox": null, "test_clock": null, "created_at": "2026-10-24T10:15:42-06:00", "archived_at": null, "metadata": { "cliente": "42" } }], ["POST", "/v1/issuers/{id}/efirma", 200, "application/json", { "id": "iss_OufpKqnrvx9p", "object": "issuer", "livemode": false, "tax_id": "TOL190312KT4", "legal_name": "TOLPI", "tax_system": "601", "zip": "64000", "status": "active", "requirement": null, "certificate": { "serial_number": "30001000000500003416", "expires_at": "2027-05-18T05:43:51-06:00" }, "sat_downloads": { "available": true, "efirma_expires_at": null }, "employer_registration": null, "curp": null, "stamps_as": "EKU9003173C9", "sandbox": null, "test_clock": null, "created_at": "2026-10-24T10:15:42-06:00", "archived_at": null, "metadata": { "cliente": "42" } }], ["DELETE", "/v1/issuers/{id}/efirma", 200, "application/json", { "id": "iss_OufpKqnrvx9p", "object": "issuer", "livemode": false, "tax_id": "TOL190312KT4", "legal_name": "TOLPI", "tax_system": "601", "zip": "64000", "status": "active", "requirement": null, "certificate": { "serial_number": "30001000000500003416", "expires_at": "2027-05-18T05:43:51-06:00" }, "sat_downloads": { "available": true, "efirma_expires_at": null }, "employer_registration": null, "curp": null, "stamps_as": "EKU9003173C9", "sandbox": null, "test_clock": null, "created_at": "2026-10-24T10:15:42-06:00", "archived_at": null, "metadata": { "cliente": "42" } }], ["POST", "/v1/issuers/{id}/onboarding_links", 201, "application/json", { "object": "issuer_onboarding_link", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "url": "https://fiscalisto.com/alta/fko_8Xc1nQ2VbT0aLm3Rk7Yp9WdZs4Hf6Jg5Ue1Oi2Ky", "return_url": "https://miplataforma.mx/configuracion/facturas", "expires_at": "2026-10-25T10:15:00-06:00", "created_at": "2026-10-24T10:15:00-06:00" }], ["POST", "/v1/invoices", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["GET", "/v1/invoices", 200, "application/json", { "object": "list", "data": [{ "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], "has_more": false, "url": "/v1/invoices" }], ["GET", "/v1/invoices/{id}", 200, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["GET", "/v1/invoices/{id}/pdf", 200, "application/pdf", null], ["GET", "/v1/invoices/{id}/xml", 200, "application/xml", null], ["POST", "/v1/invoices/{id}/send", 200, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/invoices/{id}/cancel", 200, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/invoices/{id}/substitute", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/invoices/{id}/mark_paid", 200, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/invoices/{id}/mark_unpaid", 200, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["GET", "/v1/receivables", 200, "application/json", { "object": "list", "data": [{ "id": "ICV060329BY0:MXN", "object": "receivable", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA" }, "currency": "MXN", "amount_due": 34800, "open_invoices": 2, "oldest_invoice_date": "2026-09-01" }], "has_more": false, "url": "/v1/receivables" }], ["POST", "/v1/bank_transactions", 201, "application/json", null], ["GET", "/v1/bank_transactions", 200, "application/json", { "object": "list", "data": [{ "id": "btx_OufpKqnrvx9p9Rt4sLm2XyT5uBcW8sKdLx", "object": "bank_transaction", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "date": "2026-10-24", "amount": 5800, "description": "SPEI RECIBIDO INMOBILIARIA CVA · ICV060329BY0", "reference": "F-1024", "account": "4821", "payer_tax_id": "ICV060329BY0", "status": "open", "classification": null, "note": null, "invoices": [], "payment": null, "suggested_match": { "invoices": ["inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN"], "amounts": { "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN": 5800 }, "method": "PUE", "confidence": "high", "reasons": ["Mismo monto", "RFC del cliente en el concepto"] }, "created_at": "2026-10-25T09:00:00-06:00" }], "has_more": false, "url": "/v1/bank_transactions" }], ["GET", "/v1/bank_transactions/{id}", 200, "application/json", { "id": "btx_OufpKqnrvx9p9Rt4sLm2XyT5uBcW8sKdLx", "object": "bank_transaction", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "date": "2026-10-24", "amount": 5800, "description": "SPEI RECIBIDO INMOBILIARIA CVA · ICV060329BY0", "reference": "F-1024", "account": "4821", "payer_tax_id": "ICV060329BY0", "status": "open", "classification": null, "note": null, "invoices": [], "payment": null, "suggested_match": { "invoices": ["inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN"], "amounts": { "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN": 5800 }, "method": "PUE", "confidence": "high", "reasons": ["Mismo monto", "RFC del cliente en el concepto"] }, "created_at": "2026-10-25T09:00:00-06:00" }], ["POST", "/v1/bank_transactions/{id}/match", 200, "application/json", { "id": "btx_OufpKqnrvx9p9Rt4sLm2XyT5uBcW8sKdLx", "object": "bank_transaction", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "date": "2026-10-24", "amount": 5800, "description": "SPEI RECIBIDO INMOBILIARIA CVA · ICV060329BY0", "reference": "F-1024", "account": "4821", "payer_tax_id": "ICV060329BY0", "status": "open", "classification": null, "note": null, "invoices": [], "payment": null, "suggested_match": { "invoices": ["inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN"], "amounts": { "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN": 5800 }, "method": "PUE", "confidence": "high", "reasons": ["Mismo monto", "RFC del cliente en el concepto"] }, "created_at": "2026-10-25T09:00:00-06:00" }], ["POST", "/v1/bank_transactions/{id}/classify", 200, "application/json", { "id": "btx_OufpKqnrvx9p9Rt4sLm2XyT5uBcW8sKdLx", "object": "bank_transaction", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "date": "2026-10-24", "amount": 5800, "description": "SPEI RECIBIDO INMOBILIARIA CVA · ICV060329BY0", "reference": "F-1024", "account": "4821", "payer_tax_id": "ICV060329BY0", "status": "open", "classification": null, "note": null, "invoices": [], "payment": null, "suggested_match": { "invoices": ["inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN"], "amounts": { "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN": 5800 }, "method": "PUE", "confidence": "high", "reasons": ["Mismo monto", "RFC del cliente en el concepto"] }, "created_at": "2026-10-25T09:00:00-06:00" }], ["POST", "/v1/bank_transactions/{id}/reopen", 200, "application/json", { "id": "btx_OufpKqnrvx9p9Rt4sLm2XyT5uBcW8sKdLx", "object": "bank_transaction", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "date": "2026-10-24", "amount": 5800, "description": "SPEI RECIBIDO INMOBILIARIA CVA · ICV060329BY0", "reference": "F-1024", "account": "4821", "payer_tax_id": "ICV060329BY0", "status": "open", "classification": null, "note": null, "invoices": [], "payment": null, "suggested_match": { "invoices": ["inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN"], "amounts": { "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN": 5800 }, "method": "PUE", "confidence": "high", "reasons": ["Mismo monto", "RFC del cliente en el concepto"] }, "created_at": "2026-10-25T09:00:00-06:00" }], ["POST", "/v1/payments", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/credit_notes", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/advances", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["GET", "/v1/advances", 200, "application/json", { "object": "list", "data": [{ "object": "advance", "uuid": "D7BDBADC-7E6E-41E0-8D94-7E5FC4BB796E", "date": "2026-10-24", "series": null, "folio": "1", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA" }, "amount": 1000, "total": 1160, "iva": "0.16", "currency": "MXN" }], "has_more": false, "url": "/v1/advances" }], ["POST", "/v1/advances/{id}/apply", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/retentions", 201, "application/json", { "id": "ret_OufpKqnrvx9p5tENFcmUXpXJ58XxnF67kv", "object": "retention", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "status": "valid", "uuid": "9A6F6BF3-6786-4747-800A-C9964E6509AE", "folio": 1, "internal_folio": "RET1", "date": "2026-10-24T10:15:42", "code": "01", "description": null, "recipient": { "foreign": false, "tax_id": "PEPJ800101AB1", "legal_name": "JUAN PEREZ PEREZ", "zip": "33826", "curp": null }, "period": { "year": 2026, "from_month": 9, "to_month": 9 }, "totals": { "operation": 10000, "taxed": 10000, "exempt": 0, "withheld": 2066.67 }, "taxes": [{ "tax": "isr", "base": 10000, "amount": 1000, "payment_type": "04" }, { "tax": "iva", "base": 10000, "amount": 1066.67, "payment_type": "01" }], "cancellation": null, "email": null, "error": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": { "proveedor": "42" } }], ["GET", "/v1/retentions", 200, "application/json", { "object": "list", "data": [{ "id": "ret_OufpKqnrvx9p5tENFcmUXpXJ58XxnF67kv", "object": "retention", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "status": "valid", "uuid": "9A6F6BF3-6786-4747-800A-C9964E6509AE", "folio": 1, "internal_folio": "RET1", "date": "2026-10-24T10:15:42", "code": "01", "description": null, "recipient": { "foreign": false, "tax_id": "PEPJ800101AB1", "legal_name": "JUAN PEREZ PEREZ", "zip": "33826", "curp": null }, "period": { "year": 2026, "from_month": 9, "to_month": 9 }, "totals": { "operation": 10000, "taxed": 10000, "exempt": 0, "withheld": 2066.67 }, "taxes": [{ "tax": "isr", "base": 10000, "amount": 1000, "payment_type": "04" }, { "tax": "iva", "base": 10000, "amount": 1066.67, "payment_type": "01" }], "cancellation": null, "email": null, "error": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": { "proveedor": "42" } }], "has_more": false, "url": "/v1/retentions" }], ["GET", "/v1/retentions/{id}", 200, "application/json", { "id": "ret_OufpKqnrvx9p5tENFcmUXpXJ58XxnF67kv", "object": "retention", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "status": "valid", "uuid": "9A6F6BF3-6786-4747-800A-C9964E6509AE", "folio": 1, "internal_folio": "RET1", "date": "2026-10-24T10:15:42", "code": "01", "description": null, "recipient": { "foreign": false, "tax_id": "PEPJ800101AB1", "legal_name": "JUAN PEREZ PEREZ", "zip": "33826", "curp": null }, "period": { "year": 2026, "from_month": 9, "to_month": 9 }, "totals": { "operation": 10000, "taxed": 10000, "exempt": 0, "withheld": 2066.67 }, "taxes": [{ "tax": "isr", "base": 10000, "amount": 1000, "payment_type": "04" }, { "tax": "iva", "base": 10000, "amount": 1066.67, "payment_type": "01" }], "cancellation": null, "email": null, "error": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": { "proveedor": "42" } }], ["GET", "/v1/retentions/{id}/pdf", 200, "application/pdf", null], ["GET", "/v1/retentions/{id}/xml", 200, "application/xml", null], ["POST", "/v1/retentions/{id}/send", 200, "application/json", { "id": "ret_OufpKqnrvx9p5tENFcmUXpXJ58XxnF67kv", "object": "retention", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "status": "valid", "uuid": "9A6F6BF3-6786-4747-800A-C9964E6509AE", "folio": 1, "internal_folio": "RET1", "date": "2026-10-24T10:15:42", "code": "01", "description": null, "recipient": { "foreign": false, "tax_id": "PEPJ800101AB1", "legal_name": "JUAN PEREZ PEREZ", "zip": "33826", "curp": null }, "period": { "year": 2026, "from_month": 9, "to_month": 9 }, "totals": { "operation": 10000, "taxed": 10000, "exempt": 0, "withheld": 2066.67 }, "taxes": [{ "tax": "isr", "base": 10000, "amount": 1000, "payment_type": "04" }, { "tax": "iva", "base": 10000, "amount": 1066.67, "payment_type": "01" }], "cancellation": null, "email": null, "error": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": { "proveedor": "42" } }], ["POST", "/v1/retentions/{id}/cancel", 200, "application/json", { "id": "ret_OufpKqnrvx9p5tENFcmUXpXJ58XxnF67kv", "object": "retention", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "status": "valid", "uuid": "9A6F6BF3-6786-4747-800A-C9964E6509AE", "folio": 1, "internal_folio": "RET1", "date": "2026-10-24T10:15:42", "code": "01", "description": null, "recipient": { "foreign": false, "tax_id": "PEPJ800101AB1", "legal_name": "JUAN PEREZ PEREZ", "zip": "33826", "curp": null }, "period": { "year": 2026, "from_month": 9, "to_month": 9 }, "totals": { "operation": 10000, "taxed": 10000, "exempt": 0, "withheld": 2066.67 }, "taxes": [{ "tax": "isr", "base": 10000, "amount": 1000, "payment_type": "04" }, { "tax": "iva", "base": 10000, "amount": 1066.67, "payment_type": "01" }], "cancellation": null, "email": null, "error": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": { "proveedor": "42" } }], ["POST", "/v1/employees", 201, "application/json", { "id": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV", "object": "employee", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "9", "name": "ANA GÓMEZ RUIZ", "tax_id": "GORA800101JK2", "curp": "GORA800101MDFMZN09", "social_security_number": "12345678903", "zip": "06000", "email": null, "start_date": "2024-03-04", "end_date": null, "daily_salary": 320, "integrated_daily_salary": 334.66, "contract_type": "01", "workday_type": "01", "regime_type": "02", "periodicity": "02", "risk_class": "1", "state": "CMX", "border_zone": false, "unionized": false, "department": null, "position": null, "warnings": [], "created_at": "2026-10-20T09:02:11-06:00" }], ["GET", "/v1/employees", 200, "application/json", { "object": "list", "data": [{ "id": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV", "object": "employee", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "9", "name": "ANA GÓMEZ RUIZ", "tax_id": "GORA800101JK2", "curp": "GORA800101MDFMZN09", "social_security_number": "12345678903", "zip": "06000", "email": null, "start_date": "2024-03-04", "end_date": null, "daily_salary": 320, "integrated_daily_salary": 334.66, "contract_type": "01", "workday_type": "01", "regime_type": "02", "periodicity": "02", "risk_class": "1", "state": "CMX", "border_zone": false, "unionized": false, "department": null, "position": null, "warnings": [], "created_at": "2026-10-20T09:02:11-06:00" }], "has_more": false, "url": "/v1/employees" }], ["GET", "/v1/employees/{id}", 200, "application/json", { "id": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV", "object": "employee", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "9", "name": "ANA GÓMEZ RUIZ", "tax_id": "GORA800101JK2", "curp": "GORA800101MDFMZN09", "social_security_number": "12345678903", "zip": "06000", "email": null, "start_date": "2024-03-04", "end_date": null, "daily_salary": 320, "integrated_daily_salary": 334.66, "contract_type": "01", "workday_type": "01", "regime_type": "02", "periodicity": "02", "risk_class": "1", "state": "CMX", "border_zone": false, "unionized": false, "department": null, "position": null, "warnings": [], "created_at": "2026-10-20T09:02:11-06:00" }], ["POST", "/v1/employees/{id}", 200, "application/json", { "id": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV", "object": "employee", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "9", "name": "ANA GÓMEZ RUIZ", "tax_id": "GORA800101JK2", "curp": "GORA800101MDFMZN09", "social_security_number": "12345678903", "zip": "06000", "email": null, "start_date": "2024-03-04", "end_date": null, "daily_salary": 320, "integrated_daily_salary": 334.66, "contract_type": "01", "workday_type": "01", "regime_type": "02", "periodicity": "02", "risk_class": "1", "state": "CMX", "border_zone": false, "unionized": false, "department": null, "position": null, "warnings": [], "created_at": "2026-10-20T09:02:11-06:00" }], ["DELETE", "/v1/employees/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "deleted": true }], ["POST", "/v1/payroll_receipts", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/payroll_receipts/preview", 200, "application/json", { "object": "payroll_receipt_preview", "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV", "periodicity": "02", "period": { "start": "2026-10-10", "end": "2026-10-16", "payment_date": "2026-10-16" }, "days": 7, "contribution_base_salary": 334.66, "perceptions": [{ "type": "001", "key": "001", "concept": "Sueldo", "taxed": 2240, "exempt": 0 }], "deductions": [{ "type": "001", "key": "001", "concept": "Cuotas IMSS", "amount": 55.63 }, { "type": "002", "key": "002", "concept": "ISR", "amount": 37.73 }], "other_payments": [{ "type": "002", "key": "002", "concept": "Subsidio para el empleo del Decreto que otorga el subsidio para el empleo (DOF 1 de mayo de 2024)", "amount": 0, "subsidy_caused": 123.34, "subsidy_applied": 123.34 }], "isr": { "tariff": 161.07, "subsidy": 123.34, "withheld": 37.73, "exempt_minimum": false }, "totals": { "salaries": 2240, "taxed": 2240, "exempt": 0, "perceptions": 2240, "other_deductions": 55.63, "taxes_withheld": 37.73, "deductions": 93.36, "other_payments": 0, "subtotal": 2240, "net": 2146.64 } }], ["POST", "/v1/invoice_batches", 202, "application/json", { "id": "bat_OufpKqnrvx9p4hMdcoapAo5aaGJEme7mXj", "object": "invoice_batch", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": "Cuotas de octubre", "status": "completed", "total": 2, "stamped": 1, "failed": 1, "created_at": "2026-10-24T10:15:42-06:00", "completed_at": "2026-10-24T10:15:42-06:00", "processing": 0, "invoices": [{ "index": 0, "reference": "depto-101", "status": "valid", "invoice": "inv_OufpKqnrvx9p0mn7VjQ6JlfipKAkHWstOK", "uuid": "DB494B07-D6DE-4F70-8ED0-C8B864FF8717", "total": 1740, "error": null }, { "index": 1, "reference": "depto-102", "status": "failed", "invoice": null, "uuid": null, "total": 1740, "error": "El SAT no reconoce el nombre del cliente. Escríbalo exactamente como en su constancia de situación fiscal, en mayúsculas y sin «S.A. de C.V.» ni otro régimen de capital." }] }], ["GET", "/v1/invoice_batches", 200, "application/json", { "object": "list", "data": [{ "id": "bat_OufpKqnrvx9p4hMdcoapAo5aaGJEme7mXj", "object": "invoice_batch", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": "Cuotas de octubre", "status": "completed", "total": 2, "stamped": 1, "failed": 1, "created_at": "2026-10-24T10:15:42-06:00", "completed_at": "2026-10-24T10:15:42-06:00", "processing": 0, "invoices": [{ "index": 0, "reference": "depto-101", "status": "valid", "invoice": "inv_OufpKqnrvx9p0mn7VjQ6JlfipKAkHWstOK", "uuid": "DB494B07-D6DE-4F70-8ED0-C8B864FF8717", "total": 1740, "error": null }, { "index": 1, "reference": "depto-102", "status": "failed", "invoice": null, "uuid": null, "total": 1740, "error": "El SAT no reconoce el nombre del cliente. Escríbalo exactamente como en su constancia de situación fiscal, en mayúsculas y sin «S.A. de C.V.» ni otro régimen de capital." }] }], "has_more": false, "url": "/v1/invoice_batches" }], ["GET", "/v1/invoice_batches/{id}", 200, "application/json", { "id": "bat_OufpKqnrvx9p4hMdcoapAo5aaGJEme7mXj", "object": "invoice_batch", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": "Cuotas de octubre", "status": "completed", "total": 2, "stamped": 1, "failed": 1, "created_at": "2026-10-24T10:15:42-06:00", "completed_at": "2026-10-24T10:15:42-06:00", "processing": 0, "invoices": [{ "index": 0, "reference": "depto-101", "status": "valid", "invoice": "inv_OufpKqnrvx9p0mn7VjQ6JlfipKAkHWstOK", "uuid": "DB494B07-D6DE-4F70-8ED0-C8B864FF8717", "total": 1740, "error": null }, { "index": 1, "reference": "depto-102", "status": "failed", "invoice": null, "uuid": null, "total": 1740, "error": "El SAT no reconoce el nombre del cliente. Escríbalo exactamente como en su constancia de situación fiscal, en mayúsculas y sin «S.A. de C.V.» ni otro régimen de capital." }] }], ["POST", "/v1/tax_ids/validate", 200, "application/json", { "object": "tax_id_validation", "tax_id": "ICV060329BY0", "kind": "company", "valid": false, "checked_with_sat": true, "errors": [{ "param": "legal_name", "code": "legal_name_capital_regime", "message": "Sin «S.A. de C.V.»: en CFDI 4.0 el nombre va sin régimen de capital, como en la constancia.", "suggestion": "INMOBILIARIA CVA" }, { "param": "zip", "code": "zip_mismatch", "message": "El código postal no es el del domicilio fiscal que tiene el SAT.", "suggestion": "33826" }], "warnings": [], "sat_record": { "legal_name": "INMOBILIARIA CVA", "zip": "33826", "tax_systems": ["601"] }, "sat_error": null, "sat_lists": { "object": "sat_list_check", "tax_id": "ICV060329BY0", "name": null, "listed": false, "risk": "none", "lists": [], "lists_updated_at": "2026-10-24T00:12:40-06:00" } }], ["POST", "/v1/customers", 201, "application/json", { "id": "cus_OufpKqnrvx9p1", "object": "customer", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "email": "pagos@cva.example", "use": "G03", "foreign": null, "ieps_taxpayer": false, "created_at": "2026-10-20T09:02:11-06:00", "updated_at": "2026-10-24T10:15:42-06:00" }], ["GET", "/v1/customers", 200, "application/json", { "object": "list", "data": [{ "id": "cus_OufpKqnrvx9p1", "object": "customer", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "email": "pagos@cva.example", "use": "G03", "foreign": null, "ieps_taxpayer": false, "created_at": "2026-10-20T09:02:11-06:00", "updated_at": "2026-10-24T10:15:42-06:00" }], "has_more": false, "url": "/v1/customers" }], ["GET", "/v1/customers/{id}", 200, "application/json", { "id": "cus_OufpKqnrvx9p1", "object": "customer", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "email": "pagos@cva.example", "use": "G03", "foreign": null, "ieps_taxpayer": false, "created_at": "2026-10-20T09:02:11-06:00", "updated_at": "2026-10-24T10:15:42-06:00" }], ["POST", "/v1/customers/{id}", 200, "application/json", { "id": "cus_OufpKqnrvx9p1", "object": "customer", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "email": "pagos@cva.example", "use": "G03", "foreign": null, "ieps_taxpayer": false, "created_at": "2026-10-20T09:02:11-06:00", "updated_at": "2026-10-24T10:15:42-06:00" }], ["DELETE", "/v1/customers/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "deleted": true }], ["POST", "/v1/customer_data_requests", 201, "application/json", { "id": "cdr_0q1Vmmw52sbD4cHPqLfBvX0AkFg3hX2Ys", "object": "customer_data_request", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "status": "completed", "url": null, "reference": "cliente-8812", "description": "Para facturar su suscripción de octubre.", "expires_at": "2026-12-23T10:15:00-06:00", "created_at": "2026-10-24T10:15:00-06:00", "submission": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "use": "G03", "email": "facturas@inmobiliariacva.mx", "source": "constancia", "customer": "cus_0q1Vmmw52sbD1", "applied": true, "submitted_at": "2026-10-24T11:02:41-06:00" } }], ["GET", "/v1/customer_data_requests", 200, "application/json", { "object": "list", "data": [{ "id": "cdr_0q1Vmmw52sbD4cHPqLfBvX0AkFg3hX2Ys", "object": "customer_data_request", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "status": "completed", "url": null, "reference": "cliente-8812", "description": "Para facturar su suscripción de octubre.", "expires_at": "2026-12-23T10:15:00-06:00", "created_at": "2026-10-24T10:15:00-06:00", "submission": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "use": "G03", "email": "facturas@inmobiliariacva.mx", "source": "constancia", "customer": "cus_0q1Vmmw52sbD1", "applied": true, "submitted_at": "2026-10-24T11:02:41-06:00" } }], "has_more": false, "url": "/v1/customer_data_requests" }], ["GET", "/v1/customer_data_requests/{id}", 200, "application/json", { "id": "cdr_0q1Vmmw52sbD4cHPqLfBvX0AkFg3hX2Ys", "object": "customer_data_request", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "status": "completed", "url": null, "reference": "cliente-8812", "description": "Para facturar su suscripción de octubre.", "expires_at": "2026-12-23T10:15:00-06:00", "created_at": "2026-10-24T10:15:00-06:00", "submission": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "use": "G03", "email": "facturas@inmobiliariacva.mx", "source": "constancia", "customer": "cus_0q1Vmmw52sbD1", "applied": true, "submitted_at": "2026-10-24T11:02:41-06:00" } }], ["DELETE", "/v1/customer_data_requests/{id}", 200, "application/json", { "id": "cdr_0q1Vmmw52sbD4cHPqLfBvX0AkFg3hX2Ys", "object": "customer_data_request", "livemode": false, "issuer": "iss_0q1Vmmw52sbD", "status": "completed", "url": null, "reference": "cliente-8812", "description": "Para facturar su suscripción de octubre.", "expires_at": "2026-12-23T10:15:00-06:00", "created_at": "2026-10-24T10:15:00-06:00", "submission": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "use": "G03", "email": "facturas@inmobiliariacva.mx", "source": "constancia", "customer": "cus_0q1Vmmw52sbD1", "applied": true, "submitted_at": "2026-10-24T11:02:41-06:00" } }], ["POST", "/v1/products", 201, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": null, "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "unit_price": 2500, "open_price": false, "taxability": "02", "iva": "0.16", "ieps": null, "ieps_factor": null, "iva_retention": 0, "isr_retention": 0, "local_taxes": [], "created_at": "2026-10-20T09:02:11-06:00", "updated_at": "2026-10-24T10:15:42-06:00" }], ["GET", "/v1/products", 200, "application/json", { "object": "list", "data": [{ "id": "prd_OufpKqnrvx9p1", "object": "product", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": null, "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "unit_price": 2500, "open_price": false, "taxability": "02", "iva": "0.16", "ieps": null, "ieps_factor": null, "iva_retention": 0, "isr_retention": 0, "local_taxes": [], "created_at": "2026-10-20T09:02:11-06:00", "updated_at": "2026-10-24T10:15:42-06:00" }], "has_more": false, "url": "/v1/products" }], ["GET", "/v1/products/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": null, "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "unit_price": 2500, "open_price": false, "taxability": "02", "iva": "0.16", "ieps": null, "ieps_factor": null, "iva_retention": 0, "isr_retention": 0, "local_taxes": [], "created_at": "2026-10-20T09:02:11-06:00", "updated_at": "2026-10-24T10:15:42-06:00" }], ["POST", "/v1/products/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": null, "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "unit_price": 2500, "open_price": false, "taxability": "02", "iva": "0.16", "ieps": null, "ieps_factor": null, "iva_retention": 0, "isr_retention": 0, "local_taxes": [], "created_at": "2026-10-20T09:02:11-06:00", "updated_at": "2026-10-24T10:15:42-06:00" }], ["DELETE", "/v1/products/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "deleted": true }], ["GET", "/v1/sat_catalogs/{name}", 200, "application/json", { "object": "list", "data": [{ "code": "80131500", "description": "Alquiler de propiedades", "similar_words": "renta" }], "has_more": false, "url": "/v1/sat_catalogs/{name}" }], ["GET", "/v1/sat_lists/{tax_id}", 200, "application/json", { "object": "sat_list_check", "tax_id": "AAA080808HL8", "name": "EMPRESA SIMULADORA SA DE CV", "listed": true, "risk": "high", "lists": [{ "list": "69b", "source": "69b", "source_name": "69-B (operaciones simuladas)", "situation": "Definitivo", "published_on": null, "details": { "Publicación página SAT definitivos": "15/03/2024", "Número y fecha de oficio global de definitivos": "500-05-2024-1234 de fecha 01/03/2024" } }], "lists_updated_at": "2026-10-24T00:12:40-06:00" }], ["POST", "/v1/sat_lists/check", 200, "application/json", { "object": "list", "data": [{ "object": "sat_list_check", "tax_id": "AAA080808HL8", "name": "EMPRESA SIMULADORA SA DE CV", "listed": true, "risk": "high", "lists": [{ "list": "69b", "source": "69b", "source_name": "69-B (operaciones simuladas)", "situation": "Definitivo", "published_on": null, "details": { "Publicación página SAT definitivos": "15/03/2024", "Número y fecha de oficio global de definitivos": "500-05-2024-1234 de fecha 01/03/2024" } }], "lists_updated_at": "2026-10-24T00:12:40-06:00" }], "has_more": false, "url": "/v1/sat_lists/check" }], ["POST", "/v1/sat_downloads", 202, "application/json", { "id": "sdl_OufpKqnrvx9p3n8vQd2LkW7mZr1XyT5uBc", "object": "sat_download", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "direction": "received", "from": "2026-09-01", "to": "2026-09-30", "type": null, "counterparty_tax_id": null, "uuid": null, "status": "completed", "new_invoices": 8, "error": null, "created_at": "2026-10-24T10:20:00-06:00", "completed_at": "2026-10-24T10:27:41-06:00" }], ["GET", "/v1/sat_downloads", 200, "application/json", { "object": "list", "data": [{ "id": "sdl_OufpKqnrvx9p3n8vQd2LkW7mZr1XyT5uBc", "object": "sat_download", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "direction": "received", "from": "2026-09-01", "to": "2026-09-30", "type": null, "counterparty_tax_id": null, "uuid": null, "status": "completed", "new_invoices": 8, "error": null, "created_at": "2026-10-24T10:20:00-06:00", "completed_at": "2026-10-24T10:27:41-06:00" }], "has_more": false, "url": "/v1/sat_downloads" }], ["GET", "/v1/sat_downloads/{id}", 200, "application/json", { "id": "sdl_OufpKqnrvx9p3n8vQd2LkW7mZr1XyT5uBc", "object": "sat_download", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "direction": "received", "from": "2026-09-01", "to": "2026-09-30", "type": null, "counterparty_tax_id": null, "uuid": null, "status": "completed", "new_invoices": 8, "error": null, "created_at": "2026-10-24T10:20:00-06:00", "completed_at": "2026-10-24T10:27:41-06:00" }], ["GET", "/v1/sat_invoices", 200, "application/json", { "object": "list", "data": [{ "id": "sat_OufpKqnrvx9p1F", "object": "sat_invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "uuid": "9B2D4E61-7C3A-4F18-8E5D-0A6B9C1D2E3F", "direction": "received", "type": "I", "date": "2026-09-12T11:04:00", "series": "A", "folio": "4821", "issued_by": { "tax_id": "XIA190128J61", "legal_name": "XENON INDUSTRIAL ARTICLES" }, "issued_to": { "tax_id": "TOL190312KT4", "legal_name": "TOLPI" }, "currency": "MXN", "exchange_rate": null, "payment_method": "PUE", "payment_form": "03", "use": "G03", "subtotal": 18400, "total": 21344, "taxes": { "iva": 2944, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "ieps_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "sat_status": "active", "sat_download": "sdl_OufpKqnrvx9p3n8vQd2LkW7mZr1XyT5uBc", "downloaded_at": "2026-10-24T10:27:40-06:00" }], "has_more": false, "url": "/v1/sat_invoices" }], ["GET", "/v1/sat_invoices/{id}", 200, "application/json", { "id": "sat_OufpKqnrvx9p1F", "object": "sat_invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "uuid": "9B2D4E61-7C3A-4F18-8E5D-0A6B9C1D2E3F", "direction": "received", "type": "I", "date": "2026-09-12T11:04:00", "series": "A", "folio": "4821", "issued_by": { "tax_id": "XIA190128J61", "legal_name": "XENON INDUSTRIAL ARTICLES" }, "issued_to": { "tax_id": "TOL190312KT4", "legal_name": "TOLPI" }, "currency": "MXN", "exchange_rate": null, "payment_method": "PUE", "payment_form": "03", "use": "G03", "subtotal": 18400, "total": 21344, "taxes": { "iva": 2944, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "ieps_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "sat_status": "active", "sat_download": "sdl_OufpKqnrvx9p3n8vQd2LkW7mZr1XyT5uBc", "downloaded_at": "2026-10-24T10:27:40-06:00" }], ["GET", "/v1/sat_invoices/{id}/xml", 200, "application/xml", null], ["POST", "/v1/sat_declarations/refresh", 200, "application/json", { "object": "sat_declarations_refresh", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "status": "completed", "found": 10, "downloaded": 10, "pending": 0, "warning": null, "refreshed_at": "2026-10-26T09:12:00-06:00", "next_refresh_at": "2026-10-26T09:22:00-06:00" }], ["GET", "/v1/sat_declarations", 200, "application/json", { "object": "list", "data": [{ "id": "dcl_OufpKqnrvx9p1F", "object": "sat_declaration", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "source": "monthly", "year": 2026, "month": 9, "period": "Septiembre", "type": "normal", "complementary_type": null, "operation_number": "92026090000001", "payment_line": "0426TEST2026090001", "filed_on": "2026-10-15", "profit_coefficient": 0.0219, "isr_due": 7718.53, "vat_due": 16520, "total_due": 24238.53, "sections": [{ "tax": "ISR personas morales", "fields": [{ "label": "INGRESOS NOMINALES DEL PERIODO", "value": 292500 }, { "label": "COEFICIENTE DE UTILIDAD", "value": 0.0219 }, { "label": "IMPUESTO A CARGO", "value": 7718.53 }] }], "receipt": { "concepts": [{ "concept": "ISR personas morales", "due": 7718.53, "amount_due": 7718.53, "amount_to_pay": 7718.53 }, { "concept": "IVA personas morales", "due": 16520, "amount_due": 16520, "amount_to_pay": 16520 }], "total": 24238.53, "payment_line": "0426TEST2026090001", "valid_until": null }, "files": { "pdf": true, "receipt": true, "financial_statements": false }, "files_error": null, "created_at": "2026-10-26T09:12:00-06:00", "updated_at": "2026-10-26T09:12:04-06:00" }], "has_more": false, "url": "/v1/sat_declarations" }], ["GET", "/v1/sat_declarations/{id}", 200, "application/json", { "id": "dcl_OufpKqnrvx9p1F", "object": "sat_declaration", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "source": "monthly", "year": 2026, "month": 9, "period": "Septiembre", "type": "normal", "complementary_type": null, "operation_number": "92026090000001", "payment_line": "0426TEST2026090001", "filed_on": "2026-10-15", "profit_coefficient": 0.0219, "isr_due": 7718.53, "vat_due": 16520, "total_due": 24238.53, "sections": [{ "tax": "ISR personas morales", "fields": [{ "label": "INGRESOS NOMINALES DEL PERIODO", "value": 292500 }, { "label": "COEFICIENTE DE UTILIDAD", "value": 0.0219 }, { "label": "IMPUESTO A CARGO", "value": 7718.53 }] }], "receipt": { "concepts": [{ "concept": "ISR personas morales", "due": 7718.53, "amount_due": 7718.53, "amount_to_pay": 7718.53 }, { "concept": "IVA personas morales", "due": 16520, "amount_due": 16520, "amount_to_pay": 16520 }], "total": 24238.53, "payment_line": "0426TEST2026090001", "valid_until": null }, "files": { "pdf": true, "receipt": true, "financial_statements": false }, "files_error": null, "created_at": "2026-10-26T09:12:00-06:00", "updated_at": "2026-10-26T09:12:04-06:00" }], ["GET", "/v1/sat_declarations/{id}/pdf", 200, "application/pdf", null], ["GET", "/v1/sat_declarations/{id}/receipt", 200, "application/pdf", null], ["GET", "/v1/sat_declarations/{id}/financial_statements", 200, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", null], ["POST", "/v1/tickets", 201, "application/json", { "id": "tkt_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "object": "ticket", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "folio": "A1042", "code": "A1042-K7QX", "status": "pending", "url": "https://fiscalisto.com/autofactura/Tx8mQ2vLp9WnR4c?c=A1042-K7QX", "total": 580, "tip": 0, "payment_form": "04", "description": "Consumo de alimentos", "product_key": "90101501", "sold_at": "2026-10-24T14:32:00-06:00", "invoiceable_until": "2026-10-31", "invoice": null, "global_invoice": null, "customer": null, "created_at": "2026-10-24T14:32:05-06:00" }], ["GET", "/v1/tickets", 200, "application/json", { "object": "list", "data": [{ "id": "tkt_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "object": "ticket", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "folio": "A1042", "code": "A1042-K7QX", "status": "pending", "url": "https://fiscalisto.com/autofactura/Tx8mQ2vLp9WnR4c?c=A1042-K7QX", "total": 580, "tip": 0, "payment_form": "04", "description": "Consumo de alimentos", "product_key": "90101501", "sold_at": "2026-10-24T14:32:00-06:00", "invoiceable_until": "2026-10-31", "invoice": null, "global_invoice": null, "customer": null, "created_at": "2026-10-24T14:32:05-06:00" }], "has_more": false, "url": "/v1/tickets" }], ["GET", "/v1/tickets/{id}", 200, "application/json", { "id": "tkt_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "object": "ticket", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "folio": "A1042", "code": "A1042-K7QX", "status": "pending", "url": "https://fiscalisto.com/autofactura/Tx8mQ2vLp9WnR4c?c=A1042-K7QX", "total": 580, "tip": 0, "payment_form": "04", "description": "Consumo de alimentos", "product_key": "90101501", "sold_at": "2026-10-24T14:32:00-06:00", "invoiceable_until": "2026-10-31", "invoice": null, "global_invoice": null, "customer": null, "created_at": "2026-10-24T14:32:05-06:00" }], ["DELETE", "/v1/tickets/{id}", 200, "application/json", { "id": "tkt_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "object": "ticket", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "folio": "A1042", "code": "A1042-K7QX", "status": "pending", "url": "https://fiscalisto.com/autofactura/Tx8mQ2vLp9WnR4c?c=A1042-K7QX", "total": 580, "tip": 0, "payment_form": "04", "description": "Consumo de alimentos", "product_key": "90101501", "sold_at": "2026-10-24T14:32:00-06:00", "invoiceable_until": "2026-10-31", "invoice": null, "global_invoice": null, "customer": null, "created_at": "2026-10-24T14:32:05-06:00" }], ["GET", "/v1/issuers/{id}/self_invoicing", 200, "application/json", { "object": "self_invoicing", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "portal_url": "https://fiscalisto.com/autofactura/Tx8mQ2vLp9WnR4c", "window": "month", "window_days": 7, "global_periodicity": "04" }], ["POST", "/v1/issuers/{id}/self_invoicing", 200, "application/json", { "object": "self_invoicing", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "portal_url": "https://fiscalisto.com/autofactura/Tx8mQ2vLp9WnR4c", "window": "month", "window_days": 7, "global_periodicity": "04" }], ["GET", "/v1/accounting/journal_entries", 200, "application/json", { "object": "list", "data": [{ "id": "D-202610-00001", "object": "journal_entry", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "invoice", "date": "2026-10-02", "description": "Factura A1042 INMOBILIARIA CVA", "invoice": "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "uuid": "5F3C1B2A-9D8E-4F7A-B6C5-1D2E3F4A5B6C", "tax_id": "ICV060329BY0", "total": 5800, "currency": "MXN", "exchange_rate": null, "lines": [{ "account": "105-01", "account_name": "Clientes nacionales", "grouping_code": "105.01", "debit": 5800, "credit": 0 }, { "account": "401-01", "account_name": "Ventas y/o servicios gravados a la tasa general", "grouping_code": "401.01", "debit": 0, "credit": 5000 }, { "account": "208-01", "account_name": "IVA trasladado cobrado", "grouping_code": "208.01", "debit": 0, "credit": 800 }] }], "has_more": false, "url": "/v1/accounting/journal_entries" }], ["GET", "/v1/accounting/trial_balance", 200, "application/json", { "object": "trial_balance", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "month": "2026-10", "journal_entries": 1, "accounts": [{ "object": "ledger_account", "number": "105-01", "name": "Clientes nacionales", "grouping_code": "105.01", "nature": "debit", "opening_balance": 0, "debit": 5800, "credit": 0, "closing_balance": 5800 }, { "object": "ledger_account", "number": "208-01", "name": "IVA trasladado cobrado", "grouping_code": "208.01", "nature": "credit", "opening_balance": 0, "debit": 0, "credit": 800, "closing_balance": 800 }, { "object": "ledger_account", "number": "401-01", "name": "Ventas y/o servicios gravados a la tasa general", "grouping_code": "401.01", "nature": "credit", "opening_balance": 0, "debit": 0, "credit": 5000, "closing_balance": 5000 }], "totals": { "debit": 5800, "credit": 5800 } }], ["GET", "/v1/accounting/financial_statements", 200, "application/json", { "object": "financial_statements", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "month": "2026-10", "income_statement": { "month": { "sections": [{ "key": "ingresos", "name": "Ingresos", "total": 5000, "groups": [{ "grouping_code": "401", "name": "Ingresos", "amount": 5000, "accounts": [{ "number": "401-01", "name": "Ventas y/o servicios gravados a la tasa general", "amount": 5000 }] }] }, { "key": "costos", "name": "Costo de ventas", "total": 0, "groups": [] }, { "key": "gastos", "name": "Gastos de operación", "total": 0, "groups": [] }, { "key": "financiamiento", "name": "Resultado integral de financiamiento", "total": 0, "groups": [] }, { "key": "otros", "name": "Otros ingresos y gastos", "total": 0, "groups": [] }], "net_income": 5000 }, "year_to_date": { "sections": [{ "key": "ingresos", "name": "Ingresos", "total": 5000, "groups": [{ "grouping_code": "401", "name": "Ingresos", "amount": 5000, "accounts": [{ "number": "401-01", "name": "Ventas y/o servicios gravados a la tasa general", "amount": 5000 }] }] }, { "key": "costos", "name": "Costo de ventas", "total": 0, "groups": [] }, { "key": "gastos", "name": "Gastos de operación", "total": 0, "groups": [] }, { "key": "financiamiento", "name": "Resultado integral de financiamiento", "total": 0, "groups": [] }, { "key": "otros", "name": "Otros ingresos y gastos", "total": 0, "groups": [] }], "net_income": 5000 } }, "balance_sheet": { "assets": { "total": 5800, "groups": [{ "grouping_code": "105", "name": "Clientes", "amount": 5800, "accounts": [{ "number": "105-01", "name": "Clientes nacionales", "amount": 5800 }] }] }, "liabilities": { "total": 800, "groups": [{ "grouping_code": "208", "name": "IVA trasladado cobrado", "amount": 800, "accounts": [{ "number": "208-01", "name": "IVA trasladado cobrado", "amount": 800 }] }] }, "equity": { "total": 0, "groups": [] }, "net_income_year_to_date": 5000, "liabilities_and_equity": 5800, "difference": 0 }, "journal_entries": 1, "opening_balances_date": null, "missing_invoices": 0 }], ["GET", "/v1/accounting/cross_checks", 200, "application/json", { "object": "cross_checks", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "year": 2026, "months": [{ "month": "2026-09", "status": "differs", "checks": [{ "key": "vat_charged", "status": "differs", "declared": 16000, "invoiced": 17600, "difference": -1600, "operation_number": "260930001234" }, { "key": "vat_creditable", "status": "matches", "declared": 4800, "invoiced": 4800.4, "difference": -0.4, "operation_number": "260930001234" }, { "key": "vat_withheld", "status": "matches", "declared": 0, "invoiced": 0, "difference": 0, "operation_number": "260930001234" }, { "key": "isr_income", "status": "unreadable", "declared": null, "invoiced": 110000, "difference": null, "operation_number": "260930001234" }] }], "vat_balance_in_favor": { "periods": [{ "month": "2026-02", "amount": 3000, "operation_number": "260317004567" }], "total": 3000, "credited": 1200, "remaining": 1800 }, "tax_regimes": { "registered": ["601"], "invoiced": [{ "tax_regime": "601", "invoices": 214, "first_date": "2026-01-03", "last_date": "2026-10-24", "registered": true }] } }], ["GET", "/v1/accounting/accounts", 200, "application/json", { "object": "list", "data": [{ "object": "ledger_account", "number": "105-01", "name": "Clientes nacionales", "grouping_code": "105.01", "nature": "debit" }], "has_more": false, "url": "/v1/accounting/accounts" }], ["GET", "/v1/accounting/electronic_accounting", 200, "application/zip", null], ["GET", "/v1/accounting/diot", 200, "application/json", { "object": "diot", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "month": "2026-09", "proportion": 1, "lines": [{ "tax_id": "CACX7605101P8", "name": "XOCHILT CASAS CHAVEZ", "third_party_type": "04", "operation_type": "03", "paid": { "base_16": 12000, "base_8": 0, "base_0": 0, "exempt": 0, "not_taxable": 0, "vat": 1920 }, "returns": { "base_16": 0, "base_8": 0, "base_0": 0, "exempt": 0, "not_taxable": 0, "vat": 0 }, "blacklisted": false }], "warnings": [] }], ["GET", "/v1/accounting/diot/file", 200, "text/plain", null], ["POST", "/v1/store_connections", 201, "application/json", { "id": "stc_OufpKqnrvx9p3Kd8sLm2XyT5uBcW8sKdLx", "object": "store_connection", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "platform": "shopify", "shop": "mi-tienda.myshopify.com", "status": "active", "authorize_url": null, "settings": { "product_key": "53101600", "unit_key": null, "iva": "0.16", "description": null, "folio_prefix": "SHOP-", "payment_form": null, "payment_forms": { "paypal": "31" }, "auto_invoice": null }, "orders_count": 128, "last_order_at": "2026-10-25T10:12:44-06:00", "last_error": null, "created_at": "2026-10-01T09:00:00-06:00" }], ["GET", "/v1/store_connections", 200, "application/json", { "object": "list", "data": [{ "id": "stc_OufpKqnrvx9p3Kd8sLm2XyT5uBcW8sKdLx", "object": "store_connection", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "platform": "shopify", "shop": "mi-tienda.myshopify.com", "status": "active", "authorize_url": null, "settings": { "product_key": "53101600", "unit_key": null, "iva": "0.16", "description": null, "folio_prefix": "SHOP-", "payment_form": null, "payment_forms": { "paypal": "31" }, "auto_invoice": null }, "orders_count": 128, "last_order_at": "2026-10-25T10:12:44-06:00", "last_error": null, "created_at": "2026-10-01T09:00:00-06:00" }], "has_more": false, "url": "/v1/store_connections" }], ["GET", "/v1/store_connections/{id}", 200, "application/json", { "id": "stc_OufpKqnrvx9p3Kd8sLm2XyT5uBcW8sKdLx", "object": "store_connection", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "platform": "shopify", "shop": "mi-tienda.myshopify.com", "status": "active", "authorize_url": null, "settings": { "product_key": "53101600", "unit_key": null, "iva": "0.16", "description": null, "folio_prefix": "SHOP-", "payment_form": null, "payment_forms": { "paypal": "31" }, "auto_invoice": null }, "orders_count": 128, "last_order_at": "2026-10-25T10:12:44-06:00", "last_error": null, "created_at": "2026-10-01T09:00:00-06:00" }], ["POST", "/v1/store_connections/{id}", 200, "application/json", { "id": "stc_OufpKqnrvx9p3Kd8sLm2XyT5uBcW8sKdLx", "object": "store_connection", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "platform": "shopify", "shop": "mi-tienda.myshopify.com", "status": "active", "authorize_url": null, "settings": { "product_key": "53101600", "unit_key": null, "iva": "0.16", "description": null, "folio_prefix": "SHOP-", "payment_form": null, "payment_forms": { "paypal": "31" }, "auto_invoice": null }, "orders_count": 128, "last_order_at": "2026-10-25T10:12:44-06:00", "last_error": null, "created_at": "2026-10-01T09:00:00-06:00" }], ["DELETE", "/v1/store_connections/{id}", 200, "application/json", { "id": "stc_OufpKqnrvx9p3Kd8sLm2XyT5uBcW8sKdLx", "object": "store_connection", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "platform": "shopify", "shop": "mi-tienda.myshopify.com", "status": "active", "authorize_url": null, "settings": { "product_key": "53101600", "unit_key": null, "iva": "0.16", "description": null, "folio_prefix": "SHOP-", "payment_form": null, "payment_forms": { "paypal": "31" }, "auto_invoice": null }, "orders_count": 128, "last_order_at": "2026-10-25T10:12:44-06:00", "last_error": null, "created_at": "2026-10-01T09:00:00-06:00" }], ["POST", "/v1/store_connections/{id}/import_orders", 200, "application/json", { "object": "store_import", "livemode": false, "store_connection": "stc_OufpKqnrvx9p3Kd8sLm2XyT5uBcW8sKdLx", "since": "2026-10-18", "tickets": 14, "invoiced": 0, "skipped": [{ "order": "1042", "reason": "está en USD; solo se registran pedidos en pesos." }] }], ["POST", "/v1/recurring_invoices", 201, "application/json", { "id": "rin_OufpKqnrvx9p7Hq2mZr1XyT5uBcW8sKdLx", "object": "recurring_invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": "Renta oficina 3", "status": "active", "schedule": { "frequency": "monthly", "interval": 1, "day_of_month": 1, "hour": 7, "time_zone": "America/Mexico_City" }, "next_invoice_on": "2026-11-01", "last_invoiced_on": "2026-10-01", "last_invoice": "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "last_error": null, "send_email": true, "catch_up": "all", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA" }, "currency": "MXN", "items": [{ "description": "Renta de oficina de {mes} {año}", "product_key": "80131500", "quantity": 1, "unit_key": "E48", "unit_price": 15000 }], "total": 17400, "created_at": "2026-09-28T11:02:14-06:00" }], ["GET", "/v1/recurring_invoices", 200, "application/json", { "object": "list", "data": [{ "id": "rin_OufpKqnrvx9p7Hq2mZr1XyT5uBcW8sKdLx", "object": "recurring_invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": "Renta oficina 3", "status": "active", "schedule": { "frequency": "monthly", "interval": 1, "day_of_month": 1, "hour": 7, "time_zone": "America/Mexico_City" }, "next_invoice_on": "2026-11-01", "last_invoiced_on": "2026-10-01", "last_invoice": "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "last_error": null, "send_email": true, "catch_up": "all", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA" }, "currency": "MXN", "items": [{ "description": "Renta de oficina de {mes} {año}", "product_key": "80131500", "quantity": 1, "unit_key": "E48", "unit_price": 15000 }], "total": 17400, "created_at": "2026-09-28T11:02:14-06:00" }], "has_more": false, "url": "/v1/recurring_invoices" }], ["GET", "/v1/recurring_invoices/{id}", 200, "application/json", { "id": "rin_OufpKqnrvx9p7Hq2mZr1XyT5uBcW8sKdLx", "object": "recurring_invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": "Renta oficina 3", "status": "active", "schedule": { "frequency": "monthly", "interval": 1, "day_of_month": 1, "hour": 7, "time_zone": "America/Mexico_City" }, "next_invoice_on": "2026-11-01", "last_invoiced_on": "2026-10-01", "last_invoice": "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "last_error": null, "send_email": true, "catch_up": "all", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA" }, "currency": "MXN", "items": [{ "description": "Renta de oficina de {mes} {año}", "product_key": "80131500", "quantity": 1, "unit_key": "E48", "unit_price": 15000 }], "total": 17400, "created_at": "2026-09-28T11:02:14-06:00" }], ["POST", "/v1/recurring_invoices/{id}", 200, "application/json", { "id": "rin_OufpKqnrvx9p7Hq2mZr1XyT5uBcW8sKdLx", "object": "recurring_invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": "Renta oficina 3", "status": "active", "schedule": { "frequency": "monthly", "interval": 1, "day_of_month": 1, "hour": 7, "time_zone": "America/Mexico_City" }, "next_invoice_on": "2026-11-01", "last_invoiced_on": "2026-10-01", "last_invoice": "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "last_error": null, "send_email": true, "catch_up": "all", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA" }, "currency": "MXN", "items": [{ "description": "Renta de oficina de {mes} {año}", "product_key": "80131500", "quantity": 1, "unit_key": "E48", "unit_price": 15000 }], "total": 17400, "created_at": "2026-09-28T11:02:14-06:00" }], ["DELETE", "/v1/recurring_invoices/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "deleted": true }], ["POST", "/v1/recurring_invoices/{id}/skip", 200, "application/json", { "id": "rin_OufpKqnrvx9p7Hq2mZr1XyT5uBcW8sKdLx", "object": "recurring_invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "name": "Renta oficina 3", "status": "active", "schedule": { "frequency": "monthly", "interval": 1, "day_of_month": 1, "hour": 7, "time_zone": "America/Mexico_City" }, "next_invoice_on": "2026-11-01", "last_invoiced_on": "2026-10-01", "last_invoice": "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "last_error": null, "send_email": true, "catch_up": "all", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA" }, "currency": "MXN", "items": [{ "description": "Renta de oficina de {mes} {año}", "product_key": "80131500", "quantity": 1, "unit_key": "E48", "unit_price": 15000 }], "total": 17400, "created_at": "2026-09-28T11:02:14-06:00" }], ["POST", "/v1/recurring_invoices/{id}/run", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["POST", "/v1/quotes", 201, "application/json", { "id": "quo_OufpKqnrvx9p3Kd8wQm2XyT5uBcW8sKdLx", "object": "quote", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "COT-12", "version": 1, "status": "sent", "url": "https://fiscalisto.com/cotizacion/7Hq2mZr1XyT5uBcW8sKdLx0VeNOufpKq", "customer": { "tax_id": "ICV060329BY0", "name": "INMOBILIARIA CVA", "email": "compras@cva.example", "catalog_id": "cus_OufpKqnrvx9p42" }, "currency": "MXN", "items": [{ "description": "Desarrollo del sitio web", "product_key": "81112103", "quantity": 1, "unit_key": "E48", "unit_price": 45000 }], "total": 52200, "valid_until": "2026-11-09", "terms": "50% de anticipo, entrega en 4 semanas.", "notes": null, "auto_invoice": true, "customer_comment": null, "sent_at": "2026-10-25T10:12:00-06:00", "viewed_at": null, "decided_at": null, "decided_by": null, "invoice": null, "created_at": "2026-10-25T10:05:00-06:00" }], ["GET", "/v1/quotes", 200, "application/json", { "object": "list", "data": [{ "id": "quo_OufpKqnrvx9p3Kd8wQm2XyT5uBcW8sKdLx", "object": "quote", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "COT-12", "version": 1, "status": "sent", "url": "https://fiscalisto.com/cotizacion/7Hq2mZr1XyT5uBcW8sKdLx0VeNOufpKq", "customer": { "tax_id": "ICV060329BY0", "name": "INMOBILIARIA CVA", "email": "compras@cva.example", "catalog_id": "cus_OufpKqnrvx9p42" }, "currency": "MXN", "items": [{ "description": "Desarrollo del sitio web", "product_key": "81112103", "quantity": 1, "unit_key": "E48", "unit_price": 45000 }], "total": 52200, "valid_until": "2026-11-09", "terms": "50% de anticipo, entrega en 4 semanas.", "notes": null, "auto_invoice": true, "customer_comment": null, "sent_at": "2026-10-25T10:12:00-06:00", "viewed_at": null, "decided_at": null, "decided_by": null, "invoice": null, "created_at": "2026-10-25T10:05:00-06:00" }], "has_more": false, "url": "/v1/quotes" }], ["GET", "/v1/quotes/{id}", 200, "application/json", { "id": "quo_OufpKqnrvx9p3Kd8wQm2XyT5uBcW8sKdLx", "object": "quote", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "COT-12", "version": 1, "status": "sent", "url": "https://fiscalisto.com/cotizacion/7Hq2mZr1XyT5uBcW8sKdLx0VeNOufpKq", "customer": { "tax_id": "ICV060329BY0", "name": "INMOBILIARIA CVA", "email": "compras@cva.example", "catalog_id": "cus_OufpKqnrvx9p42" }, "currency": "MXN", "items": [{ "description": "Desarrollo del sitio web", "product_key": "81112103", "quantity": 1, "unit_key": "E48", "unit_price": 45000 }], "total": 52200, "valid_until": "2026-11-09", "terms": "50% de anticipo, entrega en 4 semanas.", "notes": null, "auto_invoice": true, "customer_comment": null, "sent_at": "2026-10-25T10:12:00-06:00", "viewed_at": null, "decided_at": null, "decided_by": null, "invoice": null, "created_at": "2026-10-25T10:05:00-06:00" }], ["POST", "/v1/quotes/{id}", 200, "application/json", { "id": "quo_OufpKqnrvx9p3Kd8wQm2XyT5uBcW8sKdLx", "object": "quote", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "COT-12", "version": 1, "status": "sent", "url": "https://fiscalisto.com/cotizacion/7Hq2mZr1XyT5uBcW8sKdLx0VeNOufpKq", "customer": { "tax_id": "ICV060329BY0", "name": "INMOBILIARIA CVA", "email": "compras@cva.example", "catalog_id": "cus_OufpKqnrvx9p42" }, "currency": "MXN", "items": [{ "description": "Desarrollo del sitio web", "product_key": "81112103", "quantity": 1, "unit_key": "E48", "unit_price": 45000 }], "total": 52200, "valid_until": "2026-11-09", "terms": "50% de anticipo, entrega en 4 semanas.", "notes": null, "auto_invoice": true, "customer_comment": null, "sent_at": "2026-10-25T10:12:00-06:00", "viewed_at": null, "decided_at": null, "decided_by": null, "invoice": null, "created_at": "2026-10-25T10:05:00-06:00" }], ["DELETE", "/v1/quotes/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "deleted": true }], ["POST", "/v1/quotes/{id}/send", 200, "application/json", { "id": "quo_OufpKqnrvx9p3Kd8wQm2XyT5uBcW8sKdLx", "object": "quote", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "COT-12", "version": 1, "status": "sent", "url": "https://fiscalisto.com/cotizacion/7Hq2mZr1XyT5uBcW8sKdLx0VeNOufpKq", "customer": { "tax_id": "ICV060329BY0", "name": "INMOBILIARIA CVA", "email": "compras@cva.example", "catalog_id": "cus_OufpKqnrvx9p42" }, "currency": "MXN", "items": [{ "description": "Desarrollo del sitio web", "product_key": "81112103", "quantity": 1, "unit_key": "E48", "unit_price": 45000 }], "total": 52200, "valid_until": "2026-11-09", "terms": "50% de anticipo, entrega en 4 semanas.", "notes": null, "auto_invoice": true, "customer_comment": null, "sent_at": "2026-10-25T10:12:00-06:00", "viewed_at": null, "decided_at": null, "decided_by": null, "invoice": null, "created_at": "2026-10-25T10:05:00-06:00" }], ["POST", "/v1/quotes/{id}/accept", 200, "application/json", { "id": "quo_OufpKqnrvx9p3Kd8wQm2XyT5uBcW8sKdLx", "object": "quote", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "number": "COT-12", "version": 1, "status": "sent", "url": "https://fiscalisto.com/cotizacion/7Hq2mZr1XyT5uBcW8sKdLx0VeNOufpKq", "customer": { "tax_id": "ICV060329BY0", "name": "INMOBILIARIA CVA", "email": "compras@cva.example", "catalog_id": "cus_OufpKqnrvx9p42" }, "currency": "MXN", "items": [{ "description": "Desarrollo del sitio web", "product_key": "81112103", "quantity": 1, "unit_key": "E48", "unit_price": 45000 }], "total": 52200, "valid_until": "2026-11-09", "terms": "50% de anticipo, entrega en 4 semanas.", "notes": null, "auto_invoice": true, "customer_comment": null, "sent_at": "2026-10-25T10:12:00-06:00", "viewed_at": null, "decided_at": null, "decided_by": null, "invoice": null, "created_at": "2026-10-25T10:05:00-06:00" }], ["POST", "/v1/quotes/{id}/invoice", 201, "application/json", { "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "I04", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" }], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} }], ["GET", "/v1/quotes/{id}/pdf", 200, "application/pdf", null], ["POST", "/v1/webhook_endpoints", 201, "application/json", { "id": "whe_0q1Vmmw52sbDpmtsKD1E", "object": "webhook_endpoint", "livemode": false, "sandbox": null, "url": "https://mi-plataforma.mx/webhooks/fiscalisto", "description": null, "events": ["invoice.stamped"], "status": "enabled", "disabled_reason": null, "failing_since": null, "previous_secret_expires_at": null, "api_version": null, "created_at": "2026-10-24T10:15:42-06:00", "secret": "whsec_MfKQ9r7Cq1ZzR0nN3xY2bW8eT5uV6sA4" }], ["GET", "/v1/webhook_endpoints", 200, "application/json", { "object": "list", "data": [{ "id": "whe_0q1Vmmw52sbDpmtsKD1E", "object": "webhook_endpoint", "livemode": false, "sandbox": null, "url": "https://mi-plataforma.mx/webhooks/fiscalisto", "description": null, "events": ["invoice.stamped"], "status": "enabled", "disabled_reason": null, "failing_since": null, "previous_secret_expires_at": null, "api_version": null, "created_at": "2026-10-24T10:15:42-06:00", "secret": "whsec_MfKQ9r7Cq1ZzR0nN3xY2bW8eT5uV6sA4" }], "has_more": false, "url": "/v1/webhook_endpoints" }], ["GET", "/v1/webhook_endpoints/{id}", 200, "application/json", { "id": "whe_0q1Vmmw52sbDpmtsKD1E", "object": "webhook_endpoint", "livemode": false, "sandbox": null, "url": "https://mi-plataforma.mx/webhooks/fiscalisto", "description": null, "events": ["invoice.stamped"], "status": "enabled", "disabled_reason": null, "failing_since": null, "previous_secret_expires_at": null, "api_version": null, "created_at": "2026-10-24T10:15:42-06:00", "secret": "whsec_MfKQ9r7Cq1ZzR0nN3xY2bW8eT5uV6sA4" }], ["POST", "/v1/webhook_endpoints/{id}", 200, "application/json", { "id": "whe_0q1Vmmw52sbDpmtsKD1E", "object": "webhook_endpoint", "livemode": false, "sandbox": null, "url": "https://mi-plataforma.mx/webhooks/fiscalisto", "description": null, "events": ["invoice.stamped"], "status": "enabled", "disabled_reason": null, "failing_since": null, "previous_secret_expires_at": null, "api_version": null, "created_at": "2026-10-24T10:15:42-06:00", "secret": "whsec_MfKQ9r7Cq1ZzR0nN3xY2bW8eT5uV6sA4" }], ["DELETE", "/v1/webhook_endpoints/{id}", 200, "application/json", { "id": "prd_OufpKqnrvx9p1", "object": "product", "deleted": true }], ["POST", "/v1/webhook_endpoints/{id}/roll_secret", 200, "application/json", { "id": "whe_0q1Vmmw52sbDpmtsKD1E", "object": "webhook_endpoint", "livemode": false, "sandbox": null, "url": "https://mi-plataforma.mx/webhooks/fiscalisto", "description": null, "events": ["invoice.stamped"], "status": "enabled", "disabled_reason": null, "failing_since": null, "previous_secret_expires_at": null, "api_version": null, "created_at": "2026-10-24T10:15:42-06:00", "secret": "whsec_MfKQ9r7Cq1ZzR0nN3xY2bW8eT5uV6sA4" }], ["POST", "/v1/webhook_endpoints/{id}/test", 200, "application/json", { "object": "webhook_test", "event": { "id": "evt_0PKhIdhYuAGwzmMQYfkc", "object": "event", "type": "invoice.stamped", "api_version": "2026-10-24", "livemode": false, "created_at": "2026-10-24T10:15:42-06:00", "data": { "object": { "id": "inv_OufpKqnrvx9p28SINJVjjWKYRhojBTJb8P", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "G03", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Consultoría", "product_key": "80101500", "unit_key": "E48", "unit_name": "Unidad de servicio", "quantity": 1, "unit_price": 1000, "taxability": "02", "iva": "0.16" }], "subtotal": 1000, "discount": 0, "taxes": { "iva": 160, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 1160, "payment_status": "paid", "amount_due": 0, "amount_paid": 1160, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} } } }, "delivery": { "ok": true, "status": 200, "error": null, "response_body": "{\"received\":true}", "duration_ms": 182 } }], ["GET", "/v1/events", 200, "application/json", { "object": "list", "data": [{ "id": "evt_0PKhIdhYuAGwzmMQYfkc", "object": "event", "type": "invoice.stamped", "api_version": "2026-10-24", "livemode": false, "created_at": "2026-10-24T10:15:42-06:00", "data": { "object": { "id": "inv_OufpKqnrvx9p28SINJVjjWKYRhojBTJb8P", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "G03", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Consultoría", "product_key": "80101500", "unit_key": "E48", "unit_name": "Unidad de servicio", "quantity": 1, "unit_price": 1000, "taxability": "02", "iva": "0.16" }], "subtotal": 1000, "discount": 0, "taxes": { "iva": 160, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 1160, "payment_status": "paid", "amount_due": 0, "amount_paid": 1160, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} } } }], "has_more": false, "url": "/v1/events" }], ["GET", "/v1/events/{id}", 200, "application/json", { "id": "evt_0PKhIdhYuAGwzmMQYfkc", "object": "event", "type": "invoice.stamped", "api_version": "2026-10-24", "livemode": false, "created_at": "2026-10-24T10:15:42-06:00", "data": { "object": { "id": "inv_OufpKqnrvx9p28SINJVjjWKYRhojBTJb8P", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "G03", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [{ "description": "Consultoría", "product_key": "80101500", "unit_key": "E48", "unit_name": "Unidad de servicio", "quantity": 1, "unit_price": 1000, "taxability": "02", "iva": "0.16" }], "subtotal": 1000, "discount": 0, "taxes": { "iva": 160, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 1160, "payment_status": "paid", "amount_due": 0, "amount_paid": 1160, "related": null, "cancellation": null, "email": null, "error": null, "recurring_invoice": null, "created_at": "2026-10-24T10:15:42-06:00", "metadata": {} } } }]];
package/dist/mock.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export interface Mock {
2
+ /** Answers a request as the API would (shape-wise). */
3
+ fetch(request: Request): Promise<Response>;
4
+ /** Forgets everything created. */
5
+ reset(): void;
6
+ }
7
+ export declare function createMock(): Mock;