A disgruntled customer has pulled a gun on a Domino’s store manager because he wasn’t given a discount.

Footage of the moment when Philip Willich, 53, pointed a gun at a 25-year-old staff member Isaac Ramsay was played on during court proceedings in Cairns, in far north Queensland, this week.

It began as a customer complaint, but quickly escalated when he asked for a discount without having the necessary voucher.

When Willich’s request was denied he drew the weapon and aimed it at Mr Ramsay’s head for around four minutes.

A disgruntled customer will spend at least a year behind bars, after he pulled a gun on a Dominos store manager at point blank range. #7News pic.twitter.com/3duByRHBjB — 7 News Melbourne (@7NewsMelbourne) July 12, 2017

At one point he forced the victim to kneel while waving the gun at his head, before eventually giving up.

According to Queensland Police prosecutor, Senior Sergeant Lisa Buchanan, Willich wanted an apology, according to Cairns Post.

“It is the most serious common assault I have seen to obtain an apology for not getting a discount on a takeaway pizza,” Senior Sergeant Buchanan said.

“There were not bullets in the firearm.

“It wasn’t loaded but the victim wasn’t aware of that.”

She said Mr Ramsay was effectively “begging for his life” when he was forced to his knees.

Willich was sentenced to three years in prison and will serve a minimum of one year.

The incident took place at the Domino’s store in 2015, in Smithfield, a northern suburb of Cairns.