e-Meterai API

e‑Meterai API: stamp e‑meterai automatically from your system

Send PDFs from your app, ERP, or invoicing system and get back PDFs with a valid Peruri e-meterai and its serial number. No subscription, no uploading one by one.

  • Rp10,500 per stamp, no subscription
  • Free test mode
  • Automatic refund on failure
e-meterai issuer Peruri
Rp10,500per stamp, stamp duty included
Rp0test mode cost (dk_test_)
< 1 mintypical processing time
25 MBmax PDF, up to 200 pages
Why an API

Stamping e-meterai one by one cannot keep up with business volume

Invoices, receipts, and statements keep piling up. Downloading, uploading, and placing stamps by hand eats staff time and things get missed.

Repetitive manual work

Every document must be downloaded from your system, uploaded to a portal, stamped, and downloaded again.

Easy to miss

Documents above Rp5 million that should carry a stamp can slip through without one when volume is high.

Hard to trace

Stamp serial numbers end up scattered across folders and emails, disconnected from invoice numbers in your system.

How it works

Four steps from PDF to stamped document

  1. 1

    Create an API key

    In Dashboard → Developer, create a test-mode key (dk_test_) with "e-Meterai only" access.

  2. 2

    Send the PDF

    POST /emeterai with the final PDF, the Peruri document type, a document number, and the stamp position.

  3. 3

    Get notified

    The emeterai.stamped webhook fires as soon as it is done, including the serial number. You can also poll the status.

  4. 4

    Store the result

    Download the stamped PDF from GET /emeterai/{id}/file and store it with its serial number in your system.

For developers

Integrate in minutes, not weeks

A simple REST API with Bearer keys. Full Node.js, PHP, and Python examples are in the documentation.

const form = new FormData();
form.append("file", pdfBlob, "invoice.pdf");
form.append("document_type", "Dokumen Transaksi");
form.append("document_number", invoiceNo);

const res = await fetch("https://docs.resmi.id/api/ext/v1/emeterai", {
  method: "POST", body: form,
  headers: { Authorization: `Bearer ${KEY}`, "Idempotency-Key": invoiceNo }
});
const { data } = await res.json(); // data.status = "queued"
Read the docs →

Idempotency-Key

Retrying with the same key never creates or charges a stamp twice, safe when connections drop.

Signed webhooks

emeterai.stamped and emeterai.failed events are sent with an HMAC SHA-256 signature in the X-Resmi-Signature header.

Flexible positioning

Pick a page corner (bottom_right, top_left, etc.) or x, y coordinates in PDF points on any page.

e-Meterai-only keys

"e-Meterai only" access cannot send signing documents, so the risk is smaller if a key leaks.

Separate test & live modes

dk_test_ keys use Peruri test stamps at no cost; dk_live_ keys apply valid stamps.

Transparent pricing

The price is on every job (price_idr) and at GET /emeterai/info. Insufficient balance returns 402 with no stamp created.

Use cases

Documents most often stamped through the API

Invoices & receipts

Documents acknowledging receipt of more than Rp5 million from your billing system.

Statements & certifications

Customer, client, or member statements generated automatically by your app.

Transaction documents

Transaction confirmations, financing documents, or proof of settlement from financial platforms.

SaaS apps & ERPs

Offer e-meterai in your own product without managing a direct integration with the issuer.

Pricing

Pay per stamp, no monthly fee

e-Meterai API
Rp10,500 / stamp
  • Rp10,000 stamp duty included
  • No subscription & no minimum
  • Charged to your Resmi.ID balance when the request is accepted
  • Refunded automatically if stamping fails
  • Free test mode for development
Create a free API key

Need several parties to sign too? Use the e-Sign API with the same key. e-Sign API →

Legal basis

Stamp duty and e-meterai

Indonesia's Law No. 10 of 2020 on Stamp Duty sets the stamp duty at Rp10,000 and lists the documents subject to it, including agreements, notarial deeds, and documents acknowledging receipt of more than Rp5,000,000. Electronic stamps (e-meterai) are used for electronic documents and are issued by Peruri. This is general information; for specific cases, check the latest regulations or consult a tax advisor.

Read: which documents require e-meterai →
FAQ

e-Meterai API FAQ

What is an e-meterai API?

An e-meterai API is a programming interface that lets your system apply electronic duty stamps to PDFs automatically. Your system sends a PDF to docs.resmi.id and receives the stamped PDF and e-meterai serial number with no manual steps.

E-materai or e-meterai — which is correct?

The standard Indonesian spelling is "meterai", so the official term is e-meterai (electronic duty stamp). Many people write "e-materai"; both refer to the same thing.

How much does e-meterai cost through the API?

Rp10,500 per stamp, Rp10,000 stamp duty included, with no subscription fee. It is charged to your Resmi.ID balance when the request is accepted and refunded automatically if stamping fails.

Can I try it for free?

Yes. Test-mode keys (dk_test_) use Peruri test stamps that are not legally valid, intended for development and integration testing, at no cost.

How long does stamping take?

Usually under a minute and at most about three minutes. Use the emeterai.stamped webhook so your system is notified the moment it is done.

How do I set the stamp position?

Choose a page corner with the corner parameter, or set x and y coordinates in PDF points on a specific page. The stamp box is about 22% of the page width and 8% of its height.

Can the PDF be changed after stamping?

No. A Peruri e-meterai is a digital signature over the file, so changing the PDF afterwards makes the stamp invalid when checked. Stamp the final version of the document.

Which document types can I choose?

Document type names follow Peruri's official list, such as Dokumen Transaksi, Surat Pernyataan, or Surat Keterangan. Fetch the full list once via GET /emeterai/document-types.

Further reading

Start your e-meterai integration today

Create a free test key, try it in your system, and switch to live when you are ready.