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[]requiredcodestringrequired- enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
requiredbooleanrequiredfalse: sent by the merchant but no longer asked for
conditionalbooleanrequiredStatutes listed while the legal form is unknown
requiredBystring[]requiredkonnectand the short names of the banks asking for the piecestatusstringrequired- enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
generatedbooleanrequiredKonnect produces it: download, sign and send back
templateAvailablebooleanrequiredGET .../template serves the document to sign
maxPagesnumberrequiredcurrentany | nullrequired
progressDocumentProgressDtorequiredapprovednumberrequiredprovidednumberrequiredRequired pieces uploaded, in review or approved
requirednumberrequired
limitsDocumentLimitsDtorequiredmaxFileBytesnumberrequiredmimeTypesstring[]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
idstringpathrequiredcodestringpathrequired
Request body multipart/form-data
filestring (binary)requiredreplaceFileIdstring (uuid)
Responses
201
codestringrequired- enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
requiredbooleanrequiredfalse: sent by the merchant but no longer asked for
conditionalbooleanrequiredStatutes listed while the legal form is unknown
requiredBystring[]requiredkonnectand the short names of the banks asking for the piecestatusstringrequired- enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
generatedbooleanrequiredKonnect produces it: download, sign and send back
templateAvailablebooleanrequiredGET .../template serves the document to sign
maxPagesnumberrequiredcurrentany | 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
idstringpathrequiredcodestringpathrequiredfileIdstringpathrequired
Responses
200
codestringrequired- enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
requiredbooleanrequiredfalse: sent by the merchant but no longer asked for
conditionalbooleanrequiredStatutes listed while the legal form is unknown
requiredBystring[]requiredkonnectand the short names of the banks asking for the piecestatusstringrequired- enum: "pending_upload", "uploaded", "in_review", "approved", "rejected"
generatedbooleanrequiredKonnect produces it: download, sign and send back
templateAvailablebooleanrequiredGET .../template serves the document to sign
maxPagesnumberrequiredcurrentany | 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
idstringpathrequiredcodestringpathrequiredfileIdstringpathrequireddispositionstringquery- enum: "inline", "attachment"
Responses
200
urlstringrequiredPre-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
idstringpathrequiredcodestringpathrequired
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
idstringpathrequiredcodestringpathrequired
Responses
200
codestringrequired- enum: "rne_extract", "patente", "director_cin", "statuts", "proof_of_address", "konnect_contract", "sub_merchant_form"
versionsDocumentVersionDto[]requiredNewest first
idstring (uuid)requiredversionnumberrequiredstatusstringrequired- enum: "uploaded", "in_review", "approved", "rejected", "replaced"
rejectionReasonstring | nullrequired- enum: "illegible", "expired", "wrong_document", "incomplete", "name_mismatch", "not_signed", "other"
rejectionNotestring | nullrequiredpagesDocumentPageDto[]requiredfileIdstring (uuid)requiredpagenumberrequiredoriginalNamestringrequiredmimeTypestringrequiredsizeBytesnumberrequiredscanStatusstringrequired- enum: "not_scanned", "clean"
createdAtstring (date-time)required
createdAtstring (date-time)requiredreviewStartedAtstring (date-time) | nullrequiredreviewedAtstring (date-time) | nullrequired
eventsDocumentEventDto[]requiredNewest first
idstring (uuid)requiredtypestringrequired- enum: "uploaded", "page_added", "page_replaced", "page_deleted", "withdrawn", "review_started", "approved", "rejected", "replaced", "backfilled"
versionnumber | nullrequiredactorTypestringrequired- enum: "merchant", "staff", "system"
actorNamestring | nullrequiredStaff only; null for the merchant
detailsobjectrequiredReason, 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"
}
]
}