Skip to content

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

Documentation contents

documents

Version 0.1.06 operations

The pieces Konnect asks of the organisation, each with its status and pages

GET/organisations/{id}/documentsAPI key

Parameters

  • idstringpathrequired

Responses

  • 200

    • itemsDocumentItemDto[]required
      • codestringrequired
        • enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
      • requiredbooleanrequired

        false: sent by the merchant but no longer asked for

      • conditionalbooleanrequired

        Statutes listed while the legal form is unknown

      • requiredBystring[]required

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

      • statusstringrequired
        • enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
      • generatedbooleanrequired

        Konnect produces it: download, sign and send back

      • templateAvailablebooleanrequired

        GET .../template serves the document to sign

      • maxPagesnumberrequired
      • currentany | nullrequired
    • progressDocumentProgressDtorequired
      • approvednumberrequired
      • providednumberrequired

        Required pieces uploaded, in review or approved

      • requirednumberrequired
    • limitsDocumentLimitsDtorequired
      • maxFileBytesnumberrequired
      • mimeTypesstring[]required
  • 403permission_denied or api_key_not_allowed

Code samples

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

Example: 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"
      }
    }
  ],
  "progress": {
    "approved": 1,
    "provided": 1,
    "required": 1
  },
  "limits": {
    "maxFileBytes": 10485760,
    "mimeTypes": [
      "application/pdf",
      "image/png",
      "image/jpeg"
    ]
  }
}

Send a page of a piece (PDF, PNG or JPEG, 10 MB at most)

POST/organisations/{id}/documents/{code}/filesAPI key

A piece to provide or refused gets a new version; a piece sent and not yet reviewed gets one more page, or replaceFileId replaces one of its pages.

Parameters

  • idstringpathrequired
  • codestringpathrequired

Request body multipart/form-data

  • filestring (binary)required
  • replaceFileIdstring (uuid)

Responses

  • 201

    • codestringrequired
      • enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
    • requiredbooleanrequired

      false: sent by the merchant but no longer asked for

    • conditionalbooleanrequired

      Statutes listed while the legal form is unknown

    • requiredBystring[]required

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

    • statusstringrequired
      • enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
    • generatedbooleanrequired

      Konnect produces it: download, sign and send back

    • templateAvailablebooleanrequired

      GET .../template serves the document to sign

    • maxPagesnumberrequired
    • currentany | nullrequired
  • 400file_required, file_too_large, unsupported_file_type

  • 409document_locked or document_pages_full

  • 422file_infected

Code samples

curl -X POST "$KONNECT_API_URL/organisations/id/documents/code/files" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "file": "file",
  "replaceFileId": "replaceFileId"
}'

Example: request body

{
  "file": "file",
  "replaceFileId": "replaceFileId"
}

Example: 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"
  }
}

Remove a page of a piece sent and not yet reviewed

DELETE/organisations/{id}/documents/{code}/files/{fileId}API key

Parameters

  • idstringpathrequired
  • codestringpathrequired
  • fileIdstringpathrequired

Responses

  • 200

    • codestringrequired
      • enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
    • requiredbooleanrequired

      false: sent by the merchant but no longer asked for

    • conditionalbooleanrequired

      Statutes listed while the legal form is unknown

    • requiredBystring[]required

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

    • statusstringrequired
      • enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
    • generatedbooleanrequired

      Konnect produces it: download, sign and send back

    • templateAvailablebooleanrequired

      GET .../template serves the document to sign

    • maxPagesnumberrequired
    • currentany | nullrequired
  • 404file_not_found

  • 409document_locked

Code samples

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

Example: 200

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

A signed URL of a page, valid 5 minutes (audited)

GET/organisations/{id}/documents/{code}/files/{fileId}/urlAPI key

Parameters

  • idstringpathrequired
  • codestringpathrequired
  • fileIdstringpathrequired
  • dispositionstringquery
    • enum: "inline", "attachment"

Responses

  • 200

    • urlstringrequired

      Pre-signed URL, valid 5 minutes

    • expiresAtstring (date-time)required

Code samples

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

Example: 200

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

The document to sign: the Konnect contract, or the BTE sub-merchant form

GET/organisations/{id}/documents/{code}/templateAPI key

Parameters

  • idstringpathrequired
  • codestringpathrequired

Responses

  • 200A PDF

  • 404template_not_available

Code samples

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

Example: 200

"string"

Versions and journal of a piece, newest first

GET/organisations/{id}/documents/{code}/historyAPI key

Parameters

  • idstringpathrequired
  • codestringpathrequired

Responses

  • 200

    • codestringrequired
      • enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
    • versionsDocumentVersionDto[]required

      Newest first

      • idstring (uuid)required
      • versionnumberrequired
      • statusstringrequired
        • enum: "uploaded", "in_review", "approved", "rejected", "replaced"
      • rejectionReasonstring | nullrequired
        • enum: "illegible", "expired", "wrong_document", "incomplete", "name_mismatch", "not_signed", "other"
      • rejectionNotestring | nullrequired
      • pagesDocumentPageDto[]required
        • fileIdstring (uuid)required
        • pagenumberrequired
        • originalNamestringrequired
        • mimeTypestringrequired
        • sizeBytesnumberrequired
        • scanStatusstringrequired
          • enum: "not_scanned", "clean"
        • createdAtstring (date-time)required
      • createdAtstring (date-time)required
      • reviewStartedAtstring (date-time) | nullrequired
      • reviewedAtstring (date-time) | nullrequired
    • eventsDocumentEventDto[]required

      Newest first

      • idstring (uuid)required
      • typestringrequired
        • enum: "uploaded", "page_added", "page_replaced", "page_deleted", "withdrawn", "review_started", "approved", "rejected", "replaced", "backfilled"
      • versionnumber | nullrequired
      • actorTypestringrequired
        • enum: "merchant", "staff", "system"
      • actorNamestring | nullrequired

        Staff only; null for the merchant

      • detailsobjectrequired

        Reason, note, page or status of the event

      • createdAtstring (date-time)required

Code samples

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

Example: 200

{
  "code": "rne_extract",
  "versions": [
    {
      "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"
    }
  ],
  "events": [
    {
      "id": "id",
      "type": "uploaded",
      "version": 1,
      "actorType": "merchant",
      "actorName": "actorName",
      "details": {},
      "createdAt": "2026-10-01T09:30:00.000Z"
    }
  ]
}