Skip to main content

Invoicing & Waybills

Create and manage invoices, receipts, credit notes, debit notes, and transport documents (waybills) through the MagniFinance API.

REST vs SOAP: Which Should I Use?

Quick Answer

Choose REST for new integrations. It's simpler, uses JSON, and has better tooling support.

CriteriaREST APISOAP API
Data FormatJSONXML
Best ForNew integrations, modern appsLegacy systems, enterprise environments
Learning CurveEasierSteeper
ToolingExcellent (Postman, curl, etc.)Requires SOAP clients
Feature ParityFull supportFull support
RecommendationRecommendedMaintained for compatibility

Choose REST if:

  • You're building a new integration
  • Your tech stack is modern (Node.js, Python, React, etc.)
  • You prefer working with JSON
  • You want simpler debugging with standard HTTP tools

Choose SOAP if:

  • You have existing SOAP infrastructure
  • Your enterprise requires SOAP/XML protocols
  • You're integrating with legacy systems that only support SOAP

Available Operations

Both APIs support the same document operations:

OperationDescription
Create DocumentCreate invoices, receipts, credit/debit notes
Get DocumentRetrieve document details and download PDF
Cancel DocumentCancel a closed document
Create WaybillCreate transport documents
Get Document PropertyRetrieve specific document properties

Get Started

Document Types

CodeTypePortuguese Name
TInvoice/ReceiptFatura/Recibo
IInvoiceFatura
SSimplified InvoiceFatura Simplificada
CCredit NoteNota de Crédito
DDebit NoteNota de Débito

Authentication

Both APIs require authentication credentials. See Authentication for setup instructions.