Model's refactoring (normal references fields names). Get barcode api works fine.