Aller au contenu

Environnement de développement : contenu en cours de rédaction, rien ne pointe vers la production.

Sommaire de la documentation

admin

Version 0.1.058 opérations

Konnect staff: affiliations across organisations

GET/admin/affiliationsClé API

Paramètres

  • cursoranyquery
  • limitintegerquery
    • max: 200
    • default: 50
  • statusanyquery
  • provideranyquery
  • organisationanyquery

    Organisation id

Réponses

  • 200

    • itemsAdminAffiliationDto[]obligatoire
      • idstring (uuid)obligatoire
      • organisationIdstring (uuid)obligatoire
      • providerstringobligatoire
        • enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
      • providerNamestringobligatoire
      • labelstringobligatoire
      • environmentstringobligatoire
        • enum: "sandbox", "production"
      • statusstringobligatoire
        • enum: "draft", "verifying", "active", "suspended", "revoked", "legacy"
      • publicIdentifierstring | nullobligatoire

        Never a secret

      • credentialsobjectobligatoire

        Non-secret fields in full, secret fields as **** plus their last four characters; never a value usable at the provider

      • credentialVersionnumberobligatoire

        Current credential version, 1 for the first credentials

      • verifiedAtstring (date-time) | nullobligatoire
      • lastUsedAtstring (date-time) | nullobligatoire
      • lastVerificationErrorstring | nullobligatoire

        Readable, never a secret

      • revokedAtstring (date-time) | nullobligatoire
      • paymentAccountsRoutedPaymentAccountDto[]obligatoire

        Payment accounts whose routing uses this affiliation; they lose it on revoke

        • idstring (uuid)obligatoire
        • namestringobligatoire
        • statusstringobligatoire
          • enum: "active", "paused", "archived"
      • createdAtstring (date-time)obligatoire
      • updatedAtstring (date-time)obligatoire
      • organisationNamestringobligatoire
    • nextCursorstring | nullobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/affiliations" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "provider": "clictopay",
      "providerName": "ClicToPay",
      "label": "default",
      "environment": "sandbox",
      "status": "draft",
      "publicIdentifier": "publicIdentifier",
      "credentials": {},
      "credentialVersion": 1,
      "verifiedAt": "2026-10-01T09:30:00.000Z",
      "lastUsedAt": "2026-10-01T09:30:00.000Z",
      "lastVerificationError": "lastVerificationError",
      "revokedAt": "2026-10-01T09:30:00.000Z",
      "paymentAccounts": [
        {
          "id": "id",
          "name": "name",
          "status": "active"
        }
      ],
      "createdAt": "2026-10-01T09:30:00.000Z",
      "updatedAt": "2026-10-01T09:30:00.000Z",
      "organisationName": "organisationName"
    }
  ],
  "nextCursor": "nextCursor"
}

Platform default Konnect fee schedule

GET/admin/fee-scheduleClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

    • custombooleanobligatoire

      true when the organisation has its own lines; false: platform defaults

    • linesFeeScheduleLineDto[]obligatoire
      • providerCodestring | nullobligatoire
      • regionstringobligatoire
        • enum: "any", "national", "international"
      • rateMillinumberobligatoire
      • fixednumberobligatoire
      • minnumber | nullobligatoire
      • maxnumber | nullobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/fee-schedule" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "custom": true,
  "lines": [
    {
      "providerCode": "providerCode",
      "region": "any",
      "rateMilli": 1,
      "fixed": 1,
      "min": 1,
      "max": 1
    }
  ]
}

Replace the platform default Konnect fee schedule

PUT/admin/fee-scheduleClé API

Paramètres

Aucun paramètre.

Corps de la requête application/json

  • linesFeeScheduleLineInputDto[]obligatoire
    • providerCodeobject | null

      null: every provider

    • regionstring
      • enum: "any", "national", "international"
      • default: "any"
    • rateMillinumberobligatoire

      Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • fixednumber

      Minor units (millimes)

      • default: 0
    • minobject | null
    • maxobject | null

Réponses

  • 200

    • custombooleanobligatoire

      true when the organisation has its own lines; false: platform defaults

    • linesFeeScheduleLineDto[]obligatoire
      • providerCodestring | nullobligatoire
      • regionstringobligatoire
        • enum: "any", "national", "international"
      • rateMillinumberobligatoire
      • fixednumberobligatoire
      • minnumber | nullobligatoire
      • maxnumber | nullobligatoire

Exemples de code

curl -X PUT "$KONNECT_API_URL/admin/fee-schedule" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "lines": [
    {
      "providerCode": {},
      "region": "any",
      "rateMilli": 1,
      "fixed": 0,
      "min": {},
      "max": {}
    }
  ]
}'

Exemple : corps de la requête

{
  "lines": [
    {
      "providerCode": {},
      "region": "any",
      "rateMilli": 1,
      "fixed": 0,
      "min": {},
      "max": {}
    }
  ]
}

Exemple : 200

{
  "custom": true,
  "lines": [
    {
      "providerCode": "providerCode",
      "region": "any",
      "rateMilli": 1,
      "fixed": 1,
      "min": 1,
      "max": 1
    }
  ]
}

An organisation's Konnect fee schedule

GET/admin/organisations/{organisationId}/fee-scheduleClé API

Paramètres

  • organisationIdstringpathobligatoire

Réponses

  • 200

    • custombooleanobligatoire

      true when the organisation has its own lines; false: platform defaults

    • linesFeeScheduleLineDto[]obligatoire
      • providerCodestring | nullobligatoire
      • regionstringobligatoire
        • enum: "any", "national", "international"
      • rateMillinumberobligatoire
      • fixednumberobligatoire
      • minnumber | nullobligatoire
      • maxnumber | nullobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/organisations/org_01J9Z3K4EXAMPLE0000000000/fee-schedule" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "custom": true,
  "lines": [
    {
      "providerCode": "providerCode",
      "region": "any",
      "rateMilli": 1,
      "fixed": 1,
      "min": 1,
      "max": 1
    }
  ]
}

Replace an organisation's Konnect fee schedule (empty: platform defaults)

PUT/admin/organisations/{organisationId}/fee-scheduleClé API

Paramètres

  • organisationIdstringpathobligatoire

Corps de la requête application/json

  • linesFeeScheduleLineInputDto[]obligatoire
    • providerCodeobject | null

      null: every provider

    • regionstring
      • enum: "any", "national", "international"
      • default: "any"
    • rateMillinumberobligatoire

      Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • fixednumber

      Minor units (millimes)

      • default: 0
    • minobject | null
    • maxobject | null

Réponses

  • 200

    • custombooleanobligatoire

      true when the organisation has its own lines; false: platform defaults

    • linesFeeScheduleLineDto[]obligatoire
      • providerCodestring | nullobligatoire
      • regionstringobligatoire
        • enum: "any", "national", "international"
      • rateMillinumberobligatoire
      • fixednumberobligatoire
      • minnumber | nullobligatoire
      • maxnumber | nullobligatoire

Exemples de code

curl -X PUT "$KONNECT_API_URL/admin/organisations/org_01J9Z3K4EXAMPLE0000000000/fee-schedule" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "lines": [
    {
      "providerCode": {},
      "region": "any",
      "rateMilli": 1,
      "fixed": 0,
      "min": {},
      "max": {}
    }
  ]
}'

Exemple : corps de la requête

{
  "lines": [
    {
      "providerCode": {},
      "region": "any",
      "rateMilli": 1,
      "fixed": 0,
      "min": {},
      "max": {}
    }
  ]
}

Exemple : 200

{
  "custom": true,
  "lines": [
    {
      "providerCode": "providerCode",
      "region": "any",
      "rateMilli": 1,
      "fixed": 1,
      "min": 1,
      "max": 1
    }
  ]
}

Konnect statements of every organisation (what merchants owe Konnect)

GET/admin/konnect-statementsClé API

Paramètres

  • statusstringqueryobligatoire

Réponses

  • 200

    • idstring (uuid) | nullobligatoire

      null: running period, not issued

    • kindstringobligatoire
      • enum: "beneficiary", "konnect"
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • periodKeystringobligatoire
    • periodStartstringobligatoire
    • periodEndstringobligatoire
    • statusstringobligatoire
      • enum: "open", "issued", "paid", "contested"
    • totalnumberobligatoire

      Minor units (millimes)

    • salesnumberobligatoire

      Minor units (millimes)

    • commissionnumberobligatoire

      Minor units (millimes)

    • linesCountnumberobligatoire
    • issuedAtstring | nullobligatoire
    • paidAtstring | nullobligatoire
    • paidMethodstring | nullobligatoire
    • paidReferencestring | nullobligatoire
    • contestReasonstring | nullobligatoire
    • contestAnswerstring | nullobligatoire
    • groupsStatementGroupDto[]obligatoire
      • groupstring | nullobligatoire
      • countnumberobligatoire
      • salesnumberobligatoire
      • duenumberobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/konnect-statements?status=status" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "kind": "beneficiary",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "periodKey": "periodKey",
    "periodStart": "periodStart",
    "periodEnd": "periodEnd",
    "status": "open",
    "total": 1,
    "sales": 1,
    "commission": 1,
    "linesCount": 1,
    "issuedAt": "issuedAt",
    "paidAt": "paidAt",
    "paidMethod": "paidMethod",
    "paidReference": "paidReference",
    "contestReason": "contestReason",
    "contestAnswer": "contestAnswer",
    "groups": [
      {
        "group": "group",
        "count": 1,
        "sales": 1,
        "due": 1
      }
    ]
  }
]

Record that a merchant paid its Konnect statement

POST/admin/konnect-statements/{statementId}/paidClé API

Paramètres

  • statementIdstringpathobligatoire

Corps de la requête application/json

  • methodstringobligatoire
  • referencestring
  • paidAtstring

Réponses

  • 200

    • idstring (uuid) | nullobligatoire

      null: running period, not issued

    • kindstringobligatoire
      • enum: "beneficiary", "konnect"
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • periodKeystringobligatoire
    • periodStartstringobligatoire
    • periodEndstringobligatoire
    • statusstringobligatoire
      • enum: "open", "issued", "paid", "contested"
    • totalnumberobligatoire

      Minor units (millimes)

    • salesnumberobligatoire

      Minor units (millimes)

    • commissionnumberobligatoire

      Minor units (millimes)

    • linesCountnumberobligatoire
    • issuedAtstring | nullobligatoire
    • paidAtstring | nullobligatoire
    • paidMethodstring | nullobligatoire
    • paidReferencestring | nullobligatoire
    • contestReasonstring | nullobligatoire
    • contestAnswerstring | nullobligatoire
    • groupsStatementGroupDto[]obligatoire
      • groupstring | nullobligatoire
      • countnumberobligatoire
      • salesnumberobligatoire
      • duenumberobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/konnect-statements/statementId/paid" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "method": "virement",
  "reference": "reference",
  "paidAt": "paidAt"
}'

Exemple : corps de la requête

{
  "method": "virement",
  "reference": "reference",
  "paidAt": "paidAt"
}

Exemple : 200

{
  "id": "id",
  "kind": "beneficiary",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "periodKey": "periodKey",
  "periodStart": "periodStart",
  "periodEnd": "periodEnd",
  "status": "open",
  "total": 1,
  "sales": 1,
  "commission": 1,
  "linesCount": 1,
  "issuedAt": "issuedAt",
  "paidAt": "paidAt",
  "paidMethod": "paidMethod",
  "paidReference": "paidReference",
  "contestReason": "contestReason",
  "contestAnswer": "contestAnswer",
  "groups": [
    {
      "group": "group",
      "count": 1,
      "sales": 1,
      "due": 1
    }
  ]
}

Outbox events, newest first (Konnect support)

GET/admin/outboxClé API

Paramètres

  • cursoranyquery

    nextCursor of the previous page

  • limitintegerquery
    • max: 200
    • default: 50
  • statusstringquery
    • enum: "pending", "done", "failed"

Réponses

  • 200

    • itemsOutboxEventDto[]obligatoire
      • idstring (uuid)obligatoire
      • typestringobligatoire
      • statusstringobligatoire
        • enum: "pending", "done", "failed"
      • payloadobjectobligatoire

        Redacted payload

      • attemptsnumberobligatoire
      • lastErrorstring | null
      • runAtstring (date-time)obligatoire
      • doneAtstring (date-time) | null
      • createdAtstring (date-time)obligatoire
    • nextCursorstring | nullobligatoire
  • 401Not authenticated; 403 for anyone but Konnect support and admins

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/outbox" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "type": "email.send",
      "status": "pending",
      "payload": {},
      "attempts": 1,
      "lastError": "lastError",
      "runAt": "2026-10-01T09:30:00.000Z",
      "doneAt": "2026-10-01T09:30:00.000Z",
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ],
  "nextCursor": "nextCursor"
}

Konnect admin: who would receive the activation e-mail, and the e-mail (spec onb-5)

POST/admin/organisations/activation-invitations/previewClé API

Nothing is written or sent. Users imported from k-core who never signed in.

Paramètres

Aucun paramètre.

Corps de la requête application/json

  • organisationIdsstring (uuid)[]obligatoire

Réponses

  • 200

    • recipientsActivationRecipientDto[]obligatoire
      • userIdstring (uuid)obligatoire
      • emailstringobligatoire
      • firstNamestringobligatoire
      • organisationIdstring (uuid)obligatoire
      • organisationNamestringobligatoire
      • outcomestringobligatoire
        • enum: "preview", "sent", "suppressed", "failed"
    • skippedActivationSkippedDto[]obligatoire
      • organisationIdstring (uuid)obligatoire
      • reasonstringobligatoire
        • enum: "not_found", "not_migrated", "no_recipient"
    • subjectstringobligatoire

      Subject of the e-mail (French, the default locale)

    • textstringobligatoire

      Text version of the e-mail for one recipient (French)

  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/organisations/activation-invitations/preview" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "organisationIds": [
    "string"
  ]
}'

Exemple : corps de la requête

{
  "organisationIds": [
    "string"
  ]
}

Exemple : 200

{
  "recipients": [
    {
      "userId": "userId",
      "email": "buyer@example.com",
      "firstName": "Salma",
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName",
      "outcome": "preview"
    }
  ],
  "skipped": [
    {
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "reason": "not_found"
    }
  ],
  "subject": "subject",
  "text": "text"
}

Konnect admin: send "Activez votre nouveau compte Konnect" (spec onb-5)

POST/admin/organisations/activation-invitationsClé API

At most 50 organisations and 5 sends per admin and per hour (429 too_many_attempts). Each recipient is audited with its outcome; outside production imported accounts are protected: the outcome is suppressed.

Paramètres

Aucun paramètre.

Corps de la requête application/json

  • organisationIdsstring (uuid)[]obligatoire
  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • recipientsActivationRecipientDto[]obligatoire
      • userIdstring (uuid)obligatoire
      • emailstringobligatoire
      • firstNamestringobligatoire
      • organisationIdstring (uuid)obligatoire
      • organisationNamestringobligatoire
      • outcomestringobligatoire
        • enum: "preview", "sent", "suppressed", "failed"
    • skippedActivationSkippedDto[]obligatoire
      • organisationIdstring (uuid)obligatoire
      • reasonstringobligatoire
        • enum: "not_found", "not_migrated", "no_recipient"
    • subjectstringobligatoire

      Subject of the e-mail (French, the default locale)

    • textstringobligatoire

      Text version of the e-mail for one recipient (French)

  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/organisations/activation-invitations" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "organisationIds": [
    "string"
  ],
  "reason": "Migration wave 1, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "organisationIds": [
    "string"
  ],
  "reason": "Migration wave 1, ticket SUP-0001"
}

Exemple : 200

{
  "recipients": [
    {
      "userId": "userId",
      "email": "buyer@example.com",
      "firstName": "Salma",
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName",
      "outcome": "preview"
    }
  ],
  "skipped": [
    {
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "reason": "not_found"
    }
  ],
  "subject": "subject",
  "text": "text"
}

Konnect staff: organisations, newest first, filtered and paginated

GET/admin/organisationsClé API

Paramètres

  • cursoranyquery

    nextCursor of the previous page

  • limitintegerquery
    • max: 200
    • default: 50
  • migratedstringquery

    Imported from k-core

    • enum: "true", "false"
  • kybstringquery
    • enum: "pending", "verified", "refused"
  • qanyquery

    Part of the name, legal name or tax id; or an exact id or k-core id

