PayCore (SS-22)
The double-entry ledger, rail routing, settlement, payouts and SCA — 47 operations.
a sovereign payments & billing stack
A double-entry payments core, metered billing, wallets and a provider marketplace.
What it is
The commerce plane: PayCore runs a double-entry ledger with payment instructions, settlement, payouts, rail routing and SCA; Billing meters usage, finalises invoices, runs dunning and tax; Wallets holds balances with holds and captures; and the Provider Marketplace onboards providers with reservations, settlements and reconciliations.
Auth is one model across every service here — an SS-01 bearer token plus X-Tenant-Id on every /api/v1 route. Public base https://api.nexocloud.io/api/v1.
Services & endpoints
Every path below is a real route from services/<svc>/openapi.json. Each service lists a representative slice of its full contract.
Payments core — a double-entry ledger, payment instructions (authorize/capture/refund), settlement, payouts, rail routing and SCA.
/api/v1/instructionsCreate a payment instruction./api/v1/instructions/{id}/captureCapture an authorized instruction./api/v1/settlementsSettle a batch./api/v1/payouts/runRun a payout batch./api/v1/sca/evaluateEvaluate strong-customer-authentication requirements./api/v1/ledgerRead the double-entry ledger.Metered billing — usage ingestion, invoice finalize, dunning, credits, tax and entitlements.
/api/v1/usageIngest a usage event./api/v1/invoices/finalizeFinalize draft invoices./api/v1/dunning/{invoice}/startStart a dunning cycle on an overdue invoice./api/v1/entitlements/{item}Read an entitlement's current state./api/v1/subscribeSubscribe an account to a plan.Wallets — balances, credit/debit, holds with capture/release and freeze/unfreeze.
/api/v1/walletsCreate a wallet./api/v1/wallets/{id}/debitDebit a wallet./api/v1/wallets/{id}/holdsPlace a hold on a wallet./api/v1/wallets/{id}/holds/{hold}/captureCapture a hold.Provider marketplace — catalog items, provider onboarding, reservations, settlements and reconciliations.
/api/v1/providersOnboard a provider./api/v1/reservationsReserve marketplace capacity./api/v1/settlements/{id}/finalizeFinalize a provider settlement./api/v1/reconciliations/{id}/disputeDispute a reconciliation.Worked example
A payment moves through the double-entry ledger; usage meters into an invoice; a wallet hold is captured — every transition is journalled and reconcilable.
/api/v1/instructionsPayCore records the instruction and reserves funds.
/api/v1/instructions/{id}/captureCapture posts balanced debit/credit entries to the ledger.
/api/v1/settlementsBatch settlement routes over the healthiest rail.
/api/v1/invoices/finalizeBilling finalises the usage-based invoice for the period.
Architecture placement
Payments, Billing & Commerce does not reimplement the platform — it composes it. These are the services it leans on and the seams between them.
The double-entry ledger, rail routing, settlement, payouts and SCA — 47 operations.
Usage metering, invoicing, dunning, tax and entitlements.
Balances with holds and captures for prepaid and stored value.
Onboards providers with reservations, settlements and reconciliations.