Online retailer Rakuten Inc. had a loss in the second quarter after taking a one-time charge for reorganizing its credit card business.

The net loss was ¥48.3 billion in the three months that ended June 30 from a ¥10.3 billion profit a year earlier, Rakuten said Thursday. Sales rose 6.8 percent to ¥90.7 billion.

Rakuten, which operates the shopping portal Rakuten Ichiba that sells products from electronics to pajamas, said this month it would take a ¥75.9 billion charge in the second quarter after reorganizing its credit card business. Operating profit fell about 1 percent to ¥15.1 billion.