@fiscalapi/docs-mcp 0.0.0-stage → 4.0.461
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/LICENSE +373 -0
- package/README.md +92 -2
- package/data/docs-index.json +1 -0
- package/data/operations/calculateInvoice.json +1 -0
- package/data/operations/cancelInvoice.json +1 -0
- package/data/operations/cancelTicket.json +1 -0
- package/data/operations/createApiKey.json +1 -0
- package/data/operations/createDownloadRequest.json +1 -0
- package/data/operations/createDownloadRule.json +1 -0
- package/data/operations/createDownloadRuleTestRequest.json +1 -0
- package/data/operations/createEmployeeData.json +1 -0
- package/data/operations/createEmployerData.json +1 -0
- package/data/operations/createInvoice.json +1 -0
- package/data/operations/createPerson.json +1 -0
- package/data/operations/createProduct.json +1 -0
- package/data/operations/createTaxFile.json +1 -0
- package/data/operations/createTicket.json +1 -0
- package/data/operations/createWebhook.json +1 -0
- package/data/operations/deleteDownloadRequest.json +1 -0
- package/data/operations/deleteDownloadRule.json +1 -0
- package/data/operations/deleteEmployeeData.json +1 -0
- package/data/operations/deleteEmployerData.json +1 -0
- package/data/operations/deletePerson.json +1 -0
- package/data/operations/deleteProduct.json +1 -0
- package/data/operations/deleteTaxFile.json +1 -0
- package/data/operations/deleteWebhook.json +1 -0
- package/data/operations/downloadPortalTicketInvoice.json +1 -0
- package/data/operations/getApiKey.json +1 -0
- package/data/operations/getAutoInvoiceConsumptionReport.json +1 -0
- package/data/operations/getAutoInvoicePortalName.json +1 -0
- package/data/operations/getAutoInvoicePortalNameAvailability.json +1 -0
- package/data/operations/getAutoInvoiceSettings.json +1 -0
- package/data/operations/getCatalogRecord.json +1 -0
- package/data/operations/getDownloadRequest.json +1 -0
- package/data/operations/getDownloadRequestPackage.json +1 -0
- package/data/operations/getDownloadRequestRawRequest.json +1 -0
- package/data/operations/getDownloadRequestRawResponse.json +1 -0
- package/data/operations/getDownloadRule.json +1 -0
- package/data/operations/getEmployeeData.json +1 -0
- package/data/operations/getEmployerData.json +1 -0
- package/data/operations/getEvent.json +1 -0
- package/data/operations/getInvoice.json +1 -0
- package/data/operations/getInvoicePdf.json +1 -0
- package/data/operations/getInvoiceStatus.json +1 -0
- package/data/operations/getInvoiceXml.json +1 -0
- package/data/operations/getPerson.json +1 -0
- package/data/operations/getPortalBranding.json +1 -0
- package/data/operations/getPortalTicket.json +1 -0
- package/data/operations/getProduct.json +1 -0
- package/data/operations/getSatValidationType.json +1 -0
- package/data/operations/getStampTransaction.json +1 -0
- package/data/operations/getTaxFile.json +1 -0
- package/data/operations/getTaxFileDefaultValues.json +1 -0
- package/data/operations/getTicket.json +1 -0
- package/data/operations/getTicketCode.json +1 -0
- package/data/operations/getWebhook.json +1 -0
- package/data/operations/invoicePortalTicket.json +1 -0
- package/data/operations/listApiKeys.json +1 -0
- package/data/operations/listCatalogs.json +1 -0
- package/data/operations/listDownloadCatalogRecords.json +1 -0
- package/data/operations/listDownloadCatalogs.json +1 -0
- package/data/operations/listDownloadRequestMetaItems.json +1 -0
- package/data/operations/listDownloadRequestWithholdingPackages.json +1 -0
- package/data/operations/listDownloadRequestXmls.json +1 -0
- package/data/operations/listDownloadRequests.json +1 -0
- package/data/operations/listDownloadRules.json +1 -0
- package/data/operations/listEvents.json +1 -0
- package/data/operations/listInvoices.json +1 -0
- package/data/operations/listPeople.json +1 -0
- package/data/operations/listPortalCfdiUses.json +1 -0
- package/data/operations/listPortalTaxRegimes.json +1 -0
- package/data/operations/listProductTaxes.json +1 -0
- package/data/operations/listProducts.json +1 -0
- package/data/operations/listSatValidationTypeStatuses.json +1 -0
- package/data/operations/listSatValidationTypes.json +1 -0
- package/data/operations/listStampTransactions.json +1 -0
- package/data/operations/listTaxFiles.json +1 -0
- package/data/operations/listTickets.json +1 -0
- package/data/operations/listWebhookDeliveries.json +1 -0
- package/data/operations/listWebhooks.json +1 -0
- package/data/operations/patchPerson.json +1 -0
- package/data/operations/recoverPortalTicketInvoice.json +1 -0
- package/data/operations/resendEvent.json +1 -0
- package/data/operations/resendPortalTicketInvoice.json +1 -0
- package/data/operations/revokeApiKey.json +1 -0
- package/data/operations/rotateWebhookSecret.json +1 -0
- package/data/operations/runSatValidations.json +1 -0
- package/data/operations/searchCatalogRecords.json +1 -0
- package/data/operations/searchDownloadRequests.json +1 -0
- package/data/operations/sendInvoice.json +1 -0
- package/data/operations/signManifest.json +1 -0
- package/data/operations/testWebhook.json +1 -0
- package/data/operations/transferStamps.json +1 -0
- package/data/operations/triggerEvent.json +1 -0
- package/data/operations/updateApiKey.json +1 -0
- package/data/operations/updateAutoInvoicePortalName.json +1 -0
- package/data/operations/updateAutoInvoiceSettings.json +1 -0
- package/data/operations/updateDownloadRule.json +1 -0
- package/data/operations/updateEmployeeData.json +1 -0
- package/data/operations/updateEmployerData.json +1 -0
- package/data/operations/updatePerson.json +1 -0
- package/data/operations/updateProduct.json +1 -0
- package/data/operations/updateWebhook.json +1 -0
- package/data/operations.json +1 -0
- package/data/source.json +12 -0
- package/dist/api-operations.js +55 -0
- package/dist/data-files.js +22 -0
- package/dist/docs-index-options.js +29 -0
- package/dist/docs-index.js +35 -0
- package/dist/excerpt.js +54 -0
- package/dist/index.js +25 -0
- package/dist/operation-suggestions.js +37 -0
- package/dist/server.js +17 -0
- package/dist/tools/get-operation-tool.js +34 -0
- package/dist/tools/list-operations-tool.js +40 -0
- package/dist/tools/mcp-tool.js +1 -0
- package/dist/tools/search-docs-tool.js +55 -0
- package/dist/tools/tool-conventions.js +14 -0
- package/dist/tools/tool-results.js +6 -0
- package/package.json +62 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"calculateInvoice","method":"POST","path":"/api/v4/invoices/calculate","tag":"Invoices","summary":"Calcular los totales de una factura sin timbrar","description":"Con el mismo cuerpo que la emisión, responde subTotal, discount y total sin timbrar, sin cobrar timbres y sin consumir folio: sirve para previsualizar los importes antes de emitir. Docs: [por valores](https://docs.fiscalapi.com/invoices-by-value#modelo-factura) y [por referencias](https://docs.fiscalapi.com/invoices-by-reference#modelo-factura).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"versionCode":{"type":["null","string"]},"paymentFormCode":{"type":["null","string"]},"paymentMethodCode":{"type":["null","string"]},"currencyCode":{"type":["null","string"]},"typeCode":{"type":["null","string"]},"expeditionZipCode":{"type":["null","string"]},"pacConfirmation":{"type":["null","string"]},"series":{"type":["null","string"]},"number":{"type":["null","string"]},"date":{"type":"string","format":"date-time"},"paymentConditions":{"type":["null","string"]},"exchangeRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"exportCode":{"type":["null","string"]},"issuer":{"oneOf":[{"type":"null"},{"type":"object","properties":{"id":{"type":["null","string"]},"tin":{"type":["null","string"]},"legalName":{"type":["null","string"]},"taxRegimeCode":{"type":["null","string"]},"employerData":{"oneOf":[{"type":"null"},{"type":"object","properties":{"curp":{"type":["null","string"]},"employerRegistration":{"type":["null","string"]},"originEmployerTin":{"type":["null","string"]},"satFundSourceId":{"type":["null","string"]},"ownResourceAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"}}}]},"taxCredentials":{"type":["null","array"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"base64File":{"type":["null","string"]},"fileType":{"oneOf":[{"type":"null"},{"type":"integer"}]},"password":{"type":["null","string"]}}}}}}]},"recipient":{"oneOf":[{"type":"null"},{"type":"object","properties":{"id":{"type":["null","string"]},"tin":{"type":["null","string"]},"legalName":{"type":["null","string"]},"zipCode":{"type":["null","string"]},"taxRegimeCode":{"type":["null","string"]},"cfdiUseCode":{"type":["null","string"]},"email":{"type":["null","string"]},"countryId":{"type":["null","string"]},"foreignTin":{"type":["null","string"]},"employeeData":{"oneOf":[{"type":"null"},{"type":"object","properties":{"curp":{"type":["null","string"]},"socialSecurityNumber":{"type":["null","string"]},"laborRelationStartDate":{"type":["null","string"],"format":"date-time"},"seniority":{"type":["null","string"]},"satContractTypeId":{"type":["null","string"]},"satUnionizedStatusId":{"type":["null","string"]},"satWorkdayTypeId":{"type":["null","string"]},"satTaxRegimeTypeId":{"type":["null","string"]},"employeeNumber":{"type":["null","string"]},"department":{"type":["null","string"]},"position":{"type":["null","string"]},"satJobRiskId":{"type":["null","string"]},"satPaymentPeriodicityId":{"type":["null","string"]},"satBankId":{"type":["null","string"]},"bankAccount":{"type":["null","string"]},"baseSalaryForContributions":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"integratedDailySalary":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"satPayrollStateId":{"type":["null","string"]},"subcontractorRfc":{"type":["null","string"]},"timePercentage":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]}}}]},"items":{"type":["null","array"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"itemCode":{"type":["null","string"]},"itemSku":{"type":["null","string"]},"quantity":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"unitOfMeasurementCode":{"type":["null","string"]},"description":{"type":["null","string"]},"unitPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"discount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxObjectCode":{"type":["null","string"]},"itemTaxes":{"type":"array","items":{"type":"object","properties":{"taxCode":{"type":["null","string"]},"taxTypeCode":{"type":["null","string"]},"taxRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxFlagCode":{"type":["null","string"]}}}},"onBehalfOf":{"oneOf":[{"type":"null"},{"type":"object","properties":{"tin":{"type":["null","string"]},"legalName":{"type":["null","string"]},"taxRegimeCode":{"type":["null","string"]},"zipCode":{"type":["null","string"]}}}]},"customsInfo":{"type":["null","array"],"items":{"type":"object","properties":{"customsNumber":{"type":["null","string"]}}}},"propertyInfo":{"type":["null","array"],"items":{"type":"object","properties":{"number":{"type":["null","string"]}}}},"parts":{"type":["null","array"],"items":{"type":"object","properties":{"itemCode":{"type":["null","string"]},"itemSku":{"type":["null","string"]},"quantity":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"unitOfMeasurementCode":{"type":["null","string"]},"description":{"type":["null","string"]},"unitPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"customsInfo":{"type":["null","array"],"items":{"type":"object","properties":{"customsNumber":{"type":["null","string"]}}}}}}},"ticketId":{"type":["null","string"]}}}},"globalInformation":{"oneOf":[{"type":"null"},{"type":"object","properties":{"periodicityCode":{"type":["null","string"]},"monthCode":{"type":["null","string"]},"year":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}}]},"relatedInvoices":{"type":["null","array"],"items":{"type":"object","properties":{"relationshipTypeCode":{"type":["null","string"]},"uuid":{"type":["null","string"]}}}},"complement":{"oneOf":[{"type":"null"},{"type":"object","properties":{"localTaxes":{"oneOf":[{"type":"null"},{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","properties":{"taxName":{"type":["null","string"]},"taxRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxFlagCode":{"type":["null","string"]}}}}}}]},"payment":{"oneOf":[{"type":"null"},{"type":"object","properties":{"paymentDate":{"type":"string","format":"date-time"},"paymentFormCode":{"type":["null","string"]},"currencyCode":{"type":"string"},"exchangeRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"operationNumber":{"type":["null","string"]},"sourceBankTin":{"type":["null","string"]},"sourceBankAccount":{"type":["null","string"]},"targetBankTin":{"type":["null","string"]},"targetBankAccount":{"type":["null","string"]},"foreignBankName":{"type":["null","string"]},"paymentTypeCode":{"type":["null","string"]},"base64PaymentCertificate":{"type":["null","string"]},"paymentOriginalString":{"type":["null","string"]},"signatureValue":{"type":["null","string"]},"paidInvoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":["null","string"]},"uuid":{"type":["null","string"]},"series":{"type":["null","string"]},"number":{"type":["null","string"]},"currencyCode":{"type":["null","string"]},"partialityNumber":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"subTotal":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"previousBalance":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"paymentAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"remainingBalance":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxObjectCode":{"type":["null","string"]},"equivalence":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"exchangeRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"paidInvoiceTaxes":{"type":["null","array"],"items":{"type":"object","properties":{"base":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxCode":{"type":["null","string"]},"taxTypeCode":{"type":["null","string"]},"taxRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxFlagCode":{"type":["null","string"]}}}}}}}}}]},"payroll":{"oneOf":[{"type":"null"},{"type":"object","properties":{"version":{"type":"string"},"payrollTypeCode":{"type":["null","string"]},"paymentDate":{"type":"string","format":"date-time"},"initialPaymentDate":{"type":"string","format":"date-time"},"finalPaymentDate":{"type":"string","format":"date-time"},"daysPaid":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"earnings":{"oneOf":[{"type":"null"},{"type":"object","properties":{"earnings":{"type":["null","array"],"items":{"type":"object","properties":{"earningTypeCode":{"type":"string"},"code":{"type":"string"},"concept":{"type":"string"},"taxedAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"exemptAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"stockOptions":{"oneOf":[{"type":"null"},{"type":"object","properties":{"marketPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"grantPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]},"overtime":{"type":["null","array"],"items":{"type":"object","properties":{"days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"hoursTypeCode":{"type":"string"},"extraHours":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"amountPaid":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}}}}},"otherPayments":{"type":["null","array"],"items":{"type":"object","properties":{"otherPaymentTypeCode":{"type":"string"},"code":{"type":"string"},"concept":{"type":"string"},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"subsidyCaused":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"balanceCompensation":{"oneOf":[{"type":"null"},{"type":"object","properties":{"favorableBalance":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"year":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int16"},"remainingFavorableBalance":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]}}}},"retirement":{"oneOf":[{"type":"null"},{"type":"object","properties":{"totalOneTime":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"totalInstallments":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"dailyAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"accumulableIncome":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"nonAccumulableIncome":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]},"severance":{"oneOf":[{"type":"null"},{"type":"object","properties":{"totalPaid":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"yearsOfService":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"lastMonthlySalary":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"accumulableIncome":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"nonAccumulableIncome":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]}},"additionalProperties":false}]},"deductions":{"type":["null","array"],"items":{"type":"object","properties":{"deductionTypeCode":{"type":"string"},"code":{"type":"string"},"concept":{"type":"string"},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}},"disabilities":{"type":["null","array"],"items":{"type":"object","properties":{"disabilityDays":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"disabilityTypeCode":{"type":"string"},"monetaryAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}}},"additionalProperties":false}]},"cartaPorte":{"oneOf":[{"type":"null"},{"type":"object","properties":{"transpInternacId":{"type":"string"},"entradaSalidaMercId":{"type":["null","string"]},"paisOrigenDestinoId":{"type":["null","string"]},"viaEntradaSalidaId":{"type":["null","string"]},"totalDistRec":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"registroISTMOId":{"type":["null","string"]},"ubicacionPoloOrigenId":{"type":["null","string"]},"ubicacionPoloDestinoId":{"type":["null","string"]},"unidadPesoId":{"type":"string"},"pesoNetoTotal":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"cargoPorTasacion":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"logisticaInversaRecoleccionDevolucionId":{"type":["null","string"]},"regimenAduaneros":{"type":["null","array"],"items":{"type":"object","properties":{"regimenAduaneroId":{"type":"string"}}}},"ubicaciones":{"type":"array","items":{"type":"object","properties":{"tipoUbicacion":{"type":"string"},"idUbicacion":{"type":["null","string"]},"rfcRemitenteDestinatario":{"type":"string"},"nombreRemitenteDestinatario":{"type":["null","string"]},"numRegIdTrib":{"type":["null","string"]},"residenciaFiscalId":{"type":["null","string"]},"numEstacionId":{"type":["null","string"]},"nombreEstacion":{"type":["null","string"]},"navegacionTraficoId":{"type":["null","string"]},"fechaHoraSalidaLlegada":{"type":"string","format":"date-time"},"tipoEstacionId":{"type":["null","string"]},"distanciaRecorrida":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"domicilio":{"oneOf":[{"type":"null"},{"type":"object","properties":{"calle":{"type":["null","string"]},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"coloniaId":{"type":["null","string"]},"localidadId":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipioId":{"type":["null","string"]},"estadoId":{"type":"string"},"paisId":{"type":"string"},"codigoPostalId":{"type":"string"}}}]}}}},"mercancias":{"type":"array","items":{"type":"object","properties":{"bienesTranspId":{"type":"string"},"claveSTCCId":{"type":["null","string"]},"descripcion":{"type":"string"},"cantidad":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"claveUnidadId":{"type":"string"},"unidad":{"type":["null","string"]},"dimensiones":{"type":["null","string"]},"materialPeligrosoId":{"type":["null","string"]},"cveMaterialPeligrosoId":{"type":["null","string"]},"embalajeId":{"type":["null","string"]},"descripEmbalaje":{"type":["null","string"]},"sectorCOFEPRISId":{"type":["null","string"]},"nombreIngredienteActivo":{"type":["null","string"]},"nomQuimico":{"type":["null","string"]},"denominacionGenericaProd":{"type":["null","string"]},"denominacionDistintivaProd":{"type":["null","string"]},"fabricante":{"type":["null","string"]},"fechaCaducidad":{"type":["null","string"],"format":"date-time"},"loteMedicamento":{"type":["null","string"]},"formaFarmaceuticaId":{"type":["null","string"]},"condicionesEspTranspId":{"type":["null","string"]},"registroSanitarioFolioAutorizacion":{"type":["null","string"]},"permisoImportacion":{"type":["null","string"]},"folioImpoVUCEM":{"type":["null","string"]},"numCAS":{"type":["null","string"]},"razonSocialEmpImp":{"type":["null","string"]},"numRegSanPlagCOFEPRIS":{"type":["null","string"]},"datosFabricante":{"type":["null","string"]},"datosFormulador":{"type":["null","string"]},"datosMaquilador":{"type":["null","string"]},"usoAutorizado":{"type":["null","string"]},"pesoEnKg":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"valorMercancia":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"monedaId":{"type":["null","string"]},"fraccionArancelariaId":{"type":["null","string"]},"uuidComercioExt":{"type":["null","string"]},"tipoMateriaId":{"type":["null","string"]},"descripcionMateria":{"type":["null","string"]},"documentacionAduanera":{"type":["null","array"],"items":{"type":"object","properties":{"tipoDocumentoId":{"type":"string"},"numPedimento":{"type":["null","string"]},"identDocAduanero":{"type":["null","string"]},"rfcImpo":{"type":["null","string"]}}}},"guiasIdentificacion":{"type":["null","array"],"items":{"type":"object","properties":{"numeroGuiaIdentificacion":{"type":"string"},"descripGuiaIdentificacion":{"type":"string"},"pesoGuiaIdentificacion":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}},"cantidadTransporta":{"type":["null","array"],"items":{"type":"object","properties":{"cantidad":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"idOrigen":{"type":"string"},"idDestino":{"type":"string"},"cvesTransporteId":{"type":["null","string"]}}}},"detalleMercancia":{"oneOf":[{"type":"null"},{"type":"object","properties":{"unidadPesoMercId":{"type":"string"},"pesoBruto":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"pesoNeto":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"pesoTara":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"numPiezas":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}}}]}}}},"autotransporte":{"oneOf":[{"type":"null"},{"type":"object","properties":{"permSCTId":{"type":"string"},"numPermisoSCT":{"type":"string"},"configVehicularId":{"type":"string"},"pesoBrutoVehicular":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"placaVM":{"type":"string"},"anioModeloVM":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"aseguraRespCivil":{"type":"string"},"polizaRespCivil":{"type":"string"},"aseguraMedAmbiente":{"type":["null","string"]},"polizaMedAmbiente":{"type":["null","string"]},"aseguraCarga":{"type":["null","string"]},"polizaCarga":{"type":["null","string"]},"primaSeguro":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"remolques":{"type":["null","array"],"items":{"type":"object","properties":{"subTipoRemId":{"type":"string"},"placa":{"type":"string"}}}}}}]},"transporteMaritimo":{"oneOf":[{"type":"null"},{"type":"object","properties":{"permSCTId":{"type":["null","string"]},"numPermisoSCT":{"type":["null","string"]},"nombreAseg":{"type":["null","string"]},"numPolizaSeguro":{"type":["null","string"]},"tipoEmbarcacionId":{"type":"string"},"matricula":{"type":"string"},"numeroOMI":{"type":"string"},"anioEmbarcacion":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"nombreEmbarc":{"type":["null","string"]},"nacionalidadEmbarcId":{"type":"string"},"unidadesDeArqBruto":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"tipoCargaId":{"type":"string"},"eslora":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"manga":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"calado":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"puntal":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"lineaNaviera":{"type":["null","string"]},"nombreAgenteNaviero":{"type":"string"},"numAutorizacionNavieroId":{"type":"string"},"numViaje":{"type":["null","string"]},"numConocEmbarc":{"type":["null","string"]},"permisoTempNavegacion":{"type":["null","string"]},"contenedores":{"type":["null","array"],"items":{"type":"object","properties":{"tipoContenedorId":{"type":"string"},"matriculaContenedor":{"type":["null","string"]},"numPrecinto":{"type":["null","string"]},"idCCPRelacionado":{"type":["null","string"]},"placaVMCCP":{"type":["null","string"]},"fechaCertificacionCCP":{"type":["null","string"],"format":"date-time"},"remolquesCCP":{"type":["null","array"],"items":{"type":"object","properties":{"subTipoRemCCPId":{"type":"string"},"placaCCP":{"type":"string"}}}}}}}}}]},"transporteAereo":{"oneOf":[{"type":"null"},{"type":"object","properties":{"permSCTId":{"type":"string"},"numPermisoSCT":{"type":"string"},"matriculaAeronave":{"type":["null","string"]},"nombreAseg":{"type":["null","string"]},"numPolizaSeguro":{"type":["null","string"]},"numeroGuia":{"type":"string"},"lugarContrato":{"type":["null","string"]},"codigoTransportistaId":{"type":"string"},"rfcEmbarcador":{"type":["null","string"]},"numRegIdTribEmbarc":{"type":["null","string"]},"residenciaFiscalEmbarcId":{"type":["null","string"]},"nombreEmbarcador":{"type":["null","string"]}}}]},"transporteFerroviario":{"oneOf":[{"type":"null"},{"type":"object","properties":{"tipoDeServicioId":{"type":"string"},"tipoDeTraficoId":{"type":"string"},"nombreAseg":{"type":["null","string"]},"numPolizaSeguro":{"type":["null","string"]},"derechosDePaso":{"type":["null","array"],"items":{"type":"object","properties":{"tipoDerechoDePasoId":{"type":"string"},"kilometrajePagado":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}},"carros":{"type":"array","items":{"type":"object","properties":{"tipoCarroId":{"type":"string"},"matriculaCarro":{"type":"string"},"guiaCarro":{"type":"string"},"toneladasNetasCarro":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"contenedores":{"type":["null","array"],"items":{"type":"object","properties":{"tipoContenedorId":{"type":"string"},"pesoContenedorVacio":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"pesoNetoMercancia":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}}}}}}}]},"tiposFigura":{"type":["null","array"],"items":{"type":"object","properties":{"tipoFiguraId":{"type":"string"},"rfcFigura":{"type":["null","string"]},"numLicencia":{"type":["null","string"]},"nombreFigura":{"type":"string"},"numRegIdTribFigura":{"type":["null","string"]},"residenciaFiscalFiguraId":{"type":["null","string"]},"partesTransporte":{"type":["null","array"],"items":{"type":"object","properties":{"parteTransporteId":{"type":"string"}}}},"domicilio":{"oneOf":[{"type":"null"},{"type":"object","properties":{"calle":{"type":["null","string"]},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"coloniaId":{"type":["null","string"]},"localidadId":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipioId":{"type":["null","string"]},"estadoId":{"type":"string"},"paisId":{"type":"string"},"codigoPostalId":{"type":"string"}}}]}}}}}}]},"comercioExterior":{"oneOf":[{"type":"null"},{"type":"object","properties":{"motivoTrasladoId":{"type":["null","string"]},"claveDePedimentoId":{"type":"string"},"certificadoOrigen":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"numCertificadoOrigen":{"type":["null","string"]},"numeroExportadorConfiable":{"type":["null","string"]},"incotermId":{"type":["null","string"]},"observaciones":{"type":["null","string"]},"tipoCambioUSD":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"emisor":{"oneOf":[{"type":"null"},{"type":"object","properties":{"curp":{"type":["null","string"]},"domicilio":{"type":"object","properties":{"calle":{"type":"string"},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"coloniaId":{"type":["null","string"]},"localidadId":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipioId":{"type":["null","string"]},"estadoId":{"type":"string"},"paisId":{"type":"string"},"codigoPostalId":{"type":"string"}}}}}]},"receptor":{"oneOf":[{"type":"null"},{"type":"object","properties":{"numRegIdTrib":{"type":["null","string"]},"domicilio":{"oneOf":[{"type":"null"},{"type":"object","properties":{"calle":{"type":"string"},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"colonia":{"type":["null","string"]},"localidad":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipio":{"type":["null","string"]},"estado":{"type":"string"},"paisId":{"type":"string"},"codigoPostal":{"type":"string"}}}]}}}]},"propietarios":{"type":["null","array"],"items":{"type":"object","properties":{"numRegIdTrib":{"type":"string"},"residenciaFiscalId":{"type":"string"}}}},"destinatarios":{"type":["null","array"],"items":{"type":"object","properties":{"numRegIdTrib":{"type":["null","string"]},"nombre":{"type":["null","string"]},"domicilios":{"type":"array","items":{"type":"object","properties":{"calle":{"type":"string"},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"colonia":{"type":["null","string"]},"localidad":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipio":{"type":["null","string"]},"estado":{"type":"string"},"paisId":{"type":"string"},"codigoPostal":{"type":"string"}}}}}}},"mercancias":{"type":"array","items":{"type":"object","properties":{"noIdentificacion":{"type":"string"},"fraccionArancelariaId":{"type":["null","string"]},"cantidadAduana":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"unidadAduanaId":{"type":["null","string"]},"valorUnitarioAduana":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"valorDolares":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"descripcionesEspecificas":{"type":["null","array"],"items":{"type":"object","properties":{"marca":{"type":"string"},"modelo":{"type":["null","string"]},"subModelo":{"type":["null","string"]},"numeroSerie":{"type":["null","string"]}}}}}}}}}]}}}]},"metadata":{"type":["null","object"],"additionalProperties":{"type":"string"}}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"cancelInvoice","method":"DELETE","path":"/api/v4/invoices","tag":"Invoices","summary":"Cancelar una factura ante el SAT","description":"Solicita al SAT, por medio del PAC, la cancelación del CFDI con el motivo en cancellationReasonCode (01, 02, 03 o 04); el motivo 01 exige replacementUuid, el UUID de la factura que la sustituye. Por referencias basta el id; por valores van invoiceUuid, tin y taxCredentials (el CSD del emisor). La respuesta no confirma la cancelación: el SAT puede esperar la aceptación del receptor, así que consulta después su estatus. Docs: [por valores](https://docs.fiscalapi.com/invoices-by-value#cancelar-factura) y [por referencias](https://docs.fiscalapi.com/invoices-by-reference#cancelar-factura).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":["null","string"]},"invoiceUuid":{"type":["null","string"]},"tin":{"type":["null","string"]},"cancellationReasonCode":{"type":["null","string"]},"replacementUuid":{"type":["null","string"]},"taxCredentials":{"type":["null","array"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"base64File":{"type":["null","string"]},"fileType":{"oneOf":[{"type":"null"},{"type":"integer"}]},"password":{"type":["null","string"]}}}}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"cancelTicket","method":"DELETE","path":"/api/v4/tickets/{id}","tag":"Tickets","summary":"Cancelar un ticket","description":"Cancela un ticket en estado pending y libera su serie y folio para volver a ingerirlo. El crédito de ticket de la ingesta no se devuelve. Exige el feature Auto CFDI. 401: sin API key o JWT válidos. 403: la persona no tiene el permiso Tickets.Cancel o el tenant no tiene Auto CFDI. 404: no existe un ticket con ese id en el tenant. 409: el ticket no está en pending o cambió de estado al mismo tiempo.","parameters":[{"name":"id","in":"path","description":"Id del ticket.","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"boolean"},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createApiKey","method":"POST","path":"/api/v4/apikeys","tag":"ApiKeys","summary":"Crear una API key","description":"Genera una API key activa para personId (obligatorio), con description opcional, y devuelve su valor en apiKeyValue; obtener y listar también lo devuelven. Cada persona crea API keys para sí misma y solo el owner del tenant las crea para otra persona (403). Un personId que no es del tenant responde 400. Docs: [crear API key](https://docs.fiscalapi.com/api-keys#crear-api-key) y [API keys de otras personas](https://docs.fiscalapi.com/api-keys#api-keys-de-otras-personas).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"personId":{"type":["null","string"]},"description":{"type":["null","string"]}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createDownloadRequest","method":"POST","path":"/api/v4/download-requests","tag":"DownloadRequests","summary":"Crear una solicitud de descarga masiva","description":"Pide al SAT en la misma petición, con la FIEL vigente de la persona de la regla, la descarga masiva de la regla downloadRuleId entre startDate y endDate; downloadRequestTypeId debe ser \"Manual\". El periodo admite hasta 31 días (hasta 400 días en reglas de Retenciones); un periodo más largo, una startDate que no sea anterior a endDate, una endDate futura o una persona sin RFC o FIEL vigente responden 400. Responde 404 si la regla no existe; 403 si no está aprobada, si su persona no tiene un asiento activo de Descarga CFDI o en el ambiente de pruebas, y 502 si el SAT rechaza la autenticación o no crea la solicitud. Aceptada, queda en Esperando SAT y FiscalAPI la procesa en segundo plano. Docs: [crear solicitud](https://docs.fiscalapi.com/download-requests#crear-solicitud).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"downloadRuleId":{"type":["null","string"]},"downloadRequestTypeId":{"type":["null","string"]},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"sourcePackageId":{"type":["null","string"]}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createDownloadRule","method":"POST","path":"/api/v4/download-rules","tag":"DownloadRules","summary":"Crear una regla de descarga masiva","description":"Programa la descarga masiva diaria de un RFC: con la regla aprobada y la persona con asiento activo, FiscalAPI pide al SAT cada día, con la FIEL de la persona, los documentos del día anterior. Campos obligatorios: personId, description (máximo 100), satQueryTypeId (CFDI, Metadata o Retenciones), downloadTypeId (Emitidos o Recibidos) y satInvoiceStatusId (Vigente o Cancelado; Cancelado solo con Metadata). Responde 400 si personId no es del tenant o la persona no tiene RFC o FIEL vigente, y 403 si la persona es el owner del tenant y la persona autenticada no lo es, si ya hay una regla igual para el RFC, si no quedan asientos de Descarga CFDI o en el ambiente de pruebas. Docs: [crear regla](https://docs.fiscalapi.com/download-rules#crear-regla).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"personId":{"type":["null","string"]},"description":{"type":["null","string"]},"satQueryTypeId":{"type":["null","string"]},"downloadTypeId":{"type":["null","string"]},"satInvoiceStatusId":{"type":["null","string"]}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createDownloadRuleTestRequest","method":"POST","path":"/api/v4/download-rules/test","tag":"DownloadRules","summary":"Simular una descarga masiva en el ambiente de pruebas","description":"Sin contactar al SAT, crea una regla de prueba (CFDI, Recibidos, Vigente) y una solicitud ya Completada con los últimos CFDI timbrados del tenant (hasta 3) como XML, metadata y paquete, y emite el evento download_request.completed. Responde la solicitud creada; 400 en producción o si el tenant no tiene facturas timbradas. Docs: [ambiente de pruebas](https://docs.fiscalapi.com/download-info#ambiente-de-pruebas).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createEmployeeData","method":"POST","path":"/api/v4/people/{personId}/employee","tag":"People","summary":"Crear los datos de empleado de una persona","description":"Registra los datos del empleado para el recibo de nómina. Son obligatorios employerPersonId (la persona empleadora), employeeNumber, satContractTypeId, satTaxRegimeTypeId, satPaymentPeriodicityId y satPayrollStateId; employeePersonId es el personId de la ruta. Cada persona tiene un solo registro: si ya existe, responde 400 y se modifica con PUT. Docs: [datos de empleado](https://docs.fiscalapi.com/employee-data#crear-datos-de-empleado).","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"employerPersonId":{"type":"string"},"employeePersonId":{"type":"string"},"socialSecurityNumber":{"type":["null","string"]},"laborRelationStartDate":{"type":["null","string"],"format":"date-time"},"seniority":{"type":["null","string"]},"satContractTypeId":{"type":"string"},"satUnionizedStatusId":{"type":["null","string"]},"satTaxRegimeTypeId":{"type":"string"},"satWorkdayTypeId":{"type":["null","string"]},"satJobRiskId":{"type":["null","string"]},"satPaymentPeriodicityId":{"type":"string"},"employeeNumber":{"type":"string"},"satBankId":{"type":["null","string"]},"satPayrollStateId":{"type":"string"},"department":{"type":["null","string"]},"position":{"type":["null","string"]},"bankAccount":{"type":["null","string"]},"baseSalaryForContributions":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"integratedDailySalary":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"subcontractorRfc":{"type":["null","string"]},"timePercentage":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createEmployerData","method":"POST","path":"/api/v4/people/{personId}/employer","tag":"People","summary":"Crear los datos de empleador de una persona","description":"Registra los datos del empleador (patrón) para el recibo de nómina; personId del cuerpo es el de la ruta. Cada persona tiene un solo registro: si ya existe, responde 400 y se modifica con PUT. Docs: [datos de empleador](https://docs.fiscalapi.com/employer-data#crear-datos-de-empleador).","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"personId":{"type":["null","string"]},"employerRegistration":{"type":["null","string"]},"originEmployerTin":{"type":["null","string"]},"satFundSourceId":{"type":["null","string"]},"ownResourceAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createInvoice","method":"POST","path":"/api/v4/invoices","tag":"Invoices","summary":"Emitir (timbrar) una factura CFDI 4.0","description":"Timbra el CFDI ante el PAC y cobra 1 timbre del saldo; si el PAC lo rechaza, el timbre se reembolsa. Sin saldo, responde 403. typeCode y complement deciden el comprobante: factura de ingreso (I), nota de crédito o egreso (E), complemento de pago (P), recibo de nómina (N) o traslado (T), con carta porte o comercio exterior; globalInformation la vuelve factura global. Por valores, el cuerpo lleva los datos completos del emisor y del receptor; por referencias, issuer.id y recipient.id de personas ya registradas. Docs: [por valores](https://docs.fiscalapi.com/invoices-by-value#crear-factura-ingreso) y [por referencias](https://docs.fiscalapi.com/invoices-by-reference#crear-factura-ingreso).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"versionCode":{"type":["null","string"]},"paymentFormCode":{"type":["null","string"]},"paymentMethodCode":{"type":["null","string"]},"currencyCode":{"type":["null","string"]},"typeCode":{"type":["null","string"]},"expeditionZipCode":{"type":["null","string"]},"pacConfirmation":{"type":["null","string"]},"series":{"type":["null","string"]},"number":{"type":["null","string"]},"date":{"type":"string","format":"date-time"},"paymentConditions":{"type":["null","string"]},"exchangeRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"exportCode":{"type":["null","string"]},"issuer":{"oneOf":[{"type":"null"},{"type":"object","properties":{"id":{"type":["null","string"]},"tin":{"type":["null","string"]},"legalName":{"type":["null","string"]},"taxRegimeCode":{"type":["null","string"]},"employerData":{"oneOf":[{"type":"null"},{"type":"object","properties":{"curp":{"type":["null","string"]},"employerRegistration":{"type":["null","string"]},"originEmployerTin":{"type":["null","string"]},"satFundSourceId":{"type":["null","string"]},"ownResourceAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"}}}]},"taxCredentials":{"type":["null","array"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"base64File":{"type":["null","string"]},"fileType":{"oneOf":[{"type":"null"},{"type":"integer"}]},"password":{"type":["null","string"]}}}}}}]},"recipient":{"oneOf":[{"type":"null"},{"type":"object","properties":{"id":{"type":["null","string"]},"tin":{"type":["null","string"]},"legalName":{"type":["null","string"]},"zipCode":{"type":["null","string"]},"taxRegimeCode":{"type":["null","string"]},"cfdiUseCode":{"type":["null","string"]},"email":{"type":["null","string"]},"countryId":{"type":["null","string"]},"foreignTin":{"type":["null","string"]},"employeeData":{"oneOf":[{"type":"null"},{"type":"object","properties":{"curp":{"type":["null","string"]},"socialSecurityNumber":{"type":["null","string"]},"laborRelationStartDate":{"type":["null","string"],"format":"date-time"},"seniority":{"type":["null","string"]},"satContractTypeId":{"type":["null","string"]},"satUnionizedStatusId":{"type":["null","string"]},"satWorkdayTypeId":{"type":["null","string"]},"satTaxRegimeTypeId":{"type":["null","string"]},"employeeNumber":{"type":["null","string"]},"department":{"type":["null","string"]},"position":{"type":["null","string"]},"satJobRiskId":{"type":["null","string"]},"satPaymentPeriodicityId":{"type":["null","string"]},"satBankId":{"type":["null","string"]},"bankAccount":{"type":["null","string"]},"baseSalaryForContributions":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"integratedDailySalary":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"satPayrollStateId":{"type":["null","string"]},"subcontractorRfc":{"type":["null","string"]},"timePercentage":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]}}}]},"items":{"type":["null","array"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"itemCode":{"type":["null","string"]},"itemSku":{"type":["null","string"]},"quantity":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"unitOfMeasurementCode":{"type":["null","string"]},"description":{"type":["null","string"]},"unitPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"discount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxObjectCode":{"type":["null","string"]},"itemTaxes":{"type":"array","items":{"type":"object","properties":{"taxCode":{"type":["null","string"]},"taxTypeCode":{"type":["null","string"]},"taxRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxFlagCode":{"type":["null","string"]}}}},"onBehalfOf":{"oneOf":[{"type":"null"},{"type":"object","properties":{"tin":{"type":["null","string"]},"legalName":{"type":["null","string"]},"taxRegimeCode":{"type":["null","string"]},"zipCode":{"type":["null","string"]}}}]},"customsInfo":{"type":["null","array"],"items":{"type":"object","properties":{"customsNumber":{"type":["null","string"]}}}},"propertyInfo":{"type":["null","array"],"items":{"type":"object","properties":{"number":{"type":["null","string"]}}}},"parts":{"type":["null","array"],"items":{"type":"object","properties":{"itemCode":{"type":["null","string"]},"itemSku":{"type":["null","string"]},"quantity":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"unitOfMeasurementCode":{"type":["null","string"]},"description":{"type":["null","string"]},"unitPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"customsInfo":{"type":["null","array"],"items":{"type":"object","properties":{"customsNumber":{"type":["null","string"]}}}}}}},"ticketId":{"type":["null","string"]}}}},"globalInformation":{"oneOf":[{"type":"null"},{"type":"object","properties":{"periodicityCode":{"type":["null","string"]},"monthCode":{"type":["null","string"]},"year":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}}]},"relatedInvoices":{"type":["null","array"],"items":{"type":"object","properties":{"relationshipTypeCode":{"type":["null","string"]},"uuid":{"type":["null","string"]}}}},"complement":{"oneOf":[{"type":"null"},{"type":"object","properties":{"localTaxes":{"oneOf":[{"type":"null"},{"type":"object","properties":{"taxes":{"type":"array","items":{"type":"object","properties":{"taxName":{"type":["null","string"]},"taxRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxFlagCode":{"type":["null","string"]}}}}}}]},"payment":{"oneOf":[{"type":"null"},{"type":"object","properties":{"paymentDate":{"type":"string","format":"date-time"},"paymentFormCode":{"type":["null","string"]},"currencyCode":{"type":"string"},"exchangeRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"operationNumber":{"type":["null","string"]},"sourceBankTin":{"type":["null","string"]},"sourceBankAccount":{"type":["null","string"]},"targetBankTin":{"type":["null","string"]},"targetBankAccount":{"type":["null","string"]},"foreignBankName":{"type":["null","string"]},"paymentTypeCode":{"type":["null","string"]},"base64PaymentCertificate":{"type":["null","string"]},"paymentOriginalString":{"type":["null","string"]},"signatureValue":{"type":["null","string"]},"paidInvoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":["null","string"]},"uuid":{"type":["null","string"]},"series":{"type":["null","string"]},"number":{"type":["null","string"]},"currencyCode":{"type":["null","string"]},"partialityNumber":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"subTotal":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"previousBalance":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"paymentAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"remainingBalance":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxObjectCode":{"type":["null","string"]},"equivalence":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"exchangeRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"paidInvoiceTaxes":{"type":["null","array"],"items":{"type":"object","properties":{"base":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxCode":{"type":["null","string"]},"taxTypeCode":{"type":["null","string"]},"taxRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxFlagCode":{"type":["null","string"]}}}}}}}}}]},"payroll":{"oneOf":[{"type":"null"},{"type":"object","properties":{"version":{"type":"string"},"payrollTypeCode":{"type":["null","string"]},"paymentDate":{"type":"string","format":"date-time"},"initialPaymentDate":{"type":"string","format":"date-time"},"finalPaymentDate":{"type":"string","format":"date-time"},"daysPaid":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"earnings":{"oneOf":[{"type":"null"},{"type":"object","properties":{"earnings":{"type":["null","array"],"items":{"type":"object","properties":{"earningTypeCode":{"type":"string"},"code":{"type":"string"},"concept":{"type":"string"},"taxedAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"exemptAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"stockOptions":{"oneOf":[{"type":"null"},{"type":"object","properties":{"marketPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"grantPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]},"overtime":{"type":["null","array"],"items":{"type":"object","properties":{"days":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"hoursTypeCode":{"type":"string"},"extraHours":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"amountPaid":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}}}}},"otherPayments":{"type":["null","array"],"items":{"type":"object","properties":{"otherPaymentTypeCode":{"type":"string"},"code":{"type":"string"},"concept":{"type":"string"},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"subsidyCaused":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"balanceCompensation":{"oneOf":[{"type":"null"},{"type":"object","properties":{"favorableBalance":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"year":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int16"},"remainingFavorableBalance":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]}}}},"retirement":{"oneOf":[{"type":"null"},{"type":"object","properties":{"totalOneTime":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"totalInstallments":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"dailyAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"accumulableIncome":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"nonAccumulableIncome":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]},"severance":{"oneOf":[{"type":"null"},{"type":"object","properties":{"totalPaid":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"yearsOfService":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"lastMonthlySalary":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"accumulableIncome":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"nonAccumulableIncome":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]}},"additionalProperties":false}]},"deductions":{"type":["null","array"],"items":{"type":"object","properties":{"deductionTypeCode":{"type":"string"},"code":{"type":"string"},"concept":{"type":"string"},"amount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}},"disabilities":{"type":["null","array"],"items":{"type":"object","properties":{"disabilityDays":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"disabilityTypeCode":{"type":"string"},"monetaryAmount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}}},"additionalProperties":false}]},"cartaPorte":{"oneOf":[{"type":"null"},{"type":"object","properties":{"transpInternacId":{"type":"string"},"entradaSalidaMercId":{"type":["null","string"]},"paisOrigenDestinoId":{"type":["null","string"]},"viaEntradaSalidaId":{"type":["null","string"]},"totalDistRec":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"registroISTMOId":{"type":["null","string"]},"ubicacionPoloOrigenId":{"type":["null","string"]},"ubicacionPoloDestinoId":{"type":["null","string"]},"unidadPesoId":{"type":"string"},"pesoNetoTotal":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"cargoPorTasacion":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"logisticaInversaRecoleccionDevolucionId":{"type":["null","string"]},"regimenAduaneros":{"type":["null","array"],"items":{"type":"object","properties":{"regimenAduaneroId":{"type":"string"}}}},"ubicaciones":{"type":"array","items":{"type":"object","properties":{"tipoUbicacion":{"type":"string"},"idUbicacion":{"type":["null","string"]},"rfcRemitenteDestinatario":{"type":"string"},"nombreRemitenteDestinatario":{"type":["null","string"]},"numRegIdTrib":{"type":["null","string"]},"residenciaFiscalId":{"type":["null","string"]},"numEstacionId":{"type":["null","string"]},"nombreEstacion":{"type":["null","string"]},"navegacionTraficoId":{"type":["null","string"]},"fechaHoraSalidaLlegada":{"type":"string","format":"date-time"},"tipoEstacionId":{"type":["null","string"]},"distanciaRecorrida":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"domicilio":{"oneOf":[{"type":"null"},{"type":"object","properties":{"calle":{"type":["null","string"]},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"coloniaId":{"type":["null","string"]},"localidadId":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipioId":{"type":["null","string"]},"estadoId":{"type":"string"},"paisId":{"type":"string"},"codigoPostalId":{"type":"string"}}}]}}}},"mercancias":{"type":"array","items":{"type":"object","properties":{"bienesTranspId":{"type":"string"},"claveSTCCId":{"type":["null","string"]},"descripcion":{"type":"string"},"cantidad":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"claveUnidadId":{"type":"string"},"unidad":{"type":["null","string"]},"dimensiones":{"type":["null","string"]},"materialPeligrosoId":{"type":["null","string"]},"cveMaterialPeligrosoId":{"type":["null","string"]},"embalajeId":{"type":["null","string"]},"descripEmbalaje":{"type":["null","string"]},"sectorCOFEPRISId":{"type":["null","string"]},"nombreIngredienteActivo":{"type":["null","string"]},"nomQuimico":{"type":["null","string"]},"denominacionGenericaProd":{"type":["null","string"]},"denominacionDistintivaProd":{"type":["null","string"]},"fabricante":{"type":["null","string"]},"fechaCaducidad":{"type":["null","string"],"format":"date-time"},"loteMedicamento":{"type":["null","string"]},"formaFarmaceuticaId":{"type":["null","string"]},"condicionesEspTranspId":{"type":["null","string"]},"registroSanitarioFolioAutorizacion":{"type":["null","string"]},"permisoImportacion":{"type":["null","string"]},"folioImpoVUCEM":{"type":["null","string"]},"numCAS":{"type":["null","string"]},"razonSocialEmpImp":{"type":["null","string"]},"numRegSanPlagCOFEPRIS":{"type":["null","string"]},"datosFabricante":{"type":["null","string"]},"datosFormulador":{"type":["null","string"]},"datosMaquilador":{"type":["null","string"]},"usoAutorizado":{"type":["null","string"]},"pesoEnKg":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"valorMercancia":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"monedaId":{"type":["null","string"]},"fraccionArancelariaId":{"type":["null","string"]},"uuidComercioExt":{"type":["null","string"]},"tipoMateriaId":{"type":["null","string"]},"descripcionMateria":{"type":["null","string"]},"documentacionAduanera":{"type":["null","array"],"items":{"type":"object","properties":{"tipoDocumentoId":{"type":"string"},"numPedimento":{"type":["null","string"]},"identDocAduanero":{"type":["null","string"]},"rfcImpo":{"type":["null","string"]}}}},"guiasIdentificacion":{"type":["null","array"],"items":{"type":"object","properties":{"numeroGuiaIdentificacion":{"type":"string"},"descripGuiaIdentificacion":{"type":"string"},"pesoGuiaIdentificacion":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}},"cantidadTransporta":{"type":["null","array"],"items":{"type":"object","properties":{"cantidad":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"idOrigen":{"type":"string"},"idDestino":{"type":"string"},"cvesTransporteId":{"type":["null","string"]}}}},"detalleMercancia":{"oneOf":[{"type":"null"},{"type":"object","properties":{"unidadPesoMercId":{"type":"string"},"pesoBruto":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"pesoNeto":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"pesoTara":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"numPiezas":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"}}}]}}}},"autotransporte":{"oneOf":[{"type":"null"},{"type":"object","properties":{"permSCTId":{"type":"string"},"numPermisoSCT":{"type":"string"},"configVehicularId":{"type":"string"},"pesoBrutoVehicular":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"placaVM":{"type":"string"},"anioModeloVM":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"aseguraRespCivil":{"type":"string"},"polizaRespCivil":{"type":"string"},"aseguraMedAmbiente":{"type":["null","string"]},"polizaMedAmbiente":{"type":["null","string"]},"aseguraCarga":{"type":["null","string"]},"polizaCarga":{"type":["null","string"]},"primaSeguro":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"remolques":{"type":["null","array"],"items":{"type":"object","properties":{"subTipoRemId":{"type":"string"},"placa":{"type":"string"}}}}}}]},"transporteMaritimo":{"oneOf":[{"type":"null"},{"type":"object","properties":{"permSCTId":{"type":["null","string"]},"numPermisoSCT":{"type":["null","string"]},"nombreAseg":{"type":["null","string"]},"numPolizaSeguro":{"type":["null","string"]},"tipoEmbarcacionId":{"type":"string"},"matricula":{"type":"string"},"numeroOMI":{"type":"string"},"anioEmbarcacion":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"format":"int32"},"nombreEmbarc":{"type":["null","string"]},"nacionalidadEmbarcId":{"type":"string"},"unidadesDeArqBruto":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"tipoCargaId":{"type":"string"},"eslora":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"manga":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"calado":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"puntal":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"lineaNaviera":{"type":["null","string"]},"nombreAgenteNaviero":{"type":"string"},"numAutorizacionNavieroId":{"type":"string"},"numViaje":{"type":["null","string"]},"numConocEmbarc":{"type":["null","string"]},"permisoTempNavegacion":{"type":["null","string"]},"contenedores":{"type":["null","array"],"items":{"type":"object","properties":{"tipoContenedorId":{"type":"string"},"matriculaContenedor":{"type":["null","string"]},"numPrecinto":{"type":["null","string"]},"idCCPRelacionado":{"type":["null","string"]},"placaVMCCP":{"type":["null","string"]},"fechaCertificacionCCP":{"type":["null","string"],"format":"date-time"},"remolquesCCP":{"type":["null","array"],"items":{"type":"object","properties":{"subTipoRemCCPId":{"type":"string"},"placaCCP":{"type":"string"}}}}}}}}}]},"transporteAereo":{"oneOf":[{"type":"null"},{"type":"object","properties":{"permSCTId":{"type":"string"},"numPermisoSCT":{"type":"string"},"matriculaAeronave":{"type":["null","string"]},"nombreAseg":{"type":["null","string"]},"numPolizaSeguro":{"type":["null","string"]},"numeroGuia":{"type":"string"},"lugarContrato":{"type":["null","string"]},"codigoTransportistaId":{"type":"string"},"rfcEmbarcador":{"type":["null","string"]},"numRegIdTribEmbarc":{"type":["null","string"]},"residenciaFiscalEmbarcId":{"type":["null","string"]},"nombreEmbarcador":{"type":["null","string"]}}}]},"transporteFerroviario":{"oneOf":[{"type":"null"},{"type":"object","properties":{"tipoDeServicioId":{"type":"string"},"tipoDeTraficoId":{"type":"string"},"nombreAseg":{"type":["null","string"]},"numPolizaSeguro":{"type":["null","string"]},"derechosDePaso":{"type":["null","array"],"items":{"type":"object","properties":{"tipoDerechoDePasoId":{"type":"string"},"kilometrajePagado":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}},"carros":{"type":"array","items":{"type":"object","properties":{"tipoCarroId":{"type":"string"},"matriculaCarro":{"type":"string"},"guiaCarro":{"type":"string"},"toneladasNetasCarro":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"contenedores":{"type":["null","array"],"items":{"type":"object","properties":{"tipoContenedorId":{"type":"string"},"pesoContenedorVacio":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"pesoNetoMercancia":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}}}}}}}]},"tiposFigura":{"type":["null","array"],"items":{"type":"object","properties":{"tipoFiguraId":{"type":"string"},"rfcFigura":{"type":["null","string"]},"numLicencia":{"type":["null","string"]},"nombreFigura":{"type":"string"},"numRegIdTribFigura":{"type":["null","string"]},"residenciaFiscalFiguraId":{"type":["null","string"]},"partesTransporte":{"type":["null","array"],"items":{"type":"object","properties":{"parteTransporteId":{"type":"string"}}}},"domicilio":{"oneOf":[{"type":"null"},{"type":"object","properties":{"calle":{"type":["null","string"]},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"coloniaId":{"type":["null","string"]},"localidadId":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipioId":{"type":["null","string"]},"estadoId":{"type":"string"},"paisId":{"type":"string"},"codigoPostalId":{"type":"string"}}}]}}}}}}]},"comercioExterior":{"oneOf":[{"type":"null"},{"type":"object","properties":{"motivoTrasladoId":{"type":["null","string"]},"claveDePedimentoId":{"type":"string"},"certificadoOrigen":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"numCertificadoOrigen":{"type":["null","string"]},"numeroExportadorConfiable":{"type":["null","string"]},"incotermId":{"type":["null","string"]},"observaciones":{"type":["null","string"]},"tipoCambioUSD":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"emisor":{"oneOf":[{"type":"null"},{"type":"object","properties":{"curp":{"type":["null","string"]},"domicilio":{"type":"object","properties":{"calle":{"type":"string"},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"coloniaId":{"type":["null","string"]},"localidadId":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipioId":{"type":["null","string"]},"estadoId":{"type":"string"},"paisId":{"type":"string"},"codigoPostalId":{"type":"string"}}}}}]},"receptor":{"oneOf":[{"type":"null"},{"type":"object","properties":{"numRegIdTrib":{"type":["null","string"]},"domicilio":{"oneOf":[{"type":"null"},{"type":"object","properties":{"calle":{"type":"string"},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"colonia":{"type":["null","string"]},"localidad":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipio":{"type":["null","string"]},"estado":{"type":"string"},"paisId":{"type":"string"},"codigoPostal":{"type":"string"}}}]}}}]},"propietarios":{"type":["null","array"],"items":{"type":"object","properties":{"numRegIdTrib":{"type":"string"},"residenciaFiscalId":{"type":"string"}}}},"destinatarios":{"type":["null","array"],"items":{"type":"object","properties":{"numRegIdTrib":{"type":["null","string"]},"nombre":{"type":["null","string"]},"domicilios":{"type":"array","items":{"type":"object","properties":{"calle":{"type":"string"},"numeroExterior":{"type":["null","string"]},"numeroInterior":{"type":["null","string"]},"colonia":{"type":["null","string"]},"localidad":{"type":["null","string"]},"referencia":{"type":["null","string"]},"municipio":{"type":["null","string"]},"estado":{"type":"string"},"paisId":{"type":"string"},"codigoPostal":{"type":"string"}}}}}}},"mercancias":{"type":"array","items":{"type":"object","properties":{"noIdentificacion":{"type":"string"},"fraccionArancelariaId":{"type":["null","string"]},"cantidadAduana":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"unidadAduanaId":{"type":["null","string"]},"valorUnitarioAduana":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"valorDolares":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"descripcionesEspecificas":{"type":["null","array"],"items":{"type":"object","properties":{"marca":{"type":"string"},"modelo":{"type":["null","string"]},"subModelo":{"type":["null","string"]},"numeroSerie":{"type":["null","string"]}}}}}}}}}]}}}]},"metadata":{"type":["null","object"],"additionalProperties":{"type":"string"}}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createPerson","method":"POST","path":"/api/v4/people","tag":"People","summary":"Crear una persona: emisor o cliente receptor","description":"Da de alta una persona para usar su id como emisor (issuer.id) o cliente receptor (recipient.id) al facturar por referencias, o como empleado o empleador en nómina. legalName, email y password son obligatorios y el correo no debe estar registrado; los datos fiscales van en tin, satTaxRegimeId, satCfdiUseId y zipCode. Docs: [emisores](https://docs.fiscalapi.com/issuers#crear-emisor) y [receptores](https://docs.fiscalapi.com/recipients#crear-receptor).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"legalName":{"type":["null","string"]},"email":{"type":["null","string"]},"password":{"type":["null","string"]},"phoneNumber":{"type":["null","string"]},"satTaxRegimeId":{"type":["null","string"]},"userTypeId":{"type":["null","string"]},"satCfdiUseId":{"type":["null","string"]},"tin":{"type":["null","string"]},"zipCode":{"type":["null","string"]},"base64Photo":{"type":["null","string"]},"taxPassword":{"type":["null","string"]},"curp":{"type":["null","string"]},"countryId":{"type":["null","string"]},"foreignTin":{"type":["null","string"]}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createProduct","method":"POST","path":"/api/v4/products","tag":"Products","summary":"Crear un producto","description":"Da de alta un producto o servicio: description (hasta 255 caracteres) y unitPrice (mayor que 0) son obligatorios. Si se omiten, la clave de unidad (satUnitMeasurementId) es H87, el objeto de impuesto (satTaxObjectId) 02, la clave de producto o servicio (satProductCodeId) 01010101 y productTaxes trae IVA trasladado al 16 %. Cada clave debe existir en su catálogo del SAT y cada impuesto (taxId, taxTypeId, taxFlagId, rate) va una sola vez; si no, responde 400. Docs: [crear producto](https://docs.fiscalapi.com/products#crear-producto).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":["null","string"]},"unitPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"satUnitMeasurementId":{"type":["null","string"]},"satTaxObjectId":{"type":["null","string"]},"satProductCodeId":{"type":["null","string"]},"productTaxes":{"type":["null","array"],"items":{"type":"object","x-recursive":"CreateCommand"}}}}}},"required":true},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createTaxFile","method":"POST","path":"/api/v4/tax-files","tag":"TaxFiles","summary":"Subir un certificado CSD o FIEL","description":"Sube el certificado (.cer) o la llave privada (.key) del CSD o de la FIEL de una persona: personId, base64File, fileType y password, la contraseña de la llave. El certificado debe ser del RFC de la persona. Un par completo requiere dos peticiones con el mismo personId, una con el .cer y otra con la .key. Docs: [subir certificados](https://docs.fiscalapi.com/tax-files#subir-certificados).","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"null"},{"type":"object","properties":{"description":{"type":["null","string"]},"unitPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"satUnitMeasurementId":{"type":["null","string"]},"satTaxObjectId":{"type":["null","string"]},"satProductCodeId":{"type":["null","string"]},"productTaxes":{"type":["null","array"],"items":{"type":"object","x-recursive":"CreateCommand"}}}}]}}}},"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createTicket","method":"POST","path":"/api/v4/tickets","tag":"Tickets","summary":"Crear un ticket","description":"Registra una venta pagada del punto de venta y cobra 1 crédito de ticket. Responde el código del ticket y la URL del portal para su QR. Exige el feature Auto CFDI. 201: el ticket nuevo. 200: el ticket original, porque la Idempotency-Key ya se usó con el mismo cuerpo (no cobra otra vez). 400: el cuerpo no tiene la estructura esperada o le faltan datos. 401: sin API key o JWT válidos. 403: la persona no tiene el permiso Tickets.Create, el tenant no tiene Auto CFDI o no hay saldo de créditos de ticket. 409: el emisor ya tiene un ticket activo con esa serie y folio (data.existingTicketId), u otro ticket con la misma serie y folio o la misma Idempotency-Key cambió al mismo tiempo. 422: una regla fiscal o aritmética no se cumple, el emisor no puede facturar, o la Idempotency-Key ya se usó con otro cuerpo.","parameters":[{"name":"Idempotency-Key","in":"header","description":"Llave de idempotencia opcional: repetirla con el mismo cuerpo devuelve el ticket original.","schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"issuer":{"oneOf":[{"type":"null"},{"type":"object","properties":{"id":{"type":["null","string"]}}}]},"folio":{"type":["null","string"]},"series":{"type":["null","string"]},"paymentDate":{"format":"date-time"},"paymentFormCode":{"type":["null","string"]},"currencyCode":{"type":["null","string"]},"exchangeRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["null","number","string"],"format":"double"},"expeditionZipCode":{"type":["null","string"]},"total":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"items":{"type":["null","array"],"items":{"type":"object","properties":{"itemCode":{"type":["null","string"]},"itemSku":{"type":["null","string"]},"quantity":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"unitOfMeasurementCode":{"type":["null","string"]},"description":{"type":["null","string"]},"unitPrice":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"discount":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxObjectCode":{"type":["null","string"]},"itemTaxes":{"type":["null","array"],"items":{"type":"object","properties":{"taxCode":{"type":["null","string"]},"taxTypeCode":{"type":["null","string"]},"taxRate":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"taxFlagCode":{"type":["null","string"]}}}}}}}}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"required":["id","ticketCode","qrUrl","status","selfInvoiceEligible","eligibleUntil","subtotal","totalTransferredTaxes","totalWithheldTaxes","total"],"type":"object","properties":{"id":{"type":"string"},"ticketCode":{"type":"string"},"qrUrl":{"type":"string"},"status":{"enum":["pending","invoicing","invoiced","globalizing","globalized","cancelled"],"description":"Estado del ticket. pending: sin factura; el receptor lo puede autofacturar o el tenant incluirlo en una global. invoicing: el receptor lo está timbrando. invoiced: tiene su factura individual (invoiceId). globalizing: una factura global lo está timbrando. globalized: está en una factura global (globalInvoiceId). cancelled: el tenant lo canceló antes de facturarlo; es final y libera la serie y el folio."},"selfInvoiceEligible":{"type":"boolean"},"eligibleUntil":{"type":["null","string"],"format":"date-time"},"subtotal":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"totalTransferredTaxes":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"totalWithheldTaxes":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"total":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"required":["id","ticketCode","qrUrl","status","selfInvoiceEligible","eligibleUntil","subtotal","totalTransferredTaxes","totalWithheldTaxes","total"],"type":"object","properties":{"id":{"type":"string"},"ticketCode":{"type":"string"},"qrUrl":{"type":"string"},"status":{"enum":["pending","invoicing","invoiced","globalizing","globalized","cancelled"],"description":"Estado del ticket. pending: sin factura; el receptor lo puede autofacturar o el tenant incluirlo en una global. invoicing: el receptor lo está timbrando. invoiced: tiene su factura individual (invoiceId). globalizing: una factura global lo está timbrando. globalized: está en una factura global (globalInvoiceId). cancelled: el tenant lo canceló antes de facturarlo; es final y libera la serie y el folio."},"selfInvoiceEligible":{"type":"boolean"},"eligibleUntil":{"type":["null","string"],"format":"date-time"},"subtotal":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"totalTransferredTaxes":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"totalWithheldTaxes":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"},"total":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$","type":["number","string"],"format":"double"}}}]},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"required":["existingTicketId"],"type":"object","properties":{"existingTicketId":{"type":"string"}}}]},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"createWebhook","method":"POST","path":"/api/v4/webhooks","tag":"Webhooks","summary":"Crear un webhook","description":"Da de alta una URL que recibe los eventos suscritos del tenant (o de las personas indicadas). 201: el webhook con su secret whsec_…, la única respuesta que lo trae sin pedirlo; durante una suplantación no lo trae. 400: la URL no es https absoluta sin usuario ni contraseña, apunta a una dirección no permitida, un tipo de evento no existe, '*' va con otros tipos, una persona no es del tenant, son más de 100 personas o el tenant ya tiene 16 webhooks de URL. 401: sin API key o JWT válidos. 403: la persona no tiene el permiso Webhooks.Manage. 409: otro cambio a los webhooks del tenant está en curso; reintenta.","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":["null","string"],"description":"URL https absoluta que recibe las entregas, sin usuario ni contraseña."},"description":{"type":["null","string"],"description":"Texto libre del tenant, hasta 256 caracteres."},"enabledEvents":{"type":["null","array"],"items":{"type":"string"},"description":"Tipos de evento suscritos, o solo \"*\" para recibirlos todos."},"personIds":{"type":["null","array"],"items":{"type":"string"},"description":"Personas del tenant cuyos eventos recibe; sin ellas (o vacío), las de todas."}}}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"type":"object","properties":{"secret":{"type":["null","string"]},"id":{"type":"string"},"kind":{"enum":["url","cliListener"]},"url":{"type":["null","string"]},"description":{"type":"string"},"enabledEvents":{"type":"array","items":{"type":"string"}},"personIds":{"type":["null","array"],"items":{"type":"string"}},"status":{"enum":["enabled","disabled"]},"disabledReason":{"oneOf":[{"type":"null"},{"enum":["manual","gone","failingTooLong",null]}]},"disabledAt":{"type":["null","string"],"format":"date-time"},"failingSince":{"type":["null","string"],"format":"date-time"},"listenerPersonId":{"type":["null","string"]},"sessionExpiresAt":{"type":["null","string"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":["null","string"],"format":"date-time"}}}]},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"deleteDownloadRequest","method":"DELETE","path":"/api/v4/download-requests/{id}","tag":"DownloadRequests","summary":"Eliminar una solicitud de descarga masiva","description":"Borra de forma definitiva la solicitud con sus paquetes, XML y metadata; 404 si no existe en el tenant. Docs: [eliminar solicitud](https://docs.fiscalapi.com/download-requests#eliminar-solicitud-por-id).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"deleteDownloadRule","method":"DELETE","path":"/api/v4/download-rules/{id}","tag":"DownloadRules","summary":"Eliminar una regla de descarga masiva","description":"Borra de forma definitiva la regla con todas sus solicitudes, paquetes, XML y metadata, y recalcula los asientos de Descarga CFDI ocupados. Responde 404 si no existe en el tenant y 403 si la regla es del owner del tenant y la persona autenticada no lo es. Docs: [eliminar regla](https://docs.fiscalapi.com/download-rules#eliminar-regla).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"deleteEmployeeData","method":"DELETE","path":"/api/v4/people/{personId}/employee","tag":"People","summary":"Eliminar los datos de empleado de una persona","description":"Borra los datos de empleado; la persona se conserva. Responde 400 (data false) si la persona no los tenía. Docs: [datos de empleado](https://docs.fiscalapi.com/employee-data#eliminar-datos-de-empleado).","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"deleteEmployerData","method":"DELETE","path":"/api/v4/people/{personId}/employer","tag":"People","summary":"Eliminar los datos de empleador de una persona","description":"Borra los datos de empleador; la persona se conserva. Responde 400 (data false) si la persona no los tenía. Docs: [datos de empleador](https://docs.fiscalapi.com/employer-data#eliminar-datos-de-empleador).","parameters":[{"name":"personId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"deletePerson","method":"DELETE","path":"/api/v4/people/{id}","tag":"People","summary":"Eliminar una persona","description":"Da de baja la persona, libera su correo y revoca sus API keys. Valida en este orden: 400 si tiene reglas de descarga aprobadas o certificados (elimínalos primero) y 403 si es el owner, que nunca se puede eliminar. Docs: [emisores](https://docs.fiscalapi.com/issuers#eliminar-emisor) y [receptores](https://docs.fiscalapi.com/recipients#eliminar-receptor).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"deleteProduct","method":"DELETE","path":"/api/v4/products/{id}","tag":"Products","summary":"Eliminar un producto","description":"Da de baja el producto: ya no aparece al listar y obtenerlo responde 404. Responde 404 si el producto no existe. Docs: [eliminar producto](https://docs.fiscalapi.com/products#eliminar-producto).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"deleteTaxFile","method":"DELETE","path":"/api/v4/tax-files/{id}","tag":"TaxFiles","summary":"Eliminar un certificado","description":"Da de baja un certificado o una llave privada; responde 400 (data false) si no existe o la persona autenticada no lo puede ver. Un certificado no se edita: sube uno nuevo y elimina el anterior. Docs: [eliminar certificado](https://docs.fiscalapi.com/tax-files#eliminar-certificado).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"deleteWebhook","method":"DELETE","path":"/api/v4/webhooks/{id}","tag":"Webhooks","summary":"Borrar un webhook","description":"Da de baja el webhook (de URL o una escucha de CLI) y cierra sus entregas pendientes; su historial de entregas se conserva. 401: sin API key o JWT válidos. 403: la persona no tiene el permiso Webhooks.Manage. 404: no existe un webhook con ese id en el tenant (una escucha de CLI solo existe para su persona y el owner), o el id no es un GUID. 409: otro cambio a los webhooks del tenant está en curso; reintenta.","parameters":[{"name":"id","in":"path","description":"Id del webhook.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"boolean"},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"downloadPortalTicketInvoice","method":"GET","path":"/api/v4/portal/downloads/{downloadToken}/{format}","tag":"Portal","summary":"Descargar la factura de un ticket","description":"El XML o el PDF de la autofactura como adjunto (<uuid>.xml o <uuid>.pdf), sin caché. Anónimo: el token de descarga es la credencial. 404: el 404 genérico del portal, el mismo cuerpo para todo lo que no existe o no está disponible (no revela tenants ni tickets). También un token inválido o vencido, o un formato desconocido. 429: demasiadas solicitudes desde la misma IP; el header Retry-After dice en cuántos segundos reintentar.","parameters":[{"name":"downloadToken","in":"path","description":"El token de descarga que entregan la autofactura y la recuperación.","required":true,"schema":{"type":"string"}},{"name":"format","in":"path","description":"El formato del archivo: xml o pdf.","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/xml":{"schema":{"type":"object","properties":{"fileContents":{"type":"string","format":"byte"},"contentType":{"type":["null","string"]},"fileDownloadName":{"type":["null","string"]},"lastModified":{"type":["null","string"],"format":"date-time"},"entityTag":{"oneOf":[{"type":"null"},{"type":"object","properties":{"tag":{"type":"object","properties":{"buffer":{"type":["null","string"]},"offset":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"length":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"value":{"type":["null","string"]},"hasValue":{"type":"boolean"}}},"isWeak":{"type":"boolean"}}}]},"enableRangeProcessing":{"type":"boolean"}}}},"application/pdf":{"schema":{"type":"object","properties":{"fileContents":{"type":"string","format":"byte"},"contentType":{"type":["null","string"]},"fileDownloadName":{"type":["null","string"]},"lastModified":{"type":["null","string"],"format":"date-time"},"entityTag":{"oneOf":[{"type":"null"},{"type":"object","properties":{"tag":{"type":"object","properties":{"buffer":{"type":["null","string"]},"offset":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"length":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"value":{"type":["null","string"]},"hasValue":{"type":"boolean"}}},"isWeak":{"type":"boolean"}}}]},"enableRangeProcessing":{"type":"boolean"}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[],"securitySchemes":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getApiKey","method":"GET","path":"/api/v4/apikeys/{id}","tag":"ApiKeys","summary":"Obtener una API key","description":"Una API key por su id, con su valor (apiKeyValue), la persona a la que pertenece (personId) y su estado (apiKeyStatus: 1 activa, 0 deshabilitada). Responde 404 si no existe o si es de otra persona y la persona autenticada no es el owner del tenant. Docs: [obtener API key](https://docs.fiscalapi.com/api-keys#obtener-api-key-por-id).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"details","in":"query","schema":{"type":"boolean","default":false}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getAutoInvoiceConsumptionReport","method":"GET","path":"/api/v4/auto-invoice/reports/consumption","tag":"AutoInvoice","summary":"Obtener el reporte de consumo de Auto CFDI","description":"Los tickets pagados en el periodo por emisor y estado, y los créditos de ticket que consumió cada persona que los pagó. El periodo es obligatorio, en fechas civiles de México, de un año como máximo. No exige el feature Auto CFDI. 400: falta el periodo, una fecha es inválida, el periodo está invertido o pasa de un año. 401: sin API key o JWT válidos. 403: la persona no tiene el permiso Tickets.Read. 404: personId no es una persona del tenant.","parameters":[{"name":"From","in":"query","description":"Primer día del periodo (incluido), fecha civil de México YYYY-MM-DD; el periodo es de un año como máximo.","schema":{"type":"string"}},{"name":"To","in":"query","description":"Último día del periodo (incluido), fecha civil de México YYYY-MM-DD.","schema":{"type":"string"}},{"name":"PersonId","in":"query","description":"Id de una persona del tenant: solo sus tickets como emisora y sus créditos como pagadora.","schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"required":["from","to","issuers","payers","totals"],"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"issuers":{"type":"array","items":{"required":["personId","tin","legalName","ingested","pending","inProgress","invoiced","globalized","cancelled"],"type":"object","properties":{"personId":{"type":"string"},"tin":{"type":["null","string"]},"legalName":{"type":["null","string"]},"ingested":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"pending":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"inProgress":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"invoiced":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"globalized":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"cancelled":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}}},"payers":{"type":"array","items":{"required":["personId","tin","legalName","ticketCreditsConsumed"],"type":"object","properties":{"personId":{"type":"string"},"tin":{"type":["null","string"]},"legalName":{"type":["null","string"]},"ticketCreditsConsumed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}}},"totals":{"required":["ingested","pending","inProgress","invoiced","globalized","cancelled","ticketCreditsConsumed"],"type":"object","properties":{"ingested":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"pending":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"inProgress":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"invoiced":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"globalized":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"cancelled":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"},"ticketCreditsConsumed":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}}}}}]},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getAutoInvoicePortalName","method":"GET","path":"/api/v4/auto-invoice/portal-name","tag":"AutoInvoice","summary":"Obtener el nombre del portal","description":"El nombre vigente del portal de autofactura del tenant, cuándo se asignó y desde cuándo puede cambiarse otra vez. Sin nombre, sus campos van en null. No exige el feature Auto CFDI. 401: sin API key o JWT válidos. 403: la persona no tiene el permiso AutoInvoice.Read.","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"required":["name","assignedAt","nextChangeAllowedAt"],"type":"object","properties":{"name":{"type":["null","string"]},"assignedAt":{"type":["null","string"],"format":"date-time"},"nextChangeAllowedAt":{"type":["null","string"],"format":"date-time"}}}]},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getAutoInvoicePortalNameAvailability","method":"GET","path":"/api/v4/auto-invoice/portal-names/availability","tag":"AutoInvoice","summary":"Consultar si un nombre de portal está disponible","description":"Si el tenant puede usar un nombre de portal. Un nombre inválido, reservado o de otro tenant responde available: false con su razón (no es un error); uno que ya es del tenant está disponible. Exige el feature Auto CFDI. 401: sin API key o JWT válidos. 403: la persona no tiene el permiso AutoInvoice.Manage (owner) o el tenant no tiene Auto CFDI.","parameters":[{"name":"Name","in":"query","description":"El nombre de portal a consultar; uno inválido responde available: false con su razón, no un 400.","schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"required":["name","available","reason"],"type":"object","properties":{"name":{"type":"string"},"available":{"type":"boolean"},"reason":{"oneOf":[{"type":"null"},{"enum":["invalidFormat","reserved","taken",null],"description":"Por qué el nombre de portal no está disponible. invalidFormat: no cumple el formato (largo, caracteres o guiones). reserved: es un nombre reservado. taken: otro tenant lo tiene."}]}}}]},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getAutoInvoiceSettings","method":"GET","path":"/api/v4/auto-invoice/settings","tag":"AutoInvoice","summary":"Obtener la configuración de Auto CFDI","description":"La ventana de autofactura (si un ticket pagado en otro mes o en otro año todavía se puede facturar) y la URL del aviso de privacidad del portal. Un tenant que nunca la guardó recibe la ventana cerrada y sin aviso. No exige el feature Auto CFDI. 401: sin API key o JWT válidos. 403: la persona no tiene el permiso AutoInvoice.Read.","parameters":[{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"required":["allowBillingOutsideMonth","allowBillingOutsideYear","privacyNoticeUrl"],"type":"object","properties":{"allowBillingOutsideMonth":{"type":"boolean"},"allowBillingOutsideYear":{"type":"boolean"},"privacyNoticeUrl":{"type":["null","string"]}}}]},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"data":{},"succeeded":{"type":"boolean"},"message":{"type":["null","string"]},"details":{"type":["null","string"]},"httpStatusCode":{"type":"integer"},"traceIdentifier":{"type":["null","string"]}}}}}}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getCatalogRecord","method":"GET","path":"/api/v4/catalogs/{catalogName}/key/{id}","tag":"Catalogs","summary":"Obtener un registro de un catálogo","description":"Un registro de un catálogo por su clave: catalogName es el nombre del catálogo (p. ej. SatTaxRegimes) e id es la clave del SAT (p. ej. 601 en c_RegimenFiscal). Responde 404 si el catálogo no existe o si la clave no está en él. Docs: [obtener registro por ID](https://docs.fiscalapi.com/catalogs#obtener-registro-por-id).","parameters":[{"name":"catalogName","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getDownloadRequest","method":"GET","path":"/api/v4/download-requests/{id}","tag":"DownloadRequests","summary":"Obtener una solicitud de descarga masiva","description":"Una solicitud por su id, con su estado en FiscalAPI (downloadRequestStatus: Esperando SAT, Esperando API, Completada o Abandonada) y en el SAT (satRequestStatus). Consúltala hasta que sea Completada para leer sus XML, su metadata o sus paquetes; 404 si no existe en el tenant. Docs: [obtener solicitud](https://docs.fiscalapi.com/download-requests#obtener-solicitud-por-id).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getDownloadRequestPackage","method":"GET","path":"/api/v4/download-requests/{id}/package","tag":"DownloadRequests","summary":"Descargar los paquetes de una solicitud de descarga masiva","description":"Los paquetes zip que entregó el SAT para la solicitud, cada uno en base64File con fileName <satPackageId>.zip. Solo con la solicitud en Completada: en otro estado responde 425 (Too Early) con el encabezado Retry-After: 1800, y 404 si no existe. Docs: [descargar paquete](https://docs.fiscalapi.com/download-requests#descargar-paquete-por-id).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"operationId":"getDownloadRequestRawRequest","method":"GET","path":"/api/v4/download-requests/{id}/raw-request","tag":"DownloadRequests","summary":"Descargar la última petición enviada al SAT por una solicitud","description":"El XML de la última petición que FiscalAPI envió al SAT por la solicitud (al crearla o al verificarla), en base64File con fileName RawRequest_<id>.xml; 404 si no existe. Docs: [descargar SAT request](https://docs.fiscalapi.com/download-requests#descargar-sat-request-por-id).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-TIME-ZONE","in":"header","description":"Zona horaria IANA de las fechas sin zona del cuerpo JSON: el request las lee y la respuesta las escribe en ella. Si falta o no es válida, America/Mexico_City. No aplica a los campos que la operación documenta en UTC o en hora civil.","example":"America/Mexico_City","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"ApiKey":[],"TenantKey":[]}],"securitySchemes":{"ApiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"},"TenantKey":{"type":"apiKey","name":"X-TENANT-KEY","in":"header"}}}
|