ArcGIS Online credits are used through transactions and storage. Credits are charged according to the amount of data that you store and the length of time the data is stored.
Visit go.esri.com/credits to learn more about the types of storage that consume credits.