A witness appearing before an officer directed to take the witness' deposition is entitled to the same fees and mileage as a witness in the court in which the deposition is to be used. If subpoenaed, such a witness is entitled to fees and mileage in advance, as in other cases.
Iowa Code § 622.104
Fees and mileage, §622.69 - 622.75