{
  "endpoint": "/api/internal/orchestrator/jobs",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer <token-da-controladora>",
    "Content-Type": "application/json"
  },
  "dueOptionsEndpoint": "/api/internal/fiscal-documents/due-options",
  "payloadExampleOverdueBatch": {
    "controladoraId": 1,
    "commandType": "fetch_company_documents",
    "companyId": 3,
    "companyKey": "00000000285056 - DROGA MIL COMERCIO DE MEDICAMENTOS LTDA",
    "cnpj": "34754978000160",
    "year": 2026,
    "overdueOnly": true,
    "overdueGuideLimit": 2,
    "consumeAvailableDueDates": true,
    "priority": 80,
    "requestedBy": "VC Digital",
    "notes": "Atualizar guias vencidas com datas reais da SEFIN"
  },
  "payloadExampleSingleDocument": {
    "controladoraId": 1,
    "commandType": "fetch_numero_documento",
    "companyId": 97,
    "cnpj": "0000006559719",
    "numeroDocumento": "20261600483103",
    "parcela": "00",
    "year": 2026,
    "targetDueDate": "2026-03-31",
    "consumeAvailableDueDates": true,
    "force": true,
    "requestedBy": "VC Digital",
    "notes": "Reemissao pontual para envio ao cliente"
  },
  "desktopBehavior": {
    "setCorrectCompany": true,
    "useOnlyOverdueGuides": true,
    "maxOverdueGuidesPerJob": 2,
    "consumeOnlySefinAvailableDueDates": true,
    "preferListedDueDateWhenAvailable": true,
    "replaceFebruary2026OverdueWith20260331WhenAvailable": true,
    "singleDocumentModeStopsAfterRequestedGuide": true,
    "solveCaptcha": true,
    "downloadDareAndExtrato": true,
    "syncBackToIcmsSaas": true
  },
  "validatedSnapshot": {
    "capturedAt": "2026-03-16T13:16:58",
    "impactedOriginal31032026Guides": 20,
    "provenFebruary2026To31032026Guides": 12,
    "catalogEntriesCorrectedOrFlagged": 77
  },
  "fiscalFieldsToConsumeAfterRefresh": [
    "dueDate",
    "dueDateReal",
    "dueDateSource",
    "vencimentoOriginal",
    "vencimentoEmitido",
    "availableDueDates",
    "recalculada"
  ],
  "jobFollowUp": {
    "jobsEndpoint": "/api/internal/orchestrator/jobs",
    "recommendedFilters": [
      "numeroDocumento",
      "parcela",
      "limit"
    ]
  }
}
