Store Credit Account Transaction
Requires access scope.
Interface for a store credit account transaction.
Anchor to FieldsFields
- 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
- •OBJECT
A credit transaction which increases the store credit account balance.
- 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 expiresAtexpires•Date
At Time The time at which the transaction expires. Debit transactions will always spend the soonest expiring credit first.
- •ID!non-null
A globally-unique ID.
- Anchor to originorigin•Store
Credit Account Transaction Origin The origin of the store credit account transaction.
- Anchor to remainingAmountremaining•Money
Amount V2! non-null The remaining amount of the credit. The remaining amount will decrease when a debit spends this credit. It may also increase if that debit is subsequently reverted. In the event that the credit expires, the remaining amount will represent the amount that remained as the expiry ocurred.
- •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.
- 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 debitTransactiondebit•Store
Transaction Credit Account Debit Transaction! non-null The reverted debit transaction.
- Anchor to eventevent•Store
Credit System Event! non-null The event that caused the store credit account transaction.
- •ID!non-null
A globally-unique ID.
- Anchor to originorigin•Store
Credit Account Transaction Origin The origin of the store credit account transaction.
- •OBJECT
A debit transaction which decreases the store credit account balance.
- 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.
- •ID!non-null
A globally-unique ID.
- Anchor to originorigin•Store
Credit Account Transaction Origin The origin of the store credit account transaction.
- •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.
- 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 creditTransactioncredit•Store
Transaction Credit Account Credit Transaction! non-null The credit transaction which expired.
- 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.