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 |
{
"name": "...",
"description": "...",
"percentage": 9.67,
"fixed": 19,
"type": "first-order",
"code": "..."
}