Réponses

  • 200

    • itemsAdminOrganisationSummaryDto[]obligatoire
      • idstring (uuid)obligatoire
      • namestringobligatoire
      • legalNamestringobligatoire
      • taxIdstring | nullobligatoire
      • logoFileIdstring (uuid) | nullobligatoire

        The logo file, null without a logo. The image is GET /admin/organisations/{id}/logo (staff); the id changes whenever the logo does, use it to refresh a cached image

      • kybStatusstringobligatoire
        • enum: "pending", "verified", "refused"
      • kybSourcestring | nullobligatoire
        • enum: "manual", "affiliation"
      • contractSignedAtstring (date-time) | nullobligatoire
      • contractRequiredbooleanobligatoire

        Platform setting onboarding.contract_required: false means the Konnect contract does not block collection and is hidden from the dashboard

      • canCollectbooleanobligatoire
      • canTestbooleanobligatoire
      • reasonsstring[]obligatoire
      • memberCountnumberobligatoire
      • migratedbooleanobligatoire

        Imported from k-core (lot 1.10): it has a legacy id

      • createdAtstring (date-time)obligatoire
    • nextCursorstring | nullobligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/organisations" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "name": "name",
      "legalName": "legalName",
      "taxId": "taxId",
      "logoFileId": "logoFileId",
      "kybStatus": "pending",
      "kybSource": "manual",
      "contractSignedAt": "2026-10-01T09:30:00.000Z",
      "contractRequired": true,
      "canCollect": true,
      "canTest": true,
      "reasons": [
        "kyb_pending"
      ],
      "memberCount": 1,
      "migrated": true,
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ],
  "nextCursor": "nextCursor"
}

Konnect staff: identity, status facts and migration of one organisation

GET/admin/organisations/{id}Clé API

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • namestringobligatoire
    • legalNamestringobligatoire
    • taxIdstring | nullobligatoire
    • legalFormstring | nullobligatoire

      ONB-2: SARL, SA, individual...

    • countrystringobligatoire
    • addressstring | nullobligatoire
    • citystring | nullobligatoire
    • postalCodestring | nullobligatoire
    • phonestring | nullobligatoire
    • emailstring | nullobligatoire
    • websitestring | nullobligatoire
    • logoFileIdstring (uuid) | nullobligatoire

      The logo file, null without a logo. The image is GET /organisations/{id}/logo (members); the id changes whenever the logo does, use it to refresh a cached image

    • kybStatusstringobligatoire
      • enum: "pending", "verified", "refused"
    • kybSourcestring | nullobligatoire

      Who set the KYB decision: Konnect compliance (manual) or the first own affiliation that passed the provider check (affiliation); null while pending or imported

      • enum: "manual", "affiliation"
    • contractSignedAtstring (date-time) | nullobligatoire
    • contractRequiredbooleanobligatoire

      Platform setting onboarding.contract_required: false means the Konnect contract does not block collection and is hidden from the dashboard

    • activeAffiliationsnumberobligatoire

      Active affiliations in any environment

    • activeProductionAffiliationsnumberobligatoire

      Active affiliations in the production environment

    • canCollectbooleanobligatoire

      Computed: KYB verified, contract signed, one active PRODUCTION affiliation (real collection)

    • canTestbooleanobligatoire

      An affiliation is active in any environment: test payments are possible

    • reasonsstring[]obligatoire
    • migratedbooleanobligatoire

      Spec onb-5: imported from k-core; its imported affiliations are legacy

    • paymentAccountsPaymentAccountSummaryDto[]obligatoire

      Accounts within your scope

      • idstring (uuid)obligatoire
      • namestringobligatoire
      • slugstringobligatoire
      • isDefaultbooleanobligatoire
      • statusstringobligatoire
        • enum: "active", "paused", "archived"
    • legacyIdstring | nullobligatoire

      k-core organisation id

    • migratedAtstring (date-time) | nullobligatoire

      When the new platform started serving it

    • createdAtstring (date-time)obligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/organisations/id" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "id": "id",
  "name": "name",
  "legalName": "legalName",
  "taxId": "taxId",
  "legalForm": "legalForm",
  "country": "country",
  "address": "address",
  "city": "city",
  "postalCode": "postalCode",
  "phone": "phone",
  "email": "buyer@example.com",
  "website": "website",
  "logoFileId": "logoFileId",
  "kybStatus": "pending",
  "kybSource": "manual",
  "contractSignedAt": "2026-10-01T09:30:00.000Z",
  "contractRequired": true,
  "activeAffiliations": 1,
  "activeProductionAffiliations": 1,
  "canCollect": true,
  "canTest": true,
  "reasons": [
    "kyb_pending"
  ],
  "migrated": true,
  "paymentAccounts": [
    {
      "id": "id",
      "name": "name",
      "slug": "slug",
      "isDefault": true,
      "status": "active"
    }
  ],
  "legacyId": "legacyId",
  "migratedAt": "2026-10-01T09:30:00.000Z",
  "createdAt": "2026-10-01T09:30:00.000Z"
}

Konnect staff: members and pending invitations of one organisation

GET/admin/organisations/{id}/membersClé API

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • membersMemberDto[]obligatoire
      • userIdstring (uuid)obligatoire
      • emailstringobligatoire
      • firstNamestringobligatoire
      • lastNamestringobligatoire
      • roleIdstring (uuid)obligatoire
      • rolestring | nullobligatoire
      • roleNamestringobligatoire
      • isOwnerbooleanobligatoire
      • permissionsstring[]obligatoire
      • scopestringobligatoire
        • enum: "all", "accounts"
      • accountIdsstring[]obligatoire
      • lastLoginAtstring (date-time) | nullobligatoire
      • joinedAtstring (date-time)obligatoire
      • internalAccessbooleanobligatoire

        Lot 1.10b: internal Konnect access granted for tests (shown with a badge, not a merchant member, ignored in production)

    • invitationsInvitationDto[]obligatoire

      Pending invitations

      • idstring (uuid)obligatoire
      • emailstringobligatoire
      • roleIdstring (uuid)obligatoire
      • roleNamestringobligatoire
      • scopestringobligatoire
        • enum: "all", "accounts"
      • accountIdsstring[]obligatoire
      • expiresAtstring (date-time)obligatoire
      • createdAtstring (date-time)obligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/organisations/id/members" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "members": [
    {
      "userId": "userId",
      "email": "buyer@example.com",
      "firstName": "Salma",
      "lastName": "Example",
      "roleId": "roleId",
      "role": "role",
      "roleName": "roleName",
      "isOwner": true,
      "permissions": [
        "payments.view"
      ],
      "scope": "all",
      "accountIds": [
        "string"
      ],
      "lastLoginAt": "2026-10-01T09:30:00.000Z",
      "joinedAt": "2026-10-01T09:30:00.000Z",
      "internalAccess": true
    }
  ],
  "invitations": [
    {
      "id": "id",
      "email": "buyer@example.com",
      "roleId": "roleId",
      "roleName": "roleName",
      "scope": "all",
      "accountIds": [
        "string"
      ],
      "expiresAt": "2026-10-01T09:30:00.000Z",
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ]
}

Konnect staff: KYB documents of one organisation (metadata only)

GET/admin/organisations/{id}/documentsClé API

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • typestringobligatoire
      • enum: "business_contract", "business_registration", "patent", "affiliation_contract", "identity_document", "proof_of_address", "logo", "other", "company_statutes"
    • originalNamestringobligatoire
    • mimeTypestringobligatoire
    • sizeBytesnumberobligatoire
    • reviewedAtstring (date-time) | nullobligatoire
    • uploadedBystring (uuid) | nullobligatoire
    • createdAtstring (date-time)obligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/organisations/id/documents" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "type": "business_contract",
    "originalName": "originalName",
    "mimeType": "mimeType",
    "sizeBytes": 1,
    "reviewedAt": "2026-10-01T09:30:00.000Z",
    "uploadedBy": "uploadedBy",
    "createdAt": "2026-10-01T09:30:00.000Z"
  }
]

Konnect admin and compliance: a 5 minute download link of a KYB document (audited)

GET/admin/organisations/{id}/documents/{fileId}/downloadClé API

Paramètres

  • idstringpathobligatoire
  • fileIdstringpathobligatoire

Réponses

  • 200

    • urlstringobligatoire

      Pre-signed URL, valid 5 minutes

    • expiresAtstring (date-time)obligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/organisations/id/documents/fileId/download" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "url": "url",
  "expiresAt": "2026-10-01T09:30:00.000Z"
}

Full timeline of any payment, with raw provider payloads (admin)

GET/admin/payments/{reference}/timelineClé API

Paramètres

  • referencestringpathobligatoire
  • categorystring[]query

    Repeat to keep several categories; all by default

  • cursoranyquery

    nextCursor of the previous page

  • limitintegerquery
    • max: 200
    • default: 100

Réponses

  • 200

    • paymentPaymentDtoobligatoire
      • idstring (uuid)obligatoire
      • referencestringobligatoire

        24 hexadecimal characters

      • statusstringobligatoire
        • enum: "pending", "succeeded", "failed", "expired", "canceled"
      • amountnumberobligatoire
      • currencystringobligatoire
      • descriptionstring | nullobligatoire
      • orderIdstring | nullobligatoire
      • payerPayerDtoobligatoire
        • firstNamestring
        • lastNamestring
        • emailstring

          Receives the receipt

        • phonestring
      • acceptedProvidersstring[]obligatoire
      • providerstring | nullobligatoire

        Provider of the succeeded attempt, or of the last attempt opened

      • organisationIdstring (uuid)obligatoire
      • paymentAccountIdstring (uuid)obligatoire
      • channelstringobligatoire
        • enum: "api", "link", "konnect_me", "plugin_woocommerce", "plugin_prestashop", "plugin_whmcs", "compat_v2"
      • successUrlstring | nullobligatoire
      • failUrlstring | nullobligatoire
      • webhookUrlstring | nullobligatoire
      • expiresAtstring (date-time)obligatoire
      • metadataobjectobligatoire
      • payUrlstringobligatoire

        Hosted checkout page of this payment

      • succeededAttemptIdstring (uuid) | nullobligatoire
      • attemptsCountnumberobligatoire
      • paymentLinkIdstring (uuid) | nullobligatoire

        The payment link the payer started from (channel link), null otherwise

      • resultany

        Result summary (API responses only, not in webhook bodies)

      • legacyImportedbooleanobligatoire

        Historical payment imported from the k-core account (lot 1.10b): no attempt, no webhook

      • createdAtstring (date-time)obligatoire
      • updatedAtstring (date-time)obligatoire
    • attemptsTimelineAttemptDto[]obligatoire

      Oldest first

      • idstring (uuid)obligatoire
      • numbernumberobligatoire

        1 for the first attempt of the payment

      • providerstringobligatoire
      • statusstringobligatoire
      • externalRefstring | nullobligatoire
      • amountnumberobligatoire
      • providerFeenumber | nullobligatoire
      • affiliationAttemptAffiliationDtoobligatoire
        • affiliationIdstring (uuid)obligatoire
        • labelstringobligatoire
        • environmentstringobligatoire
          • enum: "sandbox", "production"
        • publicIdentifierstring | nullobligatoire

          Never a secret

        • credentialVersionnumberobligatoire
      • checksCountnumberobligatoire
      • resultAttemptResultDtoobligatoire
        • failureCodestring | nullobligatoire
          • enum: "declined", "insufficient_funds", "limit_exceeded", "card_expired", "invalid_instrument", "authentication_failed", "fraud_suspected", "canceled_by_payer", "session_expired", "payment_expired", "provider_unavailable", "invalid_request", "merchant_auth_failed", "unknown_reference", "unknown"
        • providerResultCodestring | nullobligatoire

          The provider own code

        • providerMessagestring | nullobligatoire

          The provider message, redacted

        • authorizationCodestring | nullobligatoire
        • instrumentany | nullobligatoire
        • initiatedAtstring (date-time) | nullobligatoire
        • redirectedAtstring (date-time) | nullobligatoire
        • authorizedAtstring (date-time) | nullobligatoire
        • completedAtstring (date-time) | nullobligatoire
        • durationsAttemptDurationsDtoobligatoire
          • initMsnumber | nullobligatoire

            initiated_at to redirected_at

          • payerMsnumber | nullobligatoire

            redirected_at to completed_at

          • totalMsnumber | nullobligatoire

            initiated_at to completed_at

      • createdAtstring (date-time)obligatoire
      • rawany

        Admin view only

    • webhooksTimelineWebhooksDtoobligatoire
      • deliveriesWebhookDeliveryDto[]obligatoire
        • idstring (uuid)obligatoire
        • endpointIdstring (uuid)obligatoire
        • paymentIdstring (uuid)obligatoire
        • eventIdstring (uuid)obligatoire
        • eventTypestringobligatoire
          • enum: "payment.succeeded", "payment.failed", "payment.expired", "payment.canceled", "attempt.duplicate_success"
        • urlstringobligatoire
        • statusstringobligatoire
          • enum: "pending", "delivered", "failed"
        • attemptsnumberobligatoire
        • lastStatusCodenumber | nullobligatoire
        • lastErrorstring | nullobligatoire
        • lastAttemptAtstring (date-time) | nullobligatoire
        • deliveredAtstring (date-time) | nullobligatoire
        • lastOutcomestring | nullobligatoire
          • enum: "delivered", "http_4xx", "http_5xx", "timeout", "connection_refused", "dns_error", "tls_error", "redirect_not_followed", "response_too_large", "invalid_url_or_blocked", "other"
        • nextRetryAtstring (date-time) | nullobligatoire
        • manualTriesnumberobligatoire
        • createdAtstring (date-time)obligatoire
      • triesWebhookTryDto[]obligatoire

        Every HTTP try, oldest first

        • idstring (uuid)obligatoire
        • deliveryIdstring (uuid)obligatoire
        • endpointIdstring (uuid)obligatoire
        • eventIdstring (uuid)obligatoire
        • eventTypestringobligatoire
          • enum: "payment.succeeded", "payment.failed", "payment.expired", "payment.canceled", "attempt.duplicate_success"
        • urlstringobligatoire
        • tryNumbernumberobligatoire
        • triggerstringobligatoire
          • enum: "automatic", "manual"
        • requestedBystring (uuid) | nullobligatoire
        • requestHeadersobjectobligatoire
        • requestBodystringobligatoire

          The body as sent, byte for byte

        • startedAtstring (date-time)obligatoire
        • durationMsnumberobligatoire
        • outcomestringobligatoire
          • enum: "delivered", "http_4xx", "http_5xx", "timeout", "connection_refused", "dns_error", "tls_error", "redirect_not_followed", "response_too_large", "invalid_url_or_blocked", "other"
        • statusCodenumber | nullobligatoire
        • responseHeadersobject | nullobligatoire
        • responseExcerptstring | nullobligatoire

          First 2 KB, redacted

        • errorMessagestring | nullobligatoire
        • nextRetryAtstring (date-time) | nullobligatoire
    • itemsTimelineItemDto[]obligatoire

      Oldest first

      • idstring (uuid)obligatoire
      • seqstringobligatoire

        Timeline order, shared by the three source tables

      • kindstringobligatoire
        • enum: "payment_event", "attempt_event"
      • typestringobligatoire
      • categorystringobligatoire
        • enum: "payment", "checkout", "attempt", "notification", "email", "anomaly", "refund", "reconciliation"
      • occurredAtstring (date-time)obligatoire
      • attemptIdstring (uuid) | nullobligatoire
      • actorTimelineActorDtoobligatoire
        • typestringobligatoire
          • enum: "system", "merchant_user", "api_key", "payer", "provider", "admin"
        • idstring | nullobligatoire

          User or API key id

      • sourcestringobligatoire
        • enum: "merchant_api", "dashboard", "checkout", "provider_callback", "poller", "outbox_worker", "admin_console", "system", "init", "callback", "poll", "manual"
      • fromStatusstring | nullobligatoire
      • toStatusstring | nullobligatoire
      • detailsobjectobligatoire

        Redacted

      • attemptEventAttemptEventDto
        • idstring (uuid)obligatoire
        • typestringobligatoire
        • fromStatusstring | nullobligatoire
          • enum: "created", "redirected", "pending", "succeeded", "failed", "canceled", "expired", "refunded"
        • toStatusstring | nullobligatoire
          • enum: "created", "redirected", "pending", "succeeded", "failed", "canceled", "expired", "refunded"
        • sourcestringobligatoire
          • enum: "init", "callback", "poll", "manual"
        • detailsobjectobligatoire

          Redacted

        • createdAtstring (date-time)obligatoire
      • webhookTryWebhookTryDto
        • idstring (uuid)obligatoire
        • deliveryIdstring (uuid)obligatoire
        • endpointIdstring (uuid)obligatoire
        • eventIdstring (uuid)obligatoire
        • eventTypestringobligatoire
          • enum: "payment.succeeded", "payment.failed", "payment.expired", "payment.canceled", "attempt.duplicate_success"
        • urlstringobligatoire
        • tryNumbernumberobligatoire
        • triggerstringobligatoire
          • enum: "automatic", "manual"
        • requestedBystring (uuid) | nullobligatoire
        • requestHeadersobjectobligatoire
        • requestBodystringobligatoire

          The body as sent, byte for byte

        • startedAtstring (date-time)obligatoire
        • durationMsnumberobligatoire
        • outcomestringobligatoire
          • enum: "delivered", "http_4xx", "http_5xx", "timeout", "connection_refused", "dns_error", "tls_error", "redirect_not_followed", "response_too_large", "invalid_url_or_blocked", "other"
        • statusCodenumber | nullobligatoire
        • responseHeadersobject | nullobligatoire
        • responseExcerptstring | nullobligatoire

          First 2 KB, redacted

        • errorMessagestring | nullobligatoire
        • nextRetryAtstring (date-time) | nullobligatoire
    • nextCursorstring | nullobligatoire
    • eventTypesVersionnumberobligatoire

      PAYMENT_EVENT_TYPES_VERSION of packages/domain

  • 401Not authenticated; 403 for anyone but konnect_admin

  • 404payment_not_found

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/payments/reference/timeline" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "payment": {
    "id": "id",
    "reference": "665f1c2e8b3a4d0012ab34cd",
    "status": "pending",
    "amount": 12500,
    "currency": "TND",
    "description": "description",
    "orderId": "order-1001",
    "payer": {
      "firstName": "Sami",
      "lastName": "Test",
      "email": "payer@example.test",
      "phone": "+21600000000"
    },
    "acceptedProviders": [
      "clictopay"
    ],
    "provider": "provider",
    "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
    "paymentAccountId": "paymentAccountId",
    "channel": "api",
    "successUrl": "successUrl",
    "failUrl": "failUrl",
    "webhookUrl": "webhookUrl",
    "expiresAt": "2026-10-01T09:30:00.000Z",
    "metadata": {},
    "payUrl": "payUrl",
    "succeededAttemptId": "succeededAttemptId",
    "attemptsCount": 1,
    "paymentLinkId": "paymentLinkId",
    "result": {
      "status": "pending",
      "provider": "provider",
      "attemptId": "attemptId",
      "failureCode": "declined",
      "authorizationCode": "authorizationCode",
      "instrument": {
        "type": null,
        "brand": null,
        "last4": null,
        "maskedId": null
      },
      "attemptsCount": 1,
      "failedAttemptsCount": 1,
      "checkoutOpensCount": 1,
      "firstOpenedAt": "2026-10-01T09:30:00.000Z",
      "completedAt": "2026-10-01T09:30:00.000Z",
      "durationMs": 1,
      "merchantConfirmation": "confirmed",
      "merchantConfirmationReason": {
        "outcome": null,
        "statusCode": null,
        "tries": null,
        "timeoutMs": null,
        "endpointDisabled": null,
        "nextRetryAt": null,
        "deliveryId": null
      }
    },
    "legacyImported": true,
    "createdAt": "2026-10-01T09:30:00.000Z",
    "updatedAt": "2026-10-01T09:30:00.000Z"
  },
  "attempts": [
    {
      "id": "id",
      "number": 1,
      "provider": "provider",
      "status": "status",
      "externalRef": "externalRef",
      "amount": 1,
      "providerFee": 1,
      "affiliation": {
        "affiliationId": "affiliationId",
        "label": "default",
        "environment": "sandbox",
        "publicIdentifier": "publicIdentifier",
        "credentialVersion": 1
      },
      "checksCount": 1,
      "result": {
        "failureCode": "declined",
        "providerResultCode": "providerResultCode",
        "providerMessage": "providerMessage",
        "authorizationCode": "authorizationCode",
        "instrument": {
          "type": null,
          "brand": null,
          "last4": null,
          "maskedId": null
        },
        "initiatedAt": "2026-10-01T09:30:00.000Z",
        "redirectedAt": "2026-10-01T09:30:00.000Z",
        "authorizedAt": "2026-10-01T09:30:00.000Z",
        "completedAt": "2026-10-01T09:30:00.000Z",
        "durations": {
          "initMs": 1,
          "payerMs": 1,
          "totalMs": 1
        }
      },
      "createdAt": "2026-10-01T09:30:00.000Z",
      "raw": {
        "rawInit": {},
        "rawStatus": {},
        "rawCallback": {}
      }
    }
  ],
  "webhooks": {
    "deliveries": [
      {
        "id": "id",
        "endpointId": "endpointId",
        "paymentId": "665f1c2e8b3a4d0012ab34cd",
        "eventId": "eventId",
        "eventType": "payment.succeeded",
        "url": "url",
        "status": "pending",
        "attempts": 1,
        "lastStatusCode": 1,
        "lastError": "lastError",
        "lastAttemptAt": "2026-10-01T09:30:00.000Z",
        "deliveredAt": "2026-10-01T09:30:00.000Z",
        "lastOutcome": "delivered",
        "nextRetryAt": "2026-10-01T09:30:00.000Z",
        "manualTries": 1,
        "createdAt": "2026-10-01T09:30:00.000Z"
      }
    ],
    "tries": [
      {
        "id": "id",
        "deliveryId": "deliveryId",
        "endpointId": "endpointId",
        "eventId": "eventId",
        "eventType": "payment.succeeded",
        "url": "url",
        "tryNumber": 1,
        "trigger": "automatic",
        "requestedBy": "requestedBy",
        "requestHeaders": {},
        "requestBody": "requestBody",
        "startedAt": "2026-10-01T09:30:00.000Z",
        "durationMs": 1,
        "outcome": "delivered",
        "statusCode": 1,
        "responseHeaders": {},
        "responseExcerpt": "responseExcerpt",
        "errorMessage": "errorMessage",
        "nextRetryAt": "2026-10-01T09:30:00.000Z"
      }
    ]
  },
  "items": [
    {
      "id": "id",
      "seq": "seq",
      "kind": "payment_event",
      "type": "attempt_status_changed",
      "category": "payment",
      "occurredAt": "2026-10-01T09:30:00.000Z",
      "attemptId": "attemptId",
      "actor": {
        "type": "system",
        "id": "id"
      },
      "source": "merchant_api",
      "fromStatus": "fromStatus",
      "toStatus": "toStatus",
      "details": {},
      "attemptEvent": {
        "id": "id",
        "type": "transition",
        "fromStatus": "created",
        "toStatus": "created",
        "source": "init",
        "details": {},
        "createdAt": "2026-10-01T09:30:00.000Z"
      },
      "webhookTry": {
        "id": "id",
        "deliveryId": "deliveryId",
        "endpointId": "endpointId",
        "eventId": "eventId",
        "eventType": "payment.succeeded",
        "url": "url",
        "tryNumber": 1,
        "trigger": "automatic",
        "requestedBy": "requestedBy",
        "requestHeaders": {},
        "requestBody": "requestBody",
        "startedAt": "2026-10-01T09:30:00.000Z",
        "durationMs": 1,
        "outcome": "delivered",
        "statusCode": 1,
        "responseHeaders": {},
        "responseExcerpt": "responseExcerpt",
        "errorMessage": "errorMessage",
        "nextRetryAt": "2026-10-01T09:30:00.000Z"
      }
    }
  ],
  "nextCursor": "nextCursor",
  "eventTypesVersion": 1
}

