Skip to main content
Anchor to storeCreditAccountCredit

storeCreditAccountCredit

mutation

Requires write_store_credit_account_transactions access scope.

Adds funds to a StoreCreditAccount by creating a StoreCreditAccountCreditTransaction. The mutation accepts either a store credit account ID, a Customer ID, or a CompanyLocation 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.

•StoreCreditAccountCreditInput!
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.


Was this section helpful?

Anchor to StoreCreditAccountCreditPayload returnsStoreCreditAccountCreditPayload returns

Anchor to storeCreditAccountTransactionstoreCreditAccountTransaction
•StoreCreditAccountCreditTransaction

The store credit account transaction that was created.

•[StoreCreditAccountCreditUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?