Electronic invoicing for your software.
One API.
Send a neutral document and Plazma turns it into the official one: it signs it, submits it to the tax authority and tells you the result.
$ curl https://api.plazma.sh/v1/documents \ -H "Authorization: Bearer sk_test_..." \ -H "Idempotency-Key: 7b1c9e2a" \ -d '{ "type": "invoice", "company": "cmp_4fT2...", "currency": "PEN", "customer": { "tax_id": "20512345678", "name": "Acme SAC" }, "lines": [{ "description": "Annual plan", "quantity": "1", "unit_price": "1200.00" }] }'
{
"id": "doc_9Qm1...",
"number": "F001-00000124",
"status": "accepted",
"files": { "xml", "receipt", "pdf" }
}From your invoice to an accepted document
Three steps stand between your invoice and a document accepted by the authority.
- 1
Set up your company
Tax details, digital certificate and series. Once per company, from the dashboard or the API.
- 2
Send the document
A neutral JSON, the same for every country. The country catalog tells you which extra fields it needs.
- 3
Get the result
A webhook with the status, official number, signed XML, authority receipt and PDF.
Built for developers
Country catalog
GET /v1/catalog returns document types, forms and allowed actions. Your UI is built from data, not per-country code.
Real test mode
sk_test_ keys issue against each authority’s test environment. Go live by switching the key.
Signed webhooks
HMAC signature with timestamp, automatic retries and a log of every delivery.
Idempotency
Retrying a POST never issues the same document twice.
Legal files
XML, receipt and PDF stored for the period each country requires.
Notes and voids
Credit notes, debit notes and voids as actions on the original document.
All of Plazma from your terminal
Set up companies, issue, look up documents and test webhooks without writing code. Great for trying things out, support and scripts.
Sign in through the browser. The CLI stores a test key.
$ npm install -g @plazma/cli $ plazma login Your pairing code is: amber-ocean-pine-tide Press Enter to open the browser (^C to quit) Done. Connected to Andes Digital (test mode).
One country at a time, without changing your integration
Each country is an isolated module. Adding one does not change the API you already integrated.
Issue your first test document today
Create your account, set up your company in test mode and send your first document in minutes.