The question presented by Rutherfordton’s motion was and is whether the allegations of the complaint affirmatively disclose that plaintiff has no claim against Rutherfordton on which relief can be granted. Sutton v. Duke, 277 N.C. 94, 176 S.E. 2d 161 (1970). In resolving this question, the only facts to be con*563sidered are those alleged by plaintiff. Accepting these facts as true, can Rutherfordton unilaterally repudiate the 1966 agreement and completely disregard it in taxing plaintiff’s properties for 1970 and subsequent years?
The record before us shows no controversy with reference to the valuation placed upon plaintiff’s properties. Whether plaintiff should have pursued administrative remedies in respect of the valuation thereof is not involved.
The statute codified as G.S. 105-406 in Volume 2D, Replacement 1965, was cited by Rutherfordton in support of its motion to dismiss. This statute in part provided: “Unless a tax or assessment, or some part thereof, be illegal or invalid, or be levied or assessed for an illegal or unauthorized purpose, no injunction shall be granted by any court or judge to restrain the collection thereof in whole or in part, nor to restrain the sale of any property for the nonpayment thereof. . . .” Although this statute was repealed, effective 1 July 1971, by Chapter 806, Section 3, Session Laws of 1971, the statute now codified as G.S. 105-379 in Volume 2D, Replacement 1972, which was enacted by Section 1 of Chapter 806, provides: “No court may enjoin the collection of any tax, the sale of any tax lien, or the sale of any property for nonpayment of any tax imposed under the authority of this Subchapter except upon a showing that the tax (or some part thereof) is illegal or levied for an illegal or unauthorized purpose.” Decisions in accord are cited in Redevelopment Comm. v. Guilford County, 274 N.C. 585, 588-89, 164 S.E. 2d 476, 478-79 (1968).
Ordinarily, absent sufficient allegations that the tax is illegal or levied for an illegal or unauthorized purpose, the taxpayer’s exclusive remedy is to pay the tax and sue for a refund for such portion thereof as is excessive as provided in G.S. 105-381. The question is whether the 1970 tax Rutherfordton seeks to collect from plaintiff is a legal tax within the meaning of this rule.
The facts alleged in the complaint include those narrated below.
Plaintiff’s properties were and are located partly in Ruth-erfordton and partly in Ruth. In 1966, plaintiff had to decide whether to close its plant or enlarge it by an addition extending farther into Ruth. There was considerable uncertainty as to the location of the dividing line between Rutherfordton and *564Ruth. Too, there existed the specter of variations and uncertainty in plaintiff’s ad valorem tax liability to Rutherfordton and to Ruth, respectively, on stock in process, raw materials, finished goods, machinery and fixtures, depending on the particular portion of plaintiff’s plant in which these properties would be located on the listing date. To remove these uncertainties and thereby induce plaintiff to enlarge its plant, the 1966 agreement was entered into and was then considered by Ruther-fordton as well as by plaintiff and Ruth to be for the best interest of all concerned.
Unquestionably, plaintiff owns properties which are taxable by Rutherfordton and other properties which are taxable by Ruth. Each could levy a valid tax upon the properties subject to its jurisdiction. The problem presented in 1966 and now is what properties are taxable by Rutherfordton and what properties are taxable by Ruth. Because of the factors stated above, the 1966 agreement was entered into as a practical and appropriate method of resolving the uncertainties.
While the factual situation here involved is one of first impression, we note that this Court has approved interlocutory injunctive relief in factual situations where each of two taxing units was asserting the right to tax identical (intangible) assets. Sherrod v. Dawson, 154 N.C. 525, 70 S.E. 739 (1911); Barber v. Benson, 200 N.C. 683, 158 S.E. 245 (1931).
Here plaintiff is confronted by Ruth’s reliance upon the 1966 agreement and by Rutherfordton’s attempted repudiation thereof. The key question is whether the 1966 agreement is valid. If so, Rutherfordton is not at liberty to tax plaintiff’s properties otherwise than in a manner consistent with its terms.
In its motion to dismiss, Rutherfordton asserted that the 1966 agreement authorized by a resolution of its town council is illegal and void. However, nothing in the record indicates that this question was considered either by the Superior Court or by the Court of Appeals. Both decisions are based solely on the ground that the procedure provided by G.S. 105-381 is exclusive and therefore plaintiff could not maintain this action for a declaratory judgment.
The Declaratory Judgment Act provides in part: “Courts of record within their respective jurisdictions shall have power to declare rights, status, and other legal relations, whether or not further relief is or could be claimed. . . .” G.S. 1-253. We *565are of the opinion and hold that plaintiff is entitled to have determined in this action whether the 1966 agreement entered into between it, Rutherfordton and Ruth is valid and binding upon the parties thereto.
The record before us is skimpy. Whether a tax certificate sale was held on 14 June 1971 does not appear. Nothing in the record indicates whether a temporary restraining order was issued and in effect prior to the entry of judgment by Judge Falls. Is there evidence to support the factual statements contained in the letter from Rutherfordton’s attorney purporting to repudiate the 1966 agreement? Has the Town Council of Rutherfordton undertaken by formal action to rescind its 1966 resolution or otherwise repudiate the 1966 agreement? Has plaintiff continued to pay taxes to Ruth in accordance with the 1966 agreement? Has the dividing line between Rutherfordton and Ruth been located with certainty? If so, what properties of plaintiff are now located in Rutherfordton and what properties are now located in Ruth? Present conditions as well as 1966 conditions may be relevant in determining whether the 1966 agreement if valid originally is presently binding upon the parties thereto.
In the event a restraining order is deemed necessary pending final decision in this action, it would seem appropriate that the plaintiff deposit funds or give bond in sufficient amount to cover its tax obligations to Rutherfordton and to Ruth whatever the decisions herein and in respect of the amount of taxes due each of these municipal corporations for 1970 and subsequent years.
It may be that Rutherfordton jumped the gun by its motion to dismiss. As the record now stands, the factual allegations of the complaint have not been challenged by answer or otherwise. It may be that Rutherfordton, either at trial or in support of a motion for summary judgment, can produce evidence contradictory of plaintiff’s allegations and evidence of additional facts bearing upon the validity of the 1966 agreement.
In the present status of this case we express no opinion as to the validity of the 1966 agreement. We decide only that, upon the present record, plaintiff is entitled to have the validity thereof determined in this cause. Accordingly, the judgment of the Court of Appeals affirming the judgment of Judge Falls is reversed; and the cause is remanded to the Court of Appeals *566with direction that it be remanded to the Superior Court of Rutherford County for further proceedings in accordance with this opinion.
Reversed and remanded.