1 ---
2 sidebar_position: 1
3 sidebar_label: "Manage Store Credits"
4 tags:
5 - user guide
6 - store credit
7 products:
8 - store credit
9 ---
10
11 import { Prerequisites, InlineIcon } from "docs-ui"
12 import { EllipsisHorizontal } from "@medusajs/icons"
13
14 export const metadata = {
15 title: `Manage Store Credits in Medusa Admin`,
16 }
17
18 # {metadata.title}
19
20 In this guide, you'll learn how to create and manage store credit accounts in the Medusa Admin.
21
22 <Prerequisites
23 items={[
24 {
25 text: "Loyalty plugin installed",
26 link: "!resources!/commerce-modules/store-credit#1-install-the-loyalty-plugin",
27 },
28 ]}
29 />
30
31 ## View Store Credit Accounts
32
33 To view all store credit accounts in your store, click on **Store Credits** in the sidebar.
34
35 The list shows each account's currency, linked customer email, current balance, total credits, total debits, and creation date. You can filter the list by date range or customer.
36
37 <Note title="Tip">
38
39 When you create a [gift card](../../gift-cards/page.mdx), a store credit account that isn't linked to any customer is also created. When the gift card is redeemed on an order, the store credit account's balance will be deducted with the amount.
40
41 </Note>
42
43 ---
44
45 ## Create a Store Credit Account
46
47 You can create a store credit account for a customer. This is useful to credit a customer manually.
48
49 To create a new store credit account:
50
51 1. Go to **Store Credits**.
52 2. Click the **Create** button at the top end of the table section.
53 3. In the form that opens, fill in the following fields:
54 - **Currency**: Select the currency for this account.
55 - **Customer**: Select the customer to link the account to.
56 4. Click the **Create** button.
57
58 You'll be taken to the new account's details page where you can view and manage its details.
59
60 ---
61
62 ## View Account Details
63
64 To view the details of a store credit account:
65
66 1. Go to **Store Credits**.
67 2. Click on the account you want to view.
68
69 The details page shows the account's unique code, linked customer, and current balance.
70
71 You can also see the transaction history, which lists all credit and debit transactions, including the amount, date, and any notes attached to each transaction.
72
73 ---
74
75 ## Credit an Account
76
77 To add funds to a store credit account manually:
78
79 1. Go to the store credit account's details page.
80 2. Click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon at the top end of the first section.
81 3. Choose **Credit the account** from the dropdown.
82 4. In the side window that opens, enter the following:
83 - **Amount**: The amount to add to the account.
84 - **Note**: Optionally add a note describing the reason for the credit.
85 5. Click the **Save** button.
86
87 The credited amount will appear in the account's transaction history and the current balance will update accordingly.
88
89 ---
90
91 ## Debit an Account
92
93 <Note>
94
95 This feature is available since [Medusa v2.21.1](https://github.com/medusajs/medusa/releases/tag/v2.21.1). If you don't see the Debit the account option in your Medusa Admin, request your technical team to [upgrade your Medusa application](!docs!/learn/update).
96
97 </Note>
98
99 To remove funds from a store credit account manually:
100
101 1. Go to the store credit account's details page.
102 2. Click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon at the top end of the first section.
103 3. Choose **Debit the account** from the dropdown.
104 4. In the side window that opens, enter the following:
105 - **Amount**: The amount to remove from the account. Must be greater than 0 and cannot exceed the current balance.
106 - **Note**: Optionally add a note describing the reason for the debit.
107 5. Click the **Save** button.
108
109 The debited amount will appear in the account's transaction history and the current balance will update accordingly.
110
111 <Note title="Tip">
112
113 The **Debit the account** option is disabled when the account has no balance.
114
115 </Note>
116
117 ---
118
119 ## View Store Credits on a Customer
120
121 You can also view all store credit accounts linked to a customer without going to the Store Credits section:
122
123 1. Go to **Customers** from the sidebar.
124 2. Click on the customer you want to view.
125 3. In the right sidebar of the customer's details page, find the **Store Credit Accounts** section.
126
127 Each account listed shows the currency and current balance. Click on an account to go to its full details page.
128
129 You can also create a new store credit account for the customer directly from this section. Click the **Create** button in the **Store Credit Accounts** section header. The creation form opens with the customer already pre-selected.
130
131 ---
132
133 ## Refund an Order to Store Credit
134
135 When refunding an order's payment, you can choose to refund the payment to the customer's store credit account instead of their original payment method. This allows the customer to use the refunded amount for future purchases.
136
137 You can only refund to store credit if the customer is a registered customer, since guest customers don't have store credit accounts.
138
139 See [Refund Payment](../../../orders/payments/page.mdx#refund-payment) for more details on how to refund an order's payment to store credit.