Konnect staff: users, newest first, filtered and paginated

GET/admin/usersClé API

Paramètres

  • cursoranyquery

    nextCursor of the previous page

  • limitintegerquery
    • max: 200
    • default: 50
  • statusstringquery
    • enum: "active", "blocked", "deactivated"
  • rolestringquery
    • enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
  • qanyquery

    Part of the e-mail or name, or an id

Réponses

  • 200

    • itemsAdminUserDto[]obligatoire
      • idstring (uuid)obligatoire
      • emailstringobligatoire
      • firstNamestringobligatoire
      • lastNamestringobligatoire
      • phonestring | nullobligatoire
      • platformRolestringobligatoire
        • enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
      • statusstringobligatoire
        • enum: "active", "blocked", "deactivated"
      • totpEnabledbooleanobligatoire
      • legacybooleanobligatoire

        Imported from k-core (lot 1.10)

      • lastLoginAtstring (date-time) | nullobligatoire
      • createdAtstring (date-time)obligatoire
    • nextCursorstring | nullobligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/users" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "email": "buyer@example.com",
      "firstName": "Salma",
      "lastName": "Example",
      "phone": "phone",
      "platformRole": "merchant",
      "status": "active",
      "totpEnabled": true,
      "legacy": true,
      "lastLoginAt": "2026-10-01T09:30:00.000Z",
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ],
  "nextCursor": "nextCursor"
}

Konnect staff: one user with sessions and memberships

GET/admin/users/{id}Clé API

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • emailstringobligatoire
    • firstNamestringobligatoire
    • lastNamestringobligatoire
    • phonestring | nullobligatoire
    • platformRolestringobligatoire
      • enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
    • statusstringobligatoire
      • enum: "active", "blocked", "deactivated"
    • totpEnabledbooleanobligatoire
    • legacybooleanobligatoire

      Imported from k-core (lot 1.10)

    • lastLoginAtstring (date-time) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • activeSessionsnumberobligatoire

      Open sessions (not expired)

    • lastSeenAtstring (date-time) | nullobligatoire
    • membershipsAdminUserMembershipDto[]obligatoire
      • organisationIdstring (uuid)obligatoire
      • organisationNamestringobligatoire
      • roleNamestringobligatoire
      • isOwnerbooleanobligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/users/id" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "id": "id",
  "email": "buyer@example.com",
  "firstName": "Salma",
  "lastName": "Example",
  "phone": "phone",
  "platformRole": "merchant",
  "status": "active",
  "totpEnabled": true,
  "legacy": true,
  "lastLoginAt": "2026-10-01T09:30:00.000Z",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "activeSessions": 1,
  "lastSeenAt": "2026-10-01T09:30:00.000Z",
  "memberships": [
    {
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName",
      "roleName": "roleName",
      "isOwner": true
    }
  ]
}

Konnect admin: block sign-in and end every session (audited)

POST/admin/users/{id}/lockClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • emailstringobligatoire
    • firstNamestringobligatoire
    • lastNamestringobligatoire
    • phonestring | nullobligatoire
    • platformRolestringobligatoire
      • enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
    • statusstringobligatoire
      • enum: "active", "blocked", "deactivated"
    • totpEnabledbooleanobligatoire
    • legacybooleanobligatoire

      Imported from k-core (lot 1.10)

    • lastLoginAtstring (date-time) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • activeSessionsnumberobligatoire

      Open sessions (not expired)

    • lastSeenAtstring (date-time) | nullobligatoire
    • membershipsAdminUserMembershipDto[]obligatoire
      • organisationIdstring (uuid)obligatoire
      • organisationNamestringobligatoire
      • roleNamestringobligatoire
      • isOwnerbooleanobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 409user_not_active or cannot_target_self

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/users/id/lock" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "email": "buyer@example.com",
  "firstName": "Salma",
  "lastName": "Example",
  "phone": "phone",
  "platformRole": "merchant",
  "status": "active",
  "totpEnabled": true,
  "legacy": true,
  "lastLoginAt": "2026-10-01T09:30:00.000Z",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "activeSessions": 1,
  "lastSeenAt": "2026-10-01T09:30:00.000Z",
  "memberships": [
    {
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName",
      "roleName": "roleName",
      "isOwner": true
    }
  ]
}

Konnect admin: allow a blocked user to sign in again (audited)

POST/admin/users/{id}/unlockClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • emailstringobligatoire
    • firstNamestringobligatoire
    • lastNamestringobligatoire
    • phonestring | nullobligatoire
    • platformRolestringobligatoire
      • enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
    • statusstringobligatoire
      • enum: "active", "blocked", "deactivated"
    • totpEnabledbooleanobligatoire
    • legacybooleanobligatoire

      Imported from k-core (lot 1.10)

    • lastLoginAtstring (date-time) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • activeSessionsnumberobligatoire

      Open sessions (not expired)

    • lastSeenAtstring (date-time) | nullobligatoire
    • membershipsAdminUserMembershipDto[]obligatoire
      • organisationIdstring (uuid)obligatoire
      • organisationNamestringobligatoire
      • roleNamestringobligatoire
      • isOwnerbooleanobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 409user_not_blocked or cannot_target_self

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/users/id/unlock" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "email": "buyer@example.com",
  "firstName": "Salma",
  "lastName": "Example",
  "phone": "phone",
  "platformRole": "merchant",
  "status": "active",
  "totpEnabled": true,
  "legacy": true,
  "lastLoginAt": "2026-10-01T09:30:00.000Z",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "activeSessions": 1,
  "lastSeenAt": "2026-10-01T09:30:00.000Z",
  "memberships": [
    {
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName",
      "roleName": "roleName",
      "isOwner": true
    }
  ]
}

Konnect admin: invalidate the password, end the sessions, e-mail a reset link

POST/admin/users/{id}/force-password-resetClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • emailstringobligatoire
    • firstNamestringobligatoire
    • lastNamestringobligatoire
    • phonestring | nullobligatoire
    • platformRolestringobligatoire
      • enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
    • statusstringobligatoire
      • enum: "active", "blocked", "deactivated"
    • totpEnabledbooleanobligatoire
    • legacybooleanobligatoire

      Imported from k-core (lot 1.10)

    • lastLoginAtstring (date-time) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • activeSessionsnumberobligatoire

      Open sessions (not expired)

    • lastSeenAtstring (date-time) | nullobligatoire
    • membershipsAdminUserMembershipDto[]obligatoire
      • organisationIdstring (uuid)obligatoire
      • organisationNamestringobligatoire
      • roleNamestringobligatoire
      • isOwnerbooleanobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 409user_not_active or cannot_target_self

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/users/id/force-password-reset" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "email": "buyer@example.com",
  "firstName": "Salma",
  "lastName": "Example",
  "phone": "phone",
  "platformRole": "merchant",
  "status": "active",
  "totpEnabled": true,
  "legacy": true,
  "lastLoginAt": "2026-10-01T09:30:00.000Z",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "activeSessions": 1,
  "lastSeenAt": "2026-10-01T09:30:00.000Z",
  "memberships": [
    {
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName",
      "roleName": "roleName",
      "isOwner": true
    }
  ]
}

Konnect admin: end every session of the user (audited)

POST/admin/users/{id}/revoke-sessionsClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • emailstringobligatoire
    • firstNamestringobligatoire
    • lastNamestringobligatoire
    • phonestring | nullobligatoire
    • platformRolestringobligatoire
      • enum: "merchant", "konnect_admin", "konnect_support", "konnect_compliance", "konnect_commercial"
    • statusstringobligatoire
      • enum: "active", "blocked", "deactivated"
    • totpEnabledbooleanobligatoire
    • legacybooleanobligatoire

      Imported from k-core (lot 1.10)

    • lastLoginAtstring (date-time) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • activeSessionsnumberobligatoire

      Open sessions (not expired)

    • lastSeenAtstring (date-time) | nullobligatoire
    • membershipsAdminUserMembershipDto[]obligatoire
      • organisationIdstring (uuid)obligatoire
      • organisationNamestringobligatoire
      • roleNamestringobligatoire
      • isOwnerbooleanobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 409cannot_target_self

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/users/id/revoke-sessions" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "email": "buyer@example.com",
  "firstName": "Salma",
  "lastName": "Example",
  "phone": "phone",
  "platformRole": "merchant",
  "status": "active",
  "totpEnabled": true,
  "legacy": true,
  "lastLoginAt": "2026-10-01T09:30:00.000Z",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "activeSessions": 1,
  "lastSeenAt": "2026-10-01T09:30:00.000Z",
  "memberships": [
    {
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName",
      "roleName": "roleName",
      "isOwner": true
    }
  ]
}

Konnect staff: the whole provider catalogue, enabled or not

