Skip to content

Shopify Dude Fix

Shopify Store Credit Transactions Can Carry Internal Notes in 2027-01

Store credit credit/debit mutations gain optional merchant-only notes in API 2027-01. Record reasons safely, handle NOTE_TOO_LONG and test audit visibility.

Quick answer: GraphQL Admin API 2027-01 adds an optional note to store-credit credit and debit inputs and a readable StoreCreditAccountTransaction.note. Use it for an internal reason or reconciliation reference—not a customer-facing message. Existing integrations do not need to change.
On this page

Why this matters in a real support workflow

Store credit often comes from service recovery, a return exception, a promotion correction, or an accounting adjustment. A balance change alone tells an operator what happened, not why. Older implementations commonly kept a parallel note in a CRM, order timeline, or spreadsheet. That can be useful, but it separates the explanation from the store-credit transaction that actually changed the balance.

What Shopify added

On November 6, 2026, Shopify announced merchant-only transaction notes for the 2027-01 GraphQL Admin API. StoreCreditAccountCreditInput and StoreCreditAccountDebitInput accept an optional note string. The transaction’s note field can be read for credits, debits and debit reversals; it is null when unset, and expiration transactions always return null. Notes are limited to 5,000 characters and cannot be edited after the transaction is created.

Build a reliable note policy

  1. Use API 2027-01 for the new fields; 2026-10 and older do not expose them.
  2. Attach a short, consistent internal reason, such as Return exception | case 4821 | approved by support. Keep personal data and payment details out of the note.
  3. Validate note length before mutation. Treat NOTE_TOO_LONG as a failed transaction—not a credit that succeeded without a note.
  4. Persist the returned transaction ID alongside your support ticket or accounting record. A note is not an idempotency key; retries must still prevent double crediting.
  5. Read the transaction back and confirm the note persisted. For historical records with null, do not invent an explanation.

For implementation, add note to the input object you already pass to storeCreditAccountCredit or storeCreditAccountDebit, then request note when querying the transaction. Keep existing required input fields, access scopes and merchant permissions unchanged. This is an additive feature, not a new store-credit ledger.

Common misunderstanding: A store-credit transaction note is not the order note, a customer-visible gift message, or a reversible annotation. Shopify says these notes are merchant-only and cannot be edited on existing transactions. If your business needs editable case history, keep that in your support system and link the transaction ID.
How to test this

  1. Use a development store and the 2027-01 API with existing store-credit transaction permissions.
  2. Credit a test account with a short note; read back the transaction and verify the exact text and amount.
  3. Debit a test amount with another note; verify the ledger and remaining balance.
  4. Send a note longer than 5,000 characters; confirm NOTE_TOO_LONG and that no transaction was created.
  5. Read a transaction without a note and an expiration transaction; verify the documented null behavior.
  6. Confirm no note appears in the customer-facing experience, and verify retry protection against duplicate balance changes.