You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'template used for the discount coupon creation.'
34905
-
shippingPrice:
34906
-
type:
34907
-
- string
34908
-
- 'null'
34909
-
enum:
34910
-
- cart
34911
-
- free
34912
-
- beforeDiscount
34913
-
- null
34914
-
description: 'how the transport prices are calculated: according to the cart before discounts (beforeDiscount), according to the displayed value of the cart (cart), or free (free)'
34915
-
examples:
34916
-
- cart
34917
-
validFrom:
34918
-
$ref: '#/components/schemas/typeDateNullable'
34919
-
description: 'starting date of coupon validity'
34920
-
validTo:
34921
-
$ref: '#/components/schemas/typeDateNullable'
34922
-
description: 'ending date of coupon validity'
34923
-
reusable:
34924
-
type: boolean
34925
-
description: 'Is the discount coupon reusable?'
34926
-
examples:
34927
-
- true
34928
-
usedCount:
34929
-
type: integer
34930
-
description: 'number of times the discount coupon has been used'
34931
-
examples:
34932
-
- 0
34933
-
remark:
34934
-
type:
34935
-
- string
34936
-
- 'null'
34937
-
description: 'remark for the discount coupon.'
34938
-
examples:
34939
-
- 'Note: This is a test discount coupon'
34852
+
$ref: '#/components/schemas/discountCoupon'
34940
34853
errors:
34941
34854
$ref: '#/components/schemas/Errors'
34942
34855
metadata:
@@ -35008,7 +34921,273 @@ paths:
35008
34921
$ref: '#/components/schemas/typePriceNullable'
35009
34922
description: 'Amount of fixed discount (default eshop VAT rate is used). This items needs to be omitted when `discountType` is set to `percentual`'
35010
34923
examples:
35011
-
- '100.0'
34924
+
- '100.00'
34925
+
ratio:
34926
+
type:
34927
+
- string
34928
+
- 'null'
34929
+
pattern: '[0-1]\.[0-9]{4}$'
34930
+
description: 'Amount of percentual discount. This items needs to be omitted when `discountType` is set to `fixed`. 4 decimal places accuracy, from `0.0000` (0% discount) to `1.0000` (100% discount).'
34931
+
examples:
34932
+
- '0.1000'
34933
+
minPrice:
34934
+
$ref: '#/components/schemas/typePriceNullable'
34935
+
description: 'Minimum price of order (default eshop VAT rate is used)'
description: 'Currency of fixed discount. It can be null only when `discountType` is set to `percentual` and `minPrice` is set to null'
34941
+
examples:
34942
+
- CZK
34943
+
template:
34944
+
$ref: '#/components/schemas/typeGuid'
34945
+
description: 'GUID of discount coupon template'
34946
+
shippingPrice:
34947
+
type: string
34948
+
enum:
34949
+
- cart
34950
+
- free
34951
+
- beforeDiscount
34952
+
description: 'How the transport prices are calculated: according to the cart before discounts (beforeDiscount), according to the displayed value of the cart (cart), or free (free)'
34953
+
examples:
34954
+
- cart
34955
+
validFrom:
34956
+
$ref: '#/components/schemas/typeDateNullable'
34957
+
description: 'Starting date of coupon validity'
34958
+
validTo:
34959
+
$ref: '#/components/schemas/typeDateNullable'
34960
+
description: 'Ending date of coupon validity'
34961
+
reusable:
34962
+
type: boolean
34963
+
description: 'Is the discount coupon reusable?'
34964
+
examples:
34965
+
- true
34966
+
remark:
34967
+
type:
34968
+
- string
34969
+
- 'null'
34970
+
description: 'Discount coupon note'
34971
+
examples:
34972
+
- 'This is a discount coupon for the first purchase.'
0 commit comments