save dist id for purchase