|
1
|
--- |
|
2
|
sidebar_position: 1 |
|
3
|
sidebar_label: "Manage Customers" |
|
4
|
tags: |
|
5
|
- user guide |
|
6
|
- customer |
|
7
|
products: |
|
8
|
- customer |
|
9
|
--- |
|
10
|
|
|
11
|
import { EllipsisHorizontal, ArrowUpRightOnBox, EllipsisVertical } from "@medusajs/icons" |
|
12
|
import { Table, Prerequisites } from "docs-ui" |
|
13
|
|
|
14
|
export const metadata = { |
|
15
|
title: `Manage Customers in Medusa Admin`, |
|
16
|
} |
|
17
|
|
|
18
|
# {metadata.title} |
|
19
|
|
|
20
|
In this guide, you’ll learn how to create and manage customers and their details. |
|
21
|
|
|
22
|
## Create a Customer |
|
23
|
|
|
24
|
You can create a customer through the Medusa Admin, which is useful if a customer is creating an order offline. The customer will be a guest customer; to register, the customer must register through the storefront. |
|
25
|
|
|
26
|
To create a customer from the Medusa Admin: |
|
27
|
|
|
28
|
1. Go to the Customers page. |
|
29
|
2. Click the Create button in the main section's header. |
|
30
|
3. In the form that opens, enter the customer's email, and optionally their first and last name, company name, and phone number. |
|
31
|
4. Once you're done, click the Create button. |
|
32
|
|
|
33
|
 |
|
34
|
|
|
35
|
--- |
|
36
|
|
|
37
|
## View Customer Details |
|
38
|
|
|
39
|
To view a customer’s details: |
|
40
|
|
|
41
|
1. Go to the Customers page. |
|
42
|
2. Click on the customer you want to view. |
|
43
|
|
|
44
|
 |
|
45
|
|
|
46
|
### Customer Type |
|
47
|
|
|
48
|
In the first section's header, you can see a badge with the customer's type: |
|
49
|
|
|
50
|
<Table> |
|
51
|
<Table.Header> |
|
52
|
<Table.Row> |
|
53
|
<Table.HeaderCell> |
|
54
|
Customer Type |
|
55
|
</Table.HeaderCell> |
|
56
|
<Table.HeaderCell> |
|
57
|
Description |
|
58
|
</Table.HeaderCell> |
|
59
|
</Table.Row> |
|
60
|
</Table.Header> |
|
61
|
<Table.Body> |
|
62
|
<Table.Row> |
|
63
|
<Table.Cell>Registered</Table.Cell> |
|
64
|
<Table.Cell>A customer that has registered in your store.</Table.Cell> |
|
65
|
</Table.Row> |
|
66
|
<Table.Row> |
|
67
|
<Table.Cell>Guest</Table.Cell> |
|
68
|
<Table.Cell>A customer that has placed an order but hasn't registered in your store, or a customer that you created through the admin dashboard.</Table.Cell> |
|
69
|
</Table.Row> |
|
70
|
</Table.Body> |
|
71
|
</Table> |
|
72
|
|
|
73
|
--- |
|
74
|
|
|
75
|
## Edit Customer Details |
|
76
|
|
|
77
|
<Note> |
|
78
|
|
|
79
|
You can't edit a customer's password from the Medusa Admin. The customer has to reset it from the storefront. |
|
80
|
|
|
81
|
</Note> |
|
82
|
|
|
83
|
To edit a customer’s details: |
|
84
|
|
|
85
|
1. Go to a customer’s details page. |
|
86
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three dots" /> icon in the first section. |
|
87
|
3. Choose Edit from the dropdown. |
|
88
|
4. In the side window that opens, you can edit the customer's email, first and last name, company name, and phone number. |
|
89
|
5. Once you’re done, click the Save button. |
|
90
|
|
|
91
|
 |
