{
 "openapi": "3.1.0",
 "info": {
  "title": "Migration Cockpit (Platform)",
  "version": "20261030b",
  "description": "The cutover as a numbered plan, one step at a time: where in the old system each extract comes from — with the program or query to produce it — then upload, read the rejections, and load, post, archive or post the balances."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/platform/migration/status": {
   "get": {
    "summary": "Status",
    "operationId": "action_migration_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/complete": {
   "post": {
    "summary": "Complete",
    "operationId": "action_migration_0_5",
    "description": "Body keys: cutoverDate, note",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/reopen": {
   "post": {
    "summary": "Reopen",
    "operationId": "action_migration_0_5",
    "description": "Body keys: note",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/reset": {
   "post": {
    "summary": "Reset",
    "operationId": "action_migration_0_5",
    "description": "Body keys: removeLoaded, clearMapping",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/plan": {
   "get": {
    "summary": "Plan",
    "operationId": "action_migration_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/fields": {
   "get": {
    "summary": "Objects fields",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/suggest-fields": {
   "post": {
    "summary": "Objects suggest fields",
    "operationId": "action_migration_0_7",
    "description": "Body keys: headers, model, apply",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/guide": {
   "get": {
    "summary": "Guide",
    "operationId": "action_migration_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/readiness": {
   "get": {
    "summary": "Readiness",
    "operationId": "action_migration_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/aids/{code}": {
   "get": {
    "summary": "Objects aids",
    "operationId": "action_migration_0_8",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/template": {
   "get": {
    "summary": "Objects template",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/skip": {
   "post": {
    "summary": "Objects skip",
    "operationId": "action_migration_0_7",
    "description": "Body keys: reason",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/currency": {
   "post": {
    "summary": "Currency",
    "operationId": "action_migration_0_5",
    "description": "Body keys: currency",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/parallel": {
   "post": {
    "summary": "Objects parallel",
    "operationId": "action_migration_0_7",
    "description": "Body keys: on, since",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/cadence": {
   "post": {
    "summary": "Cadence",
    "operationId": "action_migration_0_5",
    "description": "Body keys: cadence",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/approach": {
   "post": {
    "summary": "Approach",
    "operationId": "action_migration_0_5",
    "description": "Body keys: approach, asOf, from, to, cadence, parallel",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/no-changes": {
   "post": {
    "summary": "Objects no changes",
    "operationId": "action_migration_0_7",
    "description": "Body keys: asOf*",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/numbering": {
   "post": {
    "summary": "Objects numbering",
    "operationId": "action_migration_0_7",
    "description": "Body keys: policy",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/redo": {
   "post": {
    "summary": "Objects redo",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/unskip": {
   "post": {
    "summary": "Objects unskip",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/stage": {
   "post": {
    "summary": "Objects stage",
    "operationId": "action_migration_0_7",
    "description": "Body keys: rows*, origin, drive, sheet, fileName, contentBase64, mimeType, csv, deltaOnly, incremental, asOf, consignment",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/drives": {
   "get": {
    "summary": "Drives",
    "operationId": "action_migration_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/drives/{driveId}/browse": {
   "get": {
    "summary": "Drives browse",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/upload-job": {
   "post": {
    "summary": "Objects upload job",
    "operationId": "action_migration_0_7",
    "description": "Body keys: through, deltaOnly, incremental, asOf, sheet; through one of stage|validate|load; files: [{ contentBase64, fileName, mimeType, sheet }]",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/objects/{id}/ingest": {
   "post": {
    "summary": "Objects ingest",
    "operationId": "action_migration_0_7",
    "description": "Body keys: schedule, driveId*, files, path, through, deltaOnly, incremental, asOf, sheet",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/ingests": {
   "get": {
    "summary": "Ingests",
    "operationId": "action_migration_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/mapping": {
   "get": {
    "summary": "Batches mapping",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}": {
   "delete": {
    "summary": "Batches",
    "operationId": "action_migration_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/validate": {
   "post": {
    "summary": "Batches validate",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/load": {
   "post": {
    "summary": "Batches load",
    "operationId": "action_migration_0_7",
    "description": "Body keys: dryRun",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/post": {
   "post": {
    "summary": "Batches post",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/settle": {
   "post": {
    "summary": "Batches settle",
    "operationId": "action_migration_0_7",
    "description": "Body keys: settledOn*",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/archive": {
   "post": {
    "summary": "Batches archive",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/history": {
   "get": {
    "summary": "History",
    "operationId": "action_migration_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/balances": {
   "post": {
    "summary": "Batches balances",
    "operationId": "action_migration_0_7",
    "description": "Body keys: asOf*",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/ledger-accounts": {
   "post": {
    "summary": "Batches ledger accounts",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/ledger": {
   "post": {
    "summary": "Batches ledger",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/tie-out": {
   "get": {
    "summary": "Tie out",
    "operationId": "action_migration_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/migration/batches/{id}/records": {
   "get": {
    "summary": "Batches records",
    "operationId": "action_migration_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}