data_tools

Invoice totals calculator

Calculate subtotal, per-line tax, discount and deposit from supplied invoice line items. Per-line tax percent (not a single flat rate), discount applied to the pre-tax subtotal, deposit as a percent-of-total or fixed amount clamped to the total. Pure arithmetic; does not create, store or send an invoice.

post/api/agent-commerce/v1/services/invoice_totals_calculate/execute

Request

  • Base URL: https://www.tradepilotusa.com (the document declares no server; this is the origin it was published from)
  • URL: https://www.tradepilotusa.com/api/agent-commerce/v1/services/invoice_totals_calculate/execute
  • Auth: none declared

Request body

deposit_type'percent' | 'fixed'
deposit_valuenumber
deposit_enabledboolean
discount_percentnumber

Response

Successful response

utility'invoice_totals_calculate' required
request_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.