Your API Key.
InvoiceXpress API (3.1.0)
The InvoiceXpress v3 API: invoicing documents (invoices, guides, estimates) and their series, clients, items, taxes, schedules and favorites; account, user, AT-communication and payment-service settings; batch CSV imports of invoices, products and clients; dashboard KPIs, reports, SAF-T export, digital signatures, EDI (CIUS-PT), Social Security declarations, and reference lists (currencies, tax countries, phone calling codes).
What changed between versions of this reference is listed under Changelog, at the end of the navigation.
Request
Unvalidated counterpart of update_summary: calculates the totals from the items, retention, global_discount, currency_code, rate and tax exemption in the body, without saving anything. Nothing else (client, dates, series) is read, and invalid input is coerced rather than rejected, so a missing or wrong wrapper key returns a summary of zeros instead of an error. At most 1000 items are taken into account.
The wrapper key is the singular of the path segment (invoice, invoice_receipt, simplified_invoice, credit_note, debit_note, receipt).
- Production Serverhttps://api-v3.app.invoicexpress.com/api/v3/{invoices-type}/calculate_summary
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -X POST "https://api-v3.app.invoicexpress.com/api/v3/invoices/calculate_summary?api_key=YOUR_API_KEY" -H "Content-Type: application/json" --data '{"invoice":{"items":[{"name":"p1","unit_price":10,"quantity":2,"tax":{"name":"IVA23","value":23}}]}}'{ "summary": { "sum": 19.99, "discount": 0, "before_taxes": 19.99, "taxes": 4.6, "total": 24.59, "currency": { … }, "retention": 0, "pay_progress": 0, "to_pay": 24.59, "total_paid": 0, "taxes_breakdown": [ … ], "total_currency_rate": 0, "rate": 1 } }
Request
Returns the totals of the documents matching the filters. Accepts the same filters as GET /api/v3/invoices (see V3InvoicesQueryParams: id[], except_id[], type[], status[], client_id[], serie_name[], date, due_date, total_before_taxes, total_with_taxes, text, archived, non_archived, reference, ...), sent either in the query string or in the JSON body. Pagination does not apply: totals.pages is always 1.
- Production Serverhttps://api-v3.app.invoicexpress.com/api/v3/invoices/summary
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -X POST "https://api-v3.app.invoicexpress.com/api/v3/invoices/summary?api_key=YOUR_API_KEY" -H "Content-Type: application/json" --data '{}'{ "totals": { "count": 44, "pages": 5, "statuses": [ … ], "total_corrections": 0, "total_corrections_with_taxes": 0, "total_drafts": 0, "total_drafts_with_taxes": 0, "total_canceled": 3516.96, "total_canceled_with_taxes": 4325.87, "total_due": 0, "total_due_with_taxes": 0, "total_overdue": 0, "total_overdue_with_taxes": 0, "total_paid_before_taxes": 0, "total_paid_with_taxes": 0, "total_before_taxes": 0, "total_taxes": 0, "total": 0 } }
Request
Returns a transformed version of the specified invoice document. This is typically used to prepare the document to be converted into another invoice-type document (e.g., credit note or other variations), mirroring the data structure of a cloned document ready for further edits.
- Production Serverhttps://api-v3.app.invoicexpress.com/api/v3/invoices/{id}/transform_document
- cURL
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -X GET "https://api-v3.app.invoicexpress.com/api/v3/invoices/541674/transform_document?api_key=YOUR_API_KEY"SUCCESS
Wrapper key matches the singular of the requested invoice type (invoice, invoice_receipt, simplified_invoice, credit_note, debit_note, or receipt).
For the receipt wrapper (payment receipts) the shape differs: items are the payments the receipt covers, each {document_type, document_sequence_number, total, paid} (e.g. {"document_type": "Invoice", "document_sequence_number": "2026/12", "total": 123.0, "paid": 123.0}) instead of product lines; account.bank_data and auto_add_related_document are not returned.
{ "invoice": { "id": 264663413, "status": "draft", "cancel_reason": "document was duplicated", "archived": false, "type": "Invoice", "sequence_number": "draft", "inverted_sequence_number": "draft", "sequence_id": 5259451, "atcud": "N/A", "saft_hash": "FoIq", "tax_exemption": "M01", "date": "2026-07-27", "due_date": "2026-08-27", "reference": null, "observations": null, "token": "2646634130360dcbca24d2d9509add7c92ccb1d7ab970ce6d", "permalink": "https://web.invoicexpress.com/documents/2646634130360dcbca24d2d9509add7c92ccb1d7ab970ce6d?language=pt", "retention": 0, "global_discount": null, "owner_invoice_id": null, "raw_owner_invoice": "FT 2026/253", "currency": null, "auto_add_related_document": false, "qr_code": "https://example.com/qr_codes/264663413.png", "digital_signed": false, "include_payment_reference": false, "account": { … }, "client": { … }, "items": [ … ], "summary": { … }, "mb_reference": { … } } }
Changelog
Changes to the documented contract of the InvoiceXpress API v3: endpoints, fields, enum values, status codes and behaviour you can observe as an integrator. The newest version is at the top.
The version number is the one shown at the top of this reference, and it follows these rules:
- Minor (
3.1.0): something was added, such as a new endpoint, field or enum value. Existing integrations keep working. - Patch (
3.0.1): the documentation was corrected and now describes what the API already did. No behaviour changed. - The major version stays at
3. A change that would break existing integrations is released as a new API version, not as4.0.0of this one.
Social SecurityCopy for LLM Copy page as Markdown for LLMs View as Markdown Open this page as Markdown Open in ChatGPT Get insights from ChatGPT Open in Claude Get insights from Claude Connect to Cursor Install MCP server on Cursor Connect to VS Code Install MCP server on VS Code
Helps self-employed accounts (trabalhadores independentes and ENI) fill in the quarterly income declaration for Segurança Social. InvoiceXpress calculates the quarter's totals from your invoices and an estimate of the monthly contribution; you record what you reported.
This feature submits nothing to Segurança Social. You type the figures into Segurança Social Direta yourself. It only calculates and records.
Authentication is
api_keyonly, and every endpoint is JSON only. The declaration endpoints are served under/services/v1/social_security/...and the settings and report endpoints under/api/v3/accounts/..., all on the v3 host.