You might find yourself in a situation where you'll have to prove that you've paid taxes in China, especially when you return to one of those countries where you pay taxes either in China or your home country, but not both.
Long story short, first you need to visit the tax office in person to get your registration code, and then you'll need to input that code into a specific app to access your tax statement.
Here is a step-by-step guide: