Laflor Logic Limited / Jabuntu

Jabuntu Public API

API v1.0.0 | Documentation revision 2026-11-23.1 | Laflor Logic Limited

Staging integration documentation. Production is not yet available. SI accreditation and production activation remain subject to the required approvals.

1. Scope and environments

This is Jabuntu's tenant-scoped ERP integration API, not the NRS/MBS API. It reads business records and creates customers and invoice drafts. It does not expose public invoice validation, signing, transmission or tax-remittance endpoints.

Staging is for authorized testing with fabricated records and separately provisioned credentials. The production address is planned, not an active service commitment. Do not send production taxpayer data to staging. Credentials and business identifiers are environment-specific; a developer sandbox flag is not evidence of NRS approval.

EnvironmentBase URLStatus
Staginghttps://erp.staging.jabuntu.com/api/public/v1Current testing environment
Productionhttps://erp.jabuntu.com/api/public/v1Planned; not ready for production use

2. Authentication and authorization

Send Authorization: Bearer followed by a business-issued API key (jbt_pk_ prefix) or OAuth access token (jbt_at_ prefix). A browser cookie or an NRS x-api-key/x-api-secret pair is not a Jabuntu public API credential. Obtain credentials through the business's authorized Developer settings. Do not put keys in browser code, URLs, screenshots or logs.

Access is bound to the credential's business, scopes, configured per-minute limit and optional IP allowlist. GET /me reports business, credentialType, scopes, ratePerMinute and sandbox. A valid credential is required even though /me has no additional resource scope. Revoke compromised credentials and provision replacements through authorized administration.

curl --fail-with-body \
  -H "Authorization: Bearer $JABUNTU_API_KEY" \
  'https://erp.staging.jabuntu.com/api/public/v1/me'

3. Supported endpoints

Paths are relative to the base URL. Dates use YYYY-MM-DD. Invoice and submission filters use inclusive Nigeria calendar days (Africa/Lagos). Responses are JSON. Listing limits are caps, not pagination guarantees; no cursor or page parameter is currently provided.

Method and pathRequired scopeInputs / bounds
GET /meAuthenticated credentialNo additional query parameters
GET /invoicesinvoices:readfrom/to required; maximum 366-day difference; up to 1,000 rows; creation-date filter
GET /invoices/{number}invoices:readURL-encode invoice number
GET /draftsdrafts:readUp to 500 rows
GET /drafts/{id}drafts:readNumeric draft ID
POST /draftsdrafts:writeDraftInput JSON and Idempotency-Key; up to 100 lines
GET /customerscustomers:readUp to 5,000 rows
POST /customerscustomers:writename, optional tin/email/address; Idempotency-Key
GET /productsproducts:readUp to 5,000 rows, active flag and stock
GET /submissionssubmissions:readfrom/to required
GET /reports/trial-balancereports:readOptional asOf date
GET /reports/profit-and-lossreports:readfrom/to required
GET /openapi.jsonNonePublic contract; no business records
curl --fail-with-body \
  -H "Authorization: Bearer $JABUNTU_API_KEY" \
  'https://erp.staging.jabuntu.com/api/public/v1/invoices?from=2026-11-01&to=2026-11-15'

4. Create a draft, not an NRS submission

Send Content-Type: application/json. DraftInput accepts invoiceNumber, invoiceType (B2B, B2G or B2C), currency, buyer and lines. A line accepts description, quantity, unitPrice, hsCode, vatRate and optional vatAmount. Decimal quantities, prices and amounts are strings; vatRate is a fraction, so 0.075 means 7.5%. The buyer accepts name, tin, email and address. The wire property tin remains named tin: use the identifier accepted by current NRS rules, not a fabricated identifier in a real invoice. B2B and B2G drafts require both buyer.name and buyer.tin. A B2C walk-in buyer may be omitted. Descriptions are required (up to 500 characters), hsCode is required (up to 20 characters), quantity must be positive, and vatRate must be between 0 and 1.

This synthetic example illustrates the public draft schema only. It is not an NRS-validated payload or accepted taxpayer identity. A 201 response means a local draft was created, not NRS acceptance, signing or clearance.

The v1 draft schema is narrower than the application editor: it does not expose complete structured addresses, service classification, unit and goods-category metadata. Complete required metadata in the application before submission. Do not send raw NRS/MBS payloads here or assume public draft creation makes B2B/B2G/B2C goods or service invoices submission-ready.

