Brazilian forward Neymar has been cleared of fraud but still faces a corruption trial in Spain in connection with the value of his 2013 transfer from Santos to Barcelona, the Spanish National High Court said on Thursday.

The defendants in the trial will be the player, his parents, current and former Barcelona presidents Josep Maria Bartomeu and Sandro Rosell, FC Barcelona and NN Consultoria, the company Neymar started with his family, according to a court statement.

Bartomeu, Rosell, Barcelona and Santos also face trial on fraud charges, along with former Santos president Odilio Rodrigues, the statement said.

"We are very happy as this was a favourable decision for us," Altamiro Bezerra, an advisor to NN Consultoria told Reuters.

"It has eliminated the question of fraud in the contracts and we are also certain that we will be absolved of corruption."

The case stems from a complaint by DIS, a Brazilian company that owned 40 per cent of the rights to Neymar when he was at Santos. It argues it lost out on its rightful cut from the transfer because the true value of the deal was understated.

Prosecutors said in November that Neymar should be fined €10m [£8.4m] and handed a two-year jail sentence.

For first-time offenders in non-violent crimes, sentences of two years and under are suspended in Spain and it is unlikely the player would serve any prison time.

Barcelona said at the time of Neymar's move that the transfer figure was €57.1m [£47m], of which €40m was paid to Neymar's family.

DIS received a 40 per cent share of the remaining €17.1m that was paid to Santos. But the court put the actual value of the rights to the player that were transferred to Barcelona at €25.2m, and said DIS's cut should have been based on that amount.

Real Madrid vs Barcelona player ratings Show all 22 1 /22 Real Madrid vs Barcelona player ratings Real Madrid vs Barcelona player ratings Keylor Navas – 5 out of 10 Hardly at fault for Luis Suarez and Andres Iniesta’s goals, but will have been disappointed to have let Neymar’s shot slip under his legs. 2015 Getty Images Real Madrid vs Barcelona player ratings Danilo – 5 out of 10 Up against Neymar and came second-best every time. Real Madrid vs Barcelona player ratings Raphael Varane – 4 out of 10 Unusually uneasy. The member of Madrid’s defence who was most often exposed. Getty Real Madrid vs Barcelona player ratings Sergio Ramos – 5 out of 10 Unable to marshal his defence effectively early on, which put Madrid firmly on the back foot. Real Madrid vs Barcelona player ratings Marcelo – 6 out of 10 Offered a decent outlet on the left hand side but was as culpable for defensive frailties. Real Madrid vs Barcelona player ratings Toni Kroos – 5 out of 10 Failed to stem the tide of Catalan shirts cascading towards him. 2015 Getty Images Real Madrid vs Barcelona player ratings James Rodriguez – 6 out of 10 Tested Bravo twice and was lively at times but looked uncomfortable on the right-hand side of a 4-4-2. Real Madrid vs Barcelona player ratings Luka Modric – 6 out of 10 Did not exert the kind of influence he usually has. Getty Real Madrid vs Barcelona player ratings Gareth Bale – 4 out of 10 Ineffective, bordering on invisible. Looked a shadow of the devastating player he was at White Hart Lane. Real Madrid vs Barcelona player ratings Karim Benzema – 4 out of 10 With all his off-the-field problems and lack of match fitness, unsurprisingly looked off the boil. The French striker did nothing to justify his contentious selection. Real Madrid vs Barcelona player ratings Cristiano Ronaldo – 6 out of 10 Typically, one of his side’s better performers, but lucky not to be sent off for a snide elbow on Dani Alves. Real Madrid vs Barcelona player ratings Claudio Bravo – 9 out of 10 The scoreline should not suggest that the Chilean had a quiet evening. Madrid, as bad as they were, created opportunities but found Bravo pulling off top class saves every time. Real Madrid vs Barcelona player ratings Dani Alves – 7 out of 10 No major errors except, perhaps, hauling Cristiano Ronaldo down in the box needlessly during the first half. He avoided conceding a penalty but earned an elbow from Ronaldo. Real Madrid vs Barcelona player ratings Gerard Piqué – 8 out of 10 Received dog’s abuse from the Bernabeu, as expected, but dealt with them effortlessly and handled Madrid’s attacking play in the same way. Getty Images Real Madrid vs Barcelona player ratings Javier Mascherano – 6 out of 10 Substituted early on after going down injured. Replace by Jeremy Mathieu. Real Madrid vs Barcelona player ratings Jordi Alba – 8 out of 10 His performance will be overlooked but barely put a foot wrong. Real Madrid vs Barcelona player ratings Ivan Rakitic – 7 out of 10 Did well considering his inclusion was in doubt. Real Madrid vs Barcelona player ratings Sergio Busquets – 8 out of 10 Composed, controlled, denied Madrid time and again. As good as we’ve come to expect. Getty Images Real Madrid vs Barcelona player ratings Andres Iniesta – 9 out of 10 In the autumn of his career, no doubt, but still capable of stunning moments. Received an ovation from the Bernabeu. Real Madrid vs Barcelona player ratings Sergi Roberto – 9 out of 10 Lionel who? The man seen as Messi’s stand-in may not be quite at the Argentinian’s level yet, but tonight he filled his shoes and then some. Electric in the first half. Real Madrid vs Barcelona player ratings Luis Suárez – 9 out of 10 The man most likely to dismantle any defence in European football and, by virtue of his two goals, tonight’s man of the match. Real Madrid vs Barcelona player ratings Neymar – 9 out of 10 Sublime, again. His late claim for the Ballon D’Or is gathering pace.

"The Judge has set bonds of €3,429,768 as pecuniary liability for Rosell, Bartomeu, Rodrigues, Football Club Barcelona and Santos Football Club, which must be paid by all jointly," the court said in a statement.

Barcelona did not immediately respond to an e-mailed request for comment. No one was available to comment at Santos, while a spokesperson for DIS said they were pleased with the ruling.

The transfer has given rise to several investigations in Spain and Brazil.

Neymar is unlikely to spend time in prison, even if found guilty and sentenced (Getty)

Last June, Barcelona agreed to pay a fine of €5.5m to the Spanish authorities to settle a related tax fraud case.

The club also admitted that it paid almost €100m for Neymar, not the €57.1m euros it originally claimed.