GET/admin/providersClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

    • codestringobligatoire
    • namestringobligatoire
    • enabledbooleanobligatoire
    • capabilitiesProviderCapabilitiesDtoobligatoire
      • initbooleanobligatoire
      • statusbooleanobligatoire
      • callbackbooleanobligatoire
      • refundbooleanobligatoire
      • statementbooleanobligatoire
      • verifyCredentialsbooleanobligatoire
    • credentialSchemaCredentialFieldDto[]obligatoire
      • namestringobligatoire
      • labelstringobligatoire
      • typestringobligatoire
        • enum: "text", "password", "select"
      • secretbooleanobligatoire

        Secret fields are encrypted at rest and never returned by the API.

      • helpstring
      • optionsstring[]
    • onboardingGuideOnboardingGuideDtoobligatoire
      • selfstringobligatoire

        Markdown: steps when the merchant applies directly to the provider.

      • viaKonnectstringobligatoire

        Markdown: steps when Konnect handles the application.

      • delaystringobligatoire
      • linksOnboardingLinkDto[]obligatoire
        • labelstringobligatoire
        • urlstringobligatoire
    • settlementInfostring | null
    • maintenanceMessagestring | nullobligatoire

      Maintenance banner shown to merchants while the provider is degraded (lot 1.12)

    • maintenanceSincestring (date-time) | nullobligatoire

      When the banner was set

  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/providers" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "code": "clictopay",
    "name": "ClicToPay",
    "enabled": true,
    "capabilities": {
      "init": true,
      "status": true,
      "callback": true,
      "refund": true,
      "statement": true,
      "verifyCredentials": true
    },
    "credentialSchema": [
      {
        "name": "userName",
        "label": "Affiliation login",
        "type": "text",
        "secret": true,
        "help": "help",
        "options": [
          "string"
        ]
      }
    ],
    "onboardingGuide": {
      "self": "self",
      "viaKonnect": "viaKonnect",
      "delay": "5 to 10 working days",
      "links": [
        {
          "label": "label",
          "url": "url"
        }
      ]
    },
    "settlementInfo": "settlementInfo",
    "maintenanceMessage": "maintenanceMessage",
    "maintenanceSince": "2026-10-01T09:30:00.000Z"
  }
]

Konnect admin: enable or disable a provider, set or clear its maintenance banner

PATCH/admin/providers/{code}Clé API

Paramètres

  • codestringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500
  • enabledboolean
  • maintenanceMessagestring | null

    Maintenance banner shown to merchants; null removes it

    • maxLength: 300

Réponses

  • 200

    • codestringobligatoire
    • namestringobligatoire
    • enabledbooleanobligatoire
    • capabilitiesProviderCapabilitiesDtoobligatoire
      • initbooleanobligatoire
      • statusbooleanobligatoire
      • callbackbooleanobligatoire
      • refundbooleanobligatoire
      • statementbooleanobligatoire
      • verifyCredentialsbooleanobligatoire
    • credentialSchemaCredentialFieldDto[]obligatoire
      • namestringobligatoire
      • labelstringobligatoire
      • typestringobligatoire
        • enum: "text", "password", "select"
      • secretbooleanobligatoire

        Secret fields are encrypted at rest and never returned by the API.

      • helpstring
      • optionsstring[]
    • onboardingGuideOnboardingGuideDtoobligatoire
      • selfstringobligatoire

        Markdown: steps when the merchant applies directly to the provider.

      • viaKonnectstringobligatoire

        Markdown: steps when Konnect handles the application.

      • delaystringobligatoire
      • linksOnboardingLinkDto[]obligatoire
        • labelstringobligatoire
        • urlstringobligatoire
    • settlementInfostring | null
    • maintenanceMessagestring | nullobligatoire

      Maintenance banner shown to merchants while the provider is degraded (lot 1.12)

    • maintenanceSincestring (date-time) | nullobligatoire

      When the banner was set

  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 404Unknown provider

Exemples de code

curl -X PATCH "$KONNECT_API_URL/admin/providers/code" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001",
  "enabled": true,
  "maintenanceMessage": "maintenanceMessage"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001",
  "enabled": true,
  "maintenanceMessage": "maintenanceMessage"
}

Exemple : 200

{
  "code": "clictopay",
  "name": "ClicToPay",
  "enabled": true,
  "capabilities": {
    "init": true,
    "status": true,
    "callback": true,
    "refund": true,
    "statement": true,
    "verifyCredentials": true
  },
  "credentialSchema": [
    {
      "name": "userName",
      "label": "Affiliation login",
      "type": "text",
      "secret": true,
      "help": "help",
      "options": [
        "string"
      ]
    }
  ],
  "onboardingGuide": {
    "self": "self",
    "viaKonnect": "viaKonnect",
    "delay": "5 to 10 working days",
    "links": [
      {
        "label": "label",
        "url": "url"
      }
    ]
  },
  "settlementInfo": "settlementInfo",
  "maintenanceMessage": "maintenanceMessage",
  "maintenanceSince": "2026-10-01T09:30:00.000Z"
}

Konnect staff: affiliations waiting for a decision, oldest first

GET/admin/affiliations/review-queueClé API

Paramètres

  • cursoranyquery

    nextCursor of the previous page

  • limitintegerquery
    • max: 200
    • default: 50

Réponses

  • 200

    • itemsAdminAffiliationDto[]obligatoire
      • idstring (uuid)obligatoire
      • organisationIdstring (uuid)obligatoire
      • providerstringobligatoire
        • enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
      • providerNamestringobligatoire
      • labelstringobligatoire
      • environmentstringobligatoire
        • enum: "sandbox", "production"
      • statusstringobligatoire
        • enum: "draft", "verifying", "active", "suspended", "revoked", "legacy"
      • publicIdentifierstring | nullobligatoire

        Never a secret

      • credentialsobjectobligatoire

        Non-secret fields in full, secret fields as **** plus their last four characters; never a value usable at the provider

      • credentialVersionnumberobligatoire

        Current credential version, 1 for the first credentials

      • verifiedAtstring (date-time) | nullobligatoire
      • lastUsedAtstring (date-time) | nullobligatoire
      • lastVerificationErrorstring | nullobligatoire

        Readable, never a secret

      • revokedAtstring (date-time) | nullobligatoire
      • paymentAccountsRoutedPaymentAccountDto[]obligatoire

        Payment accounts whose routing uses this affiliation; they lose it on revoke

        • idstring (uuid)obligatoire
        • namestringobligatoire
        • statusstringobligatoire
          • enum: "active", "paused", "archived"
      • createdAtstring (date-time)obligatoire
      • updatedAtstring (date-time)obligatoire
      • organisationNamestringobligatoire
    • nextCursorstring | nullobligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/affiliations/review-queue" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "provider": "clictopay",
      "providerName": "ClicToPay",
      "label": "default",
      "environment": "sandbox",
      "status": "draft",
      "publicIdentifier": "publicIdentifier",
      "credentials": {},
      "credentialVersion": 1,
      "verifiedAt": "2026-10-01T09:30:00.000Z",
      "lastUsedAt": "2026-10-01T09:30:00.000Z",
      "lastVerificationError": "lastVerificationError",
      "revokedAt": "2026-10-01T09:30:00.000Z",
      "paymentAccounts": [
        {
          "id": "id",
          "name": "name",
          "status": "active"
        }
      ],
      "createdAt": "2026-10-01T09:30:00.000Z",
      "updatedAt": "2026-10-01T09:30:00.000Z",
      "organisationName": "organisationName"
    }
  ],
  "nextCursor": "nextCursor"
}

Konnect admin: check the credentials with the provider again, then activate

POST/admin/affiliations/{affiliationId}/approveClé API

Activates only when the provider accepts the credentials. Otherwise the affiliation stays in review and the answer is 422 provider_check_failed, with the provider error code in reason.

Paramètres

  • affiliationIdstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • organisationIdstring (uuid)obligatoire
    • providerstringobligatoire
      • enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
    • providerNamestringobligatoire
    • labelstringobligatoire
    • environmentstringobligatoire
      • enum: "sandbox", "production"
    • statusstringobligatoire
      • enum: "draft", "verifying", "active", "suspended", "revoked", "legacy"
    • publicIdentifierstring | nullobligatoire

      Never a secret

    • credentialsobjectobligatoire

      Non-secret fields in full, secret fields as **** plus their last four characters; never a value usable at the provider

    • credentialVersionnumberobligatoire

      Current credential version, 1 for the first credentials

    • verifiedAtstring (date-time) | nullobligatoire
    • lastUsedAtstring (date-time) | nullobligatoire
    • lastVerificationErrorstring | nullobligatoire

      Readable, never a secret

    • revokedAtstring (date-time) | nullobligatoire
    • paymentAccountsRoutedPaymentAccountDto[]obligatoire

      Payment accounts whose routing uses this affiliation; they lose it on revoke

      • idstring (uuid)obligatoire
      • namestringobligatoire
      • statusstringobligatoire
        • enum: "active", "paused", "archived"
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
    • organisationNamestringobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 409affiliation_not_in_review

  • 422provider_check_failed

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/affiliations/affiliationId/approve" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
  "provider": "clictopay",
  "providerName": "ClicToPay",
  "label": "default",
  "environment": "sandbox",
  "status": "draft",
  "publicIdentifier": "publicIdentifier",
  "credentials": {},
  "credentialVersion": 1,
  "verifiedAt": "2026-10-01T09:30:00.000Z",
  "lastUsedAt": "2026-10-01T09:30:00.000Z",
  "lastVerificationError": "lastVerificationError",
  "revokedAt": "2026-10-01T09:30:00.000Z",
  "paymentAccounts": [
    {
      "id": "id",
      "name": "name",
      "status": "active"
    }
  ],
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-01T09:30:00.000Z",
  "organisationName": "organisationName"
}

Konnect admin: refuse an affiliation of the queue (revoked, credentials destroyed)

POST/admin/affiliations/{affiliationId}/rejectClé API

Paramètres

  • affiliationIdstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • organisationIdstring (uuid)obligatoire
    • providerstringobligatoire
      • enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
    • providerNamestringobligatoire
    • labelstringobligatoire
    • environmentstringobligatoire
      • enum: "sandbox", "production"
    • statusstringobligatoire
      • enum: "draft", "verifying", "active", "suspended", "revoked", "legacy"
    • publicIdentifierstring | nullobligatoire

      Never a secret

    • credentialsobjectobligatoire

      Non-secret fields in full, secret fields as **** plus their last four characters; never a value usable at the provider

    • credentialVersionnumberobligatoire

      Current credential version, 1 for the first credentials

    • verifiedAtstring (date-time) | nullobligatoire
    • lastUsedAtstring (date-time) | nullobligatoire
    • lastVerificationErrorstring | nullobligatoire

      Readable, never a secret

    • revokedAtstring (date-time) | nullobligatoire
    • paymentAccountsRoutedPaymentAccountDto[]obligatoire

      Payment accounts whose routing uses this affiliation; they lose it on revoke

      • idstring (uuid)obligatoire
      • namestringobligatoire
      • statusstringobligatoire
        • enum: "active", "paused", "archived"
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
    • organisationNamestringobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 409affiliation_not_in_review

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/affiliations/affiliationId/reject" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
  "provider": "clictopay",
  "providerName": "ClicToPay",
  "label": "default",
  "environment": "sandbox",
  "status": "draft",
  "publicIdentifier": "publicIdentifier",
  "credentials": {},
  "credentialVersion": 1,
  "verifiedAt": "2026-10-01T09:30:00.000Z",
  "lastUsedAt": "2026-10-01T09:30:00.000Z",
  "lastVerificationError": "lastVerificationError",
  "revokedAt": "2026-10-01T09:30:00.000Z",
  "paymentAccounts": [
    {
      "id": "id",
      "name": "name",
      "status": "active"
    }
  ],
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-01T09:30:00.000Z",
  "organisationName": "organisationName"
}

Konnect admin: run the provider check again (the request and its reason are audited)

POST/admin/affiliations/{affiliationId}/verifyClé API

Paramètres

  • affiliationIdstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • organisationIdstring (uuid)obligatoire
    • providerstringobligatoire
      • enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
    • providerNamestringobligatoire
    • labelstringobligatoire
    • environmentstringobligatoire
      • enum: "sandbox", "production"
    • statusstringobligatoire
      • enum: "draft", "verifying", "active", "suspended", "revoked", "legacy"
    • publicIdentifierstring | nullobligatoire

      Never a secret

    • credentialsobjectobligatoire

      Non-secret fields in full, secret fields as **** plus their last four characters; never a value usable at the provider

    • credentialVersionnumberobligatoire

      Current credential version, 1 for the first credentials

    • verifiedAtstring (date-time) | nullobligatoire
    • lastUsedAtstring (date-time) | nullobligatoire
    • lastVerificationErrorstring | nullobligatoire

      Readable, never a secret

    • revokedAtstring (date-time) | nullobligatoire
    • paymentAccountsRoutedPaymentAccountDto[]obligatoire

      Payment accounts whose routing uses this affiliation; they lose it on revoke

      • idstring (uuid)obligatoire
      • namestringobligatoire
      • statusstringobligatoire
        • enum: "active", "paused", "archived"
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
    • organisationNamestringobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 409affiliation_revoked or invalid_transition

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/affiliations/affiliationId/verify" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
  "provider": "clictopay",
  "providerName": "ClicToPay",
  "label": "default",
  "environment": "sandbox",
  "status": "draft",
  "publicIdentifier": "publicIdentifier",
  "credentials": {},
  "credentialVersion": 1,
  "verifiedAt": "2026-10-01T09:30:00.000Z",
  "lastUsedAt": "2026-10-01T09:30:00.000Z",
  "lastVerificationError": "lastVerificationError",
  "revokedAt": "2026-10-01T09:30:00.000Z",
  "paymentAccounts": [
    {
      "id": "id",
      "name": "name",
      "status": "active"
    }
  ],
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-01T09:30:00.000Z",
  "organisationName": "organisationName"
}

Konnect staff: one payment of any organisation with its attempts

GET/admin/payments/{reference}Clé API

Paramètres

  • referencestringpathobligatoire

