This is a suit which was brought by appellant against the respondents, in the circuit court of Cooper county, to recover the value of an engine and threshing machine, which he alleges belonged to him and were wrongfully converted by respondents to their own use.
As there were no objections made to the pleadings, we- deem it unnecessary to state even the substance of them, since the case was submitted to the court upon an *528agreed statement of facts, except as to the value of the property.
The agreed statement of facts is as follows:
“It is admitted for the purposes of the trial of this cause that the defendants purchased, in or about the month of August, 1896, a threshing outfit, consisting of one sixteen-horsepower Stevens & Son traction engine, number 2157; one new Stevens thresher, number 9087; one Uncle Tom’s wind stacker, number 208; one self-feeder, number 273, and one Washington weigher, for which defendants promised and agreed to pay said A. W. Stevens & Son twenty-five hundred and eighty dollars; that said property was shipped by said A. W. Stevens & Son and: delivered, through plaintiff, to defendants ; that defendants took said property into their possession and to their farm; that the purchase price thereof was settled as follows: An old threshing outfit, belonging to defendants, was to be received by said A. W. Stevens & Son for ten hundred and eighty dollars, and defendants did execute thre'e promissory ¿otes, all dated August 6, 1896, and signed by defendants and made payable to said A. W. Stevens & Son; one for three hundred dollars, due January 1, 1897; one for six hundred dollars, due November 1, 1897; one for six hundred dollars, due January 1, 1898; all being negotiable notes and bearing interest at the rate of six per cent per annum; that said old threshing outfit, which was accepted in part payment for the machinery sold by said A. W. Stevens & Son to the defendants, was afterwards resold by said A. W. Stevens & Son to the defendants for three hundred dollars, which was paid in hash to said A. W. Stevens & Son; that the defendants also paid to said A. W. Stevens & Son the note for three hundred dollars, due January 1, 1897, and delivered to said corporation the other two notes for six hundred dollars, above described; and one of ,said notes was endorsed and transferred to J. GL Erhardt, who instituted suit upon the same in the cir*529cuit court of this county, and in said suit judgment was rendered for the defendants and upon appeal to the Kansas City Court of Appeals said judgment was affirmed, and is reported in Erhardt v. Robertson Brothers, 78 Appeals, page 404; that the three hundred dollars paid for the old threshing machine by the defendants, and the three hundred dollars paid in settlement of the note, due January 1, 1897, have never been returned to the defendants, nor has any part thereof, and that said money is still retained by said A. "W. Stevens & Son; that the promissory notes for six hundred dollars each have never.been returned, nor offered to be returned, to the defendants; .that a warranty accompanied the threshing outfit sold by said A. W. Stevens & Son to the defendants; that after trial defendants claimed said machinery did not comply with the warranty and notified said A. W. Stevens & Son to that effect, and declined to .accept and pay for said machinery.
“It is further admitted that at the time of the sale of said machinery by said A. W. Stevens & Son to the defendants, said A. W. Stevens & Son was a corporation for pecuniary profit formed in the State of New York, and was doing business in the State of Missouri, and it had not at that time, and never has since, complied with the terms of the act of the General Assembly of the State of Missouri, entitled, ‘An Act to require foreign corporations doing business in this State to have a public office or place of business in this State at which to transact its business, and subjecting it to certain conditions and requiring it to file its articles of incorporation with the Secretary of State and to pay certain taxes and fees thereon; approved April 21, 1891;’ that the said A. "W. Stevens & Son, at the time of making said contract with the defendants, had wholly failed to, and has ever since wholly failed to, maintain a public office, or place of business, in this *530State, for the transaction of business where legal service may be obtained upon it,, and where proper books are kept, to enable such corporation to comply with the constitutional and statutory provisions governing foreign corporations.
“That while said machinery sold by said A. W. Stevens & Son was on the farm of defendants in Cooper county, Missouri, a bill of sale transferring the same to plaintiff was executed, on or about July 20, 1899, in the State of New York, by said A. W. Stevens & Son, and the same was forwarded by mail to the plaintiff at Boonville, Missouri; that the old threshing machine was never delivered to A. W. Stevens & Son, but was resold by said A. W. Stevens & Son to the defendants, and the other machinery has also- remained upon the place of the defendants, and part of it, the engine, has been used by them. ’ ’
In addition to the above agreed facts plaintiff offered evidence tending to show that the property described in the petition was worth the sum of fifteen hundred dollars, and the defendants on their part offered evidence tending to show that said property was worth six hundred dollars. This was all the evidence.
Whereupon plaintiff prayed the court to declare the law as follows:
“First. Upon the agreed facts in this case, the plaintiff is entitled to recover.
“Second. The court declares the law to be that A. W. Stevens & Son, a corporation existing under the laws of the State of New York, did not lose or forfeit its interest in the property described in the pleadings, and the agreed statement of facts in the case, by its failure to comply with the act of the General Assembly of the State of Missouri, entitled, ‘An Act to require foreign corporations doing business in this State to have a public office or place of business in this State at which to transact its business, subjecting it to certain conditions, requiring it to file its articles of in*531corporation with the Secretary of State, and to pay certain fees and taxes thereon, approved April 21, 189-1.’
“Third. A. W. Stevens & Son did not lose its interest in the property described in the pleadings in this case, by sending it into the State of Missouri, and the said A. W. Stevens & Son, by its sale and transfer executed in the State of New York, conveyed a good title to the property to the plaintiff in this case. The situs of said property, in contemplation of law, adhered to said A. W. Stevens & Son.
“Fourth. A. W. Stevens & Son did not forfeit or lose its title or interest in said property by sending it to the State of Missouri and therefore had the right to sell and transfer the same in the State of New York to the plaintiff, who, at that time, resided in the State of Missouri.
“Fifth. The court will exclude from its consideration in arriving at a finding in this case all evidence offered by the defendants, and all facts agreed showing the amount of money claimed by the defendants to have been paid for the property described in the pleadings in this case, under the contract made with A. W. Stevens & Son in the State of Missouri, by or through the plaintiff, for the purchase of the threshing outfit deA scribed in the pleadings in this cause.
‘ ‘ Sixth. The defendants having refused to pay the two notes of six hundred dollars each, amounting to twelve hundred dollars, in accordance with the contract made for the purchase of said property, and said contract being void under the laws of this State, defendants cannot enforce or have any rights thereunder, and they are estopped from making any claim arising out of, or connected with said contract.
“Seventh. The act of the General Assembly of the State of Missouri, approved April 21, 1891, is not confiscatory. It did not have the effect of confiscating the properly of A. W. Stevens & Son, citizens of the State *532of New York, because the said A. W. Stevens & Son did not conform to the requirements of said act, to enable it to do business in this State. The Legislature of this State has no right to pass a law depriving any person or corporation, who is a citizen of another State of this Union, of his or its property, without due process of law, nor can the Legislature of this State, under the Constitution of the State and of the United States, transfer the property of a private person or corporation of the State of New York to another person or corporation of this State without requiring the person or corporation who receives said property-to make compensation therefor, and the plaintiff is entitled to recover. ’ ’
Which instructions or declarations of law, thus prayed by the plaintiff, the court refused to give, and to the refusal of the court to give said instructions and to declare the law as prayed, plaintiff then and there excepted to the refusal of all and each of said instructions.
The defendants on their part prayed the court to declare the law as follows:
“1st. The court declares the law to be that under the agreed statement of facts and the evidence submit-ted in the cause, the plaintiff cannot recover, and the finding and the judgment must be for the defendants.”
Which instruction the court gave. To the giving of which instruction, thus prayed by the defendants, plaintiff duly excepted at the time.
The court then found for the respondents and rendered judgment against the appellant for costs, to which action of the court he excepted; and within due time filed his motion for a new trial, which was, by the court, overruled, to which action appellant duly excepted, and has appealed the cause to this court because a constitutional question is involved.
*533I. Appellant concedes the contract between A. W. Stevens & Son and the respondents was void, and contends that on that account the title to the engine and threshing machine never passed or vested in the respondents, but remained in the vendors, and the contract of sale made by A. W. Stevens & Son to appellant vested the title thereto in him, and therefore he was entitled to recover in this case.
Conceding appellant’s 'contention to be correct, yet the agreed statement of facts disclosed the fact that he was the agent of‘Stevens & Son in the sale and delivery of the property, and was perfectly familiar with all the facts and circumstances surrounding the transactions, and for that reason he cannot successfully contend that he was a “bona fide” purchaser of the property. He acquired just such title and interest in and to the property as his vendor had, and nothing more. "We do not decide what would have been the effect had the appellant been an innocent purchaser.
The agreed facts also show that A. W. Stevens & Son, a foreign corporation, in violation of the laws of this State, received from respondents three hundred dollars in cash, an old threshing outfit, valued by the parties to the contract at $1,080, and two promissory notes of six hundred dollars each as the purchase price of the property sued for. It has never returned or offered to return the purchase price to the respondents.
The act approved April 21, 1901, which requires a foreign corporation, which comes into this State for the purpose of doing business for a profit, to first file with the Secretary of State, a copy of its charter or articles of incorporation, to open and maintain an office in this State, with some one in charge thereof, having authority to accept and receive process, and to require it to pay into the revenues of the State a reasonable sum of money for the right or privilege of transacting business therein, is not harsh nor oppress*534ive. The purpose of the statute is to raise revenue, and to have some one present in the State to represent it in case litigation should' arise between it and the citizens of this State.
• Those who ask the assistance and protection of the State in the transaction of their business should not complain of an assessment which is to contribute to the support of the State government, nor to the requirement of maintaining, a representative in the State upon whom process may be served in case of litigation, and thereby avoid annoyance and inconvenience, and save time and expense in seeking justice in the courts of another State. Such a statute is but the expression of a wise public policy of the State. The justice of this policy has been recognized by many States of the Union, and they have enacted statutes, similar in character to ours, and many of them are much more stringent in their provisions, and exacting in the requirements of those who enjoy their protection and benefit.
Such a statute should not be so construed as to confer upon foreign corporations any additional or greater rights and powers than those possessed by domestic corporations or other citizens of the State. No corporation or citizen of this State would be permitted to repudiate a void contract of sale of merchandise, and, while retaining the purchase price, come into court, and recover the possession of the property sold, or recover the value thereof. Upon the broad principles of equity and justice restitution of the ill-begotten gains should be made before the unjust prayer for relief should be granted. The other party to the transaction should, according to natural justice, be restored to his “status quo ’ ’ before he should be commanded by the court to return the property which had been partially or fully paid for; otherwise the vendor would • have both the property sold and the purchase price, while the vendee would have only a doubtful cause of *535action against a foreign corporation, perhaps far away.
Snch a condition should not and does not exist under the laws of this State.
Appellant cannot maintain this action without first returning or offering to return the payments received by A. W. Stevens & Son. [Vanstandt v. Hobbs, 84 Mo. App. 633; Chemical Co. v. Nickells, 66 Mo. App. 690; Poplin v. Clausen, 38 S. W. 974; Mechem on Sales, secs. 912, 914, 1053; Daniels v. Tearney, 102 U. S. 415; City of St. Louis v. Davidson, 102 Mo. l. c. 155; O’Brien v. Wheelock, 184 U. S. 450.]
II. Appellant asks for a reversal of the judgment because the act which prohibits foreign corporations from doing business in this State until they comply with the provisions thereof is, “in so far as it seeks to make contracts so made with corporations of other States void, before they have complied with the requirements of said act, unconstitutional, because such act seeks to take from such foreign corporations, or non-resident citizens, its or his property without due process of law, and denies to such foreign citizen the same rights, immunities and privileges that are accorded to the citizens of this State, and because it denies to such foreign corporation or citizen the equal protection of the law. ’ ’
It will be seen that counsel for appellant assails the validity of the act upon three separate and distinct grounds: first, because it seeks to deprive the foreign corporation of its property without due process of law; second, that it denies such corporation the same rights, immunities and privileges that are accorded; to the citizens of this State; and, third, it denies, to such corporation equal protection of the law.
The learned counsel, it seems to us, wholly misapprehends the meaning and scope of 'the act. The act is prohibitive in its operation. It seeks to prevent foreign corporations from doing business in this State un*536til they have complied with the provisions of the act by filing a copy of their charter or articles of incorporation with the Secretary of State and by appointing an agent in this State to represent them. If such corporations, in violation of the act, do business in this State, all such transactions are, by the courts, declared null and void, and all contracts mad'e by them with citizens of this State for the sale of goods, wares and merchandise are nullities, and the title to the property sought to be transferred thereby does not pass to and vest in the vendee, but remains in the vendor, the same as if the pretended contract had not been executed.
It is, therefore, clearly seen that the act does not violate the constitutional provision which prevents the taking of property without due process of law, because the act does not take the property of a foreign corporation from it, nor does it give it to another, but lets the title thereof remain in and abide with the corporation;- and if the corporation had parted with the possession of its property, under the void contract, and is unable to recover the possession without litigation, then the doors of the courts of this State are open to it, and it stands before the law upon precisely the same footing that residents of this State do — no better, nor no worse. We are unable to see in what way the act in question denies to such corporations the same rights, immunities and privileges that are accorded by law to the citizens of this State, or how it deprives them of the equal protection of the law. For under the facts of this case a citizen of this State would not be permitted to recover the possession of the property sold to- the respondents, nor its value, in case of its conversion, without first refunding or paying back to the respondents the consideration paid by them under the void contract, and received by A. W. Stevens & Son. He would be estopped from claiming the property until the purchase price had been returned, and for the same ■reason A. W. Stevens & Son, and its assignee, the ap*537pellant, is estopped in this ease. [See cases before cited.]
III. What has been stated in paragraph two of this opinion also answers, in the negative, the contention of appellant, that the judgment in this ease “takes private property for private use.” Neither the act in question nor the judgment of the court takes or disturbs the title of the property. The title remains just where A. W. Stevens & Son placed it, subject to the equities created against it by the conduct and action of the parties at the time of the. pretended sale of the property to respondents.
TV. Respondents contend that where a contract is illegal and void because contrary to the policy and laws of the State, the courts will not only refuse to aid those seeking to enforce such an illegal contract, but will not lend their assistance' to those attempting to escape from it, and cite in support of that contention the eases of Downing v. Ringer, 7 Mo, 585, and Mason v. Pitt, 21 Mo. 392. The first case mentioned was a suit on a promissory note, given as part payment of the purchase price of a lot of ground in the town of Philadelphia, Marion county, Missouri. The defense interposed was a statute of 1835, which imposed a penalty upon the proprietor óf a town, village or of an addition thereto for selling a lot therein before recording the plat or map thereof. The court held that the sale was in violation of the statute, and that the vendor could not recover the purchase money, because the court would not aid him in doing that which was prohibited by law.
The court in the latter case, in commenting upon the former, stated: “ If a vendee of a lot in such a town, knowing that the plat is unrecorded when he purchased, should bring an action to enforce a specific performance of the contract of sale, he might be met with the statute.”
*538We are of the opinion that both of those cases were correctly decided, upon both principle and authority, because if the court had permitted a recovery in either case, it would have necessarily given full force and effect to a contract which was forbidden to be made by the statute. But we are unable to see the application of the principle involved in those cases to the facts of the case at bar. Here there is no attempt to enforce the provisions of the illegal and void contract between A. W. Stevens & Son and the respondents, but, upon the contrary, all the parties to this suit, as well as Stevens & Son, concede the illegality of that contract, and that by reason thereof the title to the property never passed from the corporation nor vested in the respondents. That being true, the appellant contends that he had a perfect legal right to go to New York and purchase the property in controversy from the owner, A. W. Stevens & Son. This contract of purchase, not having been made in this State, is free from the provisions of the act of the Legislature above mentioned. That act is intendéd 'to prohibit foreign corporations from doing business and making contracts in this State before they comply with the provisions of our statutes. It was not the intention of the Legislature to prohibit the enforcement of valid contracts made by foreign corporations in their own States with citizens of this State. There is nothing in our laws which denies the right of such corporations to enforce valid contracts, whether made in this State or not. It must therefore follow that when appellant in New York purchased the undisputed title of A. W. Stevens & Son to the property in controversy, the doors of our courts are open to him and will aid him in the enforcement of his legal rights.
This court, in the case-of Kelerher v. Henderson, (Mo.), 101 S. W. 1083, in discussing this same question, used the following language: “The law does not impress upon the subject-matter of the contract its stamp *539of coudemnation, but upon the contract itself. Unless the plaintiffs’ contract, by which they seek to enforce their right, is infected with champerty, we see no reason why this suit may not be maintained, though such a contract exists between the defendant and the bondholders. It is time enough to turn a party out of court when he asks the aid of a court to enforce such a contract.” And the court further said in that case: “The fact that certain collateral portions of the contract or transaction which is before the court are tainted with illegality, that fact will not defeat a recovery upon the other provisions of the contract, which in themselves give a complete cause of aétion without the assistance of the infected portions. [Vette v. Geist, 155 Mo. 27.]”
The facts in this case do not lead the appellant as near the danger line as did the facts in the Kelerher case lead him. In fact, the .contract between A. W. Stevens & Son and the respondents is not even a collateral part of the contract existing between the appellant and A. W. Stevens & Son. [Euneau v. Rieger, 105 Mo. l. c. 682; Bick v. Overfelt, 88 Mo. App. 139.]
For the reasons above stated the judgment of the circuit court.is affirmed.
All concur.