Skip to main content

Discounts

Discount on a single line item

    {
"type": "physical",
"reference": "111-222-333",
"description": "Coffee Machine X200",
"quantity": 1,
"unitPrice": 50000,
"unitDiscountAmount": 0,
"vat": 2500,
"totalAmount": 500000,
"totalVatAmount": 100000
}

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
}