Ariz. Rev. Stat. § 47-2718
B. Where the seller justifiably withholds delivery of goods because of the buyer's breach, the buyer is entitled to restitution of any amount by which the sum of his payments exceeds:
C. The buyer's right to restitution under subsection B of this section is subject to offset to the extent that the seller establishes: