The term Opiate is sometimes used as a synonym .
Although the term opiate is often used as a synonym for opioid , the term opiate is properly limited to only the natural alkaloids found in the resin of the opium poppy ( Papaver somniferum ) .