1 type: object
2 description: The customer's details.
3 x-schemaName: AdminCustomer
4 required:
5 - has_account
6 - addresses
7 - id
8 - email
9 - default_billing_address_id
10 - default_shipping_address_id
11 - company_name
12 - first_name
13 - last_name
14 properties:
15 id:
16 type: string
17 title: id
18 description: The customer's ID.
19 has_account:
20 type: boolean
21 title: has_account
22 description: Whether the customer is registered.
23 groups:
24 type: array
25 description: The customer's groups.
26 items:
27 $ref: ./AdminCustomerGroup.yaml
28 email:
29 type: string
30 title: email
31 description: The customer's email.
32 format: email
33 default_billing_address_id:
34 type: string
35 title: default_billing_address_id
36 description: The ID of the address used as the default billing address.
37 default_shipping_address_id:
38 type: string
39 title: default_shipping_address_id
40 description: The ID of the address used as the default shipping address.
41 company_name:
42 type: string
43 title: company_name
44 description: The customer's company name.
45 first_name:
46 type: string
47 title: first_name
48 description: The customer's first name.
49 last_name:
50 type: string
51 title: last_name
52 description: The customer's last name.
53 addresses:
54 type: array
55 description: The customer's addresses.
56 items:
57 $ref: ./AdminCustomerAddress.yaml
58 phone:
59 type: string
60 title: phone
61 description: The customer's phone.
62 metadata:
63 type: object
64 description: The customer's metadata, used to store custom key-value pairs.
65 externalDocs:
66 url: https://docs.medusajs.com/api/admin#manage-metadata
67 description: Learn how to manage metadata
68 created_by:
69 type: string
70 title: created_by
71 description: The ID of the user that created this customer, if available.
72 created_at:
73 type: string
74 format: date-time
75 title: created_at
76 description: The customer's creation date.
77 updated_at:
78 type: string
79 format: date-time
80 title: updated_at
81 description: The customer's update date.
82 deleted_at:
83 type: string
84 format: date-time
85 title: deleted_at
86 description: The customer's deletion date.