delivered the opinion of the court.
This is an action by an Iowa corporation to enforce payment of the purchase price, amounting to $80,. of merchandise sold in interstate commerce under a written contract which was made in South Dakota and required that the merchandise be shipped by the plaintiff from its place of business in Iowa to the defendants at their place of business and residence in South Dakota. The action was brought in a court of the latter State and the defendants interposed a plea to the effect that the action could not be maintained because, as was the fact, the plaintiff had not complied with a South Dakota statute prescribing conditions upon which corporations of other States would be permitted to sue in the courts of that State. The plea was sustained and the action dismissed. An appeal to the Supreme Court of the State resulted in a judgment of *200 affirmance, 1 from which one member of the court dissented. 28 S. Dak. 397.
In that court it was contended that the statute upon which the plea was grounded is, when applied in a case like this, repugnant to the commerce clause of the Constitution of the United States.
The statute (Rev. Codes 1903) declares (§ 883) that no corporation created under the laws of any other State or Territory, for other than religious and charitable purposes, “shall transact any business within this State, or acquire, hold and dispose of property, real, personal or mixed, within this State, or sue or maintain any action at law or otherwise, in any of the courts of this State,” until it shall have filed in the office of the Secretary of State an authenticated copy of its charter or articles of incorporation, and also (§ 885) that “no action shall be commenced or maintained in any of the courts of this State by such corporation on any contract, agreement or transaction made or entered into in this State, by such corporation,” unless it shall have appointed a resident agent upon whom process may be served in any action to which it may be a party and shall have filed an authenticated copy of such appointment in the office of the Secretary of State and of the register of deeds of the county where the agent resides. The corporation is also required to pay the fees, .amounting to about $25, for filing and recording these instruments.
The Supreme Court of the State construed the statute as requiring a foreign corporation to subject itself to the jurisdiction of all the courts of the State as a condition to invoking the aid of any one of them, and as embracing *201 actions to enforce contracts directly arising out of and connected with interstate commerce equally with actions having no relation to such commerce; and after so construing the statute, the court held it to be a reasonable exercise of the police power of the State and in no wise repugnant to the commerce clause of the Constitution of the United States. In two earlier cases the court had taken a different view of the statute (Rex Buggy Co. v. Dinneen, 23 S. Dak. 474; Sioux Remedy Co. v. Lindgren, 27 S. Dak. 123), but in the opinion rendered in this case they were disapproved.
Recognizing that it was within the province of the Supreme Court of the State to construe the statute and to depart from prior decisions upon the subject, if deemed untenable, we accept the construction applied in this case, and confine our attention to the Federal question, whether, as so construed, the statute, by its necessary operation materially or directly burdens interstate commerce.
Through a long series of decisions dealing with the scope and effect of the commerce clause it has come to be well' settled that a State, while possessing power to adopt reasonable measures to promote and protect the health, safety., morals and welfare of its people, even though interstate commerce be incidentally or indirectly affected, has no power to exclude from its limits foreign corporations or others engaged in interstate commerce, or by the imposition of conditions to fetter their right to carry on such commerce, or to subject them in respect to their transactions therein to requirements which are unreasonable or pass beyond the bounds of suitable local protection.
Crutcher
v. Kentucky,
The contract and sale out of which the action arose
*202
were transactions in interstate commerce, and entirely legitimate notwithstanding the plaintiff’s non-compliance with the state statute.
International Text Book Co.
v.
Pigg,
The argument advanced in support of this position is, first, that the right to demand and enforce payment for merchandise sold in interstate commerce is no part of such commerce, and therefore may be encumbered without burdening the latter; second, that a State may impose such conditions as it deems appropriate upon the right of foreign corporations to sue in its courts, and, third, that in any event the conditions imposed by the statute are not unreasonable or burdensome. The Supreme Court of the State sustained the second and third points and passed the other without comment.
Of the first point it is. enough to say that the right to demand and enforce payment for goods sold in interstate commerce, if not a part of such commerce, is so directly
*203
connected with it and is so essential to its existence and continuance that the imposition of unreasonable conditions upon this right must necessarily operate as a restraint or burden upon interstate commerce. The form or mode of imposing the conditions is not nearly so important as their necessary and practical operation, for, as was said in
Western Union Telegraph Co.
v.
Kansas,
It may be conceded in a general way that a State may restrict the right of a foreign corporation to sue in its courts.
Bank of Augusta
v.
Earle,
We are thus brought to the question whether the particular conditions'rmposed by this statute can bé sustained when applied to rights of action like that disclosed in the present case. Without doubt a foreign corporation seeking to enforce such a right in .the courts of a State may-be required to conform to the prevailing modes of proceeding in those courts and to submit to the usual rules respecting costs, the giving of security therefor (see
Blake
v.
McClung,
These views require that the judgment be reversed and the cause remanded for further proceedings not inconsistent with this opinion.
Judgment reversed.
Notes
At the time of the allowance of the present writ of error the record had been sent to the Circuit Court of Turner County, and so the writ was directed to that court. See
Gelston
v.
Hoyt,
