QuickBooks ids are not globally unique
QBO · NetSuiteIds are unique per entity type within a realm. Invoice 145 and Bill 145 are different documents. Any cache key, URL or React key built from the id alone will collide, and the collision looks like data corruption rather than a key bug.
Do — Key everything as {system}:{tenantId}:{entityType}:{id}. Make the canonical id a branded string so a bare source id cannot be assigned to it.