AccountCredit - Liquid Object Reference
On this page
Description
The AccountCredit object contains information about various credits associated with an Account.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Account_Credit__c Salesforce object. A theme writes it as account_credit.
| Liquid attribute | Salesforce field |
|---|---|
name |
s_c__Display_Name__c |
opening_balance |
s_c__Opening_Balance__c |
type |
s_c__Account_Credit_Type__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from account_credit.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
account |
Account | Returns the Account that the AccountCredit belongs to |
created_at |
Timestamp | Returns the timestamp for when this AccountCredit was created |
current_balance |
Number | Returns the current balance of this AccountCredit |
expires_at |
Timestamp | Returns the timestamp for when this AccountCredit expired |
id |
String | Returns the unique id of the AccountCredit |
name |
String | Returns the name of the AccountCredit |
opening_balance |
Number | Returns the opening balance of this AccountCredit |
path |
String | Returns the url path for this AccountCredit |
transactions |
List[AccountCreditTransaction] | Returns a list of AccountCreditTransactions for this AccountCredit |
type |
String | Returns this AccountCredit’s type |
url |
String | Returns the complete url for this Order |
usable? |
Boolean | Returns true if this AccountCredit can be used, ie it’s not expired or out of balance |
Available on
- Account - Liquid Object Reference —
account_credits - AccountCreditTransaction - Liquid Object Reference —
account_credit
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.