API reference
API v3
Payment orchestration API of the Konnect Platform.
Version 0.1.0246 operationsGenerated from packages/sdk/openapi.json (sha256 08fd8111c218)
Base URLs
Local development: http://localhost:3000. Sandbox and production URLs will be published with the environments.
Authentication
konnect_session(cookie)Dashboard session: these routes serve the dashboard, not merchant integrations.
x-api-key(header)Organisation API key,
<prefix>:<secret>(new keys start withkpk_), created in the dashboard and shown once. Server side only.mobile(http)
health
1 operationauth
28 operations- POSTLog in with email and password (and TOTP when enabled); sets the session cookie
- POSTEnd the current session and clear the cookie (API key)
- GETCurrent user and memberships with role, permissions and scope (API key)
- POSTRe-authenticate with the password or a TOTP code; valid for 10 minutes (API key)
- POSTSend a one-time password reset link (always 202, whether the email exists or not)
- POSTSet a new password with a reset token; ends every session
- POSTStart TOTP enrolment (requires re-authentication) (API key)
- POSTConfirm TOTP enrolment with a first code (API key)
- POSTTurn TOTP off (requires re-authentication and a current code) (API key)
- GETIdentity of the API key used for the request (API key)
- POSTMobile app: log in with email and password (and TOTP when enabled)
- POSTMobile app: log in with Google, Apple or Facebook (existing accounts only)
- POSTMobile app: trade the refresh token for a new access token and the next refresh token
- POSTMobile app: end the access token and revoke its refresh tokens (API key)
- GETPasskeys of the signed-in user (API key)
- POSTStart adding a passkey (requires re-authentication) (API key)
- POSTFinish adding a passkey; e-mails the user (requires re-authentication) (API key)
- POSTStart signing in with a passkey (discoverable credentials, no e-mail needed)
- POSTSign in with a passkey; sets the session cookie (no TOTP step: strong sign-in)
- POSTStart a re-authentication with a passkey (API key)
- POSTRe-authenticate with a passkey; valid for 10 minutes, makes the session strong (API key)
- PATCHRename a passkey (API key)
- DELETEDelete a passkey (requires re-authentication) (API key)
- GETPublic sign up settings: open or not, bot check, phone country code
- POSTCreate a merchant account (ONB-1); sets the session cookie and sends both codes
- GETWhether the e-mail and the phone of the account are verified (API key)
- POSTSend a new six digit code; the address or number may be corrected first (API key)
- POSTConfirm the code received (API key)
api-keys
3 operationsorganisations
12 operations- GETOrganisations of the current user with role, permissions and scope (API key)
- POSTCreate an organisation for the signed in merchant, who becomes its owner (ONB-2) (API key)
- GETWhat the RNE and the TEJ say about a tax id (ONB-2), and whether it is taken (API key)
- GETIdentity, status facts and the computed canCollect with its reasons (API key)
- PATCHEdit address, phone, email and website (legal identity is read-only) (API key)
- GETThe logo of the organisation (members; PNG, JPEG or WebP, cached with an ETag) (API key)
- PUTReplace the logo (owner or administrator; PNG, JPEG or WebP, 1 MB at most) (API key)
- DELETERemove the logo (owner or administrator) (API key)
- GETContract: current version text, status and the click acceptance when there is one (API key)
- POSTAccept the current Konnect contract by one click (owner or administrator) (API key)
- POSTKonnect compliance: mark the KYB verified (audited) (API key)
- POSTKonnect compliance: refuse the KYB with a reason (audited) (API key)
members
6 operations- GETMembers with role and scope, and pending invitations (API key)
- POSTInvite by email with a role and a scope (link returned outside production) (API key)
- PATCHChange the role or the scope of a member (not the owner) (API key)
- DELETERemove a member (not the owner) (API key)
- DELETECancel a pending invitation (API key)
- POSTAccept an invitation: creates the account for a new email, or needs the session of the invited email
files
4 operationsroles
8 operations- GETPredefined and custom roles with their permissions (API key)
- POSTCreate a custom role, or duplicate one with basedOnRoleId (API key)
- PATCHEdit a custom role (predefined roles are fixed) (API key)
- DELETEDelete a custom role that no member or pending invitation uses (API key)
- GETThe pending ownership transfer, if any (API key)
- POSTOwner only: offer ownership to a member (requires re-authentication) (API key)
- POSTThe new owner accepts; the former owner becomes Administrator (API key)
- DELETEThe owner withdraws, or the recipient declines, a pending transfer (API key)
payment-accounts
8 operations- GETPayment accounts within your scope, with routing and providers (API key)
- POSTCreate a payment account (a collection point of the organisation) (API key)
- GETOne payment account (API key)
- PATCHEdit name, slug, branding, URLs; pause, resume or make default (API key)
- POSTArchive a payment account (terminal; never the default account) (API key)
- GETAffiliation used per provider, and the accepted providers (API key)
- PUTRoute providers to affiliations of this organisation (null removes a route); revoked affiliations and affiliations of another organisation are refused (API key)
- POSTA link to preview the payment page of an account, as its buyers see it (API key)
providers
3 operationsonboarding
9 operations- GETThe onboarding profile: current answers, version, completed steps (API key)
- POSTStart the onboarding, or return the one already started (API key)
- PUTSave one answer at once (autosave); "later" where the question allows it (API key)
- POSTRecord that a step of the questionnaire is done (journal) (API key)
- POSTFinish the questionnaire (API key)
- GETFigures and testimonials of the welcome screen (platform settings, may be empty) (API key)
- GETEvery answer change, oldest first (API key)
- GETThe onboarding journal, oldest first (API key)
- POSTStart the activation journey of this organisation, or return the one started (API key)
affiliations
9 operations- GETAffiliations of the organisation with masked credentials (API key)
- POSTAdd provider credentials: validated, encrypted, then verified through the connector (API key)
- GETOne affiliation with masked credentials (API key)
- POSTRun the credential check again (API key)
- PUTReplace the credentials (rotation): the previous version stays until the new one verifies (API key)
- POSTSuspend an active affiliation (API key)
- POSTResume a suspended affiliation (API key)
- POSTRevoke (terminal): the row stays, the credentials and their data keys are destroyed (API key)
- GETAudit events of one affiliation, newest first (the owner and Konnect support) (Dashboard session)
admin
58 operations- GETKonnect staff: affiliations across organisations (API key)
- GETPlatform default Konnect fee schedule (API key)
- PUTReplace the platform default Konnect fee schedule (API key)
- GETAn organisation's Konnect fee schedule (API key)
- PUTReplace an organisation's Konnect fee schedule (empty: platform defaults) (API key)
- GETKonnect statements of every organisation (what merchants owe Konnect) (API key)
- POSTRecord that a merchant paid its Konnect statement (API key)
- GETOutbox events, newest first (Konnect support) (API key)
- POSTKonnect admin: who would receive the activation e-mail, and the e-mail (spec onb-5) (API key)
- POSTKonnect admin: send "Activez votre nouveau compte Konnect" (spec onb-5) (API key)
- GETKonnect staff: organisations, newest first, filtered and paginated (API key)
- GETKonnect staff: identity, status facts and migration of one organisation (API key)
- GETKonnect staff: the logo of one organisation (cached with an ETag) (API key)
- GETKonnect staff: members and pending invitations of one organisation (API key)
- GETKonnect staff: KYB documents of one organisation (metadata only) (API key)
- GETKonnect admin and compliance: a 5 minute download link of a KYB document (audited) (API key)
- GETFull timeline of any payment, with raw provider payloads (admin) (API key)
- GETKonnect staff: users, newest first, filtered and paginated (API key)
- GETKonnect staff: one user with sessions and memberships (API key)
- POSTKonnect admin: block sign-in and end every session (audited) (API key)
- POSTKonnect admin: allow a blocked user to sign in again (audited) (API key)
- POSTKonnect admin: invalidate the password, end the sessions, e-mail a reset link (API key)
- POSTKonnect admin: end every session of the user (audited) (API key)
- GETKonnect staff: the whole provider catalogue, enabled or not (API key)
- PATCHKonnect admin: enable or disable a provider, set or clear its maintenance banner (API key)
- GETKonnect staff: affiliations waiting for a decision, oldest first (API key)
- POSTKonnect admin: check the credentials with the provider again, then activate (API key)
- POSTKonnect admin: refuse an affiliation of the queue (revoked, credentials destroyed) (API key)
- POSTKonnect admin: run the provider check again (the request and its reason are audited) (API key)
- GETKonnect staff: payments of every organisation, newest first (API key)
- GETKonnect staff: one payment of any organisation with its attempts (API key)
- GETKonnect staff: the global audit log (support: own actions only) (API key)
- GETKonnect staff: outbox, webhook, review queue and push counters (API key)
- POSTKonnect admin: put a failed outbox event back in the queue (fresh attempts, audited) (API key)
- GETKonnect admin and support: webhook deliveries of every organisation, newest first (API key)
- POSTKonnect admin: one manual try of a webhook delivery that is not pending (audited) (API key)
- GETEvery platform setting with its value or secret hint and source (API key)
- POSTSend a test e-mail through the current e-mail settings (API key)
- GETOne platform setting (API key)
- PUTChange a platform setting (reason required); applies to every API process (API key)
- POSTDelete the database value: the environment or code default applies (API key)
- GETChanges of a setting, newest first (secrets masked) (API key)
- POSTKonnect admin: generate the Web Push VAPID key pair (once, audited) (API key)
- GETKonnect staff: affiliation requests, newest first, filtered (API key)
- GETKonnect staff: the Kanban, one column per status with its count and oldest cards (API key)
- GETKonnect admin or sales: CSV of the filtered requests (audited, no secret) (API key)
- POSTKonnect admin or sales, re-authenticated: ZIP of the complete files of one bank, moved to sent_to_bank (API key)
- GETKonnect staff: one request with its journal and notes (API key)
- POSTKonnect admin or sales: move a request along the allowed transitions only (API key)
- POSTKonnect admin or sales: assign a request to a staff user, or none (API key)
- POSTKonnect admin or sales: a structured commercial note (API key)
- GETKonnect admin or sales: staff users a request can be assigned to (API key)
- GETKonnect staff: the bank referential with delay and refusal rate (API key)
- PATCHKonnect admin, re-authenticated: edit a bank (reason audited) (API key)
- GETKonnect staff: the checklist of an organisation with each history (API key)
- GETKonnect admin and compliance: a signed URL of a page (audited) (API key)
- POSTKonnect admin and compliance: start the review, validate or refuse a piece (API key)
- GETRequests relayed to k-core by route, organisation and reason (API key)
payments
6 operations- GETPayments of the organisation, newest first, keyset paginated (API key)
- POSTCreate a payment and get its checkout URL (API key)
- GETOne payment by reference (API key)
- POSTCancel a pending payment (API key)
- GETFull timeline of a payment, oldest first (API key)
- GETAttempts of a payment, newest first, each with its timeline (API key)
checkout
11 operations- GETWhat the checkout shows on a payment page preview (public)
- GETLogo of the account of a payment page preview (public)
- GETWhat the checkout shows for a payment (public, no merchant data)
- GETSend the payer back to the merchant (public)
- GETLogo of the payment account of a payment (public, PNG, JPEG or WebP)
- GETPayment status for the result page polling (public)
- GETWhat the payer sees of a payment link (public)
- GETLogo of the payment account of a link (public, PNG, JPEG or WebP)
- POSTStart a payment from a link (public)
- POSTOpen an attempt at a provider (public)
- GETAn attempt of a payment as the checkout shows it again (public)
webhooks
6 operations- GETWebhook endpoints of the organisation (secret hints only) (API key)
- POSTRegister a webhook endpoint; the signing secret is returned once (API key)
- GETOne webhook endpoint (API key)
- DELETEDisable an endpoint (terminal; its delivery log stays) (API key)
- GETDelivery log of an endpoint, newest first (API key)
- POSTReplay a delivery once (manual try) (API key)
payment-links
8 operations- GETPayment links of the organisation, newest first, keyset paginated (API key)
- POSTCreate a payment link (API key)
- GETOne payment link (API key)
- PATCHChange a payment link (API key)
- POSTDisable a payment link: no new payment; started ones go on (API key)
- POSTEnable a disabled payment link again (API key)
- POSTA new link with the same settings, a new slug and no payment (API key)
- GETPayments of a link by status, collected amount and conversion (API key)
callbacks
2 operationsnotifications
8 operations- GETWhich push providers are configured, and the Web Push public key (API key)
- GETActive devices of the signed-in user (API key)
- POSTRegister or refresh this browser or app (API key)
- DELETEStop notifications on a device (API key)
- POSTSend a test notification to one device or to every active device (API key)
- GETLast notifications of the signed-in user, newest first (API key)
- GETNotification preferences of the signed-in member (API key)
- PUTReplace the notification preferences of the signed-in member (API key)
commissions
40 operations- GETSuppliers, charities and partners of the organisation, with their totals (API key)
- POSTAdd a beneficiary (API key)
- GETOne beneficiary (API key)
- PATCHChange a beneficiary (archive with status archived) (API key)
- GETWho can open this beneficiary portal (API key)
- POSTGive portal access to an e-mail address (the person signs in with it, verified) (API key)
- DELETERevoke a portal access (API key)
- GETCommission rules (the merchant keeps a commission on each beneficiary sale) (API key)
- POSTAdd a commission rule (API key)
- PATCHChange a commission rule (past lines keep the rule they were computed with) (API key)
- DELETEDelete a rule that never produced a line (otherwise pause it) (API key)
- GETContribution rules (a share of every sale owed to a charity or partner) (API key)
- POSTAdd a contribution rule (API key)
- PATCHChange a contribution rule (API key)
- GETFee mode (included or added to the buyer) and default card region (API key)
- PATCHChange the fee mode or the default card region (API key)
- GETDefault beneficiary and fee mode of each payment account (API key)
- PUTOne payment account per supplier: its sales belong to this beneficiary (API key)
- GETBeneficiary and fee mode of payment links (API key)
- PUTThe sales of this payment link belong to this beneficiary (API key)
- GETKonnect's fee schedule for this organisation (read only, set by Konnect) (API key)
- GETWho this payment belongs to (API key)
- PUTSplit a pending payment between beneficiaries; the rest is yours (API key)
- GETLedger lines of a payment (API key)
- POSTReverse the shares of a refunded payment (whole or partial) (API key)
- GETLedger lines, newest first (API key)
- POSTA manual line owed to (positive) or by (negative) a beneficiary (API key)
- POSTWhat a sale would produce: buyer total, Konnect fee, commission, dues (API key)
- GETStatements: running periods (open), issued, paid, contested (API key)
- POSTIssue the statement of a beneficiary and period now (freezes its total) (API key)
- GETOne statement with its lines (API key)
- GETCSV of a statement (API key)
- POSTRecord that you paid this beneficiary statement (API key)
- POSTRecord several statements as paid at once (after a bulk transfer) (API key)
- POSTAnswer a beneficiary's contest and settle the statement status (API key)
- GETBank bulk transfer file templates (API key)
- POSTMap your bank's bulk transfer template (API key)
- PUTChange a bulk transfer template (API key)
- DELETEDelete a bulk transfer template (API key)
- POSTOne bank file to pay several statements (from a template, or plain CSV) (API key)
beneficiary-portal
4 operationsaudit
1 operationbanks
2 operationsaffiliation-requests
3 operationsdocuments
6 operations- GETThe pieces Konnect asks of the organisation, each with its status and pages (API key)
- POSTSend a page of a piece (PDF, PNG or JPEG, 10 MB at most) (API key)
- DELETERemove a page of a piece sent and not yet reviewed (API key)
- GETA signed URL of a page, valid 5 minutes (audited) (API key)
- GETThe document to sign: the Konnect contract, or the BTE sub-merchant form (API key)
- GETVersions and journal of a piece, newest first (API key)