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