AccountPointsTransaction - Liquid Object Reference
On this page
Description
The AccountPointsTransaction object represents a transaction against an AccountPoints.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Account_Points_Ledger__c Salesforce object. A theme writes it as account_points_transaction.
| Liquid attribute | Salesforce field |
|---|---|
amount |
s_c__Points_Value__c |
default_rate_used |
s_c__Default_Rate_Used__c |
reason_code |
s_c__Reason_Code__c |
transaction_currency |
s_c__Transaction_Currency__c |
transaction_currency_value |
s_c__Transaction_Currency_Value__c |
type |
s_c__Entry_Type__c |
usage |
s_c__Usage__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_points_transaction.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
account |
Account | Returns the Account that the transaction belongs to |
activated? |
Boolean | Returns true if this transaction has been activated |
amount |
Number | Returns the amount of this transaction |
contact |
Contact | Returns the Contact associated with this transaction |
created_at |
Timestamp | Returns the timestamp for when this transaction was created |
default_rate_used |
Number | Returns the default conversion rate used (if any) for this transaction |
expires_at |
Timestamp | Returns the timestamp for when this transaction expires |
id |
String | Returns a unique id for this transaction |
order_item |
OrderItem | Returns the OrderItem associated with this transaction |
payment |
Payment | Returns the Payment associated with this transaction |
pending? |
Boolean | Returns true if this transaction has not been activated. Only activated credit transactions can be used for purchases |
reason_code |
String | Returns the reason for this transaction |
store |
Store | Returns the Store that the transaction belongs to |
transaction_currency |
String | Returns the currency of this transaction |
transaction_currency_value |
Number | Returns the value of this transaction in the transaction currency |
type |
String | Returns this transaction’s entry type: credit or debit |
usage |
String | Returns the usage options of this transaction (when credit): store, store_group, any_store |
Available on
- AccountPoints - Liquid Object Reference —
transactions
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.