Invoice modifications can be used to add additional charges or allowances (discounts) to line items or entire documents. For example, you might want to add a handling fee for large items or provide a volume discount for large orders. Modifications can be either absolute (e.g. 5€ handling fee) or relative (e.g. 10% volume discount). Individual modifications are organised in modification groups. Each modification group must have aDocumentation Index
Fetch the complete documentation index at: https://docs.procuros.io/llms.txt
Use this file to discover all available pages before exploring further.
level which determines which modification group is applied first. Furthermore, modification groups contain a basis attribute. The basis is used to calculate absolute values for relative modifications, e.g. a relative modification of 10% on a basis of 500€ would result in a 50€ modification.
Modifications on item-level are applied to the subtotal (quantity * unitPrice) of the item. Document-level modifications are on the other hand applied to the subtotalAmount of the invoice.
Rules
- Per line item, one or more modifications can be added
- Per invoice, one or more modifications can be added
- No modification group should have the same
levelattribute, unless they are on different items or on the document - It is only necessary to send taxes on modifications for absolute charges
- Discounts: no tax info (will be distributed evenly on all line-items). Example: Credit, Coupon, etc.
- Surcharge: needs tax info (because comparable to an independent line-item). Example: shipping costs, minimum quantity surcharge, packaging surcharge, etc.
Examples
Single charge on document-level
An invoice with an additional 5€ (net) shipping charge on document-level.Multiple modifications on item- and document-level
A more complex scenario with one modification on item-level and two modifications on document-level.quantity * unitPrice) of the item, the subtotalAmount of the invoice is 4.500€. Next, the document-level modifications are applied. For the modification with level = 1, we apply the charge to the subtotalAmount of the invoice. Thus, the subtotal (without taxes) is 4.500€+50€ after applying the first modification. Finally, we apply the second modification (level = 2) to the new subtotal and end up with an invoice netAmount of 4.095€.