store Credit Account Credit
Requires access scope.
Adds funds to a by creating a . The mutation accepts either a store credit account ID, a Customer ID, or a ID. When you provide a customer or company location ID, it automatically creates an account if one doesn't exist for the specified currency.
Store credit accounts are currency-specific. A single owner can have multiple accounts, each holding a different currency. Use the most appropriate currency for the given store credit account owner.
Credits can optionally include an expiration date.
Arguments
- 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.
- 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.