ABIL — A Better Integration Layer

Configuration pages: /v1/console — the built-in ops console (channels, rates, waterfall, bindings, period operations). All endpoints (except this page, /v1/health, the two Xero browser routes /v1/abil-xero/authorize and /callback, and the supplier webhook /v1/abil-webhooks/:channelId/delivery, which takes the channel's webhook secret) require Authorization: Bearer <IP4X token> + X-Tenant-ID, verified live against the IP4X stack. Machine-readable manifest: /v1/api-index.json.

The integrations a tenant can use depend on its licence and its audience: signed in, read them from GET /v1/abil-catalogue.

Channels

GET/v1/abil-channelsList channels (secrets masked; secrets_set booleans)
POST/v1/abil-channelsCreate channel (configuration encrypted at rest; a secret is never returned once stored). credential_source: abil (credentials kept in ABIL, the default where the provider takes any) or none (a public service). zero_rated: usage recorded, never billed. no_default_cap (AI channels and the handlers IP4X syncs only): no default monthly spend cap, for IP4X's channel sync. Auth: IP4X user with abil:channels:manage, OR X-ABIL-Service-Key of IP4X's connector key (consumer ip4x-connector) carrying channels:manage, for a handler IP4X syncs (else 403), in the key's tenant, with only code, name, handler, configuration and no_default_cap (else 403); refused 409 while the key holds 50 live channels; the channel then joins that key's channels
GET/v1/abil-channels/:idGet channel
PUT/v1/abil-channels/:idUpdate channel (omitted secrets preserved, unless a URL moves to another host: then every stored secret must be entered again; clear_secrets: [key] removes held ones by name, or holds one blank where configuration sends it empty). URL fields are https, and a fixed supplier's only on its own hosts. An AI channel's URL may be any http(s) host but cloud metadata or link-local, with no query or fragment (a private address is reached only where the operator allows it for the tenant), its key kept only while the URL stays on the supplier's own hosts; and `handler` may move an AI channel to another AI handler, with its key entered again and the rest of its configuration from the request (licensed for the new handler). Auth: IP4X user with abil:channels:manage, OR IP4X's connector key carrying channels:manage, for a channel on the key, of a handler IP4X syncs, in the key's tenant (another answers 404), with only code, name, handler and configuration (else 403), moved only to another such handler
DELETE/v1/abil-channels/:idSoft-delete channel. Auth: IP4X user with abil:channels:manage, OR IP4X's connector key carrying channels:manage, for a channel on the key, of a handler IP4X syncs, in the key's tenant (another answers 404)
GET/v1/abil-channels/available-handlersProvider catalog for this licence, narrowed to the tenant's audience
GET/v1/abil-catalogueThe integrations this tenant is shown (its audience, plus any it already has a channel for, flagged in_audience: false), with categories, industries and use cases

Integration audiences (platform tenant, abil:channels:manage)

GET/v1/abil-admin/integrationsEvery integration with its audience and use-case tags, hidden flag, version and suggested industries
PUT/v1/abil-admin/integrations/:handlerSet {audiences?, use_cases?, hidden?, version}; version is the one read (409 if changed since). Audited
POST/v1/abil-admin/integrations/bulkAdd or remove tags across integrations {handlers, field: audiences|use_cases, add?, remove?}
GET/v1/abil-admin/tagsSegment and use-case vocabularies, with how often each is used
POST/v1/abil-admin/tagsAdd a tag {kind: segment|use_case, value, label, description?}
PUT/v1/abil-admin/tags/:kind/:valueRename a tag {label, description?}
DELETE/v1/abil-admin/tags/:kind/:valueDelete a tag no integration or tenant uses
GET/v1/abil-admin/tenantsEvery tenant ABIL has met, with its region (from IP4X) and tags
PUT/v1/abil-admin/tenants/:tenantId/tagsReplace a tenant's industry and segment tags {tags}
GET/v1/abil-admin/tenants/:tenantId/cataloguePreview the catalogue as that tenant sees it
GET/v1/abil-admin/historyEvery audience change, newest first: integration profiles, tenant tags and the tag vocabularies (?kind=integration|tenant|tag, ?subject, ?handler, ?limit)
GET/v1/abil-admin/regionsRegion quick picks: ABIL deployment regions and their countries
GET/v1/abil-channels/handlers/:handler/schemaConfiguration schema
GET/v1/abil-channels/handlers/:handler/actionsActions a handler exposes, with the parameters each takes where they are described
GET/v1/abil-channels/:id/metricsOne channel in a period (?period=YYYY-MM, default the current one): calls, failures, success rate, response times, quantity and cost per metric and per day. Test calls counted apart
POST/v1/abil-channels/:id/executeExecute an action {action, params, disposition?, trace?} — records CDRs. Answers {data, price?}: data is the handler payload; price {amount_micros, currency, provisional: true} is the billable usage of the call at its IP4X product price (excl. tax) × quantity — provisional, as IP4X prices the month when it invoices; never supplier cost; absent when nothing billable was recorded, a SKU has no priced IP4X product, no service account reads it, or the products are priced in different currencies. trace: true (a signed-in operator only, never a service key) adds `trace`, the supplier requests the call made (method, host, path, status, time; no query, header or body), to the answer and to an error. Auth: IP4X user with abil:channels:execute, OR X-ABIL-Service-Key carrying channels:execute for this channel (disposition is always billable; customer_ref must be the key's consumer or beneath it). Idempotency-Key header replays the stored response; 429 cap_exceeded/float_exhausted (ABIL's own limits); 429 supplier_rate_limited or 503 supplier_unavailable when the supplier said so, with its Retry-After passed on; 428 when an action that must not repeat (a live Amber raise_alert) comes without an Idempotency-Key; 504 outcome_unknown after a vendor timeout, with or without an Idempotency-Key

Tenants below a product (TaskR's asks, docs/TASKR-ASKS.md)

*X-ABIL-On-Behalf-Of: <child tenant id>ABIL-T3: on the setup routes (channels, consumers and keys, caps, billing bindings, service account, event receivers, events) a parent's staff act for a DIRECT child; IP4X confirms the parentage, anything else is a 404. Every other route answers 400 on_behalf_not_supported
GET/v1/abil-ip4x/service-accountABIL-T2: where licence reads by key sign in from (env | stored | shared) and the stored account, masked
PUT/v1/abil-ip4x/service-accountABIL-T2: hold the tenant's IP4X service account in ABIL {email, password}: proven against IP4X first (422 login_refused stores nothing), encrypted, never returned. No env change or redeploy per tenant
DELETE/v1/abil-ip4x/service-accountABIL-T2: forget it
GET/v1/abil-ip4x/parent-keyABIL-2: this parent's IP4X key held in ABIL (name, prefix, routes, last confirmed; never the key), whether an env directory key for it is used first, and the routes the key must be held to
PUT/v1/abil-ip4x/parent-keyABIL-2: hold the parent's IP4X API key {key}. IP4X GET /api-keys/me must say it is this tenant's own and held to GET /child-tenants/:id and GET /child-tenants/:id/license only (422 key_refused | key_wrong_tenant | key_unlimited | key_cannot_read_licence | key_too_wide stores nothing). It reads its direct children's licences and countries; a grandchild needs its own parent's key
POST/v1/abil-ip4x/parent-key/checkABIL-2: ask IP4X again who the stored key is; a refusal keeps the key and says why
DELETE/v1/abil-ip4x/parent-keyABIL-2: forget it; licence reads fall back to each child's own service account
POST/v1/abil-channels/:id/sharesABIL-F10: share a channel with a direct child {child_tenant_id}; the child executes it (its usage names the funder, both tenants' caps apply) and never reads it. 404 for a tenant that is not your child
GET/v1/abil-channels/:id/sharesABIL-F10: a channel's shares, live and revoked
DELETE/v1/abil-channels/shares/:shareIdABIL-F10: revoke; the next call by the child is refused
PUT/v1/abil-event-receiversABIL-F01/T5: where events go {url, consumer_id?, secret?}: the tenant's default, or one consumer's. A generated secret is returned only here (docs/EVENTS.md)
GET/v1/abil-event-receiversReceivers, never their secrets
DELETE/v1/abil-event-receivers/:idRemove a receiver
GET/v1/abil-eventsEvents (?state=queued|delivered|failed|dead&type=&limit=): message.delivered/failed/inbound/opt_out/opt_in, newest first
POST/v1/abil-events/:id/redeliverQueue an event again now
POST/v1/abil-opt-outs/removeABIL-T6: lift a WhatsApp or SMS opt-out {channel_id, to, customer_ref?}: that consumer's, else every consumer's (the number is hashed, never stored)

Supplier webhooks (PUBLIC — the channel's webhook_secret is the credential)

POST/v1/abil-webhooks/:channelId/deliverySMSPortal WhatsApp status receipts: SMSPortal's native bare array [{MessageId, Status, Timestamp…}] or {events:[…]} / {statuses:[…]} (1–500) → ingest_delivery through the executor; billable CDRs only for receipts that correlate to this channel's own send, priced at the category that send recorded. Auth: X-ABIL-Webhook-Secret (a custom header on the SMSPortal webhook) OR Authorization: Basic base64(<any user>:<webhook_secret>) — never path, query or body. 200 {data:{received, delivered, failed, ignored, malformed, cdr_uncorrelated?}}; every refusal (no/wrong secret, unknown, deleted, inactive or non-smsportal channel) the same 401 + WWW-Authenticate: Basic; 400 validation for a malformed batch; 429 per source IP (ABIL_WEBHOOK_RATE_PER_MIN)

CDRs (metering spine)

GET/v1/abil-cdrs/metricsMetric registry
POST/v1/abil-cdrsRecord a CDR (idempotent via client_reference)
GET/v1/abil-cdrsQuery CDRs (period, metric_key, product_sku, handler, channel or abil_channel_id, client_reference, disposition, include_shared…)
GET/v1/abil-cdrs/summary/:periodPer-metric aggregates for a period

Cost rates (ABIL holds cost only — the customer price lives on the IP4X Product)

GET/v1/abil-ratesCost rate cards (negative = commission earned)
POST/v1/abil-ratesCreate a cost rate (effective-dated; supersede, never edit)
POST/v1/abil-rates/:id/closeEnd-date a rate
POST/v1/abil-rates/rate-period/:periodRating pass (?reRate=true for month-end whole-volume correction)

SKU mapping (cost ↔ IP4X Product — see docs/SKU-CONTRACT.md)

GET/v1/abil-sku-map(metric_key, service_code) → product SKU
POST/v1/abil-sku-mapAdd a mapping (effective-dated; supersede, never edit)
POST/v1/abil-sku-map/:id/closeEnd-date a mapping
DELETE/v1/abil-sku-map/:idSoft-delete a mapping
POST/v1/abil-sku-map/restamp/:periodRe-resolve SKUs on a period (409 once pushed)
GET/v1/abil-sku-map/coverage/:periodMapped vs still on the metric-key fallback

Consumers & service keys

GET/v1/abil-consumersConsumer registry (a per-tenant tree)
POST/v1/abil-consumersRegister a consumer (optional parent_id = tree edge)
PUT/v1/abil-consumers/:idUpdate a consumer {name?, notes?, is_active?} — is_active: true reactivates one a blocking cap switched off
POST/v1/abil-consumers/:id/keysIssue a service key {name?, scopes?: [ingest|usage|billing|channels:execute|accounting|channels:manage|accounting:read] (billing needs abil:periods:manage; channels:manage needs abil:channels:manage and goes only on the ip4x-connector consumer's key, beside channels:execute; accounting and accounting:read need abil:xero:map, each on a key and a consumer of its own, accounting bound to ledgers ABIL posts to, accounting:read to ledger channels), allowed_channel_ids? (required with channels:execute, accounting or accounting:read), allowed_models? (on its AI channels, the only models a call may name; the first runs when a call names none)} — secret shown once
PUT/v1/abil-consumers/keys/:keyId/modelsChange a live key's allowed models {allowed_models: [model…] | null} — null lifts the limit; the secret is unchanged. Needs abil:channels:execute as well as abil:consumers:manage
PUT/v1/abil-consumers/keys/:keyId/channelsReplace a live execute or accounting key's channels {allowed_channel_ids: [id…] (1..50, 1..1000 on IP4X's connector key, this tenant's)} — checked as at issue, a channel deleted since it was on the key dropped, and on a channels:manage key a live channel the key created itself kept; the secret is unchanged. Needs abil:consumers:manage and the issuer bar for the key's scopes (abil:channels:execute, abil:xero:map for accounting). IP4X's connector key (consumer ip4x-connector, scopes [channels:execute] or [channels:execute, channels:manage]) is also kept, with this and the other registry calls IP4X makes for it, by abil:channels:manage + abil:channels:execute (docs/OPERATIONS.md). Creating the ip4x-connector consumer, or issuing, re-pointing, limiting or revoking a key on it, also needs IP4X's platform key (X-IP4X-Platform-Key) whoever calls; issuing one replaces the live one, and it binds only the channels IP4X syncs
DELETE/v1/abil-consumers/keys/:keyIdRevoke a service key
GET/v1/abil-capsUsage / spend caps (?scope=channel|consumer|tenant&scope_id=)
GET/v1/abil-caps/usageCaps with the current window's used vs limit, percentage and, on an ATSC-paid cap, the month by original currency
GET/v1/abil-caps/atsc-paidThe tenant's cap on the ATSC-paid usage it causes, and its USD 300 ceiling (or IP4X's key for it)
PUT/v1/abil-caps/atsc-paidSet it: { limit_value, currency }, 0 up to the USD 300 equivalent (or IP4X's key for it)
POST/v1/abil-capsCreate a cap {scope, scope_id?, metric_key?, service_code? (on an AI channel the model: only its calls count), kind: quantity|cost (a quantity cap on a token metric counts tokens), window: day|period, limit_value, currency?, soft_pct?, action: block|warn}
DELETE/v1/abil-caps/:idRemove a cap
GET/v1/abil-servicesService groups: one service, several providers
GET/v1/abil-services/statusMembers in cost order + the margin verdict per service (?code=)
POST/v1/abil-servicesCreate a service {code, name, product_sku, margin_floor_pct?=10}
PUT/v1/abil-services/:codeUpdate a service (name, product_sku, margin_floor_pct 0–95 as a margin on price, is_active, notes)
DELETE/v1/abil-services/:codeRemove a service
POST/v1/abil-services/:code/membersAdd a provider {abil_channel_id, action, metric_key, service_code?}
DELETE/v1/abil-services/members/:idRemove a provider
POST/v1/abil-services/:code/executeRun the service: margin floor (409 margin_breach; 503 margin_unverified), then cheapest live provider first, failover on supplier failure (a supplier's 429 or 503 included); 429 on the caller's own cap; 502 when all fail; 504 outcome_unknown when a transactional provider times out. Answers {data, price?, served_by, attempts}, price as on channel execute (the IP4X product price, provisional). Same auth, Idempotency-Key and service-key rules as channel execute; no supplier cost in the response
POST/v1/abil-ingestConsumer usage ingest — auth by X-ABIL-Service-Key; customer_ref from the key, not the body

Periods & the pull read API

GET/v1/abil-periods/:periodPeriod status (open | rated | sealed)
POST/v1/abil-periods/:period/sealSeal a period — the read API then serves it
POST/v1/abil-periods/:period/reopenAudited reopen (reason required) -> rated
GET/v1/usagePULL: sealed rated usage per consumer per SKU, each line with the consumer ip4x_customer_id; auth by service key (usage or billing scope), scoped to the caller subtree. Only a billing key claims the month for the pull (the legacy push is then refused); a usage read claims nothing

Reports (manual recon)

GET/v1/abil-reports/supplier/:periodSupplier usage/cost by metric (+ flat-fee amortisation) — ?format=csv
GET/v1/abil-reports/billing/:periodWhat the next usage push will claim, per customer per SKU — ?format=csv
GET/v1/abil-reports/tenant/:periodTenant cost by SKU / customer / metric — ?format=csv

Ledger & waterfall (all configuration)

GET/v1/abil-ledger/partiesParty registry
POST/v1/abil-ledger/partiesCreate party
GET/v1/abil-ledger/schemesSplit schemes with lines
POST/v1/abil-ledger/schemesCreate effective-dated waterfall scheme
POST/v1/abil-ledger/allocate/:periodAllocate rated CDRs to ledger entries + float draws
GET/v1/abil-ledger/report/:periodParty totals for a period
GET/v1/abil-ledger/floatsFloat balances per channel
POST/v1/abil-ledger/float-eventsRecord top-up/adjustment

Xero connection & mapping (docs/XERO-INTEGRATION.md — 503 xero_not_configured until XERO_CLIENT_ID is set)

GET/v1/abil-xero/statusEvery Xero channel: organisation, legal name, base currency, status, last sync, last error, call-budget usage
POST/v1/abil-xero/connectStart a connection {abil_channel_id} → {authorize_url} (one-time, 5 minutes; abil:xero:connect)
GET/v1/abil-xero/authorizePUBLIC browser leg (?ticket=): sets the HttpOnly nonce cookie and 302s to Xero
GET/v1/abil-xero/callbackPUBLIC: Xero redirects here; 302 to XERO_RETURN_URL?xero=choose|error&xero_state=… (never tokens)
POST/v1/abil-xero/webhookPUBLIC: Xero webhook (G-14). x-xero-signature = base64 HMAC-SHA256 of the raw body with XERO_WEBHOOK_KEY; 200 valid / 401 not, empty body
GET/v1/abil-xero/pending/:stateIdOrganisations this approval returned (name, legal name, VAT number, currency, demo flag, already bound elsewhere)
POST/v1/abil-xero/confirmBind one organisation to the channel {state_id, xero_tenant_id}; the others from that approval are disconnected
POST/v1/abil-xero/:channelId/disconnectStop posting: remove the connection at Xero and revoke the grant once nothing uses it (posted documents stay in Xero)
GET/v1/abil-xero/:channelId/mappingsTax label → TaxType, revenue key → account code, clearing account, sundry contact name
PUT/v1/abil-xero/:channelId/mappingsUpsert mappings {entries:[{kind: tax|account|setting|item|tracking, source_key, xero_value}]} (tracking: "category/option" both sides); empty xero_value removes (abil:xero:map)
GET/v1/abil-xero/:channelId/optionsLive ACTIVE revenue/payment accounts and sales tax rates from the organisation (spends Xero calls)
POST/v1/abil-xero/:channelId/validateCheck every mapping against the live organisation → {ok, problems, warnings}

Accounting documents (canonical format → the tenant's ledger, Xero or Odoo: docs/LEDGER-PROVIDERS.md). A channel takes its ledger's licence key (abil:xero, abil:odoo, abil:sage); 503 <handler>_not_configured (xero_not_configured) while its ledger is not configured. Odoo takes invoice, credit_note, payment and void (any other kind is refused per document, kind_unsupported), only once its mapping has been validated (409 ledger_not_connected until then), and answers 501 on drift and reconcile. A ledger ABIL only reads answers 422 posting_unsupported on documents in, preview, sync, drift and reconcile, and queues nothing

POST/v1/abil-accounting/:channelId/documentsQueue up to 500 canonical documents {source, documents[]} → 202. Auth: X-ABIL-Service-Key with the accounting scope for this channel, OR an IP4X user with abil:xero:map
POST/v1/abil-accounting/:channelId/previewRender the payloads these documents would become in the channel's ledger (Xero, or Odoo with provider and body) — nothing queued, nothing sent
GET/v1/abil-accounting/:channelId/documentsOutbox and ID map (?state=queued|synced|exception|blocked&kind=contact|contact_update|invoice|credit_note|allocation|payment|overpayment|credit_allocation|void|attachment|journal|settlement_transfer|settlement_fee|refund|bill|bill_credit|bill_allocation|bill_payment|batch_payment). Each row names its provider and the ledger's external_id and external_number; xero_id and xero_number are deprecated aliases of those two
POST/v1/abil-accounting/documents/:id/retryRe-queue an exception after fixing its cause
POST/v1/abil-accounting/documents/:id/resolveSettle a doubt only a person can (settlement_possible_duplicate, settlement_fee_voided_in_xero, journal_voided_in_xero): {action: adopt, xero_id} or {action: post_anyway} (abil:xero:map)
POST/v1/abil-accounting/:channelId/syncPost this channel's due documents now instead of on the worker's next tick
POST/v1/abil-accounting/:channelId/driftCheck now for documents ABIL posted that were changed or voided in Xero (flags, never reverts; spends Xero calls)
GET/v1/abil-accounting/:channelId/reconcile/:periodABIL net revenue per Xero account code beside Xero's own Profit and Loss for the month (reads Xero: chart of accounts + one report; accounting.reports.profitandloss.read, or the broad accounting.reports.read an older grant carries until 13 Sept 2027) (G-11)
GET/v1/abil-accounting/:channelId/eventsWhat ABIL concluded of payments entered in the ledger against invoices it posted (payment.recorded_externally): from Xero's webhooks (G-14), or from polling Odoo (every ABIL_LEDGER_POLL_INTERVAL_MS, 5 min; docs/ODOO.md), in the same shape, by cursor: ?after=<seq>&limit=. Each event names its provider (xero, odoo), external_id and external_status (Xero: the invoice's Status; Odoo: its payment_state); xero_id and xero_status are deprecated aliases of those two
GET/v1/abil-accounting/:channelId/tie-out/:periodMonth-end tie-out (YYYY-MM): what ABIL posted vs what the organisation holds, one currency at a time (?currency=, default the base currency)
GET/v1/abil-accounting/:channelId/mappingsThe channel's mapping, whatever its ledger → [{kind, source_key, value, updated_by, updated_at}] (Xero: the /abil-xero mapping, xero_value as value; Odoo: tax → account.tax id, account → account code, setting sales_journal | payment_journal | payment_method_line | sundry_contact_name, item → product.product id)
PUT/v1/abil-accounting/:channelId/mappingsUpsert {entries:[{kind, source_key, value}]} (the provider's kinds; an empty value removes; abil:xero:map)
GET/v1/abil-accounting/:channelId/mappings/optionsWhat the mapping may name, read from the ledger (Odoo: sales taxes, income accounts, sales and bank/cash journals, inbound payment methods, products; Xero: its options)
POST/v1/abil-accounting/:channelId/mappings/validateCheck the mapping against the live ledger → {ok, problems, warnings}; an Odoo channel's company and currencies are recorded by it (documents are refused, 409 ledger_not_connected, until it has run)

Ledger reads (the tenant's books read back, Odoo 18+, Xero, Sage Accounting South Africa and Sage Accounting v3.1 (UK, IE, CA): docs/LEDGER-PROVIDERS.md, docs/ODOO.md, docs/XERO-INTEGRATION.md, docs/SAGE-ZA.md, docs/SAGE-ACCOUNTING.md). The same shapes whatever the ledger: provider, currency (the company's), minor_units, amounts as *_minor integers, ids as strings. One company (the channel's company_id, else the bot user's), posted entries only. Auth: X-ABIL-Service-Key with the accounting:read scope for this channel, OR an IP4X user with abil:xero:map; the channel's ledger licence key. A ledger without reads answers 501 ledger_reads_unsupported, one without a given read 501 ledger_read_unsupported; Xero: 409 scope_missing when the grant lacks a read's scope, 422 xero_trial_balance_range_unsupported for a trial balance with from, xero_rate_limited, xero_access_denied, xero_error; Sage v3.1: sage_not_connected, sage_needs_reconnect, sage_access_denied, sage_rate_limited; a paused channel 409 channel_inactive; ABIL_LEDGER_READS_PER_CHANNEL_PER_MIN per channel (429 throttled). The ledger's failures: odoo_auth_failed, odoo_access_denied, odoo_https_required, odoo_egress_refused, odoo_redirect_refused, odoo_unreachable, odoo_timeout, odoo_version_unsupported, odoo_error; sage_auth_failed (the channel stops: sage_needs_attention until its credentials change), sage_rate_limited, sage_backing_off, sage_daily_budget, sage_busy (429s with detail.retry_after_sec), sage_foreign_currency, sage_unreachable, sage_timeout, sage_error (docs/SAGE-ZA.md). Lists page with ?cursor (next_cursor; null on the last page) and ?limit (default 100, at most 500)

POST/v1/abil-accounting/:channelId/ledger/testTest the connection → {provider, ok, server_version, api (Odoo: jsonrpc|json2; Sage ZA: sage_za_v2, server_version 2.0.0), company {id, name}, currency, minor_units}. No secrets
GET/v1/abil-accounting/:channelId/ledger/trial-balance?to=YYYY-MM-DD&from= (from omitted: everything posted up to to) → {accounts: [{account_id, code, name, type, debit_minor, credit_minor, balance_minor}], totals}
GET/v1/abil-accounting/:channelId/ledger/accountsThe chart of accounts → {accounts: [{account_id, code, name, type}], next_cursor}
GET/v1/abil-accounting/:channelId/ledger/revenue?from&to&by=customer|item → {rows: [{id, name, code?, category?, amount_minor}], total_minor}: untaxed, signed (a credit note reduces it), on the accounting date
GET/v1/abil-accounting/:channelId/ledger/open-items?side=receivable|payable → {items: [{item_id, number, reference, kind, partner_id, partner_name, date, due_date, total_minor, residual_minor}], next_cursor}
GET/v1/abil-accounting/:channelId/ledger/bank-lines?from&to → {lines: [{line_id, date, amount_minor, currency, partner_id, partner_name, reference, journal, reconciled}], next_cursor}: each line in its bank account's currency
GET/v1/abil-accounting/:channelId/ledger/customers→ {customers: [{customer_id, name, reference, tax_number, is_company, country}], next_cursor}
GET/v1/abil-accounting/:channelId/ledger/items→ {items: [{item_id, code, name, category, type}], next_cursor}
GET/v1/abil-accounting/:channelId/ledger/journal-lines?from&to (ABIL-30) → {lines: [{line_id, entry_id, entry_number, date, account_id, account_code, account_name, description, reference, partner_id, partner_name, debit_minor, credit_minor, source_type}], next_cursor}: posted journal lines in the company's currency (Odoo account.move.line; Xero Journals, which need accounting.journals.read; Sage ZA DetailedLedgerTransaction, entry_id null; Sage v3.1 ledger_entries). Xero pages by journal number with no date filter: a page may be empty with a next_cursor
POST/v1/abil-accounting/:channelId/sage/connect{business_id?} → {authorize_url, expires_at}: Sage Accounting v3.1 (UK, IE, CA; handler sage_accounting) is connected by OAuth on Sage's site; the business named, else the Sage user's lead business (abil:xero:map; docs/SAGE-ACCOUNTING.md)
GET/v1/abil-sage/callbackSage's OAuth redirect (public: the single-use state is the credential); sends the browser to SAGE_ACCOUNTING_RETURN_URL with ?sage=connected|error&reason=

Privacy (regimes, agreements register, record of processing)

GET/v1/abil-privacy/regimesRegime profiles (POPIA, GDPR / UK GDPR, HIPAA) and the regimes this deployment is cleared for (ABIL_PRIVACY_REGIMES)
GET/v1/abil-privacy/recordRecord of processing for the tenant (GDPR Art. 30(2)): each channel's supplier, data, governing regimes, agreements in force and gaps. The platform may pass ?tenant_id
GET/v1/abil-privacy/agreementsThe agreements register (?include_revoked=true). A tenant sees its own; the platform sees all or ?tenant_id
POST/v1/abil-privacy/agreementsRecord an agreement {tenant_id, party: tenant|supplier, regime, handler (supplier only), reference, signed_on, expires_on?}. Platform tenant only
POST/v1/abil-privacy/agreements/:id/revokeRevoke {reason}; the row stays as history. Platform tenant only

Tenant settings (the platform operator's, per tenant)

GET/v1/abil-tenant-settings/:tenantId{ ai_private_hosts, private_host_channels: [{ channel_id, origin }] }. A tenant reads its own; the platform any
PUT/v1/abil-tenant-settings/:tenantId{ ai_private_hosts: boolean }: an AI channel's base_url may reach a private address. Platform tenant only
PATCH/v1/abil-tenant-settings/:tenantId/private-host-channels{ add?: uuid[], remove?: uuid[] }: approve the tenant's self-hosted channels (a region's own Nominatim and Valhalla) for private egress at their base_url's origin, or withdraw approvals; never the whole list. Platform tenant only

Billing binding (SKU + customer → IP4X account item)

GET/v1/abil-billing/bindings(product_sku, customer_ref) → IP4X account item
POST/v1/abil-billing/bindingsCreate binding
DELETE/v1/abil-billing/bindings/:idRemove binding
POST/v1/abil-billing/push/:periodPush counts-only usage to IP4X partner ingest

Metrics (201)

vumatel_orders.api_call vumatel_orders.callback frogfoot_orders.api_call frogfoot_orders.callback metrofibre_orders.api_call metrofibre_orders.callback octotel_orders.api_call octotel_orders.callback aex_orders.api_call aex_orders.callback mns_orders.api_call mns_orders.callback custom_orders.api_call lesaka.vp.vend lesaka.vp.topup lesaka.ppu.vend lesaka.bps.payment intouch.verification intouch.workflow intouch.consent intouch.tfs_screening openitem.api_call clickon.api_call clickon.activity aratek.api_call aratek.export gatekeepr.api_call gatekeepr.event fortress.api_call riddler_provisioning.request riddler_provisioning.usage clickup.request clickup.webhook powerbi.embed_token embeddable.security_token google_maps.geocoding google_maps.places_details google_maps.autocomplete_request google_maps.autocomplete_session_unconcluded google_elevation.path google_maps.dynamic_maps google_maps.static_maps google_maps.routes google_maps.map_tiles_2d google_maps.viewport_info nominatim.search nominatim.reverse valhalla.route valhalla.isochrone xyz_tiles.tile riskscape.autocomplete riskscape.address_details riskscape.reverse_geocode riskscape.dynamic_maps riskscape.elevation_3d firstdmt_acs.device_licence firstdmt_acs.api_call gti_los.query interstellio.subscriber_active interstellio.subscriber_suspended interstellio.virtual_server interstellio.domain interstellio.api_call kamstrup_ready.read kamstrup_ready.meter_reporting kamstrup_ready.api_call smsportal.whatsapp.message smsportal.sms.part smsportal.sms.receipt smsportal.api_call smsportal.platform_fee meta_whatsapp.message meta_whatsapp.platform_fee meta_whatsapp.api_call twilio_whatsapp.message twilio_whatsapp.api_call twilio_whatsapp.platform_fee bulksms.sms.part bulksms.sms.receipt bulksms.api_call bulksms.platform_fee infobip_sms.sms.part infobip_sms.sms.receipt infobip_sms.api_call infobip_sms.platform_fee custom_smpp.sms.part custom_smpp.sms.receipt custom_smpp.api_call custom_smpp.platform_fee infobip_whatsapp.message infobip_whatsapp.api_call infobip_whatsapp.platform_fee sendgrid.email sendgrid.event sendgrid.api_call smtp.email apns.notification apns.api_call web_push.notification web_push.api_call payfast.api_call payfast.payment stripe.api_call stripe.payment instapay.api_call instapay.payment instapay.process payat.api_call payat.payment yoco.api_call yoco.payment imis.get_build_pre_app imis.capture_complaint imis.get_complaint_status imis.get_consumers_account_data amber_panic.raise_alert amber_panic.update_location fasten.connection fasten.export_request fasten.export_download rxnorm.lookup fda_ndc.lookup clinicaltrials.search medlineplus.lookup nppes.search stedi.eligibility_check walgreens.checkout stedi.payer_search flexpa.connection flexpa.claims_fetch plannet.lookup junction.order lancet.order lancet.result lancet.api_call junction.api_call meteosource.point open_meteo.forecast open_meteo.marine eskomsepush.status eskomsepush.allowance hmrc.vat_check vies.vat_check brreg.vat_check rd_th.vat_check uid_ch.vat_check abr_au.vat_check nta_jp.vat_check myinvois_my.tin_check github.read github.write opencellid.cell opencellid.area rate_series.observations xero.document odoo.ledger_read sage_accounting.ledger_read sage_za.ledger_read odoo.document sage_za.document openserve.coverage_check frogfoot.coverage_check vodacom.coverage_check mtn.coverage_check telkom_lte.coverage_check skywire.coverage_check linkafrica.coverage_check ttconnect.coverage_check comsol.coverage_check metrofibre.coverage_check rushnetworks.coverage_check herotel.coverage_check liquidtel.coverage_check openai.input_tokens openai.output_tokens openai.cached_input_tokens openai.web_search openai.embedding_tokens anthropic.input_tokens anthropic.output_tokens anthropic.cached_input_tokens anthropic.cache_write_tokens anthropic.web_search gemini.input_tokens gemini.output_tokens gemini.cached_input_tokens gemini.web_search gemini.embedding_tokens grok.input_tokens grok.output_tokens grok.cached_input_tokens grok.embedding_tokens gork.input_tokens gork.output_tokens gork.cached_input_tokens gork.embedding_tokens openai_compatible.input_tokens openai_compatible.output_tokens openai_compatible.cached_input_tokens openai_compatible.embedding_tokens openai_compatible.transcription_seconds