The invention relates to a system for preparing a beverage, comprising a portion capsule which is filled with a raw beverage material, and a brewing device which comprises a brewing chamber for receiving the portion capsule and for extracting the beverage from the portion capsule by means of an extraction liquid. Said portion capsule comprises a product identifier and said brewing device comprises an identifier detector for identifying the identification of the portion capsule.