Store Credit Account Credit Transaction
Requires access scope.
A credit transaction which increases the store credit account balance.
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 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 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.
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.
- Anchor to creditInputcredit•Store
Input Credit Account Credit Input! required The input fields for a store credit account credit transaction.
- •ID!required
The ID of the store credit account or the ID of the account owner.
Arguments
- Anchor to storeCreditAccountTransactionstore•Store
Credit Account Transaction Credit Account Credit Transaction The store credit account transaction that was created.
- Anchor to userErrorsuser•[Store
Errors Credit Account Credit User Error!]! non-null The list of errors that occurred from executing the mutation.
Fields