{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"be480286-4e6a-4f34-9f70-13a67b3ca078","name":"Fiscalapi API Reference","description":"# [Fiscalapi - API Reference](https://docs.fiscalapi.com/)\n\nUtilice la API de **FiscalAPI** para generar facturas CFDI 4.0 de manera sencilla y eficiente. Con una simple petición HTTP en formato JSON, podrá generar, calcular y timbrar facturas sin complicaciones.\n\n## Modos de Operación\n\n### [Modo de operación por valores](https://docs.fiscalapi.com/modes-of-operation)\n\nEl modo de operación por valores es nuestro método estándar, que permite a los usuarios crear facturas proporcionando todas las propiedades (valores) necesarias en la petición HTTP.\n\n### [Modo de operación por referencias](https://docs.fiscalapi.com/modes-of-operation)\n\nEl modo de operación por referencias simplifica el proceso permitiendo a los usuarios crear facturas enviando únicamente los `IDs` de objetos previamente configurados en el dashboard. Estos registros pueden crearse manualmente a través de la interfaz o programaticamente mediante llamadas a la API.\n\n## [Configurar el environment](https://learning.postman.com/docs/sending-requests/variables/managing-environments/)\n\nPara facilitar el consumo de Fiscalapi desde Postman, configure un postman `environment:`\n\n1. Haga click **`Environments`** en la barra lateral izquierda de Postman.\n    \n2. **Seleccione un environment** \"FiscalAPI-Test\" o \"FiscalAPI-Production\".\n    \n3. **Configure las siguientes variables esenciales**:\n    \n    - `tenant`: Su identificador único de inquilino (reemplazar )\n        \n    - `apiKey`: Su clave de API privada (reemplazar )\n        \n    - `currentDate`: Fecha actual en formato AAAA-MM-DDThh:mm:ss\n        \n4. **Active el environment configurado**:\n    \n    - Una vez guardada la configuración, active el environment seleccionándolo del menú desplegable ubicado en la esquina superior derecha de Postman.\n        \n\nVisite [Cómo obtener mis credenciales de FiscalAPI](https://docs.fiscalapi.com/credentials-info).","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"4346593","team":6032553,"collectionId":"be480286-4e6a-4f34-9f70-13a67b3ca078","publishedId":"2sB2j4eqXr","public":true,"publicUrl":"https://documenter-api.postman.tech/view/4346593/2sB2j4eqXr","privateUrl":"https://go.postman.co/documentation/4346593-be480286-4e6a-4f34-9f70-13a67b3ca078","customColor":{"top-bar":"FFFFFF","right-sidebar":"F8F5FC","highlight":"7A359B"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"Fiscalapi, la solución moderna, robusta y confiable para la facturación CFDI 4.0 en México. Nuestra API RESTful te permite emitir comprobantes fiscales digitales de forma sencilla, eficiente y con total validez ante el SAT, sin preocuparte por los detalles técnicos ni los constantes cambios regulatorios."},{"name":"title","value":""}],"appearance":{"default":"dark","themes":[{"name":"dark","logo":"https://content.pstmn.io/e3eafb93-25b9-44b4-bcbb-0d0f27de605b/IzAzX2Zpc2NhbGFwaSBIb3Jpem9udGFsIFB1cnBsZSBUcmFuc3BhcmVudC5wbmc=","colors":{"top-bar":"1A1721","right-sidebar":"2D2535","highlight":"9D5ABE"}},{"name":"light","logo":"https://content.pstmn.io/e3eafb93-25b9-44b4-bcbb-0d0f27de605b/IzAzX2Zpc2NhbGFwaSBIb3Jpem9udGFsIFB1cnBsZSBUcmFuc3BhcmVudC5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"F8F5FC","highlight":"7A359B"}}]}},"version":"8.10.1","publishDate":"2025-05-06T01:23:48.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":"Fiscalapi, la solución moderna, robusta y confiable para la facturación CFDI 4.0 en México. Nuestra API RESTful te permite emitir comprobantes fiscales digitales de forma sencilla, eficiente y con total validez ante el SAT, sin preocuparte por los detalles técnicos ni los constantes cambios regulatorios."},"logos":{"logoLight":"https://content.pstmn.io/e3eafb93-25b9-44b4-bcbb-0d0f27de605b/IzAzX2Zpc2NhbGFwaSBIb3Jpem9udGFsIFB1cnBsZSBUcmFuc3BhcmVudC5wbmc=","logoDark":"https://content.pstmn.io/e3eafb93-25b9-44b4-bcbb-0d0f27de605b/IzAzX2Zpc2NhbGFwaSBIb3Jpem9udGFsIFB1cnBsZSBUcmFuc3BhcmVudC5wbmc="}},"statusCode":200},"environments":[{"name":"Fiscalapi-Test","id":"8a049a0d-ed6c-4ee7-a733-b64254e8bcf0","owner":"4346593","values":[{"key":"baseUrl","value":"https://test.fiscalapi.com","enabled":true,"type":"default"},{"key":"tenant","value":"<my-tenant>","enabled":true,"type":"default"},{"key":"apiKey","value":"<my-api-key>","enabled":true,"type":"default"},{"key":"timezone","value":"America/Mexico_City","enabled":true,"type":"default"},{"key":"currentDate","value":"\"2025-04-17T08:56:40\"","enabled":true,"type":"default"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/9b2d3593262587cef18f0281f6ffb7c21eee8301de5a920fce05440c7e381c64","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Fiscalapi-Test","value":"4346593-8a049a0d-ed6c-4ee7-a733-b64254e8bcf0"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sB2j4eqXr"}