generate an invitation code upon subscription