Raw
1 type: object
2 description: The credit line's details.
3 x-schemaName: OrderCreditLine
4 required:
5 - id
6 - order_id
7 - order
8 - amount
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 credit line's ID.
19 order_id:
20 type: string
21 title: order_id
22 description: The ID of the associated order.
23 order:
24 type: object
25 reference:
26 type: string
27 title: reference
28 description: >-
29 The table that this credit line references. For example,
30 `payment_collection`.
31 reference_id:
32 type: string
33 title: reference_id
34 description: The ID of the record in the referenced table. For example, `paycol_123`.
35 metadata:
36 type: object
37 description: The credit line's metadata, can hold custom key-value pairs.
38 externalDocs:
39 url: https://docs.medusajs.com/api/store#manage-metadata
40 description: Learn how to manage metadata
41 created_at:
42 type: string
43 format: date-time
44 title: created_at
45 description: The date the credit line was created.
46 updated_at:
47 type: string
48 format: date-time
49 title: updated_at
50 description: The date the credit line was updated.
51 amount:
52 type: number
53 title: amount
54 description: The credit line's amount.