In lieu of or in conclusion of any legal proceeding instituted to obtain support from a responsible parent for a dependent child born of the marriage, a written agreement to support the child by periodic payments executed by the responsible parent when acknowledged before a certifying officer or notary public or the equivalent or corresponding person of the state, territory, or foreign country where the acknowledgment is made and filed with and approved by a judge of the district court in the county where the custodial parent of the child resides or is found, or in the county where the noncustodial parent resides or is found, or in the county where the child resides or is found shall have the same force and effect, retroactively and prospectively, in accordance with the terms of the agreement, as an order of support entered by the court, and shall be enforceable and subject to modification in the same manner as is provided by law for orders of the court in such cases. A responsible parent executing a written agreement under this section shall provide on the agreement the responsible parent's social security number.
N.C. Gen. Stat. § 110-133