Réponses

  • 200

    • paymentAdminPaymentDtoobligatoire
      • idstring (uuid)obligatoire
      • referencestringobligatoire

        24 hexadecimal characters

      • statusstringobligatoire
        • enum: "pending", "succeeded", "failed", "expired", "canceled"
      • amountnumberobligatoire
      • currencystringobligatoire
      • descriptionstring | nullobligatoire
      • orderIdstring | nullobligatoire
      • payerPayerDtoobligatoire
        • firstNamestring
        • lastNamestring
        • emailstring

          Receives the receipt

        • phonestring
      • acceptedProvidersstring[]obligatoire
      • providerstring | nullobligatoire

        Provider of the succeeded attempt, or of the last attempt opened

      • organisationIdstring (uuid)obligatoire
      • paymentAccountIdstring (uuid)obligatoire
      • channelstringobligatoire
        • enum: "api", "link", "konnect_me", "plugin_woocommerce", "plugin_prestashop", "plugin_whmcs", "compat_v2"
      • successUrlstring | nullobligatoire
      • failUrlstring | nullobligatoire
      • webhookUrlstring | nullobligatoire
      • expiresAtstring (date-time)obligatoire
      • metadataobjectobligatoire
      • payUrlstringobligatoire

        Hosted checkout page of this payment

      • succeededAttemptIdstring (uuid) | nullobligatoire
      • attemptsCountnumberobligatoire
      • paymentLinkIdstring (uuid) | nullobligatoire

        The payment link the payer started from (channel link), null otherwise

      • resultany

        Result summary (API responses only, not in webhook bodies)

      • legacyImportedbooleanobligatoire

        Historical payment imported from the k-core account (lot 1.10b): no attempt, no webhook

      • createdAtstring (date-time)obligatoire
      • updatedAtstring (date-time)obligatoire
      • organisationNamestringobligatoire
    • attemptsAttemptDto[]obligatoire

      Newest first, with their redacted events; raw payloads are on the timeline

      • idstring (uuid)obligatoire
      • paymentIdstring (uuid)obligatoire
      • providerstringobligatoire
        • enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
      • statusstringobligatoire
        • enum: "created", "redirected", "pending", "succeeded", "failed", "canceled", "expired", "refunded"
      • externalRefstring | nullobligatoire
      • amountnumberobligatoire
      • currencystringobligatoire
      • providerFeenumber | nullobligatoire
      • affiliationAttemptAffiliationDtoobligatoire
        • affiliationIdstring (uuid)obligatoire
        • labelstringobligatoire
        • environmentstringobligatoire
          • enum: "sandbox", "production"
        • publicIdentifierstring | nullobligatoire

          Never a secret

        • credentialVersionnumberobligatoire
      • nextCheckAtstring (date-time) | nullobligatoire
      • checksCountnumberobligatoire
      • resultAttemptResultDtoobligatoire
        • failureCodestring | nullobligatoire
          • enum: "declined", "insufficient_funds", "limit_exceeded", "card_expired", "invalid_instrument", "authentication_failed", "fraud_suspected", "canceled_by_payer", "session_expired", "payment_expired", "provider_unavailable", "invalid_request", "merchant_auth_failed", "unknown_reference", "unknown"
        • providerResultCodestring | nullobligatoire

          The provider own code

        • providerMessagestring | nullobligatoire

          The provider message, redacted

        • authorizationCodestring | nullobligatoire
        • instrumentany | nullobligatoire
        • initiatedAtstring (date-time) | nullobligatoire
        • redirectedAtstring (date-time) | nullobligatoire
        • authorizedAtstring (date-time) | nullobligatoire
        • completedAtstring (date-time) | nullobligatoire
        • durationsAttemptDurationsDtoobligatoire
          • initMsnumber | nullobligatoire

            initiated_at to redirected_at

          • payerMsnumber | nullobligatoire

            redirected_at to completed_at

          • totalMsnumber | nullobligatoire

            initiated_at to completed_at

      • eventsAttemptEventDto[]obligatoire

        Timeline, oldest first

        • idstring (uuid)obligatoire
        • typestringobligatoire
        • fromStatusstring | nullobligatoire
          • enum: "created", "redirected", "pending", "succeeded", "failed", "canceled", "expired", "refunded"
        • toStatusstring | nullobligatoire
          • enum: "created", "redirected", "pending", "succeeded", "failed", "canceled", "expired", "refunded"
        • sourcestringobligatoire
          • enum: "init", "callback", "poll", "manual"
        • detailsobjectobligatoire

          Redacted

        • createdAtstring (date-time)obligatoire
      • createdAtstring (date-time)obligatoire
      • updatedAtstring (date-time)obligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

  • 404payment_not_found

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/payments/reference" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "payment": {
    "id": "id",
    "reference": "665f1c2e8b3a4d0012ab34cd",
    "status": "pending",
    "amount": 12500,
    "currency": "TND",
    "description": "description",
    "orderId": "order-1001",
    "payer": {
      "firstName": "Sami",
      "lastName": "Test",
      "email": "payer@example.test",
      "phone": "+21600000000"
    },
    "acceptedProviders": [
      "clictopay"
    ],
    "provider": "provider",
    "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
    "paymentAccountId": "paymentAccountId",
    "channel": "api",
    "successUrl": "successUrl",
    "failUrl": "failUrl",
    "webhookUrl": "webhookUrl",
    "expiresAt": "2026-10-01T09:30:00.000Z",
    "metadata": {},
    "payUrl": "payUrl",
    "succeededAttemptId": "succeededAttemptId",
    "attemptsCount": 1,
    "paymentLinkId": "paymentLinkId",
    "result": {
      "status": "pending",
      "provider": "provider",
      "attemptId": "attemptId",
      "failureCode": "declined",
      "authorizationCode": "authorizationCode",
      "instrument": {
        "type": null,
        "brand": null,
        "last4": null,
        "maskedId": null
      },
      "attemptsCount": 1,
      "failedAttemptsCount": 1,
      "checkoutOpensCount": 1,
      "firstOpenedAt": "2026-10-01T09:30:00.000Z",
      "completedAt": "2026-10-01T09:30:00.000Z",
      "durationMs": 1,
      "merchantConfirmation": "confirmed",
      "merchantConfirmationReason": {
        "outcome": null,
        "statusCode": null,
        "tries": null,
        "timeoutMs": null,
        "endpointDisabled": null,
        "nextRetryAt": null,
        "deliveryId": null
      }
    },
    "legacyImported": true,
    "createdAt": "2026-10-01T09:30:00.000Z",
    "updatedAt": "2026-10-01T09:30:00.000Z",
    "organisationName": "organisationName"
  },
  "attempts": [
    {
      "id": "id",
      "paymentId": "665f1c2e8b3a4d0012ab34cd",
      "provider": "clictopay",
      "status": "created",
      "externalRef": "externalRef",
      "amount": 1,
      "currency": "currency",
      "providerFee": 1,
      "affiliation": {
        "affiliationId": "affiliationId",
        "label": "default",
        "environment": "sandbox",
        "publicIdentifier": "publicIdentifier",
        "credentialVersion": 1
      },
      "nextCheckAt": "2026-10-01T09:30:00.000Z",
      "checksCount": 1,
      "result": {
        "failureCode": "declined",
        "providerResultCode": "providerResultCode",
        "providerMessage": "providerMessage",
        "authorizationCode": "authorizationCode",
        "instrument": {
          "type": null,
          "brand": null,
          "last4": null,
          "maskedId": null
        },
        "initiatedAt": "2026-10-01T09:30:00.000Z",
        "redirectedAt": "2026-10-01T09:30:00.000Z",
        "authorizedAt": "2026-10-01T09:30:00.000Z",
        "completedAt": "2026-10-01T09:30:00.000Z",
        "durations": {
          "initMs": 1,
          "payerMs": 1,
          "totalMs": 1
        }
      },
      "events": [
        {
          "id": "id",
          "type": "transition",
          "fromStatus": "created",
          "toStatus": "created",
          "source": "init",
          "details": {},
          "createdAt": "2026-10-01T09:30:00.000Z"
        }
      ],
      "createdAt": "2026-10-01T09:30:00.000Z",
      "updatedAt": "2026-10-01T09:30:00.000Z"
    }
  ]
}

Konnect staff: the global audit log (support: own actions only)

GET/admin/auditClé API

Paramètres

  • cursoranyquery

    nextCursor of the previous page

  • limitintegerquery
    • max: 200
    • default: 50
  • toanyquery

    ISO date-time, exclusive

  • fromanyquery

    ISO date-time, inclusive

  • actionanyquery

    Exact action, or a prefix ending with a dot (user., admin.)

  • organisationanyquery

    Organisation id

  • actoranyquery

    User id of the actor

Réponses

  • 200

    • itemsAdminAuditEventDto[]obligatoire
      • idstring (uuid)obligatoire
      • actorUserIdstring (uuid) | null
      • actorEmailstring | null
      • organisationIdstring (uuid) | null
      • organisationNamestring | null
      • affiliationIdstring (uuid) | null
      • actionstringobligatoire
      • ipstring | null
      • detailsobjectobligatoire
      • createdAtstring (date-time)obligatoire
    • nextCursorstring | nullobligatoire
    • ownActionsOnlybooleanobligatoire

      True when the list is limited to your own actions (konnect_support)

  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/audit" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "actorUserId": "actorUserId",
      "actorEmail": "actorEmail",
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName",
      "affiliationId": "affiliationId",
      "action": "user.locked",
      "ip": "ip",
      "details": {},
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ],
  "nextCursor": "nextCursor",
  "ownActionsOnly": true
}

Konnect staff: outbox, webhook, review queue and push counters

GET/admin/healthClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

    • outboxAdminOutboxHealthDtoobligatoire
      • pendingnumberobligatoire
      • duenumberobligatoire

        Pending events whose run time has come

      • failednumberobligatoire
      • failedByTypeAdminOutboxTypeCountDto[]obligatoire
        • typestringobligatoire
        • countnumberobligatoire
      • oldestDueAtstring (date-time) | nullobligatoire
    • webhooksAdminWebhookHealthDtoobligatoire
      • pendingnumberobligatoire
      • failednumberobligatoire
    • affiliationsInReviewnumberobligatoire

      Affiliations waiting in the review queue

    • pushanyobligatoire

      Push notifications (lot 2.6)

    • generatedAtstring (date-time)obligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/health" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "outbox": {
    "pending": 1,
    "due": 1,
    "failed": 1,
    "failedByType": [
      {
        "type": "webhook.deliver",
        "count": 1
      }
    ],
    "oldestDueAt": "2026-10-01T09:30:00.000Z"
  },
  "webhooks": {
    "pending": 1,
    "failed": 1
  },
  "affiliationsInReview": 1,
  "push": {
    "webPush": {
      "enabled": true
    },
    "fcm": {
      "enabled": true
    },
    "devices": [
      {
        "platform": "web",
        "count": 1
      }
    ],
    "last24h": [
      {
        "status": "pending",
        "count": 1
      }
    ],
    "recentFailures": [
      {
        "id": "id",
        "type": "payment_received",
        "status": "pending",
        "responseClass": "responseClass",
        "httpStatus": 1,
        "error": "error",
        "platform": "web",
        "createdAt": "createdAt"
      }
    ]
  },
  "generatedAt": "2026-10-01T09:30:00.000Z"
}

Konnect admin: put a failed outbox event back in the queue (fresh attempts, audited)

POST/admin/outbox/{id}/retryClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • typestringobligatoire
    • statusstringobligatoire
      • enum: "pending", "done", "failed"
    • payloadobjectobligatoire

      Redacted payload

    • attemptsnumberobligatoire
    • lastErrorstring | null
    • runAtstring (date-time)obligatoire
    • doneAtstring (date-time) | null
    • createdAtstring (date-time)obligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 404outbox_event_not_found

  • 409outbox_event_not_failed

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/outbox/id/retry" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "type": "email.send",
  "status": "pending",
  "payload": {},
  "attempts": 1,
  "lastError": "lastError",
  "runAt": "2026-10-01T09:30:00.000Z",
  "doneAt": "2026-10-01T09:30:00.000Z",
  "createdAt": "2026-10-01T09:30:00.000Z"
}

Konnect admin and support: webhook deliveries of every organisation, newest first

GET/admin/webhook-deliveriesClé API

Paramètres

  • cursoranyquery

    nextCursor of the previous page

  • limitintegerquery
    • max: 200
    • default: 50
  • organisationanyquery

    Organisation id

  • statusstringquery
    • enum: "pending", "delivered", "failed"

Réponses

  • 200

    • itemsAdminWebhookDeliveryDto[]obligatoire
      • idstring (uuid)obligatoire
      • endpointIdstring (uuid)obligatoire
      • paymentIdstring (uuid)obligatoire
      • eventIdstring (uuid)obligatoire
      • eventTypestringobligatoire
        • enum: "payment.succeeded", "payment.failed", "payment.expired", "payment.canceled", "attempt.duplicate_success"
      • urlstringobligatoire
      • statusstringobligatoire
        • enum: "pending", "delivered", "failed"
      • attemptsnumberobligatoire
      • lastStatusCodenumber | nullobligatoire
      • lastErrorstring | nullobligatoire
      • lastAttemptAtstring (date-time) | nullobligatoire
      • deliveredAtstring (date-time) | nullobligatoire
      • lastOutcomestring | nullobligatoire
        • enum: "delivered", "http_4xx", "http_5xx", "timeout", "connection_refused", "dns_error", "tls_error", "redirect_not_followed", "response_too_large", "invalid_url_or_blocked", "other"
      • nextRetryAtstring (date-time) | nullobligatoire
      • manualTriesnumberobligatoire
      • createdAtstring (date-time)obligatoire
      • organisationIdstring (uuid)obligatoire
      • organisationNamestringobligatoire
    • nextCursorstring | nullobligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/webhook-deliveries" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "endpointId": "endpointId",
      "paymentId": "665f1c2e8b3a4d0012ab34cd",
      "eventId": "eventId",
      "eventType": "payment.succeeded",
      "url": "url",
      "status": "pending",
      "attempts": 1,
      "lastStatusCode": 1,
      "lastError": "lastError",
      "lastAttemptAt": "2026-10-01T09:30:00.000Z",
      "deliveredAt": "2026-10-01T09:30:00.000Z",
      "lastOutcome": "delivered",
      "nextRetryAt": "2026-10-01T09:30:00.000Z",
      "manualTries": 1,
      "createdAt": "2026-10-01T09:30:00.000Z",
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "organisationName": "organisationName"
    }
  ],
  "nextCursor": "nextCursor"
}

Konnect admin: one manual try of a webhook delivery that is not pending (audited)

POST/admin/webhook-deliveries/{id}/retryClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500

Réponses

  • 200

    • idstring (uuid)obligatoire
    • endpointIdstring (uuid)obligatoire
    • paymentIdstring (uuid)obligatoire
    • eventIdstring (uuid)obligatoire
    • eventTypestringobligatoire
      • enum: "payment.succeeded", "payment.failed", "payment.expired", "payment.canceled", "attempt.duplicate_success"
    • urlstringobligatoire
    • statusstringobligatoire
      • enum: "pending", "delivered", "failed"
    • attemptsnumberobligatoire
    • lastStatusCodenumber | nullobligatoire
    • lastErrorstring | nullobligatoire
    • lastAttemptAtstring (date-time) | nullobligatoire
    • deliveredAtstring (date-time) | nullobligatoire
    • lastOutcomestring | nullobligatoire
      • enum: "delivered", "http_4xx", "http_5xx", "timeout", "connection_refused", "dns_error", "tls_error", "redirect_not_followed", "response_too_large", "invalid_url_or_blocked", "other"
    • nextRetryAtstring (date-time) | nullobligatoire
    • manualTriesnumberobligatoire
    • createdAtstring (date-time)obligatoire
    • organisationIdstring (uuid)obligatoire
    • organisationNamestringobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 404webhook_delivery_not_found

  • 409webhook_delivery_pending

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/webhook-deliveries/id/retry" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Merchant request, ticket SUP-0001"
}'

Exemple : corps de la requête

{
  "reason": "Merchant request, ticket SUP-0001"
}

Exemple : 200

{
  "id": "id",
  "endpointId": "endpointId",
  "paymentId": "665f1c2e8b3a4d0012ab34cd",
  "eventId": "eventId",
  "eventType": "payment.succeeded",
  "url": "url",
  "status": "pending",
  "attempts": 1,
  "lastStatusCode": 1,
  "lastError": "lastError",
  "lastAttemptAt": "2026-10-01T09:30:00.000Z",
  "deliveredAt": "2026-10-01T09:30:00.000Z",
  "lastOutcome": "delivered",
  "nextRetryAt": "2026-10-01T09:30:00.000Z",
  "manualTries": 1,
  "createdAt": "2026-10-01T09:30:00.000Z",
  "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
  "organisationName": "organisationName"
}

Every platform setting with its value or secret hint and source

GET/admin/settingsClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

    • keystringobligatoire
    • categorystringobligatoire
      • enum: "email", "platform", "payments", "security", "push", "onboarding", "sms", "marketing"
    • descriptionstringobligatoire

      English help text

    • typeSettingTypeDtoobligatoire
      • kindstringobligatoire
        • enum: "string", "email", "integer", "boolean", "enum", "string_list", "record_list", "secret"
      • maxLengthnumber

        string: maximum length

      • minnumber

        integer: minimum

      • maxnumber

        integer: maximum

      • optionsstring[]

        enum: allowed values

      • maxItemsnumber

        string_list: maximum number of entries

      • fieldsSettingFieldDto[]

        record_list: the text fields of each record

        • namestringobligatoire
        • maxLengthnumberobligatoire
    • nullablebooleanobligatoire

      Accepts null (no value)

    • secretbooleanobligatoire

      Write-only: the value is never returned

    • requiresReauthbooleanobligatoire

      A write needs a re-authentication in the last 10 minutes

    • visibleWhenany | nullobligatoire
    • valuestring | number | boolean | string | object[]obligatoire

      Effective value (string, number, boolean or list of strings or records); always null for secrets

    • defaultValuestring | number | boolean | string | object[]obligatoire

      Code default; always null for secrets

    • sourcestringobligatoire
      • enum: "database", "environment", "default"
    • secretSetbooleanobligatoire

      Secrets: a value is stored

    • secretLast4string | nullobligatoire

      Secrets: last four characters

    • versionnumberobligatoire

      Version of the database value, 0 when none

    • updatedAtstring (date-time) | nullobligatoire
    • updatedBystring (uuid) | nullobligatoire
    • storedValueInvalidbooleanobligatoire

      The stored value fails the current schema; the fallback applies

  • 401Not authenticated

  • 403konnect_staff_only for anyone but konnect_admin; reauth_required on sensitive writes

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/settings" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "key": "email.transport",
    "category": "email",
    "description": "description",
    "type": {
      "kind": "string",
      "maxLength": 1,
      "min": 1,
      "max": 1,
      "options": [
        "string"
      ],
      "maxItems": 1,
      "fields": [
        {
          "name": "quote",
          "maxLength": 240
        }
      ]
    },
    "nullable": true,
    "secret": true,
    "requiresReauth": true,
    "visibleWhen": {
      "key": "email.transport",
      "equals": [
        "smtp"
      ]
    },
    "value": "value",
    "defaultValue": "defaultValue",
    "source": "database",
    "secretSet": true,
    "secretLast4": "secretLast4",
    "version": 1,
    "updatedAt": "2026-10-01T09:30:00.000Z",
    "updatedBy": "updatedBy",
    "storedValueInvalid": true
  }
]

