Philippines BIR EIS E-Invoicing: EIS JSON, JWS Signing, AES-256 Encryption, Transmission and Status
by Viyug Infotech https://viyuginfotech.com$ 163.26
Philippine e-invoices from Odoo to the BIR EIS
Build the EIS invoice JSON, sign it, encrypt it and send it to the BIR Electronic Invoicing System, then follow every result code on the invoice. For taxpayers covered by RR 26-2025 (large taxpayers: deadline 31 December 2026) and every CAS / CBA user.
BIR EISJWS signatureAES-256Sandbox / production
Before you go live
You need your own EIS account, Permit to Transmit and EIS credentials from the BIR. Live transmission to the EIS sandbox has not been run by us, and the field mapping follows public summaries of the EIS JSON specification, so check it against the official BIR spreadsheet during your certification. Every field name and code sits in one mapping file, so a correction is quick.
Free setup call with every purchase
After you buy, book a free 30-minute online call: we install the app with you and set it up for your company. Questions are answered within 24 hours, Monday to Saturday, at support@viyuginfotech.com or on WhatsApp (QR code at the end of this page).
What you get
EIS invoice JSON
Sales invoices, credit memos, debit memos and supplementary receipts with seller and buyer TIN and branch, item list, discounts, VAT, withholding and foreign currency in PHP.
JWS signing in Odoo
RS256 signature with your private key. Generate the key pair and the certificate signing request right in the setup wizard.
AES-256 encryption
Payloads are encrypted with the session key; the authentication request is RSA-encrypted with the BIR public key; every request carries an HMAC signature.
Token handling
The bearer token is cached for its lifetime and renewed shortly before it expires or when the EIS answers with an expired-token code.
Queue, batches, retries
Send on confirmation, up to 100 invoices per submission, retry with growing waits, and a final rejected state when attempts run out.
Result codes on the invoice
Inquiry and result callback map SUC, SYN and ERR codes to accepted or rejected with a plain-language reason.
Pre-send check
The checks the EIS applies (TIN, branch, dates, unique ID, VAT on zero-rated or exempt sales, totals, memo references) run before anything is sent.
Offline simulator
Train your team: the simulator decrypts and verifies exactly what would be sent and answers with EIS result codes, without contacting the BIR.
BIR invoice print
Registration TIN, buyer TIN, EIS unique ID, VAT breakdown, Permit to Transmit and EIS certification ID on the invoice PDF.
How it works
- Confirm a customer invoice or memo in Odoo.
- The pre-send check runs and the EIS unique ID is assigned.
- The EIS JSON is signed (JWS) with your key and encrypted (AES-256) with the session key.
- The queue submits up to 100 invoices at a time with a valid token.
- The BIR result (inquiry or callback) is written on the invoice: accepted, or rejected with the code.
Workflow walkthrough
Fictional demo company Bayanihan Hardware Trading Corp. on the offline simulator.
Run the setup wizard
BIR EIS > Setup wizard. Pick the offline simulator, the EIS certification sandbox or production, enter your EIS certification ID and Permit to Transmit, and paste your signing key or generate a new key pair with a certificate signing request for the BIR. The checklist shows what is still missing.

One connection per company
The connection holds the accreditation and application IDs, EIS user and password, the BIR public key, the callback URL and secret. Waiting, accepted and rejected counters open the matching transmissions. A ribbon shows when you are on the simulator or sandbox.

Tell each tax how the EIS sees it
Every sales tax gets a BIR EIS tax kind: VAT, zero-rated, exempt, withholding of income tax, business VAT or percentage tax. The Philippine chart of accounts is mapped automatically when the app is installed.

Ready to send
The BIR EIS tab on every Philippine customer invoice shows the status, the EIS unique ID, the document type and a live pre-send check. Green means the invoice passes every check the app knows.

Problems shown before the BIR sees them
The pre-send check uses the EIS result codes. Here VATable and exempt lines sit on one invoice (ERR004), which the EIS refuses. Seller and buyer TIN, branch code, dates, totals and memo references are checked too.

Send to BIR EIS
One click (or automatically on confirmation) assigns the 24-digit EIS unique ID, builds the EIS JSON, signs it as a JWS with your key, encrypts it with AES-256 under the session key and submits it. Up to 100 invoices travel in one submission.

