Skip to main content
Discount

Discount object schema for Klar API

Frank Birzle avatar
Written by Frank Birzle
Updated over a week ago

title

Type: string

Description: Title of the discount that was applied.

Example Value(s): 'Spring Promotion `22' or 'Subscriber Discount'

descriptor

Type: string

Description: A longer string to describe the discount.

Example Value(s): 'Spring Promotion `22 - 10% off everything' or 'Once off 10% discount for newsletter subscribers.'

target (DEPRECATED)

Type: string

Description: Legacy field. Will be deprecated in future versions.

isVoucher

Type: boolean

Description: Boolean value representing if discount is a voucher or not.

Example Value(s): true or false

voucherCode

Type: string

Description: The actual voucher code that was used to apply the discount.

Example Value(s): 'SPRING-10' or 'NEWSLETTER-10'

voucherType

Type: string

Description: More information regarding the type of voucher that was used in that order.

Example Value(s): 'New Customers' or 'Promotion on Marketplace X'

discountAmount

Type: number

Description: The discount amount that was applied to each lineItem of this order. Usually discounts by vouchers are equally distributed across order items or only apply to specific items in that order. Should be the value for one lineItem (as in not multiplied by quantity).

Example Value(s): 5.00 or 3.33

Did this answer your question?