|
1
|
type: object |
|
2
|
description: The details of a credit line to add to an order. |
|
3
|
x-schemaName: AdminCreateOrderCreditLine |
|
4
|
required: |
|
5
|
- amount |
|
6
|
- reference |
|
7
|
- reference_id |
|
8
|
properties: |
|
9
|
amount: |
|
10
|
type: number |
|
11
|
title: amount |
|
12
|
description: The amount of the credit line. |
|
13
|
example: 100 |
|
14
|
reference: |
|
15
|
type: string |
|
16
|
title: reference |
|
17
|
description: The name of the table that the credit line is referencing. |
|
18
|
example: order |
|
19
|
reference_id: |
|
20
|
type: string |
|
21
|
title: reference_id |
|
22
|
description: The ID of a record in the table that the credit line is referencing. |
|
23
|
example: order_123 |
|
24
|
metadata: |
|
25
|
type: object |
|
26
|
description: The credit line's metadata, can hold custom key-value pairs. |
|
27
|
externalDocs: |
|
28
|
url: https://docs.medusajs.com/api/admin#manage-metadata |
|
29
|
description: Learn how to manage metadata |