Skip to content

Shopify Dude Fix

Shopify Subscription Store Credit on Renewals: Configure allowStoreCredit in 2027-01

Shopify API 2027-01 adds allowStoreCredit for eligible subscription renewals. Enable it on selling plans and contracts, validate calculations, and test recurring billing.

Quick answer: In API version 2027-01, eligible subscriptions can apply customer store credit to renewal payments when allowStoreCredit is enabled. Set it on the recurring selling plan and the subscription contract, then verify the calculated contract before committing. Shopify applies eligible credit first and charges the remaining balance to the saved payment method. Existing contracts default to false and do not change automatically.
On this page

What changed from older store-credit guidance

Older Shopify Help Center guidance said store credit could pay for the initial subscription purchase but not recurring bills. Shopify announced a new API capability on November 19, 2026 for the 2027-01 release. Treat this as a versioned subscription integration change, not proof that every existing subscription or payment gateway automatically supports store-credit renewals.

Where to set the flag

  1. On a recurring selling plan, use SellingPlanRecurringBillingPolicyInput.paymentConfiguration.allowStoreCredit through sellingPlanGroupCreate or sellingPlanGroupUpdate.
  2. On contracts, use the supported paymentConfiguration input in subscription draft updates or contract calculation create/update operations.
  3. After calculating, read SubscriptionCalculatedContract.paymentConfiguration.allowStoreCredit. Do not commit if the calculated value differs from the requested setting.
  4. Read SubscriptionContract.paymentConfiguration.allowStoreCredit to verify persisted behavior. Customer Account API exposes the setting read-only for customer portals.

Eligibility rules to check before exposing a toggle

Shopify rejects allowStoreCredit: true when a contract has no lines or when any line’s selling plan has store credit disabled. Fixed selling plans count as disabled. Lines with no selling plan can be accepted, and setting the flag to false is allowed. A failed contract calculation reports INVALID on calculatedContract.paymentConfiguration.allowStoreCredit; a failed subscriptionDraftCommit reports an INVALID user error.

Example: read the contract setting

query SubscriptionCreditSetting($id: ID!) {
  subscriptionContract(id: $id) {
    id
    paymentConfiguration {
      allowStoreCredit
    }
  }
}

Run against a compatible 2027-01 Admin GraphQL endpoint and a contract visible to your app. This reads the flag; it does not turn credit on. The customer portal can display the state but cannot change it through the read-only Customer Account field.

Production decisions

Separate merchant configuration, buyer opt-in, and billing execution. A selling plan that allows store credit does not by itself imply an existing contract opted in. Audit subscription-app compatibility, customer account sign-in, available credit currency, and the saved payment method. If the balance covers only part of the renewal, the remainder goes to the saved method. Keep refunds, failed renewals, and account credit changes in your test matrix.

Common misunderstanding: “Turn on store credit in customer account settings and every renewal will automatically use it.” The new API requires eligible selling plans and a contract-level setting. Existing plans and contracts remain unchanged by default.
How to test this

  1. Use a development store and API 2027-01; create a recurring selling plan with store credit enabled and one with it disabled.
  2. Calculate an eligible contract with allowStoreCredit true; inspect the calculated setting before committing.
  3. Try a contract containing a fixed selling plan or a plan with store credit off; confirm INVALID is handled without a partial update.
  4. Verify an eligible customer’s initial checkout opt-in and inspect the persisted contract field.
  5. Run controlled renewal tests with enough credit, partial credit, and no credit; reconcile the credit ledger and saved-method charge.
  6. Verify the customer portal displays the read-only setting and does not promise support for an ineligible contract.