Invoice Calculations

Invoices support deposit payments and automatic total calculations based on line items, taxes, and shipping.

Deposits

You can configure a deposit to collect a partial upfront payment. Set the deposit as a fixed amount or a percentage of the invoice total. When a customer opens the payment checkout, the initial payment amount shown is limited to the deposit. Subsequent payments cover the remaining balance.

Total fields

The totals object is populated at invoice creation and updated throughout the invoice lifecycle.

Total fieldWhen populatedDependenciesNotes
totalAt creation.subtotal - discount + tax + shipping.Represents the final amount due.
subtotalAt creation.Sum of all lineItems.Populated even if no taxes or discounts are applied.
discountWhen discounts apply.Line item or invoice-level discounts.Can be empty if no discounts are provided.
shippingWhen shipping or shipment is used.shippingInfo.address or shipmentInfo.logistics.pickupDetails.address.If shipmentInfo.logistics.pickupDetails.address isn't provided, the shippingInfo.address is used.
exemptWhen taxes apply.Tax-exempt amounts from line items and shipping.Can be empty if no tax exemptions apply.
taxWhen taxes apply.Regional settings, business location.Can be empty if no taxes apply to line items or shipping.
paidAmountAfter each payment.Confirmed payments from eCommerce.Updated asynchronously via order payment changes.
balanceAfter each payment.total - paidAmount.Represents the outstanding amount.

Last updated: 6 May 2026

Did this help?