The first dimension is always the longest dimension. The second dimension is the shortest dimension. The third dimension is the height (sometimes referred to as the "depth").
Remember to leave space for any extra padding you wish to use to protect your product. For example, if you are using bubble wrap to cushion the item then you should add at some space to each dimension.