Discount

Information about an applied discount in the cart

Field Type Description
name String A String value
description String A String value
percentage Float
fixed Int Fixed discount in cents
type String String enumarion of 'first-order', 'general', 'coupon', 'user', 'offer'
code String Optional. A String value
minimum_order_price Float Optional.
maximum_discount_price Float? Optional. Nullable.

Examples

Example 1

{
    "name": "...",
    "description": "...",
    "percentage": 9.67,
    "fixed": 17,
    "type": "first-order",
    "code": "...",
    "minimum_order_price": 9.67,
    "maximum_discount_price": 9.67
}
This is a development version Do not use this version in production
1.10.0 development