Discount

Discount object on invoices.

Content

KeyTypeDescription
codestring|nullThe code used in the checkout
amountintThe amount that has been deducted from applying the discount
percentagefloat|nullHow much discount is applied if it is of type percent

Examples

{
  "code": null,
  "amount": 0,
  "percentage": null
}
{
  "code": "Winter-Sale",
  "amount": 2000,
  "percentage": "20.00"
}
{
  "code": "Summer-Sale",
  "amount": 2500,
  "percentage": null
}

Changelog

2019-10-15

The type of amount changes from float to int. The price is now displayed in the currency's smallest unit.