documents
Version 0.1.06 opérations
The pieces Konnect asks of the organisation, each with its status and pages
GET/organisations/{id}/documentsClé API
Paramètres
idstringpathobligatoire
Réponses
200
itemsDocumentItemDto[]obligatoirecodestringobligatoire- enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
requiredbooleanobligatoirefalse: sent by the merchant but no longer asked for
conditionalbooleanobligatoireStatutes listed while the legal form is unknown
requiredBystring[]obligatoirekonnectand the short names of the banks asking for the piecestatusstringobligatoire- enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
generatedbooleanobligatoireKonnect produces it: download, sign and send back
templateAvailablebooleanobligatoireGET .../template serves the document to sign
maxPagesnumberobligatoirecurrentany | nullobligatoire
progressDocumentProgressDtoobligatoireapprovednumberobligatoireprovidednumberobligatoireRequired pieces uploaded, in review or approved
requirednumberobligatoire
limitsDocumentLimitsDtoobligatoiremaxFileBytesnumberobligatoiremimeTypesstring[]obligatoire
403permission_denied or api_key_not_allowed
Exemples de code
curl -X GET "$KONNECT_API_URL/organisations/id/documents" \
-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"
}
}
],
"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}/filesClé API
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.
Paramètres
idstringpathobligatoirecodestringpathobligatoire
Corps de la requête multipart/form-data
filestring (binary)obligatoirereplaceFileIdstring (uuid)
Réponses
201
codestringobligatoire- enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
requiredbooleanobligatoirefalse: sent by the merchant but no longer asked for
conditionalbooleanobligatoireStatutes listed while the legal form is unknown
requiredBystring[]obligatoirekonnectand the short names of the banks asking for the piecestatusstringobligatoire- enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
generatedbooleanobligatoireKonnect produces it: download, sign and send back
templateAvailablebooleanobligatoireGET .../template serves the document to sign
maxPagesnumberobligatoirecurrentany | nullobligatoire
400file_required, file_too_large, unsupported_file_type
409document_locked or document_pages_full
422file_infected
Exemples de code
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"
}'Exemple : corps de la requête
{
"file": "file",
"replaceFileId": "replaceFileId"
}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"
}
}Remove a page of a piece sent and not yet reviewed
DELETE/organisations/{id}/documents/{code}/files/{fileId}Clé API
Paramètres
idstringpathobligatoirecodestringpathobligatoirefileIdstringpathobligatoire
Réponses
200
codestringobligatoire- enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
requiredbooleanobligatoirefalse: sent by the merchant but no longer asked for
conditionalbooleanobligatoireStatutes listed while the legal form is unknown
requiredBystring[]obligatoirekonnectand the short names of the banks asking for the piecestatusstringobligatoire- enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
generatedbooleanobligatoireKonnect produces it: download, sign and send back
templateAvailablebooleanobligatoireGET .../template serves the document to sign
maxPagesnumberobligatoirecurrentany | nullobligatoire
404file_not_found
409document_locked
Exemples de code
curl -X DELETE "$KONNECT_API_URL/organisations/id/documents/code/files/fileId" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 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}/urlClé API
Paramètres
idstringpathobligatoirecodestringpathobligatoirefileIdstringpathobligatoiredispositionstringquery- enum: "inline", "attachment"
Réponses
200
urlstringobligatoirePre-signed URL, valid 5 minutes
expiresAtstring (date-time)obligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/organisations/id/documents/code/files/fileId/url" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 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}/templateClé API
Paramètres
idstringpathobligatoirecodestringpathobligatoire
Réponses
200A PDF
404template_not_available
Exemples de code
curl -X GET "$KONNECT_API_URL/organisations/id/documents/code/template" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 200
"string"Versions and journal of a piece, newest first
GET/organisations/{id}/documents/{code}/historyClé API
Paramètres
idstringpathobligatoirecodestringpathobligatoire
Réponses
200
codestringobligatoire- enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
versionsDocumentVersionDto[]obligatoireNewest first
idstring (uuid)obligatoireversionnumberobligatoirestatusstringobligatoire- enum: "uploaded", "in_review", "approved", "rejected", "replaced"
rejectionReasonstring | nullobligatoire- enum: "illegible", "expired", "wrong_document", "incomplete", "name_mismatch", "not_signed", "other"
rejectionNotestring | nullobligatoirepagesDocumentPageDto[]obligatoirefileIdstring (uuid)obligatoirepagenumberobligatoireoriginalNamestringobligatoiremimeTypestringobligatoiresizeBytesnumberobligatoirescanStatusstringobligatoire- enum: "not_scanned", "clean"
createdAtstring (date-time)obligatoire
createdAtstring (date-time)obligatoirereviewStartedAtstring (date-time) | nullobligatoirereviewedAtstring (date-time) | nullobligatoire
eventsDocumentEventDto[]obligatoireNewest first
idstring (uuid)obligatoiretypestringobligatoire- enum: "uploaded", "page_added", "page_replaced", "page_deleted", "withdrawn", "review_started", "approved", "rejected", "replaced", "backfilled"
versionnumber | nullobligatoireactorTypestringobligatoire- enum: "merchant", "staff", "system"
actorNamestring | nullobligatoireStaff only; null for the merchant
detailsobjectobligatoireReason, note, page or status of the event
createdAtstring (date-time)obligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/organisations/id/documents/code/history" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 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"
}
]
}