|
1
|
type: object |
|
2
|
description: The store credit account's details. |
|
3
|
x-schemaName: AdminStoreCreditAccount |
|
4
|
required: |
|
5
|
- customer |
|
6
|
- id |
|
7
|
- currency_code |
|
8
|
- credits |
|
9
|
- debits |
|
10
|
- balance |
|
11
|
- metadata |
|
12
|
- created_at |
|
13
|
- updated_at |
|
14
|
properties: |
|
15
|
customer: |
|
16
|
$ref: ./AdminCustomer.yaml |
|
17
|
id: |
|
18
|
type: string |
|
19
|
title: id |
|
20
|
description: The store credit account's ID. |
|
21
|
customer_id: |
|
22
|
type: string |
|
23
|
title: customer_id |
|
24
|
description: The ID of the customer that the store credit account belongs to. |
|
25
|
currency_code: |
|
26
|
type: string |
|
27
|
title: currency_code |
|
28
|
description: The store credit account's currency code. |
|
29
|
example: usd |
|
30
|
credits: |
|
31
|
type: number |
|
32
|
title: credits |
|
33
|
description: The account's credits. |
|
34
|
debits: |
|
35
|
type: number |
|
36
|
title: debits |
|
37
|
description: The account's debits. |
|
38
|
balance: |
|
39
|
type: number |
|
40
|
title: balance |
|
41
|
description: The account's balance. |
|
42
|
metadata: |
|
43
|
type: object |
|
44
|
description: The store credit account's metadata, can hold custom key-value pairs. |
|
45
|
externalDocs: |
|
46
|
url: https://docs.medusajs.com/api/admin#manage-metadata |
|
47
|
description: Learn how to manage metadata |
|
48
|
created_at: |
|
49
|
type: string |
|
50
|
format: date-time |
|
51
|
title: created_at |
|
52
|
description: The date the store credit account was created at. |
|
53
|
updated_at: |
|
54
|
type: string |
|
55
|
format: date-time |
|
56
|
title: updated_at |
|
57
|
description: The date the store credit account was updated at. |
|
58
|
code: |
|
59
|
type: string |
|
60
|
title: code |
|
61
|
description: The store credit account's code. |