"We consider that the appeal should be upheld and the order to enter prison suspended," the court said in a statement.
The suspension of the sentence will be for a period of four years as long as Hernandez does not commit any further crime and the payment of a fine of 96,000 euros ($111,000), the court said.
Hernandez, a World Cup winner with France in 2018, was arrested four years ago in Spain for violating a court order banning him from contacting his partner after a violent altercation between the pair.
He and his partner, Amelia Lorente, were both convicted of domestic violence in February 2017.
She hit and scratched Hernandez, while the player hit her in the ribs, back and face, according to the court ruling at the time.