Home / Payments & Gift Cards / Issuing Store Credit / Bulk Store Credit With the Shopify API (No App Route)

Payments & Gift Cards/By Merchant Kit Editors/Updated

Bulk Store Credit With the Shopify API (No App Route)

Short answer

Developers can issue store credit in bulk with Shopify's storeCreditAccountCredit GraphQL mutation. It needs the write_store_credit_account_transactions scope, takes a customer, account or company location ID, and returns userErrors. You own the loop, retries and logging. Non-developers can use a CSV app such as Bulk Store Credit instead.

Key facts
MutationstoreCreditAccountCredit(id, creditInput)
Write scopewrite_store_credit_account_transactions
Read scoperead_store_credit_accounts
id can beStoreCreditAccount, Customer or CompanyLocation ID
creditInputcreditAmount (amount, currencyCode) and optional expiresAt
Debit mutationstoreCreditAccountDebit
Documented API version2026-10

If you have a developer, you can credit a whole list with no app fee. This page covers what the API does and what you have to build around it.

The mutation

Shopify documents storeCreditAccountCredit in the Admin GraphQL reference. A call looks like this:

mutation {
  storeCreditAccountCredit(
    id: "gid://shopify/Customer/1234567890"
    creditInput: {
      creditAmount: { amount: "25.00", currencyCode: USD }
      expiresAt: "2026-12-31T23:59:59Z"
    }
  ) {
    storeCreditAccountTransaction {
      amount { amount currencyCode }
    }
    userErrors { field message }
  }
}

Check the reference for the exact field names in your API version before you ship. The version documented when we wrote this was 2026-10.

What it needs

  • The write_store_credit_account_transactions scope to credit. Reading accounts needs read_store_credit_accounts.
  • An id that is a StoreCreditAccount, Customer or CompanyLocation ID. If the customer has no account in that currency, Shopify creates one.
  • A positive amount. Negative amounts are rejected.

The same mutation works for company locations, which matters for B2B store credit.

Errors you will meet

Message or case What it means
A positive amount must be used to credit a store credit account You sent zero or a negative number
The operation would cause the account's credit limit to be exceeded The account would reach the cap of $15,000 USD or more

Numeric limits and rate limits for this mutation are not documented on the page we read, so build retries and a delay between calls.

What you have to build yourself

An app does these jobs for you. With the API, they are yours:

  1. Reading a CSV and validating emails and amounts.
  2. Looking up each customer ID.
  3. A loop with retries and throttling.
  4. A log of what was credited, so you never credit someone twice.
  5. A way to reverse mistakes. See undo or reduce store credit.

When an app is easier

If nobody on your team writes code, Bulk Store Credit does the CSV reading and issuing in a form with a free plan limited to 20 rows. See how to give store credit to many customers. If you have a developer and a one-off job, the API is fine.

Shopify Flow

Flow can trigger on order events, and the Shopify help page recommends it for issuing gift cards after an order. For store credit, a community reply from March 2025 says the mutation became available in the "Send Admin API request" action. Read that thread and test on a development store. For automatic credit after purchase without Flow, see automatic store credit after purchase.

A batch plan that works

  1. Pull a list of customer emails and amounts into a file.
  2. Look up each customer's ID and store it next to the row.
  3. Run a test on 3 customers in a development store.
  4. Credit in small groups, such as 20 at a time, with a short pause between groups.
  5. Write each result, success or userErrors, to a log file with the row number.
  6. Retry only the failed rows, never the whole file.
  7. Save the log with the date. It is your proof of what was issued, and your input if you need debits.

A developer can build this in a day. If you do not have one, a CSV app does the same steps without code. See do you need an app for Shopify store credit.

Questions people ask

How do I issue store credit through the Shopify API in bulk?

Loop over your customers and call storeCreditAccountCredit once per customer. Each call credits one account. Handle userErrors and throttling in your own code.

Does the mutation create an account if the customer has none?

Yes. Shopify says an account is created automatically in that currency if none exists.

Can I send a negative amount to reduce credit?

No. Shopify rejects negative amounts with the message that a positive amount must be used. Use storeCreditAccountDebit to remove credit.

Can Shopify Flow give store credit?

Flow did not list a store credit action when we checked, and we could not read the actions page directly. A community reply says the mutation can be reached through the Send Admin API request action. That is a community post, not official documentation.

Daniel Mercer

Meet the editor

Daniel Mercer

Daniel takes a practical approach to choosing ecommerce tools. His focus is how apps fit together, where their features overlap and which options make sense for a store's needs and budget.

About our editorial approach