|
92
|
|
|
93
|
--- |
|
94
|
|
|
95
|
## View Customer Orders |
|
96
|
|
|
97
|
You can view a customer’s orders from their details page in the Orders section. By clicking on an order, you can view its details. |
|
98
|
|
|
99
|
### Transfer Order to Another Customer |
|
100
|
|
|
101
|
You can transfer an order to another customer. For example, a guest customer registered, or a customer created an order offline. |
|
102
|
|
|
103
|
When you transfer the ownership of an order, the original customer will receive a notification, such as an email, requesting their approval for the transfer. The order is transferred to the new customer only after the original customer approves the transfer. |
|
104
|
|
|
105
|
<Note> |
|
106
|
|
|
107
|
You can't transfer ownership to a guest customer, and that includes customers you create through the admin dashboard. |
|
108
|
|
|
109
|
</Note> |
|
110
|
|
|
111
|
To transfer a customer's order ownership to another: |
|
112
|
|
|
113
|
1. Go to the customer's details page. |
|
114
|
2. In the Orders section, click on the <InlineIcon Icon={EllipsisHorizontal} alt="three dots" /> icon in the order's row. |
|
115
|
3. Choose Transfer ownership from the dropdown. |
|
116
|
4. In the side window that opens, choose the customer to transfer the order to in the "New owner" field. |
|
117
|
5. Once you're done, click the Save button. |
|
118
|
|
|
119
|
The original customer will then receive a notification requesting their approval for the transfer. |
|
120
|
|
|
121
|
<Note> |
|
122
|
|
|
123
|
If a notification isn't sent, check with your technical team to debug the [integrated notification service](!resources!/infrastructure-modules/notification). |
|
124
|
|
|
125
|
</Note> |
|
126
|
|
|
127
|
 |
|
128
|
|
|
129
|
--- |
|
130
|
|
|
131
|
## Manage Customer's Groups |
|
132
|
|
|
133
|
You can add a customer to multiple groups, allowing you to offer different promotions or pricing based on the group they belong to. |
|
134
|
|
|
135
|
### Add Customer to Groups |
|
136
|
|
|
137
|
To add a customer to customer groups: |
|
138
|
|
|
139
|
1. Go to the customer's details page. |
|
140
|
2. In the "Customer Groups" section, click on the "Add" button. |
|
141
|
3. In the list that opens, check the groups you want to add the customer to. |
|
142
|
4. Once you're done, click the Save button. |
|
143
|
|
|
144
|
 |
|
145
|
|
|
146
|
### Remove Customer from Groups |
|
147
|
|
|
148
|
To remove a customer from customer groups: |
|
149
|
|
|
150
|
1. Go to the customer's details page. |
|
151
|
2. In the "Customer Groups" section, check the groups you want to remove the customer from. |
|
152
|
3. Once you're done, either press <Kbd>R</Kbd> or click "Remove" at the bottom center of the page. |
|
153
|
4. Confirm removing the groups by clicking the "Remove" button in the pop-up. |
|
154
|
|
|
155
|
 |
