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

Examples

Example 1

{
    "name": "...",
    "description": "...",
    "percentage": 9.67,
    "fixed": 18,
    "type": "first-order",
    "code": "..."
}
Version update available Please adjust your integration to the latest stable version (1.6.0)
1.5.0 stable