# SumBook Developer API Reference reviewed: 19 October 2026. Public documentation; company records require an authorised connection. ## Build connected accounting experiences. SUMBOOK DEVELOPER PLATFORM Connect invoicing, inventory and workforce systems to the books that bring them together. Start with the interface that matches your integration. The PeopleBook payroll receiver and authorised MCP connections are implemented today. InvoiceNow adapters and a general REST API for inventory, payroll and HRM need further implementation and partner testing. | Integration | Current availability | Start here | | --- | --- | --- | | PeopleBook payroll | Implemented receiver; owner authorisation required | Accounting & payroll guide | | AI & MCP | Implemented; capabilities depend on connection permission | AI & MCP guide | | InvoiceNow access points | Adapter framework only; provider connection pending | Singapore InvoiceNow guide | | Malaysia MyInvois / access point | Market settings and accounting groundwork; no live submission adapter | Malaysia e-Invoice guide | | Inventory / other payroll / HRM | Integration design prepared; no general public REST API yet | Inventory & HRM guides | Public reference. Private records. These docs require no login. Company records always require an authorised connection. A documentation page does not enable a provider, certify SumBook or grant access to accounting data. ## Make your first connection GET STARTED Choose a supported interface, obtain company consent and start with a read request. - Choose PeopleBook payroll, an MCP client or an InvoiceNow partner implementation. The contracts are separate; keys are not interchangeable. - The company owner signs in and authorises the connection for the correct company. Confirm the UEN and company identifiers before mapping data. - For PeopleBook, open the PeopleBook authorisation page linked below, enter the matching PeopleBook company ID and authorise access. Copy the connection key once and store it in your server secret manager. - Use GET below to inspect the authorised company and eligible ledger accounts. Never paste a real key into public documentation, browser JavaScript or an AI prompt. - Map accounts, verify a synthetic journal in a dedicated test company, and reconcile the accounting result before sending live payroll. Do not test writes on real company books. ```bash curl --request GET \ "https://sumbook.wcreatesdigital.com/api/integrations/peoplebook" \ --header "Authorization: Bearer ${SUMBOOK_PEOPLEBOOK_KEY}" \ --header "X-PeopleBook-Company: ${PEOPLEBOOK_COMPANY_ID}" \ --header "X-PeopleBook-UEN: ${COMPANY_UEN}" ``` This command reads company details and eligible accounts; it does not post a journal. There is no separate hosted developer sandbox. Use synthetic records in a dedicated test company. The receiver being available does not mean the source HR system has completed payroll finalisation. [Open PeopleBook authorisation](https://sumbook.wcreatesdigital.com/integrations/peoplebook) [Sign in to SumBook](https://sumbook.wcreatesdigital.com/login) [Download OpenAPI reference](https://sumbook.wcreatesdigital.com/developers/openapi.json) ## Authentication & company access SECURITY Every connection has an explicit owner, a company boundary and a revocation path. | Interface | Authentication | Company boundary | | --- | --- | --- | | PeopleBook receiver | Bearer sb_pb_… key issued by SumBook | Bound to the owner, PeopleBook company ID and matching UEN | | Key-based MCP | Bearer key from Settings → AI connections | Only explicitly authorised SumBook workspaces | | Sites-managed MCP | Managed identity plus a single-use linking code | Company owner links the AI connection in Settings | | InvoiceNow provider | Provider-specific server credentials; pending adapter implementation | Exact legal entity / participant matching required | - PeopleBook keys are hashed in storage. An owner may choose an expiry date or no expiry until revocation. Revoking or replacing the connection invalidates the old key. - The PeopleBook headers must match the stored company ID and uppercase UEN exactly. A SumBook workspace UUID and a PeopleBook company UUID are different identifiers. - MCP keys currently expire after 90 days. PeopleBook’s optional no-expiry setting does not apply to MCP keys. - Keep every key in server-side secrets and send it only to its intended HTTPS endpoint. Never use a Supabase service key, a login password or browser session cookies as an integration key. - The current browser APIs are private application interfaces. They require owner session and origin validation and are not a supported general API for external software. - No general OAuth app registration or arbitrary third-party scoped REST keys are available yet. Those are release requirements for the proposed general API. Use least privilege. An unrelated inventory or HRM product must not reuse a PeopleBook credential or pretend to be the connected PeopleBook company. A dedicated connector and permission model must be implemented for that product. ## API reference IMPLEMENTED CONTRACT The downloadable OpenAPI describes only the implemented PeopleBook receiver—not proposed endpoints. | Method | Path | Behaviour | | --- | --- | --- | | GET | /api/integrations/peoplebook | Read company identity, expiry, eligible expense/liability accounts and capabilities | | POST | /api/integrations/peoplebook | Post a finalised, balanced SGD payroll accrual for the connected company | | DELETE | /api/integrations/peoplebook | Revoke this connection; the current key stops working immediately | All three methods use the same Bearer key and company/UEN headers. Requests and responses use JSON. POST accepts up to 20,000 text characters and 2–32 lines. The response is private and not cached. Do not put credentials in URLs. ```json { "workspaceId": "", "companyName": "Example Company", "uen": "", "expiresAt": null, "accounts": [{"code": "5200", "name": "Staff costs", "type": "EXPENSE"}], "capabilities": ["accounts.read", "payroll.accrual.write"] } ``` Illustrative GET response. Read actual account codes from your own company; do not assume the example code exists. The receiver returns one account list, so it has no pagination. MCP list_contacts and list_documents use offset pages of 50 and return nextOffset. [OpenAPI 3.1 JSON](https://sumbook.wcreatesdigital.com/developers/openapi.json) [Full reference as Markdown](https://sumbook.wcreatesdigital.com/developers/llms.txt) ## InvoiceNow access-point integration PARTNER GUIDE · FRAMEWORK ONLY One accounting model. Provider-specific adapters. Explicit readiness before network transmission. SumBook has a provider-neutral document model and an adapter registry. Advintek and Storecove are scaffold entries with capabilities disabled; neither is a live connection. SumBook is not currently an IMDA-accredited Access Point or InvoiceNow-Ready Solution Provider (IRSP). This page does not claim accreditation. The intended route is SumBook → an IMDA-accredited access point → the InvoiceNow network, with invoice-data submission to IRAS through the access point where applicable. Peppol delivery and IRAS submission have separate acknowledgements; an accepted API request is not proof of either. | Singapore file / payload | Use | | --- | --- | | PINT SG Billing XML (UBL) | Structured Peppol invoice or credit-note payload exchanged through the selected Access Point. Pin the current Singapore specification and validation rules. | | Provider API JSON / XML | Transport contract defined by the selected Access Point. It may accept structured fields, a document, or a provider-specific envelope; obtain the exact sandbox schema and authentication contract. | | CSV | Useful for SumBook reports, migration or a provider-specific bulk-import workflow only when that provider documents it. CSV is not the Singapore Peppol invoice payload. | Singapore’s Peppol exchange format is PINT SG UBL XML. SumBook’s CSV exports are accounting/report files and must not be presented as a compliant Peppol invoice. The Access Point may offer a separate CSV upload, but that is provider-specific and still needs its own field mapping and validation. | IMDA IRSP requirement | SumBook implementation status | | --- | --- | | Explicit business consent; requested SMP registration completed within 3 working days | Explicit owner consent and request are saved with an audit event; external participant registration and completion tracking are pending the AP adapter | | Automated sending and receiving of BIS/PINT invoices | Canonical mapping and fail-closed validation scaffold; no AP adapter | | Store and maintain customer/supplier Peppol IDs | Existing party IDs supported; discovery and directory checks pending | | Receive orders and convert orders to invoices retaining order information | Adapter contract planned; workflow not implemented | | Send and receive invoice responses | Adapter contract planned; workflow not implemented | | Activate/deactivate C5, extract and package invoice data, submit through AP | Not implemented: AP contract and IRAS/C5 pipeline pending | | Store IRAS acknowledgement/status, report and reconcile; retain logs at least 5 years and provide access within 3 working days | Not implemented: durable submission ledger, report and retention policy pending | - Onboard as a product provider: email einvoice@imda.gov.sg to register interest, submit IMDA’s application form, demonstrate mandatory features, work with the AP to create the IRSP sub-organisation in the Singapore SMP, then accept the Letter of Offer. Accreditation is version-specific and valid for one year. Resellers do not apply as primary IRSPs. - Advintek’s Singapore API guide is available and documents JWT login (email, password and routeKey), organisation setup, participant checks and invoice/credit-note submission. Advintek must still provision UAT and production base URLs, API credentials, route key, organisation setup and test accounts. Confirm whether Advintek is the accredited AP for this route or uses a named accredited AP partner. - Agree UEN/legal-entity matching, participant registration and explicit consent, Singapore Peppol ID allocation, CorpPass/KYC responsibilities, disconnect and provider-migration behavior, callback routing and data retention. The guide describes API organisation creation and participant discovery; it does not define SumBook’s registration consent or production provisioning. Never register a business before recording its explicit request. - Pin Singapore PINT SG v1.4.1 and the provider’s corresponding XSD, Schematron and supported code lists. Current mapping includes both buyer reference and purchase-order reference; the Advintek guide requires at least one. Preserve the chosen release in every adapter test fixture. - Map legal names, postal addresses and country codes, GST identifiers, endpoint IDs, document references, currencies, line quantities/unit codes, net prices, discounts, tax categories, GST and SGD tax-accounting totals. Advintek accepts provider-specific JSON and generates PINT SG UBL XML; validate the payload and generated final XML with the official rule pack before transmission. - Implement automated sending and receiving, order reception and conversion, invoice responses, credit notes, C5 activation/submission, IRAS acknowledgements, retries, webhook verification, idempotency and reconciliation. The supplied guide documents outbound invoice/credit-note requests and outbound status/XML retrieval, but it does not by itself verify inbound workflows, C5, webhooks or IRAS acknowledgements. Keep Peppol delivery and IRAS submission results distinct. - Test with provider sandbox accounts and IMDA demo accounts: valid and rejected documents, duplicate/late events, wrong-company routing, rounding, unsupported codes, expired credentials, outages, non-Peppol C5 data, large attachments and consent revocation. Keep live capabilities disabled until each mandatory flow passes. The existing /api/invoicenow browser route is not a public access-point API. The /api/invoicenow/webhooks/{provider} scaffold does not currently accept provider events. Do not configure an access point to send live documents or callbacks until the adapter and end-to-end tests are complete. [IMDA: IRSP accreditation guide](https://www.imda.gov.sg/-/media/imda/files/programme/nationwide-e-invoicing-framework/peppol-ready-accounting-erp-solution-providers/irsp-accreditation-guide-2025.pdf) [IMDA: Accredited Access Point Providers](https://www.imda.gov.sg/how-we-can-help/nationwide-e-invoicing-framework/access-point-providers) [Singapore PINT SG v1.4.1 specification](https://docs.peppol.eu/poac/sg/pint-sg/) [IMDA: InvoiceNow Technical Playbook](https://www.imda.gov.sg/how-we-can-help/nationwide-e-invoicing-framework/peppol-technical-playbook) [IRAS: GST InvoiceNow requirement](https://www.iras.gov.sg/taxes/goods-services-tax-%28gst%29/gst-invoicenow-requirement) ## Malaysia e-Invoice and MyInvois MARKET FOUNDATION · PROVIDER CONNECTION PENDING Country-aware SST and MYR groundwork is present; MyInvois submission still requires a tested provider adapter. Malaysia permits taxpayers to integrate directly with MyInvois, use a Peppol service provider, or use a non-Peppol technology provider. These are different connection contracts. The current SumBook workspace can store Malaysia company/TIN/MSIC and SST setup, but it does not yet submit or retrieve MyInvois documents. | Malaysia file / payload | Use | | --- | --- | | MyInvois XML | UBL 2.1 invoice/credit-note document structure. Digital signature, canonicalization, hash and certificate handling are part of the integration, not optional CSV formatting. | | MyInvois JSON | UBL 2.1 JSON representation supported by MyInvois. The REST request uses JSON and carries document content, format, hash and supplier code number. | | CSV | Not a MyInvois API document format. Use only for SumBook internal import/export or an access-point bulk-import contract explicitly documented by that provider. | - The MyInvois taxpayer API uses OAuth 2.0 client-credentials authentication. Cache access tokens for their lifetime; do not request a new token for every API call. - The Submit Documents API accepts XML or JSON document content, groups documents into an asynchronous submission, and returns a submission UID. Persist the SumBook document ID, provider submission UID and document UID separately, then poll Get Submission with bounded delays and reconcile final validation results. - Avoid duplicate retransmission. Treat accepted HTTP responses as an in-progress result until the final per-document validation status is known; preserve the original code number and submission references. - For a route through Advintek, obtain their written Malaysia product/API scope, base URLs for sandbox and production, request schemas, auth model, certificate/signing responsibility, callback or polling procedure, status mapping and error/retry rules. Their API may wrap or mediate MyInvois; do not substitute MyInvois endpoints or credentials for Advintek’s contract. - Map Malaysian seller and buyer TIN, registration identifier type/value (BRN or other allowed ID), full structured address, MSIC/classification where applicable, invoice line classification, UOM, tax type/rate/amount, totals and currency. Validate against the current MyInvois SDK code lists and document-version rules. SumBook’s existing document and accounting CSV exports are not MyInvois submissions. The app does not yet generate a certified MyInvois XML/JSON payload, apply a Malaysian digital signature, connect to Advintek, or store live MyInvois acknowledgements. Keep sending disabled until the provider contract, signing model, required party fields and sandbox tests are complete. [LHDN MyInvois SDK](https://sdk.myinvois.hasil.gov.my/) [MyInvois Submit Documents API](https://sdk.myinvois.hasil.gov.my/einvoicingapi/02-submit-documents/) [MyInvois integration practices](https://sdk.myinvois.hasil.gov.my/integration-practices/) [MyInvois document signature creation](https://sdk.myinvois.hasil.gov.my/signature-creation/) [LHDN e-Invoice Guideline](https://www.hasil.gov.my/en/e-invois/rujukan-pelaksanaan-e-invois/garis-panduan/) ## Inventory-system integration DESIGN PREPARED · NOT A PUBLIC API Agree which system owns stock movements and which owns accounting before syncing. | Area | Proposed data contract | Accounting control | | --- | --- | --- | | Product master | External product ID, SKU, description, unit, tax and account mapping | Stable IDs; no SKU-only tenant matching | | Stock movements | Movement ID, warehouse, SKU, quantity, date and source reference | One source of truth for quantity and costing | | Sales & purchasing | Invoice, bill, credit and purchase-order references | A stock event must not duplicate an invoice posting | | Costing & valuation | Cost layers, valuation date, currency and cost amount | Reconcile stock valuation to inventory control and cost of sales | | Corrections & returns | Original movement reference and explicit reversal | Preserve the audit trail; do not overwrite posted history | SumBook has an inventory module, but a supported external inventory REST API is not implemented. StockBook and other inventory products need a dedicated company-scoped connector. Do not automate the browser workspace-save endpoint or treat the MCP transaction tools as inventory posting tools. - Before implementation, agree SKU/UOM and warehouse mapping, opening balances, goods receipt and dispatch timing, returns, negative-stock policy and the system responsible for FIFO/costing. - Use immutable external IDs, deterministic idempotency keys, reconciliation totals and a quarantine queue for unknown products or accounts. - Proposed resources include products, stock-movements and valuation snapshots. These are design names, not callable API routes. ## Accounting & payroll PEOPLEBOOK CONTRACT · IMPLEMENTED RECEIVER Transfer finalised payroll totals into the ledger without sending unnecessary staff data. The PeopleBook receiver accepts an accrual journal: expense debits and payroll-liability credits. It records accounting entries, not a bank transfer, payslip or statutory submission. Source payroll calculations and finalisation remain the responsibility of the HR/payroll system. ```json { "schemaVersion": "peoplebook.journal.v1", "currency": "SGD", "status": "finalised", "externalReference": "PeopleBook::", "date": "2026-10-31", "description": "Payroll accrual — October 2026", "lines": [ {"account": "", "debit": 100000, "credit": 0}, {"account": "", "debit": 0, "credit": 100000} ] } ``` - Amounts in this payload are non-negative integer SGD cents: 100000 means SGD 1,000.00. Use 2–32 lines; each line has exactly one positive side, and debit/credit totals must balance. - Use eligible accounts returned by GET. Debits must be EXPENSE accounts; credits must be LIABILITY accounts. Trade payables and GST payable account codes 2000 and 2100 are excluded. - The reference must begin PeopleBook:: and be no longer than 160 characters. Reuse the same reference and identical payload on retries. An identical replay returns the existing journal; a changed payload returns 409. - Do not include employee names, bank details, identity numbers, salary breakdowns, GPS, selfies or biometric data. This contract needs aggregate accounting totals only. - This receiver stores up to 10,000 imported references per workspace. It is not a bulk payroll interface. Do not automatically create a new reference to work around a conflict or a connection limit. Illustrative write payload only. Account placeholders must be mapped and payroll must actually be finalised. An external HRM or payroll product requires its own connector contract and permission model; the PeopleBook key is not a generic payroll credential. ## HRM-system integration DESIGN PREPARED · CONNECTOR REQUIRED Keep employee operations in HRM and send approved accounting outcomes to SumBook. - Map the HRM organisation to one authorised SumBook workspace and UEN. Never route by employee email or a company name alone. - Agree supported outcomes: finalised payroll accruals, approved reimbursable claims and labour/project-cost summaries. Each needs an explicit event schema and release gate. - Use external run/claim IDs, accounting period, currency, effective date and account mappings. Define how corrections reverse the original entry and how closed periods are handled. - Avoid copying the employee directory, leave records, medical notes, identity numbers or attendance evidence into accounting when aggregate amounts are sufficient. - Agree who approves claims and payroll before export. Accounting sync must not silently change HR approval status or mark a staff payment as paid. PeopleBook’s payroll receiver is documented separately. General employee, leave, attendance, claims and HRM synchronisation APIs are not exposed by SumBook today. Availability of a module in the app does not imply a public integration endpoint. ## AI & MCP IMPLEMENTED · OWNER-CONTROLLED Connect compatible AI clients to the exact company and access mode authorised by the owner. | Connection | Endpoint | Setup | | --- | --- | --- | | Private-header MCP client | https://sumbook.wcreatesdigital.com/api/mcp | Settings → AI connections → access key; Authorization: Bearer | For the managed ChatGPT / Codex connection, open SumBook Settings → AI connections, generate a single-use linking code and link it with the installed SumBook connector. No manual server URL is needed for this flow. Read tools include list_companies, get_accounts, list_contacts, list_documents, get_document and get_financial_summary. submit_transaction follows the owner’s access mode: Read only, Confirm before saving or Direct save. prepare_document_draft always requires confirmation. A pending transaction is not a posted ledger entry. MCP is not a general REST API. Asset, inventory, payroll, refunds, arbitrary journals, deletion, email sending and statutory filing are excluded from the transaction tool. Third-party client compatibility depends on support for the transport and private headers; no universal client certification is implied. [Open AI connection settings](https://sumbook.wcreatesdigital.com/settings) ## Errors, retries & testing OPERATIONS Treat errors as accounting controls. Reconcile before replaying a write. | HTTP status | PeopleBook receiver meaning | Action | | --- | --- | --- | | 400 | Malformed payload, invalid accounts/amounts, unbalanced journal or integration limit | Correct the source or mapping; preserve the reference | | 401 | Missing or malformed PeopleBook key | Check Bearer format and the intended endpoint | | 403 | Expired/revoked connection, changed owner, or mismatched company/UEN | Ask the owner to review the connection | | 405 | Method not supported | Use GET, POST or DELETE only | | 409 | Different payload for an existing reference, or concurrent workspace change | Reconcile; never generate a new payroll ID blindly | | 413 | POST text exceeds 20,000 characters | Reduce payload; the journal is limited to 32 lines | Errors use {"error":"message"}. For a timeout or transient server failure, retry conservatively with the same externalReference and identical payload, then reconcile the returned journalId. Do not interpret an HTTP timeout as proof that nothing was posted. There is no published quota or 429 contract for this receiver yet; send sequentially, use bounded backoff and avoid polling loops. - In a dedicated test company, verify correct and wrong UEN/company headers, expired/revoked keys and isolated company data. - Test a balanced journal, invalid accounts, locked periods, invalid dates, negative/non-integer amounts, identical replay and changed-payload conflict. - Confirm that imported totals reconcile to the source run and accounting balances. Never test DELETE using a connection you intend to keep. - For access-point adapters, add signature, duplicate-event, exact routing, status ordering and acknowledgement tests before enabling callbacks. - There is no general outbound webhook subscription service today. Future webhooks must add signed events, delivery IDs, replay protection, retries, logs and reconciliation polling before release. ## Integration readiness & next steps PREPARATION CHECKLIST Use this checklist to scope a partner implementation without confusing a proposal with an available API. | Workstream | Required before release | | --- | --- | | General REST API | Versioned /api/v1 contract, company-scoped hashed keys or OAuth, least-privilege scopes, revocation and audit logs | | Data access | Stable IDs, pagination, explicit tenant context, supported filters and data-minimisation rules | | Writes | Input validation, stable idempotency, transaction/concurrency handling, reversals and period locks | | Webhooks | Signed events, exact tenant routing, replay protection, retries and delivery logs | | Operations | Test company/sandbox policy, quotas, monitoring, change log and deprecation policy | | Access-point launch | Provider specifications/credentials, participant onboarding, current rulesets and end-to-end acceptance tests | For a partner scoping discussion, prepare your product name, integration direction, organisation/UEN mapping, required resources, volume, authentication model, callback specification and sandbox access. Share credentials only through an agreed secure channel. A public API for a new partner must be implemented and tested before any production records are exchanged. [Contact W Creates Digital](mailto:hello@wcreatesdigital.com) [Return to SumBook](https://sumbook.wcreatesdigital.com/login)