Raw
1 type: object
2 description: The transaction's details.
3 x-schemaName: AdminTransaction
4 required:
5 - account
6 - id
7 - account_id
8 - type
9 - amount
10 - metadata
11 - created_at
12 - updated_at
13 properties:
14 id:
15 type: string
16 title: id
17 description: The transaction's ID.
18 account_id:
19 type: string
20 title: account_id
21 description: The ID of the store credit account that the transaction belongs to.
22 type:
23 type: string
24 description: The transaction's type.
25 enum:
26 - credit
27 - debit
28 amount:
29 type: number
30 title: amount
31 description: The transaction's amount.
32 account:
33 $ref: ./AdminStoreCreditAccount.yaml
34 note:
35 type: string
36 title: note
37 description: The transaction's note.
38 reference:
39 type: string
40 title: reference
41 description: The transaction's reference.
42 reference_id:
43 type: string
44 title: reference_id
45 description: The transaction's reference ID.
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/admin#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 the transaction was created at.
57 updated_at:
58 type: string
59 format: date-time
60 title: updated_at
61 description: The date the transaction was updated at.