Aller au contenu

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

Sommaire de la documentation

organisations

Version 0.1.012 opérations

Organisations of the current user with role, permissions and scope

GET/organisationsClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

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

      Searchable in the switcher

    • internalAccessbooleanobligatoire

      The membership is a Konnect internal access (lot 1.10b), not a real merchant seat

    • roleIdstring (uuid)obligatoire
    • rolestring | nullobligatoire
    • roleNamestringobligatoire
    • isOwnerbooleanobligatoire
    • 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

    • permissionsstring[]obligatoire
    • scopestringobligatoire
      • enum: "all", "accounts"
    • accountIdsstring[]obligatoire

Exemples de code

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

Exemple : 200

[
  {
    "id": "id",
    "name": "name",
    "legalName": "legalName",
    "taxId": "taxId",
    "internalAccess": true,
    "roleId": "roleId",
    "role": "role",
    "roleName": "roleName",
    "isOwner": true,
    "logoFileId": "logoFileId",
    "permissions": [
      "payments.view"
    ],
    "scope": "all",
    "accountIds": [
      "string"
    ]
  }
]

Create an organisation for the signed in merchant, who becomes its owner (ONB-2)

POST/organisationsClé API

KYB starts pending; the registry identity is looked up from the tax id. 400 invalid_tax_id; 403 email_not_verified; 409 tax_id_taken, organisation_limit_reached.

Paramètres

Aucun paramètre.

Corps de la requête application/json

  • namestringobligatoire

    Name customers see

  • legalNamestring

    Defaults to the registry name, then to name

  • taxIdstring

    Matricule fiscal; absent when given later

  • legalFormstring
  • addressstring
  • citystring
  • postalCodestring
  • websitestring

Réponses

  • 201

    • 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"

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Boutique Démo",
  "legalName": "Société Démo SARL",
  "taxId": "1234567A",
  "legalForm": "legalForm",
  "address": "address",
  "city": "city",
  "postalCode": "postalCode",
  "website": "website"
}'

Exemple : corps de la requête

{
  "name": "Boutique Démo",
  "legalName": "Société Démo SARL",
  "taxId": "1234567A",
  "legalForm": "legalForm",
  "address": "address",
  "city": "city",
  "postalCode": "postalCode",
  "website": "website"
}

Exemple : 201

{
  "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"
    }
  ]
}

What the RNE and the TEJ say about a tax id (ONB-2), and whether it is taken

GET/organisations/registry-lookupClé API

400 invalid_tax_id; 429 too_many_attempts.

Paramètres

  • taxIdstringqueryobligatoire

Réponses

  • 200

    • foundbooleanobligatoire
    • taxIdstringobligatoire

      Normalised tax id (core of the matricule fiscal)

    • reasonstring
      • enum: "not_found", "unavailable"
    • takenboolean

      An organisation of the platform already has this tax id

    • companyRegistryCompanyDto
      • taxIdstringobligatoire
      • sourcesstring[]obligatoire
      • legalNamestring | nullobligatoire
      • tradeNamestring | nullobligatoire
      • legalFormstring | nullobligatoire
      • addressstring | nullobligatoire
      • citystring | nullobligatoire
      • postalCodestring | nullobligatoire
      • activitystring | nullobligatoire
      • registryStatusstring | nullobligatoire
      • registryNumberstring | nullobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/registry-lookup?taxId=1234567A" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "found": true,
  "taxId": "taxId",
  "reason": "not_found",
  "taken": true,
  "company": {
    "taxId": "taxId",
    "sources": [
      "rne"
    ],
    "legalName": "legalName",
    "tradeName": "tradeName",
    "legalForm": "legalForm",
    "address": "address",
    "city": "city",
    "postalCode": "postalCode",
    "activity": "activity",
    "registryStatus": "registryStatus",
    "registryNumber": "registryNumber"
  }
}

Identity, status facts and the computed canCollect with its reasons

GET/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"

Exemples de code

curl -X GET "$KONNECT_API_URL/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"
    }
  ]
}

Edit address, phone, email and website (legal identity is read-only)

