{"ok":true,"success":true,"canonical":true,"marker":"CODEX909_GLOBAL_SAAS_MULTI_TENANT_READINESS","version":"codex909-global-saas-multi-tenant-readiness-v1","route":"/api/trade-core/saas/tenant-operations","view":"tenant-operations","routeOwner":"backend/server.js","frontendRoute":"/textile/admin/tenant-operations","readOnly":true,"noDbSchemaChange":true,"noDbMutation":true,"noDuplicateRoutes":true,"noExternalApiCall":true,"noProviderCredentials":true,"noFakeTenantBillingSuccess":true,"noMoneyMovement":true,"tenantContext":{"resolvedTenant":"default","headerTenant":"","host":"acharioteer.com","queryTenant":"","queryCompany":""},"status":"GLOBAL_SAAS_MULTI_TENANT_READINESS_PARTIAL_CONFIG_GATED","summary":{"capabilityCount":12,"readyCount":10,"partialCount":2,"sourceCount":19,"existingSourceCount":19},"capabilities":[{"key":"tenant_workspace","label":"Tenant/workspace readiness","scope":"tenantId/workspaceId readback","status":"READBACK_READY","sourceCount":3,"existingSourceCount":3,"rowCount":1,"sources":[{"key":"platformTenants","file":"backend/data/platformTenants.json","exists":true,"rowCount":0},{"key":"globalTenants","file":"backend/data/globalTenants.json","exists":true,"rowCount":0},{"key":"erpEnterpriseWorkspaces","file":"backend/data/erpEnterpriseWorkspaces.json","exists":true,"rowCount":1}]},{"key":"company_switching","label":"Company/entity switching readiness","scope":"tenantId/companyId/entityId navigation context","status":"READBACK_READY","sourceCount":2,"existingSourceCount":2,"rowCount":5,"sources":[{"key":"erpCompanies","file":"backend/data/erpCompanies.json","exists":true,"rowCount":1},{"key":"erpEnterpriseAccess","file":"backend/data/erpEnterpriseAccess.json","exists":true,"rowCount":4}]},{"key":"role_permission_scope","label":"Role/permission tenant scope","scope":"tenant-scoped RBAC readback","status":"READBACK_READY","sourceCount":3,"existingSourceCount":3,"rowCount":4,"sources":[{"key":"platformTenantRoles","file":"backend/data/platformTenantRoles.json","exists":true,"rowCount":0},{"key":"platformTenantPermissions","file":"backend/data/platformTenantPermissions.json","exists":true,"rowCount":0},{"key":"erpEnterpriseAccess","file":"backend/data/erpEnterpriseAccess.json","exists":true,"rowCount":4}]},{"key":"subscription_plan_scope","label":"Subscription plan tenant scope","scope":"plan metadata only; billing provider not asserted","status":"SOURCE_PRESENT_NO_ROWS","sourceCount":2,"existingSourceCount":2,"rowCount":0,"sources":[{"key":"platformTenants","file":"backend/data/platformTenants.json","exists":true,"rowCount":0},{"key":"globalTenantConfigs","file":"backend/data/globalTenantConfigs.json","exists":true,"rowCount":0}]},{"key":"seller_entitlement_scope","label":"Seller module entitlement tenant scope","scope":"tenant/module entitlement metadata","status":"SOURCE_PRESENT_NO_ROWS","sourceCount":2,"existingSourceCount":2,"rowCount":0,"sources":[{"key":"platformTenantPermissions","file":"backend/data/platformTenantPermissions.json","exists":true,"rowCount":0},{"key":"globalTenantConfigs","file":"backend/data/globalTenantConfigs.json","exists":true,"rowCount":0}]},{"key":"buyer_company_workspace","label":"Buyer/company workspace scope","scope":"buyer company/workspace readback","status":"READBACK_READY","sourceCount":2,"existingSourceCount":2,"rowCount":1,"sources":[{"key":"platformTenantUsers","file":"backend/data/platformTenantUsers.json","exists":true,"rowCount":0},{"key":"erpEnterpriseWorkspaces","file":"backend/data/erpEnterpriseWorkspaces.json","exists":true,"rowCount":1}]},{"key":"erp_multi_company_navigation","label":"ERP multi-company navigation","scope":"company/branch/book navigation readiness","status":"READBACK_READY","sourceCount":2,"existingSourceCount":2,"rowCount":2,"sources":[{"key":"erpCompanies","file":"backend/data/erpCompanies.json","exists":true,"rowCount":1},{"key":"erpEnterpriseWorkspaces","file":"backend/data/erpEnterpriseWorkspaces.json","exists":true,"rowCount":1}]},{"key":"audit_tenant_context","label":"Audit trail tenant context","scope":"tenant/company context evidence in audit sources","status":"READBACK_READY","sourceCount":3,"existingSourceCount":3,"rowCount":2,"sources":[{"key":"erpAuditTrail","file":"backend/data/erpAuditTrail.json","exists":true,"rowCount":0},{"key":"erpAuditLog","file":"backend/data/erpAuditLog.json","exists":true,"rowCount":0},{"key":"erpAuditJsonl","file":"backend/data/erpAuditLog.jsonl","exists":true,"rowCount":2}]},{"key":"global_settings","label":"Global settings readiness","scope":"settings readback without mutation","status":"READBACK_READY","sourceCount":2,"existingSourceCount":2,"rowCount":4,"sources":[{"key":"erpGlobalSettings","file":"backend/data/erpGlobalSettings.json","exists":true,"rowCount":4},{"key":"globalTenantConfigs","file":"backend/data/globalTenantConfigs.json","exists":true,"rowCount":0}]},{"key":"localization_settings","label":"Localization settings readiness","scope":"country/currency/language locale metadata","status":"READBACK_READY","sourceCount":3,"existingSourceCount":3,"rowCount":4,"sources":[{"key":"erpCountries","file":"backend/data/erpCountries.json","exists":true,"rowCount":1},{"key":"erpCurrencies","file":"backend/data/erpCurrencies.json","exists":true,"rowCount":3},{"key":"countryTenantMappings","file":"backend/data/countryTenantMappings.json","exists":true,"rowCount":0}]},{"key":"currency_tax_country","label":"Currency/tax/country readiness","scope":"master-data readback only; no live tax or FX provider","status":"READBACK_READY","sourceCount":4,"existingSourceCount":4,"rowCount":13,"sources":[{"key":"erpCurrencies","file":"backend/data/erpCurrencies.json","exists":true,"rowCount":3},{"key":"erpCountries","file":"backend/data/erpCountries.json","exists":true,"rowCount":1},{"key":"erpTaxCodes","file":"backend/data/erpTaxCodes.json","exists":true,"rowCount":7},{"key":"erpTaxRules","file":"backend/data/erpTaxRules.json","exists":true,"rowCount":2}]},{"key":"admin_tenant_operations","label":"Admin tenant operations dashboard","scope":"admin read-only operations surface","status":"READBACK_READY","sourceCount":3,"existingSourceCount":3,"rowCount":4,"sources":[{"key":"platformTenants","file":"backend/data/platformTenants.json","exists":true,"rowCount":0},{"key":"globalTenantDomains","file":"backend/data/globalTenantDomains.json","exists":true,"rowCount":0},{"key":"erpEnterpriseAccess","file":"backend/data/erpEnterpriseAccess.json","exists":true,"rowCount":4}]}],"adminOperations":{"dashboard":"/textile/admin/tenant-operations","apiReadiness":"/api/trade-core/saas/readiness","tenantOperations":"/api/trade-core/saas/tenant-operations","companyNavigation":"/erp","sellerWorkspace":"/textile/seller/dashboard","buyerWorkspace":"/textile/buyer/dashboard"},"providerConfigGaps":["Subscription billing provider activation and payment success remain config/provider-gated.","Identity provider, MFA, SSO, and production tenant invitation delivery remain config/provider-gated.","Live FX, live statutory tax lookup, e-invoice/e-way/government filing, email/SMS, object storage/KMS, gateway, payout, and logistics provider calls remain disabled."],"sourceMap":{"platformTenants":{"key":"backend/data/platformTenants.json","exists":true,"type":"array","rowCount":0,"sample":[]},"platformTenantUsers":{"key":"backend/data/platformTenantUsers.json","exists":true,"type":"array","rowCount":0,"sample":[]},"platformTenantRoles":{"key":"backend/data/platformTenantRoles.json","exists":true,"type":"array","rowCount":0,"sample":[]},"platformTenantPermissions":{"key":"backend/data/platformTenantPermissions.json","exists":true,"type":"array","rowCount":0,"sample":[]},"globalTenants":{"key":"backend/data/globalTenants.json","exists":true,"type":"array","rowCount":0,"sample":[]},"globalTenantConfigs":{"key":"backend/data/globalTenantConfigs.json","exists":true,"type":"array","rowCount":0,"sample":[]},"globalTenantDomains":{"key":"backend/data/globalTenantDomains.json","exists":true,"type":"array","rowCount":0,"sample":[]},"countryTenantMappings":{"key":"backend/data/countryTenantMappings.json","exists":true,"type":"array","rowCount":0,"sample":[]},"erpCompanies":{"key":"backend/data/erpCompanies.json","exists":true,"type":"array","rowCount":1,"sample":["DEFAULT"]},"erpEnterpriseWorkspaces":{"key":"backend/data/erpEnterpriseWorkspaces.json","exists":true,"type":"object","rowCount":1,"sample":[{"id":"ws_default","orgId":"org_default","branchId":"branch_default","code":"WS","name":"Default Workspace","updatedAt":"2026-02-12T15:49:50.369Z"}]},"erpEnterpriseAccess":{"key":"backend/data/erpEnterpriseAccess.json","exists":true,"type":"object","rowCount":4,"sample":[{"id":"acc_admin","role":"admin","orgId":"*","branchId":"*","workspaceId":"*","can":{"all":true},"updatedAt":"2026-02-13T05:01:22.126Z","enabled":true},{"id":"acc_maker","role":"maker","orgId":"*","branchId":"*","workspaceId":"*","can":{"canCreate":true,"canEditDraft":true,"canView":true},"updatedAt":"2026-02-13T05:01:22.126Z","enabled":true},{"id":"acc_checker","role":"checker","orgId":"*","branchId":"*","workspaceId":"*","can":{"canPost":true,"canView":true},"updatedAt":"2026-02-13T05:01:22.126Z","enabled":true},{"id":"acc_auditor","role":"auditor","orgId":"*","branchId":"*","workspaceId":"*","can":{"canView":true,"canAudit":true},"updatedAt":"2026-02-13T05:01:22.126Z","enabled":true}]},"erpGlobalSettings":{"key":"backend/data/erpGlobalSettings.json","exists":true,"type":"object","rowCount":4,"sample":[]},"erpCurrencies":{"key":"backend/data/erpCurrencies.json","exists":true,"type":"object","rowCount":3,"sample":[{"code":"INR","name":"Indian Rupee","symbol":"₹","decimals":2,"enabled":true,"updatedAt":"2026-02-13T05:01:22.126Z"},{"code":"USD","name":"US Dollar","symbol":"$","decimals":2,"enabled":true,"updatedAt":"2026-02-13T05:01:22.126Z"},{"code":"EUR","name":"Euro","symbol":"€","decimals":2,"enabled":true,"updatedAt":"2026-02-13T05:01:22.126Z"}]},"erpCountries":{"key":"backend/data/erpCountries.json","exists":true,"type":"array","rowCount":1,"sample":["DEFAULT"]},"erpTaxCodes":{"key":"backend/data/erpTaxCodes.json","exists":true,"type":"array","rowCount":7,"sample":[{"code":"CGST","rate":9,"type":"input","account":"CGST_INPUT"},{"code":"SGST","rate":9,"type":"input","account":"SGST_INPUT"},{"code":"IGST","rate":18,"type":"input","account":"IGST_INPUT"},{"code":"CGST_OUT","rate":9,"type":"output","account":"CGST_OUTPUT"},{"code":"SGST_OUT","rate":9,"type":"output","account":"SGST_OUTPUT"}]},"erpTaxRules":{"key":"backend/data/erpTaxRules.json","exists":true,"type":"object","rowCount":2,"sample":[{"id":"GST-IN-DEFAULT","kind":"GST","country":"IN","state":"","rate":0.05,"label":"GST 5%"},{"id":"VAT-DEFAULT","kind":"VAT","country":"","state":"","rate":0.1,"label":"VAT 10%"}]},"erpAuditTrail":{"key":"backend/data/erpAuditTrail.json","exists":true,"type":"array","rowCount":0,"sample":[]},"erpAuditLog":{"key":"backend/data/erpAuditLog.json","exists":true,"type":"array","rowCount":0,"sample":[]},"erpAuditJsonl":{"key":"backend/data/erpAuditLog.jsonl","exists":true,"type":"jsonl","rowCount":2,"sample":["{\"id\":\"al_mlet10ad_892f5b916226c\",\"ts\":\"2026-02-09T06:42:01.525Z\",\"scope\":\"erp\",\"user\":\"unknown\",\"ip\":\"127.0.0.1\",\"method\":\"POST\",\"path\":\"/api/erp/bank/accounts\",\"status\":200,\"ms\":7,\"req\":{\"query\":{},\"body\":{\"name\":\"IDBI\"}}}","{\"id\":\"al_mleu6j93_e50643dc945d2\",\"ts\":\"2026-02-09T07:14:18.999Z\",\"scope\":\"erp\",\"user\":\"unknown\",\"ip\":\"49.36.89.88\",\"method\":\"POST\",\"path\":\"/api/erp/bank/accounts\",\"status\":200,\"ms\":2,\"req\":{\"query\":{},\"body\":{\"name\":\"hdfc\",\"openingBalance\":0,\"currency\":\"INR\",\"enabled\":true}}}"]}},"generatedAt":"2026-07-17T06:44:44.627Z"}