Skip to content

Development environment: content is being written, nothing points to production.

Documentation contents

organisations

Version 0.1.012 operations

Organisations of the current user with role, permissions and scope

GET/organisationsAPI key

Parameters

No parameters.

Responses

  • 200

    • idstring (uuid)required
    • namestringrequired
    • legalNamestringrequired
    • taxIdstring | nullrequired

      Searchable in the switcher

    • internalAccessbooleanrequired

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

    • roleIdstring (uuid)required
    • rolestring | nullrequired
    • roleNamestringrequired
    • isOwnerbooleanrequired
    • logoFileIdstring (uuid) | nullrequired

      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[]required
    • scopestringrequired
      • enum: "all", "accounts"
    • accountIdsstring[]required

Code samples

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

Example: 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/organisationsAPI key

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.

Parameters

No parameters.

Request body application/json

  • namestringrequired

    Name customers see

  • legalNamestring

    Defaults to the registry name, then to name

  • taxIdstring

    Matricule fiscal; absent when given later

  • legalFormstring
  • addressstring
  • citystring
  • postalCodestring
  • websitestring

Responses

  • 201

    • idstring (uuid)required
    • namestringrequired
    • legalNamestringrequired
    • taxIdstring | nullrequired
    • legalFormstring | nullrequired

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

    • countrystringrequired
    • addressstring | nullrequired
    • citystring | nullrequired
    • postalCodestring | nullrequired
    • phonestring | nullrequired
    • emailstring | nullrequired
    • websitestring | nullrequired
    • logoFileIdstring (uuid) | nullrequired

      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

    • kybStatusstringrequired
      • enum: "pending", "verified", "refused"
    • kybSourcestring | nullrequired

      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) | nullrequired
    • contractRequiredbooleanrequired

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

    • activeAffiliationsnumberrequired

      Active affiliations in any environment

    • activeProductionAffiliationsnumberrequired

      Active affiliations in the production environment

    • canCollectbooleanrequired

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

    • canTestbooleanrequired

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

    • reasonsstring[]required
    • migratedbooleanrequired

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

    • paymentAccountsPaymentAccountSummaryDto[]required

      Accounts within your scope

      • idstring (uuid)required
      • namestringrequired
      • slugstringrequired
      • isDefaultbooleanrequired
      • statusstringrequired
        • enum: "active", "paused", "archived"

Code samples

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

Example: request body

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

Example: 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-lookupAPI key

400 invalid_tax_id; 429 too_many_attempts.

Parameters

  • taxIdstringqueryrequired

Responses

  • 200

    • foundbooleanrequired
    • taxIdstringrequired

      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
      • taxIdstringrequired
      • sourcesstring[]required
      • legalNamestring | nullrequired
      • tradeNamestring | nullrequired
      • legalFormstring | nullrequired
      • addressstring | nullrequired
      • citystring | nullrequired
      • postalCodestring | nullrequired
      • activitystring | nullrequired
      • registryStatusstring | nullrequired
      • registryNumberstring | nullrequired

Code samples

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

Example: 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}API key

Parameters

  • idstringpathrequired

Responses

  • 200

    • idstring (uuid)required
    • namestringrequired
    • legalNamestringrequired
    • taxIdstring | nullrequired
    • legalFormstring | nullrequired

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

    • countrystringrequired
    • addressstring | nullrequired
    • citystring | nullrequired
    • postalCodestring | nullrequired
    • phonestring | nullrequired
    • emailstring | nullrequired
    • websitestring | nullrequired
    • logoFileIdstring (uuid) | nullrequired

      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

    • kybStatusstringrequired
      • enum: "pending", "verified", "refused"
    • kybSourcestring | nullrequired

      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) | nullrequired
    • contractRequiredbooleanrequired

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

    • activeAffiliationsnumberrequired

      Active affiliations in any environment

    • activeProductionAffiliationsnumberrequired

      Active affiliations in the production environment

    • canCollectbooleanrequired

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

    • canTestbooleanrequired

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

    • reasonsstring[]required
    • migratedbooleanrequired

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

    • paymentAccountsPaymentAccountSummaryDto[]required

      Accounts within your scope

      • idstring (uuid)required
      • namestringrequired
      • slugstringrequired
      • isDefaultbooleanrequired
      • statusstringrequired
        • enum: "active", "paused", "archived"

Code samples

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

Example: 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}API key

Parameters

  • idstringpathrequired

Request body application/json

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

Responses

  • 200

    • idstring (uuid)required
    • namestringrequired
    • legalNamestringrequired
    • taxIdstring | nullrequired
    • legalFormstring | nullrequired

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

    • countrystringrequired
    • addressstring | nullrequired
    • citystring | nullrequired
    • postalCodestring | nullrequired
    • phonestring | nullrequired
    • emailstring | nullrequired
    • websitestring | nullrequired
    • logoFileIdstring (uuid) | nullrequired

      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

    • kybStatusstringrequired
      • enum: "pending", "verified", "refused"
    • kybSourcestring | nullrequired

      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) | nullrequired
    • contractRequiredbooleanrequired

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

    • activeAffiliationsnumberrequired

      Active affiliations in any environment

    • activeProductionAffiliationsnumberrequired

      Active affiliations in the production environment

    • canCollectbooleanrequired

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

    • canTestbooleanrequired

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

    • reasonsstring[]required
    • migratedbooleanrequired

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

    • paymentAccountsPaymentAccountSummaryDto[]required

      Accounts within your scope

      • idstring (uuid)required
      • namestringrequired
      • slugstringrequired
      • isDefaultbooleanrequired
      • statusstringrequired
        • enum: "active", "paused", "archived"

Code samples

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

Example: request body

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

Example: 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}/contractAPI key

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

Parameters

  • idstringpathrequired

Responses

  • 200

    • statusstringrequired
      • enum: "signed", "unsigned"
    • signedAtstring (date-time) | nullrequired
    • contractVersionstringrequired

      Current published version of the contract

    • titlestringrequired
    • bodystringrequired

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

    • checksumstringrequired

      SHA-256 of the body

    • acceptanceany | nullrequired

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

    • canAcceptbooleanrequired

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

    • signingUrlstring | nullrequired

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

Code samples

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

Example: 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/acceptAPI key

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.

Parameters

  • idstringpathrequired

Responses

  • 200

    • statusstringrequired
      • enum: "signed", "unsigned"
    • signedAtstring (date-time) | nullrequired
    • contractVersionstringrequired

      Current published version of the contract

    • titlestringrequired
    • bodystringrequired

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

    • checksumstringrequired

      SHA-256 of the body

    • acceptanceany | nullrequired

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

    • canAcceptbooleanrequired

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

    • signingUrlstring | nullrequired

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

Code samples

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

Example: 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/verifyAPI key

Parameters

  • idstringpathrequired

Request body application/json

  • reasonstringrequired

Responses

  • 204

Code samples

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

Example: request body

{
  "reason": "Registry extract checked"
}

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

POST/organisations/{id}/kyb/refuseAPI key

Parameters

  • idstringpathrequired

Request body application/json

  • reasonstringrequired

Responses

  • 204

Code samples

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

Example: request body

{
  "reason": "Registry extract checked"
}