PATCH/organisations/{id}Clé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • addressstring | null
  • citystring | null
  • postalCodestring | null
  • phonestring | null
  • emailstring | null
  • websitestring | null

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"

Exemples de code

curl -X PATCH "$KONNECT_API_URL/organisations/id" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "address": "address",
  "city": "city",
  "postalCode": "postalCode",
  "phone": "+216 70 000 000",
  "email": "buyer@example.com",
  "website": "website"
}'

Exemple : corps de la requête

{
  "address": "address",
  "city": "city",
  "postalCode": "postalCode",
  "phone": "+216 70 000 000",
  "email": "buyer@example.com",
  "website": "website"
}

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"
    }
  ]
}

Contract: current version text, status and the click acceptance when there is one

GET/organisations/{id}/contractClé API

The Documenso signing link is a placeholder, always null. canAccept tells whether the caller may accept now.

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • statusstringobligatoire
      • enum: "signed", "unsigned"
    • signedAtstring (date-time) | nullobligatoire
    • contractVersionstringobligatoire

      Current published version of the contract

    • titlestringobligatoire
    • bodystringobligatoire

      Text of the current version: "## " starts a heading, a blank line a paragraph

    • checksumstringobligatoire

      SHA-256 of the body

    • acceptanceany | nullobligatoire

      Click acceptance of an organisation owner or administrator, null when none

    • canAcceptbooleanobligatoire

      The caller may accept: an owner or administrator, contract not signed yet

    • signingUrlstring | nullobligatoire

      Documenso signing link when pending (not wired yet: always null)

Exemples de code

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

Exemple : 200

{
  "status": "signed",
  "signedAt": "2026-10-01T09:30:00.000Z",
  "contractVersion": "2026-10-04",
  "title": "title",
  "body": "body",
  "checksum": "checksum",
  "acceptance": {
    "acceptedAt": "2026-10-01T09:30:00.000Z",
    "acceptedByName": "Sami Ben Test",
    "contractVersion": "2026-10-04",
    "checksum": "checksum"
  },
  "canAccept": true,
  "signingUrl": "signingUrl"
}

Accept the current Konnect contract by one click (owner or administrator)

POST/organisations/{id}/contract/acceptClé API

Records who, when, the address, the browser, the version and its checksum (append only), sets contractSignedAt, audits and journals it. Idempotent: a second acceptance changes nothing. 403 contract_acceptance_forbidden for any other member.

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • statusstringobligatoire
      • enum: "signed", "unsigned"
    • signedAtstring (date-time) | nullobligatoire
    • contractVersionstringobligatoire

      Current published version of the contract

    • titlestringobligatoire
    • bodystringobligatoire

      Text of the current version: "## " starts a heading, a blank line a paragraph

    • checksumstringobligatoire

      SHA-256 of the body

    • acceptanceany | nullobligatoire

      Click acceptance of an organisation owner or administrator, null when none

    • canAcceptbooleanobligatoire

      The caller may accept: an owner or administrator, contract not signed yet

    • signingUrlstring | nullobligatoire

      Documenso signing link when pending (not wired yet: always null)

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/contract/accept" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "status": "signed",
  "signedAt": "2026-10-01T09:30:00.000Z",
  "contractVersion": "2026-10-04",
  "title": "title",
  "body": "body",
  "checksum": "checksum",
  "acceptance": {
    "acceptedAt": "2026-10-01T09:30:00.000Z",
    "acceptedByName": "Sami Ben Test",
    "contractVersion": "2026-10-04",
    "checksum": "checksum"
  },
  "canAccept": true,
  "signingUrl": "signingUrl"
}

Konnect compliance: mark the KYB verified (audited)

POST/organisations/{id}/kyb/verifyClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire

Réponses

  • 204

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/kyb/verify" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Registry extract checked"
}'

Exemple : corps de la requête

{
  "reason": "Registry extract checked"
}

Konnect compliance: refuse the KYB with a reason (audited)

POST/organisations/{id}/kyb/refuseClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire

Réponses

  • 204

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/kyb/refuse" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "Registry extract checked"
}'

Exemple : corps de la requête

{
  "reason": "Registry extract checked"
}