solution25
  • Ecommerce

    See where your store can improve.

    Get Your Free Audit
    Frame 1321315514

    Shopware

    Platinum Partner, now in the US

    More
    Shopware Core Concepts Who Uses Shopware? Become a Good Shopware Partner Shopware Hosting Shopware Pre Go-Live Checklist Why Shopware? B2B on Shopware B2C on Shopware Shopware Performance Shopware PaaS on Platform.sh Shopware for the U.S. Market Shopware SEO Guide
    Frame 1321315514 1

    Shopify

    Fast to launch, built to scale

    More
    What is Shopify? Who should use Shopify? What can you do with Shopify? How much does Shopify cost? How do you choose your Shopify theme? Can you connect Amazon to Shopify? Who Owns Shopify? Shopify Disadvantages Benefits of Shopify
    Frame 1321315514 19

    Magento

    Complex catalogs and B2B

    Coming soon
    Frame 1321315514 18

    WooCommerce

    Flexible commerce for growing businesses

    Coming soon
    Frame 1321315514 2

    Migrations

    Move platforms without disrupting revenue

    More
    Shopware 5 to Shopware 6 Shopify to Shopware 6 Magento to Shopware 6 Oxid to Shopware 6 Migrations Prep for Shopware Platform Migrations Our Shopware Process Painful Shopware 6 Migrations if Done Wrong Shopware Prep: Historical Order Data Shopware Data Ready Shopware Content Migrations SEO Considerations in Platform Migrations
    Frame 1321315514 3

    Integrations

    Payments, tax, fulfillment, marketing

    More
    Shopware 5 Optimizely Campaign Shopware 6 Optimizely Campaign Shopware 6 PayTrace Payment Shopware 6 NMI Payment Shopware 6 MaxMind Fraud Prevention Shopware 6 Quotes & Customer-Specific Pricing Subscriptions on Shopware Shopware 6 Listrak Shopware 6 Multi Channel Shopware 6 Partial Delivery Shopware 6 AgeChecker.net Shopware 6 Pudo Point Why API First Opens Doors? Reduce the cost of ERP integrations PayPal Payment Provider Klaviyo Integration Guide for Shopware 6 Klaviyo - Email Marketing Integration Reviews.io Integration Guide for Shopware 6 HubSpot Integration for Shopware 6 Mailchimp - Email Marketing Integration Google Analytics - Integration Guide Integrate Zapier with Shopware 6 Shopware 6 BlueSnap Shopware 6 Cybersource Shopware 6 Abandoned Cart Saver Shopware 6 Store Credit
    Frame 1618873659

    Start your Shopware migration with us.

    Learn more
    Shopware – Overview Shopware Core Concepts Who Uses Shopware? Become a Good Shopware Partner Shopware Hosting Shopware Pre Go-Live Checklist Why Shopware? B2B on Shopware B2C on Shopware Shopware Performance Shopware PaaS on Platform.sh Shopware for the U.S. Market Shopware SEO Guide
    Shopify – Overview What is Shopify? Who should use Shopify? What can you do with Shopify? How much does Shopify cost? How do you choose your Shopify theme? Can you connect Amazon to Shopify? Who Owns Shopify? Shopify Disadvantages Benefits of Shopify
    Migrations – Overview Shopware 5 to Shopware 6 Shopify to Shopware 6 Magento to Shopware 6 Oxid to Shopware 6 Migrations Prep for Shopware Platform Migrations Our Shopware Process Painful Shopware 6 Migrations if Done Wrong Shopware Prep: Historical Order Data Shopware Data Ready Shopware Content Migrations SEO Considerations in Platform Migrations
    Integrations – Overview Shopware 5 Optimizely Campaign Shopware 6 Optimizely Campaign Shopware 6 PayTrace Payment Shopware 6 NMI Payment Shopware 6 MaxMind Fraud Prevention Shopware 6 Quotes & Customer-Specific Pricing Subscriptions on Shopware Shopware 6 Listrak Shopware 6 Multi Channel Shopware 6 Partial Delivery Shopware 6 AgeChecker.net Shopware 6 Pudo Point Why API First Opens Doors? Reduce the cost of ERP integrations PayPal Payment Provider Klaviyo Integration Guide for Shopware 6 Klaviyo - Email Marketing Integration Reviews.io Integration Guide for Shopware 6 HubSpot Integration for Shopware 6 Mailchimp - Email Marketing Integration Google Analytics - Integration Guide Integrate Zapier with Shopware 6 Shopware 6 BlueSnap Shopware 6 Cybersource Shopware 6 Abandoned Cart Saver Shopware 6 Store Credit
  • Software & AI

    See where your store can improve.

    Get Your Free Audit
    Frame 1321315514 4

    Software Development

    Platforms and portals, systems connected

    Coming soon
    Frame 1321315514 5

    App Development

    Web and mobile apps, API-first

    Coming soon
    Frame 1321315514 6

    AI Development

    Models connected, data enriched, assistants

    Coming soon
    Frame 1321315514 7

    Replatforming

    Switch platforms without losing revenue

    More
    Frame 1321315514 8

    All Integrations

    Payments, tax, fulfillment, marketing

    More
    Frame 1618873659 1

    Discover our latest Shopware plugin. MCP Connector.

    Explore the plugin
  • Solutions

    See where your store can improve.

    Get Your Free Audit

    Further links

    Frame 1321315514 16 GitHub Frame 1321315514 17 Shopware Store
    S25

    Shop Integrations

    Official payment and shop integrations for Shopware, Optimizely and more.

    More
    S25 2

    docks25

    Your store migration in 48 hours instead of weeks. No data storage or AI access.

    More
    S25 3

    shop25

    Your turnkey online store for €299 per month.

    More
    Frame 1321315514 21

    Pathway

    By Boldest, in partnership with solution25

    More
    S25 5

    mcp25

    AI connectors that link your store to Claude, GPT, Gemini or Copilot.

    Coming soon
    S25 6

    ProPulse

    Store KPIs in one dashboard, in partnership with Profihost.

    More
    Frame 1618873659 2

    Discover our Black Week offer.

    View offer
  • Company

    See where your store can improve.

    Get Your Free Audit

    About

    Events & Summit

    Resources

    Careers

    Frame 1618873659 3

    Built by people who know commerce.

    Learn more
  • Blog
  • Contact
  • Language: US

    Select Language

    • DE
    • US
    • FR
    • AT
    • CH
    • NL
    • UK
    • IT
    • PL
    • ES
    • DK
