How do I apply a credit from a vendor?

How do I apply a credit from a vendor?

To further clarify:

I ordered something from a vendor, paid for it with a credit card and then realized the payment amount was incorrect. So the next day the vendor credited the difference back to my credit card. How do I record that transaction against that vendor and on the credit card so my Zoho Books matches my credit card statement?