Store Credit Account Transaction
Requires access scope.
Interface for a store credit account transaction.
Anchor to FieldsFields
- account (StoreCreditAccount!)
- amount (MoneyV2!)
- balanceAfterTransaction (MoneyV2!)
- createdAt (DateTime!)
- event (StoreCreditSystemEvent!)
- origin (StoreCreditAccountTransactionOrigin)
- Anchor to accountaccount•Store
Credit Account! non-null The store credit account that the transaction belongs to.
- Anchor to amountamount•Money
V2! non-null The amount of the transaction.
- Anchor to balanceAfterTransactionbalance•Money
After Transaction V2! non-null The balance of the account after the transaction.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the transaction was created.
- Anchor to eventevent•Store
Credit System Event! non-null The event that caused the store credit account transaction.
- Anchor to originorigin•Store
Credit Account Transaction Origin The origin of the store credit account transaction.
Anchor to Types implemented inTypes implemented in
- StoreCreditAccountCreditTransaction (StoreCreditAccountCreditTransaction)
- StoreCreditAccountDebitRevertTransaction (StoreCreditAccountDebitRevertTransaction)
- StoreCreditAccountDebitTransaction (StoreCreditAccountDebitTransaction)
- StoreCreditAccountExpirationTransaction (StoreCreditAccountExpirationTransaction)
- •OBJECT
A credit transaction which increases the store credit account balance.
- •OBJECT
A debit revert transaction which increases the store credit account balance. Debit revert transactions are created automatically when a store credit account debit transaction is reverted.
Store credit account debit transactions are reverted when an order is cancelled, refunded or in the event of a payment failure at checkout. The amount added to the balance is equal to the amount reverted on the original credit.
- •OBJECT
A debit transaction which decreases the store credit account balance.
- •OBJECT
An expiration transaction which decreases the store credit account balance. Expiration transactions are created automatically when a store credit account credit transaction expires.
The amount subtracted from the balance is equal to the remaining amount of the credit transaction.