Send a test e-mail through the current e-mail settings

POST/admin/settings/email/testClé API

Paramètres

Aucun paramètre.

Corps de la requête application/json

  • tostring

    Recipient; the admin's own address when omitted

Réponses

  • 200

    • statusstringobligatoire
      • enum: "sent", "suppressed"
    • transportstringobligatoire
      • enum: "ses", "smtp", "log"
    • messageIdstring
    • reasonstring
      • enum: "not_in_allowlist", "allowlist_required", "imported_account_protected"
  • 401Not authenticated

  • 403konnect_staff_only for anyone but konnect_admin; reauth_required on sensitive writes

  • 502email_delivery_failed (reason: AWS error name or SMTP code) or email_not_configured

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/settings/email/test" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": "to"
}'

Exemple : corps de la requête

{
  "to": "to"
}

Exemple : 200

{
  "status": "sent",
  "transport": "ses",
  "messageId": "messageId",
  "reason": "not_in_allowlist"
}

One platform setting

GET/admin/settings/{key}Clé API

Paramètres

  • keystringpathobligatoire

Réponses

  • 200

    • keystringobligatoire
    • categorystringobligatoire
      • enum: "email", "platform", "payments", "security", "push", "onboarding", "sms", "marketing"
    • descriptionstringobligatoire

      English help text

    • typeSettingTypeDtoobligatoire
      • kindstringobligatoire
        • enum: "string", "email", "integer", "boolean", "enum", "string_list", "record_list", "secret"
      • maxLengthnumber

        string: maximum length

      • minnumber

        integer: minimum

      • maxnumber

        integer: maximum

      • optionsstring[]

        enum: allowed values

      • maxItemsnumber

        string_list: maximum number of entries

      • fieldsSettingFieldDto[]

        record_list: the text fields of each record

        • namestringobligatoire
        • maxLengthnumberobligatoire
    • nullablebooleanobligatoire

      Accepts null (no value)

    • secretbooleanobligatoire

      Write-only: the value is never returned

    • requiresReauthbooleanobligatoire

      A write needs a re-authentication in the last 10 minutes

    • visibleWhenany | nullobligatoire
    • valuestring | number | boolean | string | object[]obligatoire

      Effective value (string, number, boolean or list of strings or records); always null for secrets

    • defaultValuestring | number | boolean | string | object[]obligatoire

      Code default; always null for secrets

    • sourcestringobligatoire
      • enum: "database", "environment", "default"
    • secretSetbooleanobligatoire

      Secrets: a value is stored

    • secretLast4string | nullobligatoire

      Secrets: last four characters

    • versionnumberobligatoire

      Version of the database value, 0 when none

    • updatedAtstring (date-time) | nullobligatoire
    • updatedBystring (uuid) | nullobligatoire
    • storedValueInvalidbooleanobligatoire

      The stored value fails the current schema; the fallback applies

  • 401Not authenticated

  • 403konnect_staff_only for anyone but konnect_admin; reauth_required on sensitive writes

  • 404setting_not_found

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/settings/key" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "key": "email.transport",
  "category": "email",
  "description": "description",
  "type": {
    "kind": "string",
    "maxLength": 1,
    "min": 1,
    "max": 1,
    "options": [
      "string"
    ],
    "maxItems": 1,
    "fields": [
      {
        "name": "quote",
        "maxLength": 240
      }
    ]
  },
  "nullable": true,
  "secret": true,
  "requiresReauth": true,
  "visibleWhen": {
    "key": "email.transport",
    "equals": [
      "smtp"
    ]
  },
  "value": "value",
  "defaultValue": "defaultValue",
  "source": "database",
  "secretSet": true,
  "secretLast4": "secretLast4",
  "version": 1,
  "updatedAt": "2026-10-01T09:30:00.000Z",
  "updatedBy": "updatedBy",
  "storedValueInvalid": true
}

Change a platform setting (reason required); applies to every API process

PUT/admin/settings/{key}Clé API

Paramètres

  • keystringpathobligatoire

Corps de la requête application/json

  • valuestring | number | boolean | string | object[]obligatoire

    New value; for a secret, the plain value (never returned)

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500
  • expectedVersionnumber

    Version read before editing; 409 when it changed

Réponses

  • 200

    • keystringobligatoire
    • categorystringobligatoire
      • enum: "email", "platform", "payments", "security", "push", "onboarding", "sms", "marketing"
    • descriptionstringobligatoire

      English help text

    • typeSettingTypeDtoobligatoire
      • kindstringobligatoire
        • enum: "string", "email", "integer", "boolean", "enum", "string_list", "record_list", "secret"
      • maxLengthnumber

        string: maximum length

      • minnumber

        integer: minimum

      • maxnumber

        integer: maximum

      • optionsstring[]

        enum: allowed values

      • maxItemsnumber

        string_list: maximum number of entries

      • fieldsSettingFieldDto[]

        record_list: the text fields of each record

        • namestringobligatoire
        • maxLengthnumberobligatoire
    • nullablebooleanobligatoire

      Accepts null (no value)

    • secretbooleanobligatoire

      Write-only: the value is never returned

    • requiresReauthbooleanobligatoire

      A write needs a re-authentication in the last 10 minutes

    • visibleWhenany | nullobligatoire
    • valuestring | number | boolean | string | object[]obligatoire

      Effective value (string, number, boolean or list of strings or records); always null for secrets

    • defaultValuestring | number | boolean | string | object[]obligatoire

      Code default; always null for secrets

    • sourcestringobligatoire
      • enum: "database", "environment", "default"
    • secretSetbooleanobligatoire

      Secrets: a value is stored

    • secretLast4string | nullobligatoire

      Secrets: last four characters

    • versionnumberobligatoire

      Version of the database value, 0 when none

    • updatedAtstring (date-time) | nullobligatoire
    • updatedBystring (uuid) | nullobligatoire
    • storedValueInvalidbooleanobligatoire

      The stored value fails the current schema; the fallback applies

  • 401Not authenticated

  • 403konnect_staff_only for anyone but konnect_admin; reauth_required on sensitive writes

  • 404setting_not_found

  • 409setting_version_conflict

Exemples de code

curl -X PUT "$KONNECT_API_URL/admin/settings/key" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "value": "value",
  "reason": "Switch to SES in eu-west-1",
  "expectedVersion": 1
}'

Exemple : corps de la requête

{
  "value": "value",
  "reason": "Switch to SES in eu-west-1",
  "expectedVersion": 1
}

Exemple : 200

{
  "key": "email.transport",
  "category": "email",
  "description": "description",
  "type": {
    "kind": "string",
    "maxLength": 1,
    "min": 1,
    "max": 1,
    "options": [
      "string"
    ],
    "maxItems": 1,
    "fields": [
      {
        "name": "quote",
        "maxLength": 240
      }
    ]
  },
  "nullable": true,
  "secret": true,
  "requiresReauth": true,
  "visibleWhen": {
    "key": "email.transport",
    "equals": [
      "smtp"
    ]
  },
  "value": "value",
  "defaultValue": "defaultValue",
  "source": "database",
  "secretSet": true,
  "secretLast4": "secretLast4",
  "version": 1,
  "updatedAt": "2026-10-01T09:30:00.000Z",
  "updatedBy": "updatedBy",
  "storedValueInvalid": true
}

Delete the database value: the environment or code default applies

POST/admin/settings/{key}/resetClé API

Paramètres

  • keystringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500
  • expectedVersionnumber

Réponses

  • 200

    • keystringobligatoire
    • categorystringobligatoire
      • enum: "email", "platform", "payments", "security", "push", "onboarding", "sms", "marketing"
    • descriptionstringobligatoire

      English help text

    • typeSettingTypeDtoobligatoire
      • kindstringobligatoire
        • enum: "string", "email", "integer", "boolean", "enum", "string_list", "record_list", "secret"
      • maxLengthnumber

        string: maximum length

      • minnumber

        integer: minimum

      • maxnumber

        integer: maximum

      • optionsstring[]

        enum: allowed values

      • maxItemsnumber

        string_list: maximum number of entries

      • fieldsSettingFieldDto[]

        record_list: the text fields of each record

        • namestringobligatoire
        • maxLengthnumberobligatoire
    • nullablebooleanobligatoire

      Accepts null (no value)

    • secretbooleanobligatoire

      Write-only: the value is never returned

    • requiresReauthbooleanobligatoire

      A write needs a re-authentication in the last 10 minutes

    • visibleWhenany | nullobligatoire
    • valuestring | number | boolean | string | object[]obligatoire

      Effective value (string, number, boolean or list of strings or records); always null for secrets

    • defaultValuestring | number | boolean | string | object[]obligatoire

      Code default; always null for secrets

    • sourcestringobligatoire
      • enum: "database", "environment", "default"
    • secretSetbooleanobligatoire

      Secrets: a value is stored

    • secretLast4string | nullobligatoire

      Secrets: last four characters

    • versionnumberobligatoire

      Version of the database value, 0 when none

    • updatedAtstring (date-time) | nullobligatoire
    • updatedBystring (uuid) | nullobligatoire
    • storedValueInvalidbooleanobligatoire

      The stored value fails the current schema; the fallback applies

  • 401Not authenticated

  • 403konnect_staff_only for anyone but konnect_admin; reauth_required on sensitive writes

  • 404setting_not_found

  • 409setting_version_conflict

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/settings/key/reset" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "reason",
  "expectedVersion": 1
}'

Exemple : corps de la requête

{
  "reason": "reason",
  "expectedVersion": 1
}

Exemple : 200

{
  "key": "email.transport",
  "category": "email",
  "description": "description",
  "type": {
    "kind": "string",
    "maxLength": 1,
    "min": 1,
    "max": 1,
    "options": [
      "string"
    ],
    "maxItems": 1,
    "fields": [
      {
        "name": "quote",
        "maxLength": 240
      }
    ]
  },
  "nullable": true,
  "secret": true,
  "requiresReauth": true,
  "visibleWhen": {
    "key": "email.transport",
    "equals": [
      "smtp"
    ]
  },
  "value": "value",
  "defaultValue": "defaultValue",
  "source": "database",
  "secretSet": true,
  "secretLast4": "secretLast4",
  "version": 1,
  "updatedAt": "2026-10-01T09:30:00.000Z",
  "updatedBy": "updatedBy",
  "storedValueInvalid": true
}

Changes of a setting, newest first (secrets masked)

GET/admin/settings/{key}/historyClé API

Paramètres

  • keystringpathobligatoire
  • cursoranyquery

    nextCursor of the previous page

  • limitintegerquery
    • max: 200
    • default: 50

Réponses

  • 200

    • itemsSettingChangeDto[]obligatoire
      • idstring (uuid)obligatoire
      • keystringobligatoire
      • versionnumberobligatoire
      • actionstringobligatoire
        • enum: "set", "reset"
      • actorUserIdstring (uuid) | nullobligatoire
      • reasonstringobligatoire
      • beforeobject | nullobligatoire

        { value } or, for secrets, { masked: true, set }

      • afterobject | nullobligatoire
      • createdAtstring (date-time)obligatoire
    • nextCursorstring | nullobligatoire
  • 401Not authenticated

  • 403konnect_staff_only for anyone but konnect_admin; reauth_required on sensitive writes

  • 404setting_not_found

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/settings/key/history" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "key": "key",
      "version": 1,
      "action": "set",
      "actorUserId": "actorUserId",
      "reason": "reason",
      "before": {},
      "after": {},
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ],
  "nextCursor": "nextCursor"
}

Konnect admin: generate the Web Push VAPID key pair (once, audited)

POST/admin/push/vapid-keysClé API

Stores the public key and the encrypted private key in the platform settings. Rotating replaces them: every browser must enable notifications again.

Paramètres

Aucun paramètre.

Corps de la requête application/json

  • reasonstringobligatoire
    • minLength: 3
    • maxLength: 500
  • rotateboolean

    Replace existing keys: every browser subscription stops working

Réponses

  • 200

    • publicKeystringobligatoire

      The new public key; the private key is never returned

    • rotatedbooleanobligatoire
  • 401No session

  • 403konnect_staff_only (not a Konnect admin) or reauth_required

  • 409vapid_keys_exist (pass rotate: true to replace them)

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/push/vapid-keys" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "reason",
  "rotate": true
}'

Exemple : corps de la requête

{
  "reason": "reason",
  "rotate": true
}

Exemple : 200

{
  "publicKey": "publicKey",
  "rotated": true
}

Konnect staff: affiliation requests, newest first, filtered

GET/admin/affiliation-requestsClé API

Paramètres

  • cursoranyquery
  • limitnumberquery
  • statusstringquery
    • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
  • bankanyquery

    BCT code, or "none"

  • provideranyquery
  • assigneeanyquery

    "me", "none" or a user id

  • situationstringquery
    • enum: "has", "in_progress", "none"
  • accompanimentstringquery
    • enum: "yes", "later", "no"
  • overduestringquery
    • enum: "true", "false"
  • olderThanDaysnumberquery
  • qanyquery

    Organisation name or tax id

Réponses

  • 200

    • itemsAdminAffiliationRequestDto[]obligatoire
      • idstring (uuid)obligatoire
      • organisationIdstring (uuid)obligatoire
      • providerCodestringobligatoire
      • providerNamestringobligatoire
      • situationstringobligatoire
        • enum: "has", "in_progress", "none"
      • bankCodestring | nullobligatoire
      • bankNamestring | nullobligatoire
      • scopestring | nullobligatoire
        • enum: "national", "international", "both"
      • filedAtstring | nullobligatoire
      • contactNamestring | nullobligatoire
      • accompanimentstring | nullobligatoire
        • enum: "yes", "later", "no"
      • callbackRequestedbooleanobligatoire

        The merchant asked Konnect to call back

      • statusstringobligatoire
        • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
      • statusChangedAtstring (date-time)obligatoire
      • rejectionReasonstring | nullobligatoire
      • missingDocumentsstring[]obligatoire

        Documents the merchant still has to upload (the generated form excluded)

      • merchantAffiliationIdstring (uuid) | nullobligatoire
      • createdAtstring (date-time)obligatoire
      • updatedAtstring (date-time)obligatoire
      • organisationNamestringobligatoire
      • assigneeany | nullobligatoire
      • dueAtstring (date-time) | nullobligatoire
      • overduebooleanobligatoire

        Past its due date

      • ageDaysnumberobligatoire

        Whole days since the request was created

      • sentToBankAtstring (date-time) | nullobligatoire
      • allowedTransitionsstring[]obligatoire
    • nextCursorstring | nullobligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/affiliation-requests" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "id": "id",
      "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
      "providerCode": "clictopay",
      "providerName": "ClicToPay",
      "situation": "has",
      "bankCode": "bankCode",
      "bankName": "bankName",
      "scope": "national",
      "filedAt": "2026-09-15",
      "contactName": "contactName",
      "accompaniment": "yes",
      "callbackRequested": true,
      "status": "new",
      "statusChangedAt": "2026-10-01T09:30:00.000Z",
      "rejectionReason": "rejectionReason",
      "missingDocuments": [
        "rne_extract"
      ],
      "merchantAffiliationId": "merchantAffiliationId",
      "createdAt": "2026-10-01T09:30:00.000Z",
      "updatedAt": "2026-10-01T09:30:00.000Z",
      "organisationName": "organisationName",
      "assignee": {
        "id": "id",
        "name": "name"
      },
      "dueAt": "2026-10-01T09:30:00.000Z",
      "overdue": true,
      "ageDays": 1,
      "sentToBankAt": "2026-10-01T09:30:00.000Z",
      "allowedTransitions": [
        "new"
      ]
    }
  ],
  "nextCursor": "nextCursor"
}

Konnect staff: the Kanban, one column per status with its count and oldest cards

GET/admin/affiliation-requests/boardClé API

Paramètres

  • statusstringquery
    • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
  • bankanyquery

    BCT code, or "none"

  • provideranyquery
  • assigneeanyquery

    "me", "none" or a user id

  • situationstringquery
    • enum: "has", "in_progress", "none"
  • accompanimentstringquery
    • enum: "yes", "later", "no"
  • overduestringquery
    • enum: "true", "false"
  • olderThanDaysnumberquery
  • qanyquery

    Organisation name or tax id

