1 type: object
2 description: The price list's details.
3 x-schemaName: AdminCreatePriceList
4 required:
5 - title
6 - description
7 properties:
8 title:
9 type: string
10 title: title
11 description: The price list's title.
12 description:
13 type: string
14 title: description
15 description: The price list's description.
16 starts_at:
17 type: string
18 title: starts_at
19 description: The date and time the price list starts at.
20 format: date-time
21 ends_at:
22 type: string
23 title: ends_at
24 description: The date and time the price list ends at.
25 format: date-time
26 status:
27 type: string
28 description: The price list's status.
29 enum:
30 - active
31 - draft
32 type:
33 type: string
34 description: The price list's type.
35 enum:
36 - sale
37 - override
38 rules:
39 type: object
40 description: The price list's rules.
41 example:
42 product_category_id: pcat_123
43 prices:
44 type: array
45 description: The price list's prices.
46 items:
47 $ref: ./AdminCreatePriceListPrice.yaml
48 metadata:
49 type: object
50 description: Key-value pairs of custom data.