Liquid Template Variables - customer credit

From Spiffy Stores Knowledge Base

The CustomerCredit object is available in credit update notification email templates.

The Liquid template variable customer_credit has the following attributes:

customer_credit.id

Returns the unique internal number of the customer credit.

This is normally only for internal usage.

customer_credit.amount

Returns the amount of credit that has been added to the customer's account.

If the amount is negative, this represents that amount of the customer's account credit that was applied to an order.

customer_credit.description

This is the text that was entered to describe the credit when it was created.

customer_credit.customer

Return the customer object associated with the credit.

customer_credit.order

Return the order object associated with the credit that was used for an order.

Further Reference