|
1
|
type: object |
|
2
|
description: The transaction's details. |
|
3
|
x-schemaName: OrderTransaction |
|
4
|
required: |
|
5
|
- id |
|
6
|
- order_id |
|
7
|
- version |
|
8
|
- order |
|
9
|
- amount |
|
10
|
- currency_code |
|
11
|
- reference |
|
12
|
- reference_id |
|
13
|
- metadata |
|
14
|
- created_at |
|
15
|
- updated_at |
|
16
|
properties: |
|
17
|
id: |
|
18
|
type: string |
|
19
|
title: id |
|
20
|
description: The transaction's ID. |
|
21
|
order_id: |
|
22
|
type: string |
|
23
|
title: order_id |
|
24
|
description: The ID of the order this transaction belongs to. |
|
25
|
amount: |
|
26
|
type: number |
|
27
|
title: amount |
|
28
|
description: The transaction's amount. |
|
29
|
currency_code: |
|
30
|
type: string |
|
31
|
title: currency_code |
|
32
|
description: The transaction's currency code. |
|
33
|
example: usd |
|
34
|
reference: |
|
35
|
type: string |
|
36
|
title: reference |
|
37
|
description: >- |
|
38
|
The name of a table that this transaction references. If this transaction |
|
39
|
is for captured payment, its value is `capture`. If this transaction is |
|
40
|
for refunded payment, its value is `refund`. |
|
41
|
enum: |
|
42
|
- capture |
|
43
|
- refund |
|
44
|
reference_id: |
|
45
|
type: string |
|
46
|
title: reference_id |
|
47
|
description: The ID of the referenced record in the referenced table. |
|
48
|
metadata: |
|
49
|
type: object |
|
50
|
description: The transaction's metadata, can hold custom key-value pairs. |
|
51
|
externalDocs: |
|
52
|
url: https://docs.medusajs.com/api/store#manage-metadata |
|
53
|
description: Learn how to manage metadata |
|
54
|
created_at: |
|
55
|
type: string |
|
56
|
format: date-time |
|
57
|
title: created_at |
|
58
|
description: The date that the transaction was created. |
|
59
|
updated_at: |
|
60
|
type: string |
|
61
|
format: date-time |
|
62
|
title: updated_at |
|
63
|
description: The date that the transaction was updated. |
|
64
|
order: |
|
65
|
type: object |
|
66
|
version: |
|
67
|
type: number |
|
68
|
title: version |
|
69
|
description: The order version that the transaction belongs to. |