Discount
Discount object on invoices.
Content
| Key | Type | Description |
|---|---|---|
| code | string|null | The code used in the checkout |
| amount | int | The amount that has been deducted from applying the discount |
| percentage | float|null | How 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.