|
1
|
type: object |
|
2
|
description: The campaign's details. |
|
3
|
x-schemaName: AdminCampaign |
|
4
|
required: |
|
5
|
- id |
|
6
|
- name |
|
7
|
- description |
|
8
|
- currency |
|
9
|
- campaign_identifier |
|
10
|
- starts_at |
|
11
|
- ends_at |
|
12
|
- budget |
|
13
|
- created_at |
|
14
|
- updated_at |
|
15
|
- deleted_at |
|
16
|
properties: |
|
17
|
id: |
|
18
|
type: string |
|
19
|
title: id |
|
20
|
description: The campaign's ID. |
|
21
|
name: |
|
22
|
type: string |
|
23
|
title: name |
|
24
|
description: The campaign's name. |
|
25
|
description: |
|
26
|
type: string |
|
27
|
title: description |
|
28
|
description: The campaign's description. |
|
29
|
currency: |
|
30
|
type: string |
|
31
|
title: currency |
|
32
|
description: The campaign's currency. |
|
33
|
campaign_identifier: |
|
34
|
type: string |
|
35
|
title: campaign_identifier |
|
36
|
description: The campaign's identifier. |
|
37
|
starts_at: |
|
38
|
type: string |
|
39
|
title: starts_at |
|
40
|
description: The date and time that the campaign starts. |
|
41
|
ends_at: |
|
42
|
type: string |
|
43
|
title: ends_at |
|
44
|
description: The date and time that the campaign ends. |
|
45
|
budget: |
|
46
|
type: object |
|
47
|
description: The campaign's budget. |
|
48
|
required: |
|
49
|
- id |
|
50
|
- type |
|
51
|
- currency_code |
|
52
|
- limit |
|
53
|
- used |
|
54
|
- attribute |
|
55
|
properties: |
|
56
|
id: |
|
57
|
type: string |
|
58
|
title: id |
|
59
|
description: The budget's ID. |
|
60
|
type: |
|
61
|
type: string |
|
62
|
description: > |
|
63
|
The budget's type. `spend` means the limit is set on the total amount |
|
64
|
discounted by the campaign's promotions; `usage` means the limit is |
|
65
|
set on the total number of times the campaign's promotions can be |
|
66
|
used. |
|
67
|
enum: |
|
68
|
- spend |
|
69
|
- usage |
|
70
|
currency_code: |
|
71
|
type: string |
|
72
|
title: currency_code |
|
73
|
description: The budget's currency code. |
|
74
|
limit: |
|
75
|
type: number |
|
76
|
title: limit |
|
77
|
description: The budget's limit. |
|
78
|
used: |
|
79
|
type: number |
|
80
|
title: used |
|
81
|
description: > |
|
82
|
How much of the budget has been used. If the limit is `spend`, this |
|
83
|
property holds the total amount discounted so far. If the limit is |
|
84
|
`usage`, it holds the number of times the campaign's promotions have |
|
85
|
been used so far. |
|
86
|
attribute: |
|
87
|
type: string |
|
88
|
title: attribute |
|
89
|
description: The cart attribute to limit the budget by. |
|
90
|
externalDocs: |
|
91
|
url: >- |
|
92
|
https://docs.medusajs.com/resources/commerce-modules/promotion/campaign#attribute-based-budgets |
|
93
|
created_at: |
|
94
|
type: string |
|
95
|
format: date-time |
|
96
|
title: created_at |
|
97
|
description: The date the campaign was created. |
|
98
|
updated_at: |
|
99
|
type: string |
|
100
|
format: date-time |
|
101
|
title: updated_at |
|
102
|
description: The date the campaign was updated. |
|
103
|
deleted_at: |
|
104
|
type: string |
|
105
|
format: date-time |
|
106
|
title: deleted_at |
|
107
|
description: The date the campaign was deleted. |