Raw
1 type: object
2 description: The customer's details.
3 x-schemaName: StoreCustomer
4 required:
5 - addresses
6 - id
7 - email
8 - company_name
9 - first_name
10 - last_name
11 - default_billing_address_id
12 - default_shipping_address_id
13 properties:
14 id:
15 type: string
16 title: id
17 description: The customer's ID.
18 email:
19 type: string
20 title: email
21 description: The customer's email.
22 format: email
23 default_billing_address_id:
24 type: string
25 title: default_billing_address_id
26 description: The ID of the address used for billing by default.
27 default_shipping_address_id:
28 type: string
29 title: default_shipping_address_id
30 description: The ID of the address used for shipping by default.
31 company_name:
32 type: string
33 title: company_name
34 description: The customer's company name.
35 first_name:
36 type: string
37 title: first_name
38 description: The customer's first name.
39 last_name:
40 type: string
41 title: last_name
42 description: The customer's last name.
43 addresses:
44 type: array
45 description: The customer's addresses.
46 items:
47 $ref: ./StoreCustomerAddress.yaml
48 phone:
49 type: string
50 title: phone
51 description: The customer's phone.
52 metadata:
53 type: object
54 description: The customer's metadata, can hold custom key-value pairs.
55 externalDocs:
56 url: https://docs.medusajs.com/api/store#manage-metadata
57 description: Learn how to manage metadata
58 created_at:
59 type: string
60 format: date-time
61 title: created_at
62 description: The date the customer was created.
63 updated_at:
64 type: string
65 format: date-time
66 title: updated_at
67 description: The date the customer was updated.
68 deleted_at:
69 type: string
70 format: date-time
71 title: deleted_at
72 description: The date the customer was deleted.