POST /api/public/v1/drafts
Authorization: Bearer <business API credential>
Content-Type: application/json
Idempotency-Key: draft-example-20261115-001

{
  "invoiceNumber": "EXAMPLE-001",
  "invoiceType": "B2B",
  "currency": "NGN",
  "buyer": {
    "name": "Synthetic buyer - testing only",
    "tin": "00000000-0001",
    "email": "buyer@example.invalid",
    "address": "Synthetic test address"
  },
  "lines": [{
    "description": "Synthetic test product",
    "quantity": "2",
    "unitPrice": "50000",
    "hsCode": "8471.30",
    "vatRate": "0.075"
  }]
}

5. Customers and read models

POST /customers requires name (non-empty, up to 255 characters). Optional email must be syntactically valid. Optional tin and address strings are limited by the implementation to 64 and 512 characters. An existing customer name in the same business returns 409. Customer creation is not taxpayer verification.

Invoice reads return invoiceNumber, status, irn, currency, total, issueDate, createdAt and link; optional values can be null. Draft reads return id, invoiceNumber, invoiceType, currency, total and createdAt. Monetary values are decimal strings. An invoice or IRN alone is not proof of NRS clearance. The invoice read model does not return a QR image. Treat hosted invoice links as sensitive customer-facing links.

The request and response below are illustrative, not captured customer records. POST /customers returns the created customer on HTTP 201. The shown HTTP 400 example is the actual error shape for a missing or oversized name.

POST /api/public/v1/customers
Content-Type: application/json
Authorization: Bearer <business API credential>
Idempotency-Key: customer-example-20261115-001

{
  "name": "Synthetic customer - testing only",
  "email": "customer@example.invalid",
  "address": "Synthetic test address"
}

HTTP 201 (illustrative generated ID):
{
  "id": 123,
  "name": "Synthetic customer - testing only",
  "tin": null,
  "email": "customer@example.invalid",
  "address": "Synthetic test address"
}

HTTP 400 (invalid name):
{"error": "name is required (up to 255 characters)"}

6. Idempotency, limits and errors

Every public POST requires Idempotency-Key: 8-80 letters, digits, hyphens or underscores. The replay window is 24 hours. Keys are business-wide across POST endpoints, not scoped to a route or credential: use a different key for each logical operation and endpoint. Repeating a key and parsed request body within that window replays the stored first result, including stored application errors, with Idempotent-Replayed: true. A changed body with the same key returns 422. Do not rely on replay protection after 24 hours.

After a timeout, retain the same key/body while checking the outcome; do not blindly use a new key. Correct invalid requests deliberately with a new operation key after reviewing the earlier result. Public API replay protection is not a promise of exactly-once processing across NRS or third parties.

On 429, respect Retry-After (currently 60 seconds), then use bounded backoff with jitter. Diagnose errors with sanitized timestamps and operation identifiers, never API keys, hosted-link tokens or taxpayer secrets.

HTTP statusMeaning / action
200 / 201Read or local creation succeeded; not necessarily NRS clearance
400Invalid input, date parameters or idempotency key; inspect error and optional problems
401Missing, invalid, expired or revoked credential
403Insufficient scope or access policy restriction
404Record unavailable to this business or route not found
409Customer name already exists
422Idempotency key reused with a different parsed body
429Rate limit exceeded; respect Retry-After
5xxService failure; reconcile before retrying a write

7. NRS workflow and readiness boundaries

NRS onboarding, entitlement, approval and submission use separately authorized application workflows. The application prepares the IRN/payload, obtains NRS validation/signing responses and reconciles confirmation. A signing POST, including HTTP 201 alone, is not final confirmation. Uncertain outcomes remain locked for lookup-first recovery, not automatic re-signing.

The application produces its QR representation through the applicable confirmed-invoice and cryptographic-key workflow. Confirmation, signature verification, QR readiness and APP transmission are separate states. None follows from a draft, queue entry or IRN alone. POS/iGat-U source automation is separately gated; this documentation does not activate it. No endpoint here collects or remits VAT to NRS.

The downloadable contract is a reviewed snapshot. The staging contract identifies the deployed API; local documentation edits do not deploy the ERP. Breaking changes require a new version and a communicated migration plan before production adoption. Contact info@laflorlogic.com for authorized access and discrepancy reports.

Revision 2026-11-23.1. API documentation.