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