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•
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 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 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.
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•
Input StoreCredit 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•
Credit Account Transaction The store credit account transaction that was created.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Fields