Skip to main content

Discounts

Discount on a single line item

  {
reference : "123-456",
description : "T-shirt with print",
type : "physical",
quantity : 1,
unitPrice : 30000,
vat : 2500,
totalAmount : 24000,
totalVatAmount : 4800,
unitDiscountAmount : 6000
}

Discount on a whole order

important

Since Ledyer is Peppol BIS Billing 3.0 complient, a order discount can only apply to the items of the cart with the same VAT rate as the discount itself.

  {
"reference":"111222",
"description":"Banan",
"type":"physical",
"quantity":1200,
"unitPrice":666,
"vat":1200,
"totalAmount":799200,
"totalVatAmount":85629,
"unitDiscountAmount":0
},
{
"reference":"222333",
"description":"Mio min Mio",
"type":"physical",
"quantity":20,
"unitPrice":19999,
"vat":600,
"totalAmount":399980,
"totalVatAmount":22640,
"unitDiscountAmount":0
},
{
"reference":"99999",
"description":"Discount",
"type":"discount",
"quantity":1,
"unitPrice":0,
"vat":1200,
"totalAmount":-6218,
"totalVatAmount":-666,
"unitDiscountAmount":6218
},
{
"reference":"99999",
"description":"Discount",
"type":"discount",
"quantity":1,
"unitPrice":0,
"vat":600,
"totalAmount":-3782,
"totalVatAmount":-214,
"unitDiscountAmount":3782
}