API & MCP

Everything a person can do on Multi-Currency Invoice Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Multi-Currency Invoice Calculator

Enter invoice lines in different currencies, the invoice currency and a rate date. The calculator converts every line at the ECB euro reference rates of that date (or your own rates), applies VAT per line, shows the VAT summary and totals with either per-line or per-document rounding (and the difference between both), and writes the “converted at the ECB reference rate of …” statement. Download as CSV or an HTML table.

Inputs of Multi-Currency Invoice Calculator
FieldTypeDefaultDescription
invoiceCurrency (required)text"EUR"Invoice currency
rateSourceselect (ecb, manual)"ecb"Exchange rates
rateDatedate—Rate date. E.g. the invoice or supply date. Empty: latest ECB rates. Weekends/holidays use the last publication before.
manualRatestextarea—Manual rates. One per line, as units per 1 EUR (ECB convention). Used with "Enter rates manually".
lines (required)table—Invoice lines
roundingselect (line, document)"line"Rounding

Example request

EUR invoice with USD and GBP costs (manual ECB-style rates)

curl -X POST https://multicurrencyinvoicecalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"invoiceCurrency":"EUR","rateSource":"manual","rateDate":"2026-10-16","manualRates":"USD 1.1253\nGBP 0.84385","lines":[{"description":"Consulting (days)","quantity":3,"unitPrice":850,"currency":"EUR","vatRate":19},{"description":"Cloud hosting","quantity":1,"unitPrice":412.37,"currency":"USD","vatRate":19},{"description":"Conference ticket","quantity":2,"unitPrice":299.99,"currency":"GBP","vatRate":7},{"description":"Travel expenses (no VAT)","quantity":1,"unitPrice":123.45,"currency":"USD","vatRate":0}],"rounding":"line"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "multi-currency-invoice-calculator": { "type": "http", "url": "https://multicurrencyinvoicecalculator.usefulweb.site/mcp" }
  }
}