StoreCreditAccountCreditTransaction
Requires access scope.
A credit transaction which increases the store credit account balance.
Anchor to FieldsFields
- Anchor to accountaccount•Store
Credit non-nullAccount! The store credit account that the transaction belongs to.
- Anchor to amountamount•Money
V2! non-null The amount of the transaction.
- Anchor to balanceAfterTransactionbalance•
After Transaction MoneyV2! non-null The balance of the account after the transaction.
- Anchor to createdAtcreated•
At DateTime! non-null The date and time when the transaction was created.
- Anchor to eventevent•Store
Credit non-nullSystem Event! The event that caused the store credit account transaction.
- Anchor to expiresAtexpires•
At 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•
The origin of the store credit account transaction.
- Anchor to remainingAmountremaining•
Amount MoneyV2! 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.
Map
Fields with this object
Anchor to MutationsMutations
- •mutation
Creates a credit transaction that increases the store credit account balance by the given amount. This operation will create an account if one does not already exist. A store credit account owner can hold multiple accounts each with a different currency. Use the most appropriate currency for the given store credit account owner.