CamInvoice Technical Compliance: API Integration and Data Specifications
CamInvoice, the Cambodia E-Invoicing System, is operated by the General Department of Digital Economy (GDDE) of the Ministry of Economy and Finance (MEF), which launched it officially on 22 January 2025. Its first phase applies to suppliers invoicing the budget entities of designated ministries. For developers, the system publishes its own technical documentation: invoices are XML documents structured on the Universal Business Language (UBL), submitted through an API that uses OAuth 2.0 credentials, validated, and then notified to both parties by webhook or polling. This article sets out what that documentation and the MEF's instruments state, and how to approach an integration around them. It does not reproduce limits, error codes or field-level rules that the documentation read for it does not state. An earlier version did, and those specifics could not be traced to any source.
Updated November 2026·6 min read
The General Department of Digital Economy of the MEF is the secretariat that manages, operates and monitors the Cambodia E-Invoicing System. An invoice validated and identified by the system is recognised as an original digital record, and is stored in digital form for 10 years.
Phase 1, Step 1 applies to the central-level budget entities of two ministries (Economy and Finance; Environment) and their suppliers, covering invoices for expenditure payment requests under public procurement from fiscal year 2025.
The Cambodia E-Invoicing System was launched by MEF Prakas 075 of 22 January 2025. Article 4 makes the MEF's General Department of Digital Economy (GDDE) the secretariat that manages, operates, supervises and monitors it. Article 6 gives an invoice validated and identified by the system the status of an original digital record, stored in digital form for 10 years.
The first phase is business-to-government. Under MEF Circular 003 (Step 1), suppliers invoicing the central-level budget entities of the Ministry of Economy and Finance and the Ministry of Environment, for expenditure payment requests under public procurement, do so through the system from fiscal year 2025. Circular 012 (Step 2) adds six ministries, Circular 017 (Step 3) adds six more, and Circular 007 (Step 4, 2026) adds 14 further ministries and institutions. For any obligation beyond these, the reader should check the MEF's current circulars rather than rely on secondary summaries.
The practical consequence for an integration: whether a business must connect at all, and from when, follows from whom it invoices. That question comes before any of the technical work below.
How the System Works, per Its Developer Documentation
CamInvoice publishes technical documentation for integrators at developer.e-invoice.gov.kh. It is written on the assumption that the reader has already contacted CamInvoice and received credentials. The live site currently returns a bot challenge to automated clients, so this article reads it from Internet Archive snapshots of June 2024 and December 2025. Snapshots can lag the live documentation. Treat what follows as an orientation, and the documentation supplied with your credentials as the reference.
The Introduction page (June 2024) describes the flow. A CamInvoice user generates an XML e-invoice, either in its own system or in CamInvoice's free Merchant Portal, and sends it to CamInvoice via the API. CamInvoice validates it through several checks, including XML structure, UBL fields, General Department of Taxation rules, and e-KYB (electronic know-your-business). An invoice that passes is attested and stored on blockchain via CamDL. CamInvoice then notifies both the sender's and the receiver's systems by webhook.
The December 2025 version organises the documentation into Getting Started (an overview and an OAuth 2.0 integration guide), an API Reference, Receive Update Events (webhooks, including setting up and unsetting a webhook, and a polling alternative), the Invoice Structure for invoices, credit notes and debit notes, and Data Types (document status, document type, event type, HTTP status codes, tax category and tax scheme).
Document Types and Data Structure
The documentation defines three document types. An INVOICE is issued by a seller to a buyer, indicating products, quantities and agreed prices. A CREDIT_NOTE records a credit given to the buyer, typically for returned goods or overpayment. A DEBIT_NOTE records additional charges or an increase in the amount owed.
The Invoice Structure section specifies each document element by element, using UBL element names. The top-level elements of an invoice, as the documentation lists them, are shown in the table. Credit and debit notes follow the same pattern, with credit-note and debit-note lines in place of invoice lines and a BillingReference to the original invoice's document reference. A debit note carries a RequestedMonetaryTotal rather than a LegalMonetaryTotal. Each party block includes an endpoint ID, name, postal address, tax scheme (company ID), legal entity (company ID and registration name) and contact.
The pages read for this article list these elements; they do not state field lengths, cardinality, code lists or validation rules. Those belong in the element-level pages of the current documentation, and an integration should be built against them rather than against an assumed UBL profile.
Top-level elements of a CamInvoice invoice, as listed in the developer documentation (December 2025 snapshot)
Element
What it holds
ID, IssueDate, DueDate
Invoice identifier and dates
InvoiceTypeCode, DocumentCurrencyCode
Document type code and currency code
AdditionalDocumentReference
Referenced or attached documents (embedded binary object or external URI)
AccountingSupplierParty
The seller
AccountingCustomerParty
The buyer
PaymentTerms
Payment terms note
AllowanceCharge
Document-level allowances or charges
TaxExchangeRate
Source and target currency and the rate applied
TaxTotal
Tax amount, with subtotals by tax category and scheme
LegalMonetaryTotal
Line total, tax-exclusive and tax-inclusive amounts, allowances, charges, prepaid and payable amounts
InvoiceLine
Each line: quantity, amount, allowances, tax, item and price
Authentication and the API
Getting Started sets out the prerequisites. Contact CamInvoice support to obtain API credentials, a client ID and secret. Use the base URL you are given for all API requests. Implement OAuth 2.0 authentication.
An access token is obtained by POST to {BaseURL}/api/v1/auth/token. The client ID and secret are sent base64-encoded as HTTP Basic credentials, and the body carries a refresh token, which the documentation says is given when the system is first connected. The response returns a token, its type (usually Bearer) and its lifetime in seconds. The documentation states that tokens expire after 900 seconds (15 minutes). The token is then sent as a Bearer token on every request that needs authentication.
The API Reference (December 2025) has endpoints to list CamInvoice members and get a member's details, validate a business (taxpayer), submit and send documents, list documents and get a document's details, accept or reject documents, update document status, revoke a connected member, and download a document as PDF or as XML. The XML download returns the document in UBL format, from {BaseURL}/api/v1/document/{document_id}/xml. The documentation's HTTP status code page lists 200, 401, 403, 422 and 500.
Document Status and Update Events
After submission, a document moves through statuses that both parties can see. The documentation lists the statuses below. A status update is made by PUT to {BaseURL}/api/v1/document/status with a list of document IDs and the new status. The response separates the documents that were updated from those that failed, with a message for each failure; its own example rejects a change from PAID to ACCEPTED. An integration should therefore handle partial success, and should not assume every transition is allowed.
Changes reach a connected system in one of two ways: a webhook it registers (and can unset), or polling. Either way, an integration that only sends documents is half built: the documentation also provides for receiving, accepting and rejecting them.
CamInvoice document statuses (developer documentation, December 2025 snapshot)
Status
Meaning, as documented
VALID
Validated by CamInvoice
DELIVERED
Sent to the customer on the e-invoicing network
ACKNOWLEDGED
Acknowledged but not yet processed
IN_PROCESS
Being processed
UNDER_QUERY
Has issues or queries and is being reviewed
CONDITIONALLY_ACCEPTED
Accepted with conditions to be fulfilled
ACCEPTED
Fully accepted and awaiting payment
REJECTED
Rejected and will not be processed further
PAID
Paid in full
Approaching an Integration
The documentation gives two ways in: CamInvoice's own Merchant Portal, or a business system connected through the API. A business that issues few invoices to a covered ministry may need nothing more than the portal. One that already keeps its accounts in an ERP or billing system will usually want that system to issue the invoice, so that its records and CamInvoice's agree without re-keying.
For a connected system, the work is ordinary integration engineering, shaped by what the documentation specifies:
- Map the ERP's invoice, credit-note and debit-note data to the documented element structure, field by field, against the current element-level pages.
- Check documents locally against the same structure before submission, so that a malformed document is caught in your system and not returned by the platform.
- Manage tokens: obtain, cache for less than their stated lifetime, and renew.
- Submit through a durable queue, so that no invoice is lost if a call fails, and retry transient failures with backoff.
- Store the document identifier CamInvoice returns against the internal invoice record, and track status from webhooks or polling.
- Handle the buyer side: documents received from suppliers, and the accept, reject and status actions on them.
- Reconcile internal records against CamInvoice's document list periodically.
Test against whatever non-production environment CamInvoice provides with your credentials before going live. Treat the documentation, not this article, as authoritative on every specific.
A CamInvoice user generates an XML e-invoice in its own system or in the free Merchant Portal and sends it to CamInvoice via the API. CamInvoice validates it through checks including XML structure validation, UBL field validation, General Department of Taxation rules validation and e-KYB validation; a validated invoice is attested and stored on blockchain via CamDL, and a webhook notification goes to both the sender's and the receiver's systems.
API credentials (a client ID and secret) are obtained from CamInvoice support; authentication is OAuth 2.0. An access token is obtained by POST to {BaseURL}/api/v1/auth/token with the client ID and secret as HTTP Basic credentials and a refresh token, is used as a Bearer token on later requests, and expires after 900 seconds (15 minutes).
Fee-only. We build the client-side integration ourselves, or bring in a platform specialist as a disclosed sub-contract. We never hold client funds and never operate a rail.