Refer to the Credit Card User Guide, in the "Making Adjustments to Credit Card Accounts" section.  There are very good examples here showing how to perform some common account adjustments.

Please note that the instructions may be different on whether the finance charges to be refunded have been paid yet or not or when the fee was charged and paid in a previous month or the current one.