Réponses

  • 200

    • columnsBoardColumnDto[]obligatoire
      • statusstringobligatoire
        • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
      • countnumberobligatoire
      • itemsAdminAffiliationRequestDto[]obligatoire

        The 100 oldest cards

        • idstring (uuid)obligatoire
        • organisationIdstring (uuid)obligatoire
        • providerCodestringobligatoire
        • providerNamestringobligatoire
        • situationstringobligatoire
          • enum: "has", "in_progress", "none"
        • bankCodestring | nullobligatoire
        • bankNamestring | nullobligatoire
        • scopestring | nullobligatoire
          • enum: "national", "international", "both"
        • filedAtstring | nullobligatoire
        • contactNamestring | nullobligatoire
        • accompanimentstring | nullobligatoire
          • enum: "yes", "later", "no"
        • callbackRequestedbooleanobligatoire

          The merchant asked Konnect to call back

        • statusstringobligatoire
          • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
        • statusChangedAtstring (date-time)obligatoire
        • rejectionReasonstring | nullobligatoire
        • missingDocumentsstring[]obligatoire

          Documents the merchant still has to upload (the generated form excluded)

        • merchantAffiliationIdstring (uuid) | nullobligatoire
        • createdAtstring (date-time)obligatoire
        • updatedAtstring (date-time)obligatoire
        • organisationNamestringobligatoire
        • assigneeany | nullobligatoire
        • dueAtstring (date-time) | nullobligatoire
        • overduebooleanobligatoire

          Past its due date

        • ageDaysnumberobligatoire

          Whole days since the request was created

        • sentToBankAtstring (date-time) | nullobligatoire
        • allowedTransitionsstring[]obligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/affiliation-requests/board" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "columns": [
    {
      "status": "new",
      "count": 1,
      "items": [
        {
          "id": "id",
          "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
          "providerCode": "clictopay",
          "providerName": "ClicToPay",
          "situation": "has",
          "bankCode": "bankCode",
          "bankName": "bankName",
          "scope": "national",
          "filedAt": "2026-09-15",
          "contactName": "contactName",
          "accompaniment": "yes",
          "callbackRequested": true,
          "status": "new",
          "statusChangedAt": "2026-10-01T09:30:00.000Z",
          "rejectionReason": "rejectionReason",
          "missingDocuments": [
            null
          ],
          "merchantAffiliationId": "merchantAffiliationId",
          "createdAt": "2026-10-01T09:30:00.000Z",
          "updatedAt": "2026-10-01T09:30:00.000Z",
          "organisationName": "organisationName",
          "assignee": {},
          "dueAt": "2026-10-01T09:30:00.000Z",
          "overdue": true,
          "ageDays": 1,
          "sentToBankAt": "2026-10-01T09:30:00.000Z",
          "allowedTransitions": [
            null
          ]
        }
      ]
    }
  ]
}

Konnect admin or sales: CSV of the filtered requests (audited, no secret)

GET/admin/affiliation-requests/exportClé API

Paramètres

  • statusstringquery
    • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
  • bankanyquery

    BCT code, or "none"

  • provideranyquery
  • assigneeanyquery

    "me", "none" or a user id

  • situationstringquery
    • enum: "has", "in_progress", "none"
  • accompanimentstringquery
    • enum: "yes", "later", "no"
  • overduestringquery
    • enum: "true", "false"
  • olderThanDaysnumberquery
  • qanyquery

    Organisation name or tax id

Réponses

  • 200text/csv; charset=utf-8, ";" separated, with a BOM

  • 401No session

  • 403konnect_staff_only: not an admin or sales session

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/affiliation-requests/export" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Konnect admin or sales, re-authenticated: ZIP of the complete files of one bank, moved to sent_to_bank

POST/admin/affiliation-requests/bundlesClé API

Paramètres

Aucun paramètre.

Corps de la requête application/json

  • bankCodestringobligatoire
  • requestIdsstring[]

    Only these requests (all documents_complete requests of the bank otherwise)

Réponses

  • 200application/zip; X-Request-Ids lists the requests sent

  • 401No session

  • 403konnect_staff_only or reauth_required

  • 404bank_not_found

  • 409nothing_to_send or request_not_complete

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/affiliation-requests/bundles" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "bankCode": "24",
  "requestIds": [
    "string"
  ]
}'

Exemple : corps de la requête

{
  "bankCode": "24",
  "requestIds": [
    "string"
  ]
}

Konnect staff: one request with its journal and notes

GET/admin/affiliation-requests/{id}Clé API

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • requestAdminAffiliationRequestDtoobligatoire
      • idstring (uuid)obligatoire
      • organisationIdstring (uuid)obligatoire
      • providerCodestringobligatoire
      • providerNamestringobligatoire
      • situationstringobligatoire
        • enum: "has", "in_progress", "none"
      • bankCodestring | nullobligatoire
      • bankNamestring | nullobligatoire
      • scopestring | nullobligatoire
        • enum: "national", "international", "both"
      • filedAtstring | nullobligatoire
      • contactNamestring | nullobligatoire
      • accompanimentstring | nullobligatoire
        • enum: "yes", "later", "no"
      • callbackRequestedbooleanobligatoire

        The merchant asked Konnect to call back

      • statusstringobligatoire
        • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
      • statusChangedAtstring (date-time)obligatoire
      • rejectionReasonstring | nullobligatoire
      • missingDocumentsstring[]obligatoire

        Documents the merchant still has to upload (the generated form excluded)

      • merchantAffiliationIdstring (uuid) | nullobligatoire
      • createdAtstring (date-time)obligatoire
      • updatedAtstring (date-time)obligatoire
      • organisationNamestringobligatoire
      • assigneeany | nullobligatoire
      • dueAtstring (date-time) | nullobligatoire
      • overduebooleanobligatoire

        Past its due date

      • ageDaysnumberobligatoire

        Whole days since the request was created

      • sentToBankAtstring (date-time) | nullobligatoire
      • allowedTransitionsstring[]obligatoire
    • organisationRequestOrganisationDtoobligatoire
      • idstring (uuid)obligatoire
      • namestringobligatoire
      • legalNamestringobligatoire
      • taxIdstring | nullobligatoire
      • citystring | nullobligatoire
      • kybStatusstringobligatoire
        • enum: "pending", "verified", "refused"
    • eventsAffiliationRequestEventDto[]obligatoire

      Newest first

      • idstring (uuid)obligatoire
      • typestringobligatoire
      • fromStatusstring | nullobligatoire
        • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
      • toStatusstring | nullobligatoire
        • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
      • actorTypestringobligatoire
        • enum: "merchant", "staff", "system"
      • actorNamestring | nullobligatoire
      • detailsobjectobligatoire
      • createdAtstring (date-time)obligatoire
    • notesCommercialNoteDto[]obligatoire

      Newest first, of the organisation

      • idstring (uuid)obligatoire
      • requestIdstring (uuid) | nullobligatoire
      • authorNamestringobligatoire
      • bodystringobligatoire
      • nextActionstring | nullobligatoire
      • nextActionAtstring | nullobligatoire
      • createdAtstring (date-time)obligatoire
    • linkableAffiliationsLinkableAffiliationDto[]obligatoire

      Affiliations of the same organisation and provider, to close the request

      • idstring (uuid)obligatoire
      • labelstringobligatoire
      • statusstringobligatoire
      • environmentstringobligatoire
  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

  • 404affiliation_request_not_found

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/affiliation-requests/id" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "request": {
    "id": "id",
    "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
    "providerCode": "clictopay",
    "providerName": "ClicToPay",
    "situation": "has",
    "bankCode": "bankCode",
    "bankName": "bankName",
    "scope": "national",
    "filedAt": "2026-09-15",
    "contactName": "contactName",
    "accompaniment": "yes",
    "callbackRequested": true,
    "status": "new",
    "statusChangedAt": "2026-10-01T09:30:00.000Z",
    "rejectionReason": "rejectionReason",
    "missingDocuments": [
      "rne_extract"
    ],
    "merchantAffiliationId": "merchantAffiliationId",
    "createdAt": "2026-10-01T09:30:00.000Z",
    "updatedAt": "2026-10-01T09:30:00.000Z",
    "organisationName": "organisationName",
    "assignee": {
      "id": "id",
      "name": "name"
    },
    "dueAt": "2026-10-01T09:30:00.000Z",
    "overdue": true,
    "ageDays": 1,
    "sentToBankAt": "2026-10-01T09:30:00.000Z",
    "allowedTransitions": [
      "new"
    ]
  },
  "organisation": {
    "id": "id",
    "name": "name",
    "legalName": "legalName",
    "taxId": "taxId",
    "city": "city",
    "kybStatus": "pending"
  },
  "events": [
    {
      "id": "id",
      "type": "type",
      "fromStatus": "new",
      "toStatus": "new",
      "actorType": "merchant",
      "actorName": "actorName",
      "details": {},
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ],
  "notes": [
    {
      "id": "id",
      "requestId": "requestId",
      "authorName": "authorName",
      "body": "body",
      "nextAction": "nextAction",
      "nextActionAt": "2026-10-11",
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ],
  "linkableAffiliations": [
    {
      "id": "id",
      "label": "label",
      "status": "status",
      "environment": "environment"
    }
  ]
}

Konnect admin or sales: move a request along the allowed transitions only

POST/admin/affiliation-requests/{id}/transitionClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • tostringobligatoire
    • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
  • rejectionReasonstring

    Required to move to rejected

  • merchantAffiliationIdstring (uuid)

    Required to move to credentials_received: same organisation and provider

  • notestring

    Kept in the journal with the move

Réponses

  • 200

    • idstring (uuid)obligatoire
    • organisationIdstring (uuid)obligatoire
    • providerCodestringobligatoire
    • providerNamestringobligatoire
    • situationstringobligatoire
      • enum: "has", "in_progress", "none"
    • bankCodestring | nullobligatoire
    • bankNamestring | nullobligatoire
    • scopestring | nullobligatoire
      • enum: "national", "international", "both"
    • filedAtstring | nullobligatoire
    • contactNamestring | nullobligatoire
    • accompanimentstring | nullobligatoire
      • enum: "yes", "later", "no"
    • callbackRequestedbooleanobligatoire

      The merchant asked Konnect to call back

    • statusstringobligatoire
      • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
    • statusChangedAtstring (date-time)obligatoire
    • rejectionReasonstring | nullobligatoire
    • missingDocumentsstring[]obligatoire

      Documents the merchant still has to upload (the generated form excluded)

    • merchantAffiliationIdstring (uuid) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
    • organisationNamestringobligatoire
    • assigneeany | nullobligatoire
    • dueAtstring (date-time) | nullobligatoire
    • overduebooleanobligatoire

      Past its due date

    • ageDaysnumberobligatoire

      Whole days since the request was created

    • sentToBankAtstring (date-time) | nullobligatoire
    • allowedTransitionsstring[]obligatoire
  • 400rejection_reason_required, affiliation_required or affiliation_mismatch

  • 401No session

  • 403konnect_staff_only: not an admin or sales session

  • 409invalid_transition, request_changed or affiliation_request_exists

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/affiliation-requests/id/transition" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": "new",
  "rejectionReason": "rejectionReason",
  "merchantAffiliationId": "merchantAffiliationId",
  "note": "note"
}'

Exemple : corps de la requête

{
  "to": "new",
  "rejectionReason": "rejectionReason",
  "merchantAffiliationId": "merchantAffiliationId",
  "note": "note"
}

Exemple : 200

{
  "id": "id",
  "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
  "providerCode": "clictopay",
  "providerName": "ClicToPay",
  "situation": "has",
  "bankCode": "bankCode",
  "bankName": "bankName",
  "scope": "national",
  "filedAt": "2026-09-15",
  "contactName": "contactName",
  "accompaniment": "yes",
  "callbackRequested": true,
  "status": "new",
  "statusChangedAt": "2026-10-01T09:30:00.000Z",
  "rejectionReason": "rejectionReason",
  "missingDocuments": [
    "rne_extract"
  ],
  "merchantAffiliationId": "merchantAffiliationId",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-01T09:30:00.000Z",
  "organisationName": "organisationName",
  "assignee": {
    "id": "id",
    "name": "name"
  },
  "dueAt": "2026-10-01T09:30:00.000Z",
  "overdue": true,
  "ageDays": 1,
  "sentToBankAt": "2026-10-01T09:30:00.000Z",
  "allowedTransitions": [
    "new"
  ]
}

Konnect admin or sales: assign a request to a staff user, or none

POST/admin/affiliation-requests/{id}/assignClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • assigneeUserIdstring (uuid) | nullobligatoire

    null unassigns

Réponses

  • 200

    • idstring (uuid)obligatoire
    • organisationIdstring (uuid)obligatoire
    • providerCodestringobligatoire
    • providerNamestringobligatoire
    • situationstringobligatoire
      • enum: "has", "in_progress", "none"
    • bankCodestring | nullobligatoire
    • bankNamestring | nullobligatoire
    • scopestring | nullobligatoire
      • enum: "national", "international", "both"
    • filedAtstring | nullobligatoire
    • contactNamestring | nullobligatoire
    • accompanimentstring | nullobligatoire
      • enum: "yes", "later", "no"
    • callbackRequestedbooleanobligatoire

      The merchant asked Konnect to call back

    • statusstringobligatoire
      • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
    • statusChangedAtstring (date-time)obligatoire
    • rejectionReasonstring | nullobligatoire
    • missingDocumentsstring[]obligatoire

      Documents the merchant still has to upload (the generated form excluded)

    • merchantAffiliationIdstring (uuid) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
    • organisationNamestringobligatoire
    • assigneeany | nullobligatoire
    • dueAtstring (date-time) | nullobligatoire
    • overduebooleanobligatoire

      Past its due date

    • ageDaysnumberobligatoire

      Whole days since the request was created

    • sentToBankAtstring (date-time) | nullobligatoire
    • allowedTransitionsstring[]obligatoire
  • 400invalid_assignee

  • 401No session

  • 403konnect_staff_only: not an admin or sales session

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/affiliation-requests/id/assign" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "assigneeUserId": "assigneeUserId"
}'

Exemple : corps de la requête

{
  "assigneeUserId": "assigneeUserId"
}

Exemple : 200

{
  "id": "id",
  "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
  "providerCode": "clictopay",
  "providerName": "ClicToPay",
  "situation": "has",
  "bankCode": "bankCode",
  "bankName": "bankName",
  "scope": "national",
  "filedAt": "2026-09-15",
  "contactName": "contactName",
  "accompaniment": "yes",
  "callbackRequested": true,
  "status": "new",
  "statusChangedAt": "2026-10-01T09:30:00.000Z",
  "rejectionReason": "rejectionReason",
  "missingDocuments": [
    "rne_extract"
  ],
  "merchantAffiliationId": "merchantAffiliationId",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-01T09:30:00.000Z",
  "organisationName": "organisationName",
  "assignee": {
    "id": "id",
    "name": "name"
  },
  "dueAt": "2026-10-01T09:30:00.000Z",
  "overdue": true,
  "ageDays": 1,
  "sentToBankAt": "2026-10-01T09:30:00.000Z",
  "allowedTransitions": [
    "new"
  ]
}

Konnect admin or sales: a structured commercial note

POST/admin/affiliation-requests/{id}/notesClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • bodystringobligatoire
  • nextActionstring
  • nextActionAtstring

Réponses

  • 201

    • idstring (uuid)obligatoire
    • requestIdstring (uuid) | nullobligatoire
    • authorNamestringobligatoire
    • bodystringobligatoire
    • nextActionstring | nullobligatoire
    • nextActionAtstring | nullobligatoire
    • createdAtstring (date-time)obligatoire
  • 401No session

  • 403konnect_staff_only: not an admin or sales session

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/affiliation-requests/id/notes" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "body",
  "nextAction": "Call back about the patente",
  "nextActionAt": "2026-10-11"
}'

Exemple : corps de la requête

{
  "body": "body",
  "nextAction": "Call back about the patente",
  "nextActionAt": "2026-10-11"
}

Exemple : 201

{
  "id": "id",
  "requestId": "requestId",
  "authorName": "authorName",
  "body": "body",
  "nextAction": "nextAction",
  "nextActionAt": "2026-10-11",
  "createdAt": "2026-10-01T09:30:00.000Z"
}

Konnect admin or sales: staff users a request can be assigned to

GET/admin/staff-assigneesClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

    • idstring (uuid)obligatoire
    • namestringobligatoire
    • emailstringobligatoire
    • platformRolestringobligatoire
  • 401No session

  • 403konnect_staff_only: not an admin or sales session

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/staff-assignees" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "name": "name",
    "email": "buyer@example.com",
    "platformRole": "platformRole"
  }
]

