Anchor to StoreCreditAccountDebitTransactionStore
objectStore Credit Account Debit Transaction
Requires access scope.
A debit transaction which decreases the store credit account balance.
Anchor to FieldsFields
- account (StoreCreditAccount!)
- amount (MoneyV2!)
- balanceAfterTransaction (MoneyV2!)
- createdAt (DateTime!)
- event (StoreCreditSystemEvent!)
- id (ID!)
- 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.
- •ID!non-null
A globally-unique ID.
- Anchor to originorigin•Store
Credit Account Transaction Origin The origin of the store credit account transaction.
Was this section helpful?
Anchor to MutationsMutations
- storeCreditAccountDebit (StoreCreditAccountDebitPayload)
- •mutation
Creates a debit transaction that decreases the store credit account balance by the given amount.
- •ID!required
The ID of the store credit account or the ID of the account owner.
- Anchor to debitInputdebit•Store
Input Credit Account Debit Input! required The input fields for a store credit account debit transaction.
Arguments
- •ID!
Was this section helpful?
Anchor to InterfacesInterfaces
- Node
- StoreCreditAccountTransaction
- •interface
Was this section helpful?