See exactly what was sent
Each transmission keeps the EIS JSON, the submit ID, the BIR reference and the attempt count. Download JSON gives you the file for your own checks or for the BIR certification.

Result on the invoice
Results come back by inquiry (every 10 minutes, or Fetch EIS result) or by the BIR result callback. SUC001 marks the invoice accepted and the chatter keeps the history.

All transmissions in one list
Filter by status, result code, document type or customer. Rejected and failed transmissions stand out in red, accepted ones in green, with the BIR message next to them.

Rejections explained
A SYN or ERR code is stored with its plain-language meaning. Fix the invoice data and re-send: the same EIS unique ID is reused so the BIR can match it.

Automatic retry with backoff
Timeouts, server errors, rate limits and expired tokens are retried by the queue with growing waits. After the maximum number of attempts the transmission is parked as rejected for a person to look at.

Credit and debit memos
A credit memo is sent as document type CM with the EIS unique ID of the original invoice and your correction code. Invoices already sent to the EIS are locked against reset to draft.

Invoice print with the BIR details
The invoice PDF adds the document title, VAT or non-VAT registration TIN, buyer TIN, EIS unique ID, VATable / exempt / zero-rated sales with the VAT amount, the Permit to Transmit and the EIS certification ID.

Analysis
Graph and pivot views of transmissions by day, status, document type and amount show how much of your billing has reached the BIR.

Setup in 5 steps
- Install the app; the Philippine chart of accounts comes with it.
- Enter the company TIN with branch code (for example 123-456-789-00000) and check the BIR EIS tax kind on your sales taxes.
- Open BIR EIS > Setup wizard, start on the offline simulator and generate or paste your signing key.
- When the BIR has given you EIS credentials, switch to the certification sandbox, enter them with the BIR public key and click Save and test authentication.
- After certification enter your Permit to Transmit, switch to production and give the BIR your callback URL.
Compared with typical alternatives
| Feature | This app | Typical alternatives |
|---|---|---|
| EIS invoice JSON for invoices, credit and debit memos | ✓ | Some |
| JWS signature created inside Odoo | ✓ | - |
| AES-256 payload encryption and RSA key exchange | ✓ | - |
| Token caching and renewal | ✓ | - |
| Batch transmission with retry and backoff | ✓ | - |
| Inquiry and result callback with SUC / SYN / ERR codes | ✓ | - |
| Pre-send check with EIS result codes | ✓ | Some |
| Key pair and CSR generation | ✓ | - |
| Offline simulator for training | ✓ | - |
| Sandbox / production switch | ✓ | - |
| BIR details on the invoice print | ✓ | Some |
| All field names in one mapping file | ✓ | - |
Questions
Has this app been tested live against the BIR EIS?
No. We do not have a Philippine TIN or a BIR EIS account, so live transmission to the EIS certification sandbox has not been run. Signing, encryption, authentication, submission, inquiry and callback are covered by automated tests against a mocked EIS that decrypts and verifies every request, and the offline simulator runs the same path.
What do I need from the BIR?
Your own EIS account and credentials (accreditation ID, application ID, user and password), the BIR public key, your EIS certification ID and, for production, the Permit to Transmit. The app does not include any BIR account.
Is the JSON field mapping official?
It follows public summaries of RR 26-2025, RMC 98-2026 and the EIS JSON v2.01 field list. Check it against the official BIR spreadsheet and API guide during certification. All field names, document type codes, result codes, endpoint paths and header names are kept in one mapping file, so a correction is a small change.
Which documents are sent?
Customer invoices (SI), credit memos (CM), debit memos (DM, with Odoo debit notes) and supplementary official receipts (OR) chosen on the invoice.
Can I mix VATable and exempt lines?
The EIS expects separate invoices per VAT class. The pre-send check tells you when an invoice mixes them, before it is sent.
Does it work on Odoo Community?
Yes. It needs Invoicing and the Philippine localization only. On Enterprise it works alongside the Philippine reports.
Where is my private key stored?
On the EIS connection, readable only by EIS managers. The key never leaves Odoo; only the signed and encrypted payload is sent.
Questions about the BIR EIS?
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1702 |
| Technical Name |
viyug_ph_einvoice |
| License | OPL-1 |
| Website | https://viyuginfotech.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module