Developers
Developer documentation
How Centreis connects to your systems, and the concepts behind it. Setup guides and the API reference are shared with your team during onboarding.
Choose your system
Oracle NetSuite
Centreis connects to NetSuite through a read-only login, your middleware, or file upload. Nothing is installed in your ERP.
Setup guide shared during onboarding.
SAP S/4HANA Cloud
A read-only technical user and one SAP API. Nothing of ours is installed. Your SAP key user adds one read-only view from our guide.
Setup guide shared during onboarding.
SAP S/4HANA (on-premise and RISE with SAP)
Nothing of ours is installed. Your SAP key user adds one read-only view from our guide. A small outbound-only connector runs in your network.
Setup guide shared during onboarding.
SAP Business One
Nothing of ours is installed. Your SAP key user adds one read-only view from our guide. A small outbound-only connector runs in your network.
Setup guide shared during onboarding.
SAP ECC
Your middleware pushes invoices to our API, or we add one small SAP-side add-on.
Setup guide shared during onboarding.
Push API
Any system can send invoices to Centreis through its API. The same checks and proof apply.
API reference shared during onboarding.
File upload
Upload a file of final invoices to Centreis. The same checks and proof apply.
File layout shared during onboarding.
Push API
The push API lets any system send final invoices, credit memos and debit memos to Centreis. From there, Centreis does what it does for every ERP: check, prepare, sign and send, prove.
- Same checks and proof. Required fields and dates are checked before BIR sees anything, and Centreis keeps tamper-evident records of what was sent to BIR and what came back.
- One sale, one registration. A sale is registered with BIR once. Resends reuse the same BIR unique ID, so a retry can't create a duplicate.
- Amounts as sent. Amounts go to BIR exactly as your system issued them. Centreis never recomputes tax.
- Test and live kept apart. Test data goes to BIR's test system and live data to production. Nothing sent in testing counts as sent for real.
- Status events. Read a paged feed of status changes, or receive signed webhooks at your HTTPS endpoint. Admins create, change and rotate the endpoint and its signing secret on the Open door screen. Failed deliveries are retried, and each delivery shows in a history.
- Access. Your team receives API access during onboarding.
Concepts
Sample data. Screens simplified for illustration.
- Lifecycle states.
- Every invoice is waiting, sending, registered or needs attention.
- Test data and live data.
- Test data goes to BIR's test system; live data to production.
- One sale, one registration.
- Resends reuse the same BIR unique ID. After an unclear outcome, Centreis retries with the same unique ID. A "duplicate unique ID" answer after an unclear send marks the invoice presumed registered, pending a person's check. A new unique ID is issued only for an unchanged invoice whose rejection was retrieved, on a person's request. The rejected ID is retired and never sent again.
- Corrections.
- An e-invoice BIR has accepted is never edited. A fix is a new linked document: a credit memo, a debit memo, or a reversal and a replacement that point back to the original. An admin confirms before anything is reversed. Linked-document gate: a reversal or replacement waits in the correcting queue until its original is registered.
- Evidence pack.
- summary.html (plain summary), evidence.json (history), manifest.json (SHA-256 fingerprint, size and time of every stored file and each mapped BIR JSON) and checking instructions. Owners and admins download it from the invoice page.
- Pickup.
- Pull connections read on the schedule kept with the connection. One ERP document is one source document, and later changes are revisions of it.
- Audit log events.
- Sign-in, setting change, key use, correction, support access.
- Source offline alarm.
- Raised when a pull can't reach the ERP, and closed when a later pull reads it again. One source has at most one open alarm.
- Fix list.
- Invoices needing a person, oldest first, with BIR's message word for word and a plain-language next step.
- Roles.
- Owner, admin, operator and viewer, with two-step sign-in for everyone.
- Write-back.
- Writing BIR's ID back to your ERP is optional.
API reference
Network notes
- Centreis runs in your dedicated AWS account in Singapore, with fixed outbound addresses for BIR's allow-list.
- The on-premise connector opens no listening port. It connects out to Centreis over HTTPS and sends only GET requests. It forwards them only to the one SAP API address pinned in its local settings.
- Your team adds Centreis's fixed outbound addresses, at most four, to each BIR application at BIR. The addresses are shared during onboarding.
- Hostnames, addresses and connector requirements: shared with your team during onboarding.
Security and connector details
Sample data. Screens simplified for illustration.
- Tenant walls.
- Every company-owned table has a company ID and forced PostgreSQL row-level security. Automated cross-customer tests cover this, and a cross-company read must be refused.
- Signing and transport.
- Each e-invoice is a compact JWS signed with RS256 by your BIR key in AWS KMS. Batches are encrypted with BIR's session key (AES-256) and each request carries an HMAC-SHA256 signature, as BIR's EIS API guide describes. BIR's test system uses JSON format 2.01 and production uses 2.1, kept as settings.
- Key custody.
- Each EIS application's BIR signing key is imported into AWS KMS as a separate key and signs there. Other credentials are sealed with a per-company key and decrypted only in memory when used. No screen, API response or database role returns key material or secrets.
- Stored payloads.
- Object storage under a per-company prefix, encrypted with a per-company key. The database keeps a pointer and a SHA-256 hash, and every read checks the hash.
- NetSuite record types.
- Invoice, cash sale (sent to BIR as an invoice) and credit memo. Optional write-back: two custom text fields on sales transactions hold BIR's unique ID and BIR status.
- Common invoice shape.
- One published, versioned shape behind every route. File upload accepts JSON, the spreadsheet template (one row per invoice line) or CSV with the template's columns. A web-API connection is described by a setup file that maps your system's API to the common shape.