Konnect staff: the bank referential with delay and refusal rate

GET/admin/banksClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

    • codestringobligatoire

      BCT code in Tunisia (the two first digits of a RIB), Bank Al-Maghrib code (three digits) in Morocco

    • countrystringobligatoire

      ISO 3166-1 alpha-2 country of the bank

    • kindstringobligatoire

      postal for La Poste Tunisienne, payment_institution for IZI: they hold merchant accounts but are not banks

      • enum: "bank", "postal", "payment_institution"
    • namestringobligatoire
    • shortNamestringobligatoire
    • isSmtMemberbooleanobligatoire

      Member of SMT: can issue a ClicToPay affiliation

    • swiftCodestring

      Absent when unknown

    • logoUrlstring

      Logo URL: the logo served by GET /banks/{code}/logo, or an override set by Konnect; absent when none

    • isKonnectPartnerbooleanobligatoire
    • contactsBankContactDto[]obligatoire
      • namestringobligatoire
      • rolestring
      • emailstring
      • phonestring
    • requiredDocumentsstring[]obligatoire
    • activebooleanobligatoire
    • unverifiedFieldsstring[]obligatoire

      Seed facts still to confirm

    • averageDelayDaysnumber | nullobligatoire

      Median days from sent_to_bank to approved, last 365 days; null under 3 requests

    • refusalRatenumber | nullobligatoire

      Rejected among decided requests (0 to 1), last 365 days; null under 3

    • openRequestsnumberobligatoire

      Requests of this bank not closed yet

  • 401No session

  • 403konnect_staff_only: not one of the allowed roles

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/banks" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "code": "24",
    "country": "TN",
    "kind": "bank",
    "name": "Banque de Tunisie et des Emirats",
    "shortName": "BTE",
    "isSmtMember": true,
    "swiftCode": "BCMAMAMCXXX",
    "logoUrl": "https://api.konnect.network/banks/24/logo",
    "isKonnectPartner": true,
    "contacts": [
      {
        "name": "name",
        "role": "role",
        "email": "buyer@example.com",
        "phone": "phone"
      }
    ],
    "requiredDocuments": [
      "rne_extract"
    ],
    "active": true,
    "unverifiedFields": [
      "string"
    ],
    "averageDelayDays": 1,
    "refusalRate": 1,
    "openRequests": 1
  }
]

Konnect admin, re-authenticated: edit a bank (reason audited)

PATCH/admin/banks/{code}Clé API

Paramètres

  • codestringpathobligatoire

Corps de la requête application/json

  • namestring
  • shortNamestring
  • isSmtMemberboolean
  • isKonnectPartnerboolean
  • activeboolean
  • contactsBankContactDto[]
    • namestringobligatoire
    • rolestring
    • emailstring
    • phonestring
  • requiredDocumentsstring[]
  • logoUrlstring | null

    https URL, null to clear

  • unverifiedFieldsstring[]

    Seed facts still to confirm; send [] once checked

  • reasonstringobligatoire

    Why, kept in the audit log

Réponses

  • 200

    • codestringobligatoire

      BCT code in Tunisia (the two first digits of a RIB), Bank Al-Maghrib code (three digits) in Morocco

    • countrystringobligatoire

      ISO 3166-1 alpha-2 country of the bank

    • kindstringobligatoire

      postal for La Poste Tunisienne, payment_institution for IZI: they hold merchant accounts but are not banks

      • enum: "bank", "postal", "payment_institution"
    • namestringobligatoire
    • shortNamestringobligatoire
    • isSmtMemberbooleanobligatoire

      Member of SMT: can issue a ClicToPay affiliation

    • swiftCodestring

      Absent when unknown

    • logoUrlstring

      Logo URL: the logo served by GET /banks/{code}/logo, or an override set by Konnect; absent when none

    • isKonnectPartnerbooleanobligatoire
    • contactsBankContactDto[]obligatoire
      • namestringobligatoire
      • rolestring
      • emailstring
      • phonestring
    • requiredDocumentsstring[]obligatoire
    • activebooleanobligatoire
    • unverifiedFieldsstring[]obligatoire

      Seed facts still to confirm

    • averageDelayDaysnumber | nullobligatoire

      Median days from sent_to_bank to approved, last 365 days; null under 3 requests

    • refusalRatenumber | nullobligatoire

      Rejected among decided requests (0 to 1), last 365 days; null under 3

    • openRequestsnumberobligatoire

      Requests of this bank not closed yet

  • 401No session

  • 403konnect_staff_only (not an admin) or reauth_required

  • 404bank_not_found

Exemples de code

curl -X PATCH "$KONNECT_API_URL/admin/banks/code" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "name",
  "shortName": "shortName",
  "isSmtMember": true,
  "isKonnectPartner": true,
  "active": true,
  "contacts": [
    {
      "name": "name",
      "role": "role",
      "email": "buyer@example.com",
      "phone": "phone"
    }
  ],
  "requiredDocuments": [
    "rne_extract"
  ],
  "logoUrl": "logoUrl",
  "unverifiedFields": [
    "string"
  ],
  "reason": "reason"
}'

Exemple : corps de la requête

{
  "name": "name",
  "shortName": "shortName",
  "isSmtMember": true,
  "isKonnectPartner": true,
  "active": true,
  "contacts": [
    {
      "name": "name",
      "role": "role",
      "email": "buyer@example.com",
      "phone": "phone"
    }
  ],
  "requiredDocuments": [
    "rne_extract"
  ],
  "logoUrl": "logoUrl",
  "unverifiedFields": [
    "string"
  ],
  "reason": "reason"
}

Exemple : 200

{
  "code": "24",
  "country": "TN",
  "kind": "bank",
  "name": "Banque de Tunisie et des Emirats",
  "shortName": "BTE",
  "isSmtMember": true,
  "swiftCode": "BCMAMAMCXXX",
  "logoUrl": "https://api.konnect.network/banks/24/logo",
  "isKonnectPartner": true,
  "contacts": [
    {
      "name": "name",
      "role": "role",
      "email": "buyer@example.com",
      "phone": "phone"
    }
  ],
  "requiredDocuments": [
    "rne_extract"
  ],
  "active": true,
  "unverifiedFields": [
    "string"
  ],
  "averageDelayDays": 1,
  "refusalRate": 1,
  "openRequests": 1
}

Konnect staff: the checklist of an organisation with each history

GET/admin/organisations/{id}/documents/checklistClé API

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • itemsAdminDocumentItemDto[]obligatoire
      • codestringobligatoire
        • enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
      • requiredbooleanobligatoire

        false: sent by the merchant but no longer asked for

      • conditionalbooleanobligatoire

        Statutes listed while the legal form is unknown

      • requiredBystring[]obligatoire

        konnect and the short names of the banks asking for the piece

      • statusstringobligatoire
        • enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
      • generatedbooleanobligatoire

        Konnect produces it: download, sign and send back

      • templateAvailablebooleanobligatoire

        GET .../template serves the document to sign

      • maxPagesnumberobligatoire
      • currentany | nullobligatoire
      • historyDocumentHistoryDtoobligatoire
        • codestringobligatoire
          • enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
        • versionsDocumentVersionDto[]obligatoire

          Newest first

          • idstring (uuid)obligatoire
          • versionnumberobligatoire
          • statusstringobligatoire
            • enum: "uploaded", "in_review", "approved", "rejected", "replaced"
          • rejectionReasonstring | nullobligatoire
            • enum: "illegible", "expired", "wrong_document", "incomplete", "name_mismatch", "not_signed", "other"
          • rejectionNotestring | nullobligatoire
          • pagesDocumentPageDto[]obligatoire
            • fileIdstring (uuid)obligatoire
            • pagenumberobligatoire
            • originalNamestringobligatoire
            • mimeTypestringobligatoire
            • sizeBytesnumberobligatoire
            • scanStatusstringobligatoire
              • enum: "not_scanned", "clean"
            • createdAtstring (date-time)obligatoire
          • createdAtstring (date-time)obligatoire
          • reviewStartedAtstring (date-time) | nullobligatoire
          • reviewedAtstring (date-time) | nullobligatoire
        • eventsDocumentEventDto[]obligatoire

          Newest first

          • idstring (uuid)obligatoire
          • typestringobligatoire
            • enum: "uploaded", "page_added", "page_replaced", "page_deleted", "withdrawn", "review_started", "approved", "rejected", "replaced", "backfilled"
          • versionnumber | nullobligatoire
          • actorTypestringobligatoire
            • enum: "merchant", "staff", "system"
          • actorNamestring | nullobligatoire

            Staff only; null for the merchant

          • detailsobjectobligatoire

            Reason, note, page or status of the event

          • createdAtstring (date-time)obligatoire
    • progressDocumentProgressDtoobligatoire
      • approvednumberobligatoire
      • providednumberobligatoire

        Required pieces uploaded, in review or approved

      • requirednumberobligatoire
  • 403konnect_staff_only

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/organisations/id/documents/checklist" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "items": [
    {
      "code": "rne_extract",
      "required": true,
      "conditional": true,
      "requiredBy": [
        "konnect",
        "BTE"
      ],
      "status": "pending_upload",
      "generated": true,
      "templateAvailable": true,
      "maxPages": 2,
      "current": {
        "id": "id",
        "version": 1,
        "status": "uploaded",
        "rejectionReason": "illegible",
        "rejectionNote": "rejectionNote",
        "pages": [
          null
        ],
        "createdAt": "2026-10-01T09:30:00.000Z",
        "reviewStartedAt": "2026-10-01T09:30:00.000Z",
        "reviewedAt": "2026-10-01T09:30:00.000Z"
      },
      "history": {
        "code": "rne_extract",
        "versions": [
          {
            "id": null,
            "version": null,
            "status": null,
            "rejectionReason": null,
            "rejectionNote": null,
            "pages": null,
            "createdAt": null,
            "reviewStartedAt": null,
            "reviewedAt": null
          }
        ],
        "events": [
          {
            "id": null,
            "type": null,
            "version": null,
            "actorType": null,
            "actorName": null,
            "details": null,
            "createdAt": null
          }
        ]
      }
    }
  ],
  "progress": {
    "approved": 1,
    "provided": 1,
    "required": 1
  }
}

Konnect admin and compliance: a signed URL of a page (audited)

GET/admin/organisations/{id}/documents/{code}/files/{fileId}/urlClé API

Paramètres

  • idstringpathobligatoire
  • codestringpathobligatoire
  • fileIdstringpathobligatoire
  • dispositionstringquery
    • enum: "inline", "attachment"

Réponses

  • 200

    • urlstringobligatoire

      Pre-signed URL, valid 5 minutes

    • expiresAtstring (date-time)obligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/organisations/id/documents/code/files/fileId/url" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "url": "url",
  "expiresAt": "2026-10-01T09:30:00.000Z"
}

Konnect admin and compliance: start the review, validate or refuse a piece

POST/admin/organisations/{id}/documents/{code}/reviewClé API

A refusal needs reason (and note with the reason "other"); the merchant is notified. version must be the current version.

Paramètres

  • idstringpathobligatoire
  • codestringpathobligatoire

Corps de la requête application/json

  • actionstringobligatoire
    • enum: "start", "approve", "reject"
  • versionnumberobligatoire

    The version reviewed: 409 document_changed when it is no longer current

  • reasonstring

    Required to reject

    • enum: "illegible", "expired", "wrong_document", "incomplete", "name_mismatch", "not_signed", "other"
  • notestring

    Shown to the merchant with the reason; required with the reason "other"

Réponses

  • 201

    • codestringobligatoire
      • enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
    • requiredbooleanobligatoire

      false: sent by the merchant but no longer asked for

    • conditionalbooleanobligatoire

      Statutes listed while the legal form is unknown

    • requiredBystring[]obligatoire

      konnect and the short names of the banks asking for the piece

    • statusstringobligatoire
      • enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
    • generatedbooleanobligatoire

      Konnect produces it: download, sign and send back

    • templateAvailablebooleanobligatoire

      GET .../template serves the document to sign

    • maxPagesnumberobligatoire
    • currentany | nullobligatoire
    • historyDocumentHistoryDtoobligatoire
      • codestringobligatoire
        • enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
      • versionsDocumentVersionDto[]obligatoire

        Newest first

        • idstring (uuid)obligatoire
        • versionnumberobligatoire
        • statusstringobligatoire
          • enum: "uploaded", "in_review", "approved", "rejected", "replaced"
        • rejectionReasonstring | nullobligatoire
          • enum: "illegible", "expired", "wrong_document", "incomplete", "name_mismatch", "not_signed", "other"
        • rejectionNotestring | nullobligatoire
        • pagesDocumentPageDto[]obligatoire
          • fileIdstring (uuid)obligatoire
          • pagenumberobligatoire
          • originalNamestringobligatoire
          • mimeTypestringobligatoire
          • sizeBytesnumberobligatoire
          • scanStatusstringobligatoire
            • enum: "not_scanned", "clean"
          • createdAtstring (date-time)obligatoire
        • createdAtstring (date-time)obligatoire
        • reviewStartedAtstring (date-time) | nullobligatoire
        • reviewedAtstring (date-time) | nullobligatoire
      • eventsDocumentEventDto[]obligatoire

        Newest first

        • idstring (uuid)obligatoire
        • typestringobligatoire
          • enum: "uploaded", "page_added", "page_replaced", "page_deleted", "withdrawn", "review_started", "approved", "rejected", "replaced", "backfilled"
        • versionnumber | nullobligatoire
        • actorTypestringobligatoire
          • enum: "merchant", "staff", "system"
        • actorNamestring | nullobligatoire

          Staff only; null for the merchant

        • detailsobjectobligatoire

          Reason, note, page or status of the event

        • createdAtstring (date-time)obligatoire
  • 400reason_required or note_required

  • 409document_changed, invalid_transition or document_not_uploaded

Exemples de code

curl -X POST "$KONNECT_API_URL/admin/organisations/id/documents/code/review" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "start",
  "version": 1,
  "reason": "illegible",
  "note": "note"
}'

Exemple : corps de la requête

{
  "action": "start",
  "version": 1,
  "reason": "illegible",
  "note": "note"
}

Exemple : 201

{
  "code": "rne_extract",
  "required": true,
  "conditional": true,
  "requiredBy": [
    "konnect",
    "BTE"
  ],
  "status": "pending_upload",
  "generated": true,
  "templateAvailable": true,
  "maxPages": 2,
  "current": {
    "id": "id",
    "version": 1,
    "status": "uploaded",
    "rejectionReason": "illegible",
    "rejectionNote": "rejectionNote",
    "pages": [
      {
        "fileId": "fileId",
        "page": 1,
        "originalName": "originalName",
        "mimeType": "image/jpeg",
        "sizeBytes": 1,
        "scanStatus": "not_scanned",
        "createdAt": "2026-10-01T09:30:00.000Z"
      }
    ],
    "createdAt": "2026-10-01T09:30:00.000Z",
    "reviewStartedAt": "2026-10-01T09:30:00.000Z",
    "reviewedAt": "2026-10-01T09:30:00.000Z"
  },
  "history": {
    "code": "rne_extract",
    "versions": [
      {
        "id": "id",
        "version": 1,
        "status": "uploaded",
        "rejectionReason": "illegible",
        "rejectionNote": "rejectionNote",
        "pages": [
          {
            "fileId": null,
            "page": null,
            "originalName": null,
            "mimeType": null,
            "sizeBytes": null,
            "scanStatus": null,
            "createdAt": null
          }
        ],
        "createdAt": "2026-10-01T09:30:00.000Z",
        "reviewStartedAt": "2026-10-01T09:30:00.000Z",
        "reviewedAt": "2026-10-01T09:30:00.000Z"
      }
    ],
    "events": [
      {
        "id": "id",
        "type": "uploaded",
        "version": 1,
        "actorType": "merchant",
        "actorName": "actorName",
        "details": {},
        "createdAt": "2026-10-01T09:30:00.000Z"
      }
    ]
  }
}

Requests relayed to k-core by route, organisation and reason

GET/admin/compat-v2/relay-statsClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

    • routestringobligatoire
    • organisationIdstring (uuid) | nullobligatoire
    • reasonstringobligatoire
      • enum: "no_api_key", "unknown_api_key", "organisation_not_migrated", "unknown_payment", "not_served"
    • countnumberobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/admin/compat-v2/relay-stats" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "route": "GET /api/v2/payments/:id",
    "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
    "reason": "no_api_key",
    "count": 1
  }
]