POST
request describing the event each time it happens.
Webhooks cover outbound automations, when Bonx notifies your tools. To drive Bonx from your tools, use the API
reference.
Discounts in a sales order payload
A sales order line can carry several discounts in a row, itsdiscountTiers. Each tier gives its
type (PERCENTAGE in base 1, or AMOUNT), its value, its label and its reasonCode. Tiers
with the same cascadeIndex form a cascade: each one applies to what the previous position left.
Each cascade starts again from the gross, and the cascades add up.
- On a line with tiers,
discountTypeisAMOUNTanddiscountValueis the total of its tiers: gross minus net. It is a summary, not a discount entered as an amount.totalPriceBeforeTaxstays the net of the line. When the gross of the line is negative, the pair isnull: readdiscountTiersto know whether the line has tiers. - An order discount with tiers comes in
documentDiscountTiers. The order’s owndiscountTypeanddiscountValueare thennull. Its cascades apply to the sum of the line nets and give the order total before tax.