The District of Columbia’s attorney general said the company deliberately outsourced Prime member deliveries in certain ZIP codes.

The attorney general of the District of Columbia sued Amazon on Wednesday, accusing it of violating consumer protection laws by making slower deliveries to Prime members in historically lower-income neighborhoods.

In one of the first complaints of its kind, which was filed with the Superior Court of the District of Columbia, Attorney General Brian L. Schwalb said Amazon had deliberately and secretly stopped its fastest delivery service to the nearly 50,000 Prime subscribers in certain ZIP codes that were lower-income neighborhoods.

According to the lawsuit, Amazon has used third parties like United Parcel Service and the Postal Service to make Prime deliveries in those areas for the past two years. That resulted in slower deliveries than those made by Amazon’s own delivery drivers, who serve other Washington residents.

Amazon “cannot covertly decide that a dollar in one ZIP code is worth less than a dollar in another,” Mr. Schwalb said in a statement. “We’re suing to stop this deceptive conduct and make sure District residents get what they’re paying for.”

Amazon told Mr. Schwalb that it had made the change because of safety concerns in those neighborhoods, the attorney general said. He said the company had violated consumer protection laws by failing to disclose the change to consumers.

Amazon did not immediately respond to a request for comment.

The suit adds to growing regulatory scrutiny of Amazon’s treatment of customers. The District of Columbia sued the company in 2021 over price-fixing allegations, a case that an appeals court revived in August. In a suit filed last year, the Federal Trade Commission accused Amazon of illegally protecting a monopoly over swaths of online retail by squeezing merchants and favoring its own services, causing “artificially higher prices.” The case is pending.

At the heart of the District of Columbia’s latest lawsuit is Amazon’s Prime membership service, which costs $139 annually and includes offers for same-day, one-day and two-day delivery.

Until 2022, Amazon used its own logistics network to make deliveries to residents in lower-income areas of the city east of the Anacostia River, according to the suit. But then Amazon began outsourcing those deliveries.

The change was not disclosed to customers and created longer delivery times for those neighborhoods than for the rest of the city, according to Mr. Schwalb.

In 2023, for example, the rest of the city’s Prime members received their packages within two days of checkout 75 percent of the time. But subscribers in the affected ZIP codes received their packages within two days only 24 percent of the time, according to the lawsuit.