|
156
|
|
|
157
|
--- |
|
158
|
|
|
159
|
## Edit Customer Metadata |
|
160
|
|
|
161
|
Metadata is custom data that can be associated with the customer in key-value pairs. This is usually used by developers for custom integrations or to store additional information about the customer. |
|
162
|
|
|
163
|
To edit the customer's metadata: |
|
164
|
|
|
165
|
1. Go to the customer's details page. |
|
166
|
2. Click the <InlineIcon Icon={ArrowUpRightOnBox} alt="arrow" /> icon in the "Metadata" section. |
|
167
|
3. In the side window that opens: |
|
168
|
- Manage the key-value pairs in the table. |
|
169
|
- To add a new row of key-value pairs before or after a row: |
|
170
|
- Hover over the row and click the <InlineIcon Icon={EllipsisVertical} alt="three-dots" /> icon at its end. |
|
171
|
- Choose "Insert row above" or "Insert row below" from the dropdown. |
|
172
|
- To delete a row of key-value pairs: |
|
173
|
- Hover over the row and click the <InlineIcon Icon={EllipsisVertical} alt="three-dots" /> icon at its end. |
|
174
|
- Choose "Delete row" from the dropdown. |
|
175
|
4. Once you're done, click the Save button. |
|
176
|
|
|
177
|
--- |
|
178
|
|
|
179
|
## Manage Customer's Addresses |
|
180
|
|
|
181
|
You can view and manage a customer's address from the "Addresses" section on the customer's details page. This is useful when you need to make changes to the customer's shipping or billing address in an order. |
|
182
|
|
|
183
|
<Note> |
|
184
|
|
|
185
|
The Address section and management features are only available after This injection zone is available since [Medusa v2.7.0](https://github.com/medusajs/medusa/releases/tag/v2.7.0). |
|
186
|
|
|
187
|
</Note> |
|
188
|
|
|
189
|
### Add Customer Address |
|
190
|
|
|
191
|
To add an address to a customer: |
|
192
|
|
|
193
|
1. Go to the customer's details page. |
|
194
|
2. Click on the "Add" button in the "Addresses" section's header. |
|
195
|
3. In the form that opens, enter the address details including name, address line, apartment, postal code, city, country, state, company, and phone number. |
|
196
|
4. Once you're done, click the Save button. |
|
197
|
|
|
198
|
 |
|
199
|
|
|
200
|
### Delete Customer Address |
|
201
|
|
|
202
|
<Note type="warning"> |
|
203
|
|
|
204
|
Deleting an address is irreversible. |
|
205
|
|
|
206
|
</Note> |
|
207
|
|
|
208
|
To delete a customer address: |
|
209
|
|
|
210
|
1. Go to the customer's details page. |
|
211
|
2. Find the address in the "Addresses" section. |
|
212
|
3. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three dots" /> icon in its row. |
|
213
|
4. Choose Delete from the dropdown. |
|
214
|
5. In the pop-up, enter the address name and click the "Delete" button. |
|
215
|
|
|
216
|
--- |
|
217
|
|
|
218
|
## View Customer's Store Credits |
|
219
|
|
|
220
|
<Prerequisites |
|
221
|
items={[ |
|
222
|
{ |
|
223
|
text: "Loyalty plugin installed", |
|
224
|
link: "!resources!/commerce-modules/store-credit#1-install-the-loyalty-plugin", |
|
225
|
}, |
|
226
|
]} |
|
227
|
/> |
|
228
|
|
|
229
|
If you have the Loyalty plugin installed, customers can have [store credit accounts](../../loyalty/store-credits/page.mdx). These accounts allow you to credit customers manually, or when you issue a refund for an order. Customers can then apply the store credit balance at checkout. |
|
230
|
|
|
231
|
To view a customer's store credit accounts: |
|
232
|
|
|
233
|
1. Go to the customer's details page. |
|
234
|
2. In the "Store Credits" section, you can see all store credit accounts linked to the customer, along with their current balance and currency. |
|
235
|
|
|
236
|
By clicking on an account, you can view its details and transaction history, and credit the account. See the [Manage Store Credits](../../loyalty/store-credits/manage/page.mdx) guide for more details. |
|
237
|
|
|
238
|
--- |
|
239
|
|
|
240
|
## Delete a Customer |
|
241
|
|
|
242
|
<Note type="warning"> |
|
243
|
|
|
244
|
Deleting a customer is irreversible. |
|
245
|
|
|
246
|
</Note> |
|
247
|
|
|
248
|
To delete a customer: |
|
249
|
|
|
250
|
1. Go to the customer's details page. |
|
251
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three dots" /> icon in the first section's header. |
|
252
|
3. Choose Delete from the dropdown. |
|
253
|
4. In the pop-up, enter the customer's email and click the "Delete" button. |