Discounts are reported as additional line items, where you can either apply the discount to a specific item (see reference_number parameter below), or to the whole invoice. If the discount applies to the entire invoice, you can omit the reference_number parameter.
Discounts need to have a parameter type with the value "DISCOUNT" in the line item details.
In the example below, there are two sale-related line items, with the discount applied to the second item.
Discount items should use negative values for the unit_price, net_price, and tax_breakdown.amount fields in regular transactions, and positive values for credit adjustments.
Example request:
{
"country_code": "HU",
"language_code": "HU",
"currency_code": "HUF",
"type": "SIMPLIFIED",
"transaction_id": "Reference105",
"transaction_date": "2023-01-05T01:00:00+00:00",
"supplier": {
"id": "8db9a4a4aaec4c969a402692eb33035c"
},
"items": [
{
"number": 1,
"name": "Delivery Service",
"type": "SERVICES",
"quantity": 1.0,
"unit_price": 10.0,
"net_price": 10.0,
"tax_breakdown": [
{
"rate": 27,
"amount": 2.7,
"regime": "VAT"
}
]
},
{
"number": 2,
"name": "Delivery fee",
"type": "SERVICES",
"quantity": 1.0,
"unit_price": 1.0,
"net_price": 1.0,
"tax_breakdown": [
{
"rate": 27,
"amount": 0.27,
"regime": "VAT"
}
]
},
{
"number": 3,
"reference_number": 2,
"type": "DISCOUNT",
"name": "Discount",
"quantity": 1.0,
"unit_price": -1.0,
"net_price": -1.0,
"tax_breakdown": [
{
"rate": 27,
"amount": -0.27,
"regime": "VAT"
}
]
}
],
"total_amount": 12.7,
"total_net_amount": 10.0,
"total_tax_amount": 2.7,
"payments": [
{
"type": "DEBIT",
"amount": 12.7
}
]
}