+1 929-264-76 02
  • DE
  • FR
  • AT
  • CH
  • NL
  • UK
  • IT
  • PL
  • ES
  • DK
  • Free consultation
    1. Home /
    2. Store Credit
    GitHub

    Store Credit

    432200895 Bb12d407 D013 41dd B97e C3d08112c054
    Share

    Table of content

    Free 15 min initial consultation directly with our experts.

    Free consultation +49 421 438 1919–0
    Share

    Introduction

    The Store Credit Plugin for Shopware 6 provides a flexible and convenient solution for managing customer returns and refunds. Instead of processing traditional refunds, store administrators can allocate store credit directly to a customer’s account. This credit can then be used for future purchases, allowing customers to continue shopping while maintaining their funds within the store ecosystem.
    The plugin ensures that store credits can be applied across multiple orders until the allocated amount is fully used, giving customers maximum flexibility in how and when they redeem their credits.

    Administrators have full control over issuing, tracking, and managing credits, making it easy to maintain accurate records and provide a seamless customer experience. By offering store credit instead of refunds, merchants can improve customer retention, reduce transaction fees, and encourage repeat purchases, all while streamlining the returns process. The Store Credit Plugin integrates smoothly into the Shopware environment, allowing credits to be easily applied at checkout and tracked in the admin panel for complete oversight.

    Key Features

    • Store Credit Management:Admins can add, remove, and adjust store credit for customers.

    • Partial Usage: Customers can use store credit across multiple orders until exhausted.

    • Smooth Checkout Integration Customers can apply store credit at checkout alongside other payment methods.

    • Transaction History: Customers and admins can view a history of store credit transactions.

    Compatibility

    • ✅ Shopware 6.6.x

    Get Started

    • Installation & Activation

    1.Download

    • Clone the Plugin Repository:

    • Open your terminal and run the following command in your Shopware 6 custom plugins directory (usually located at custom/plugins/):

    git clone https://github.com/solution25com/store-credit-shopware-6-solution25.git
    

    2.Install the Plugin in Shopware 6

    • Log in to your Shopware 6 Administration panel.

    • Navigate to Extensions > My Extensions.

    • Locate the newly cloned plugin and click Install.

    3.Activate the Plugin

    • After installation, click Activate to enable the plugin.

    • In your Shopware Admin, go to Settings > System > Plugins.

    • Upload or install the “Store Credit” plugin.

    • Once installed, toggle the plugin to activate it.

    4.Verify Installation

    • After activation, you will see Store Credit in the list of installed plugins.

    • The plugin name, version, and installation date should appear as shown in the screenshot below.

    432200996 Ee52304c 21f8 42a8 9f12 A90287bc1327

    Plugin Configuration

    1.Access Plugin Settings

    • Go to Settings > System > Plugins.

    • Locate Store Credit and click the three dots (...) icon or the plugin name to open its settings.

    2.General Settings
    1. Minimal Configuration: After installing the Store Credit Plugin, you need to enable the Store Credit Refund Type in the configuration. Since this plugin is related to Swag Commercial, the toggle should be enabled for the Store Credit Refund Type option to activate store credit refunds.

    432201195 1b9a2531 5ce2 4c69 95ff Bcf934d5375f

    2. Store Credit Add State: Toggle to enable or disable the feature.
    3. Post Purchase Features: Restrict store credit usage to specific products.

    432201310 6c0da891 9f8d 4f72 Bb91 1379a1862491

    How it works

    After installing and enabling the plugin in the admin panel, customers can view their available balance and transaction history in their profile account settings on the storefront.

    432201402 5005aaea 4109 4b3f Bff8 B1bf9b268b3c

    Admins can manually add or deduct store credit from a customer’s account.

    432201508 1486cb7b B82f 4817 B958 038283332661
    432201532 Ec63a465 A4e7 49b5 A5e4 985c95676857

    Refunds & Credit Memo Workflow

    • When processing a return, select the "Refund as Store Credit" option.

    • The refunded amount is added to the customer's store credit balance.

    • Customers can use the store credit for future purchases.

    • All transactions are logged in the store_credit_history table for tracking.

    432201644 1e6d6251 8579 4d66 9dfe 466993b49583

    Refunds & Store Credit Management

    Partial & Full Refunds:

    • When issuing a refund, choose between a partial or full refund to store credit.

    • The refunded amount is automatically added to the customer's store credit balance.

    • The order status updates accordingly.

    Project Structure

    Storefront – Key Files/Folders

    • Controller Folder: Defines the store credit balance table and store credit history with API.

    • CartSubscriber.php: Checks if the user has used the store credits.

    • OrderRefundSubscriber.php: It handles the refund as store credit option.

    • CustomCheckoutController.php: Defines store credit as a payment option.

    Core – Key Files/Folders:

    • Entities/StoreCredit.php: Manages store credit data model.

    • Entities/StoreCreditHistory.php: Logs store credit transactions.

    Resources – Key Files/Folders:

    • services.xml: Registers services for dependency injection.

    • routes.xml: Declares API routes.

    Admin Panel – Key Features:

    • View history, add, and deduct store credit in customer details.

    • Generate reports on credit usage.

    API Endpoints

    Get Store Credit Balance
    – Path: /store-api/store-credit/balance/{customer_id}
    – Method: GET
    – Purpose: Fetches the current store credit balance of a customer.
    – Response: Returns the available credit balance.

    Add Store Credit
    – Path: /store-api/store-credit/add
    – Method: POST
    – Request Body:
    – customer_id (string, required)
    – amount (float, required)
    – reason (string, optional) Response: Returns updated store credit details.

    Deduct Store Credit

    – Path: /store-api/store-credit/deduct
    – Method: POST
    – Request Body:
    – customer_id (string, required)
    – amount (decimal, required)
    – order_id (string, optional) Response: Returns updated store credit details.


    – Refund to Store Credit

    – Path: /store-api/store-credit/add
    – Method: POST
    – Request Body:
    – order_id (string, required)
    – amount (decimal, required) Response: Refund processed and logged in credit history.
    – reason (string, optional).

    Use from end-users - Checkout Integration

    • Customers can choose to apply store credit as payment during checkout.

    432201767 02ec29e2 17b6 4f25 9b9c Fd8a387c2b7b
    • Partial and full store credit application supported.

    • Remaining balance is paid via an alternative payment method.

    • When an admin creates an order he can use the store credits of the customer he chooses, first you add the product in admin order creation, then you add another line item as credit and you use the specific name “Store credit discount“.

    Store Credit Plugin - API Documentation

    This document describes the API endpoints provided by the Store Credit Plugin for Shopware 6. These endpoints allow authorized users to manage store credits for customers and apply store credits during checkout.

    Add Store Credit

    Endpoint

    POST /api/store-credit/add
    

    Description

    Adds a store credit amount to a specific customer’s balance. This can optionally be linked to an order and currency.

    Request Headers

    Authorization: Bearer 
    Content-Type: application/json
    

    Example Request Body

    {
      "customerId": "3c2a178f96b7345ad27051c34609e52",
      "amount": 50.0,
      "reason": "Manual admin adjustment"
    }
    

    Successful Response

    {
      "success": true,
      "historyId": "f84b5a7a4fce4a1db9d693c8be304a1e"
    }
    

    Example Error Response

    {
      "success": false,
      "message": "Customer ID is missing."
    }
    

    Deduct Store Credit

    Endpoint

    POST /api/store-credit/deduct
    

    Description

    Deducts a store credit amount from a customer’s balance. The deduction can include a reason for logging purposes.

    Request Headers

    Authorization: Bearer 
    Content-Type: application/json
    

    Example Request Body

    {
      "customerId": "3c2a178f96b7345ad27051c34609e52",
      "amount": 20.0,
      "reason": "Refund adjustment"
    }
    

    Successful Response

    {
      "success": true,
      "historyId": "a9d2554b0ce847cd82f3ac9bd1c0aa2f"
    }
    

    Example Error Response

    {
      "success": false,
      "message": "Amount exceeds the maximum allowed credit for order."
    }
    

    Get Store Credit Balance

    Endpoint

    Description

    Retrieves the current store credit balance for a customer.

    Request Headers

    Authorization: Bearer 
    

    Example Request

    GET /api/store-credit/balance?customerId=3c2a178f96b7345ad27051c309e52
    

    Successful Response

    {
      "success": true,
      "balance": 80.0,
      "currencyId": "b7d2554b0ce847cd82f3ac9bd1c0dfca"
    }
    

    Example Error Response

    {
      "success": false,
      "message": "Customer not found."
    }
    

    Authentication Note

    These endpoints are protected and require a Bearer token obtained through the Shopware Admin API.

    Best Practices

    1. Enable Store Credit Refunds
    Ensure the Store Credit Refund Type option is activated in Settings > System > Plugins.
    Allows refunds to be issued as store credit instead of cash.

    2.Set Per-Order Credit Limits

    Define a maximum limit for store credit usage per order (e.g., 50 euros).
    Helps control how much credit can be used during checkout.

    3. Monitor Store Credit Transactions

    Regularly check the store credit transaction logs to track customer usage.
    This helps to avoid errors and discrepancies.

    4.Inform Customers About Their Credit
    Make sure customers can see their available store credit balance in their account.
    Send notifications when store credit is added or used.

    5. Test Before Going Live
    Test different scenarios, such as refunds, partial payments, and store credit applications during checkout.
    Ensure everything functions properly before launching.
    6.Use API to Customize for Your Needs
    Use API endpoints to customize store credit rules and integrate with other store functions.
    This allows for flexibility in how store credit is applied.

    7. Restrict Store Credit for Certain Products

    If necessary, restrict store credit usage for specific products or sales channels.
    This ensures store credit is used where appropriate.

    Troubleshooting

    1.Store credit is not appearing at checkout

    Ensure the Store Credit Refund Type is activated in the plugin settings.
    Check if the customer has enough store credit in their account.

    2.Refunds not issued as store credit

    Verify that the refund method is set to Store Credit when processing returns.
    Check for conflicts with other refund-related plugins.
    3.Customer’s store credit balance is not updating
    Ensure scheduled tasks are running with the following commands:

    bin/console scheduled-task:register
    bin/console scheduled-task:run
    bin/console messenger:consume
    

    Verify the store credit history is being logged in the database.

    4.Admins cannot modify store credit

    Ensure the admin has the necessary permissions to edit customer store credit.
    Double-check that API calls for store credit adjustments are functioning.

    5.Orders not using store credit during checkout

    Ensure there is no restriction on store credit for the selected products.
    Verify that the credit amount is within the allowed per-order limit.

    FAQ

    1.Can I restrict store credit usage to specific products?

    Yes, you can restrict store credit usage for specific products or categories through the Post Purchase Features.

    2.How do I add store credit to a customer’s account?

    Admins can add store credit manually through the Customer Details section in the admin panel.

    3.Can store credit expire?

    Currently, the plugin does not support automatic expiration of store credit, but this feature can be customized.

    4.Can customers see their store credit balance?

    Yes, customers can view their available balance and transaction history in their account settings

    Related topics

    • Tax Rates
    • TaxJar Integration for Shopware 6
    • Store Credit & Customer Balance Plugin for Shopware

    Wiki Documentation

    Read more about the plugin configuration on our Wiki

    Our drive.
    Your growth.

    The agency for e-commerce, software and AI.

    Get free advice
    Company
    • About Us
    • Events
    • Blog
    • Careers
    Events
    • Shopware
    • Shopify
    • Integrations
    • Migration
    Legal
    • Imprint & Legal Information
    • Privacy Policy
    • Solution25 for Shopware – Setup and help
    Location
    New York 42nd St Suite 1201, New York, NY 10165 +1 929 264-7602 info@solution25.com
    Group 1321315536 1
    Group 1321315537 1

    © 2026 solution25. All rights reserved

    Linkedin Facebook Instagram