Please have your guinea pig checked by a vet for ringworm or mange mites; both cause intense and painful irritation of the skin and they can look very similar in the early stages, as the guinea pig often scratches and bites itself bloody. Either condition are sadly still fairly common in stressed young shop guinea pigs that have not yet got a fully developed immune system when their short lives are upturned a few times.
With the right diagnosis and treatment from a good vet, you should get over it well. Please do not treat on spec with low dosed shop products, as that is can make things a lot worse than better. Do not put anything on in the meantime, as that can make a proper diagnosis even more difficult.
You will also need to have his companion treated in order to prevent him from coming down with the same. You should be able to claim back the vet cost from the pet shop with a proper written diagnosis and vet bill.
Here is more information on ringworm and mange mites:
Ringworm: Hygiene And Pictures
Guinea Lynx :: Mange Mites
As we have got members from all over the world, you can help us a lot by adding your country, state/province or county to your details, so we can always tailor any advice and recommendations to what is available and doable where you are; especially medical brand names, climate and vet access vary a lot. Click on your username on the top bar, then go to personal details and scroll down to location. Thank you!
We have got a recommended UK vets locator on the top bar, but can provide a link for recommended vets in other countries if wished.