(Bloomberg) -- ByteDance Ltd.’s TikTok is in talks to invest into a unit of Indonesia’s GoTo Group, one of several options the Chinese company is weighing to try and restart its online shop in its biggest e-commerce market.

The companies are working on a potential investment into GoTo’s online-retail unit Tokopedia, which could be finalized in the coming weeks, people with knowledge of the matter said. Instead of a direct investment, the deal could take the form of a joint venture between the two firms, said one of the people, who asked not to be identified as the information is private. 

The discussions also involve the two companies jointly building a new e-commerce platform, the people said. That arrangement is designed to address regulatory hurdles and let TikTok revive its online-shopping service in Southeast Asia’s largest retail arena.

GoTo rose as much as 8.3% in Jakarta. Top Indonesian digital lender PT Bank Jago, in which GoTo owns a stake, climbed as much as 24% — its biggest intraday gain in almost a year. Investors hoped a potential tie-up will boost and funnel payments and e-commerce transactions for Jago-operated platforms.

Indonesia in September announced sweeping regulations that forced TikTok to split payments from shopping in the country — an unprecedented separation that put a dent in the social media giant’s e-commerce thrust just as it was gaining traction against Sea Ltd. and GoTo. TikTok, the only platform immediately affected by the rule, halted online shopping in Indonesia shortly after to comply with the curbs.

“Foe can be friend when interests are aligned,” JPMorgan analyst Henry Wibowo wrote in a note. “If the reported talks result in a deal that regulators find agreeable, this could enable TikTok to comply with recent regulatory changes and restart its e-commerce business in Indonesia, which could potentially reshape the online shopping landscape.”

Read more: TikTok’s E-Commerce Ambitions Stall as Global Backlash Grows

Deliberations for a deal are ongoing and talks could still fall apart, the people said. A pact would also be subject to regulatory approval, they said. A direct investment into Tokopedia, Indonesia’s largest local e-commerce player, might help to further smoothen TikTok’s relations with the government, one of the people said.

TikTok didn’t respond to a request for comment, while a GoTo representative declined to comment.

Owned by Beijing-based, closely held ByteDance, TikTok has been trying to chart a new path for its fastest-growing feature, TikTok Shop, in a country of 278 million that was supposed to be a template for a global expansion from the US to Europe.

For GoTo, Indonesia’s largest internet company, a deal with TikTok could be risky as it would help a major online-retail rival to keep operating in the country. But it would also give GoTo a strong global social-media partner in an arrangement that could boost shopping and payments volumes for both companies.

“This should be positive for GoTo as it can have live-commerce to challenge Shopee while TikTok could be seen by the regulator to be somewhat helping the local champion maintain its dominance in the local market,” Citigroup analysts led by Ferry Wong wrote in a note.

Chief Executive Officer Patrick Walujo, who took over in June, is trying to bring GoTo to profitability on an adjusted basis by the end of the year to show the ride-hailing and e-commerce company has long-term earnings potential. The managing partner of shareholder Northstar Group is continuing his predecessors’ campaign to reduce losses by slashing jobs, cutting promotions and tightening expense controls.

TikTok has been attempting to engage government officials and other social media companies to figure out a way to restart its e-commerce operations in the country. Last week, Indonesian minister Teten Masduki said TikTok has spoken with five companies including Tokopedia, PT Bukalapak.com and Blibli for possible partnerships.

Indonesia is the first and largest market for TikTok Shop, and online shopping has become the social media app’s fastest-growing feature with a burgeoning fan base in the country. TikTok started the shopping feature in Indonesia in 2021 and its instant success has encouraged it to expand into online retailing in other markets, including the US.

Indonesia is among the first countries in Southeast Asia to push back against TikTok. Navigating the conflict will be pivotal for the company as governments across the world assess how Southeast Asia’s largest nation moves to curb the social media giant’s burgeoning e-commerce presence, just months after the firm said it will invest billions of dollars into the region.

Following the Indonesia restrictions, nearby Malaysia said it is studying the possibility of regulating TikTok and its e-commerce operations. The social media giant is already facing possible bans and scrutiny in the likes of the US, Europe and India on national security concerns.

What Bloomberg Intelligence Says

GoTo could revive its sluggish annual-transacting-user growth by partnering with TikTok in ecommerce, given the latter’s 125 million Indonesian users. Yet GoTo’s Tokopedia, the country’s No. 3 e-tailer, faces rising marketing spending by the No. 1 and No. 2 players, Sea’s Shopee and Alibaba’s Lazada, and helping TikTok relaunch its shopping feature locally will intensify such rivalry. TikTok Shop’s share of local gross merchandise value could reach 10-15% vs. 2022’s 4.4%.

- Nathan Naidu, analyst

Click here for research

(Updates with Bank Jago’s gain in fourth paragraph)

©2023 Bloomberg L.P.