The same day Amazon scrapped its plans for a headquarters in Queens, it warned Philadelphia that it may rethink its plans to open a brick-and-mortar store there because of the city’s proposal to ban so-called cashless stores.

The proposal — which would prohibit most stores from refusing to accept cash — passed by a 12-4 vote Thursday, the Philadelphia Inquirer reported.

Amazon plans to open as many as 3,000 Amazon Go cashless stores across the US over the next few years.

City Councilman Allan Domb said Thursday that Amazon called the Commerce Department “several times” to say that if the bill passed, the company would not consider opening a cashless store in the city.

Domb, owner of a real estate business, said an Amazon Go store could create 100 jobs.

City spokesman Mike Dunn confirmed that the company had contacted Philly about the proposed ban.

“Amazon did indicate they were considering Philadelphia among their options for Amazon Go, and that this bill would impede that plan,” Dunn wrote in an email.

“To be clear though, the firm had not specified the likelihood of their coming or timing,” he added.

Amazon declined to comment to the newspaper.

Proponents of the bill argue that cashless stores discriminate against poor consumers who do not have access to credit or bank accounts.

Almost 6 percent of the Philadelphia region was unbanked in 2017 and about 22 percent was considered “underbanked,” according to the Federal Insurance Deposit Corp.

“This is more of like a pause,” said Democratic Councilwoman Maria Quiñones-Sánchez, a bill sponsor. “We don’t want to stop the business model, but clearly we don’t want people to walk into certain businesses and feel like they’re not welcomed.”

Philly was one of 20 finalists for an Amazon second headquarters.