Aller au contenu

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

Sommaire de la documentation

affiliation-requests

Version 0.1.03 opérations

The organisation's affiliation requests, newest first, with the missing documents

GET/organisations/{id}/affiliation-requestsClé API

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • organisationIdstring (uuid)obligatoire
    • providerCodestringobligatoire
    • providerNamestringobligatoire
    • situationstringobligatoire
      • enum: "has", "in_progress", "none"
    • bankCodestring | nullobligatoire
    • bankNamestring | nullobligatoire
    • scopestring | nullobligatoire
      • enum: "national", "international", "both"
    • filedAtstring | nullobligatoire
    • contactNamestring | nullobligatoire
    • accompanimentstring | nullobligatoire
      • enum: "yes", "later", "no"
    • callbackRequestedbooleanobligatoire

      The merchant asked Konnect to call back

    • statusstringobligatoire
      • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
    • statusChangedAtstring (date-time)obligatoire
    • rejectionReasonstring | nullobligatoire
    • missingDocumentsstring[]obligatoire

      Documents the merchant still has to upload (the generated form excluded)

    • merchantAffiliationIdstring (uuid) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
  • 403permission_denied or api_key_not_allowed

Exemples de code

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

Exemple : 200

[
  {
    "id": "id",
    "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
    "providerCode": "clictopay",
    "providerName": "ClicToPay",
    "situation": "has",
    "bankCode": "bankCode",
    "bankName": "bankName",
    "scope": "national",
    "filedAt": "2026-09-15",
    "contactName": "contactName",
    "accompaniment": "yes",
    "callbackRequested": true,
    "status": "new",
    "statusChangedAt": "2026-10-01T09:30:00.000Z",
    "rejectionReason": "rejectionReason",
    "missingDocuments": [
      "rne_extract"
    ],
    "merchantAffiliationId": "merchantAffiliationId",
    "createdAt": "2026-10-01T09:30:00.000Z",
    "updatedAt": "2026-10-01T09:30:00.000Z"
  }
]

Record the situation of one payment method (one open request per provider)

POST/organisations/{id}/affiliation-requestsClé API

accompaniment answers situation "none" only. A second open request for the same provider answers 409 affiliation_request_exists with details.requestId: use PATCH.

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • providerCodestringobligatoire
  • situationstringobligatoire
    • enum: "has", "in_progress", "none"
  • bankCodestring

    Code of an active bank of GET /banks

  • scopestring
    • enum: "national", "international", "both"
  • filedAtstring

    YYYY-MM-DD, not in the future

  • contactNamestring

    The merchant's contact at the bank

  • accompanimentstring

    Only with situation "none" (400 accompaniment_needs_none otherwise)

    • enum: "yes", "later", "no"
  • callbackboolean

    The merchant does not know their situation and asks Konnect to call back (situation "none", no accompaniment answer). Shown in the back office pipeline.

Réponses

  • 201

    • idstring (uuid)obligatoire
    • organisationIdstring (uuid)obligatoire
    • providerCodestringobligatoire
    • providerNamestringobligatoire
    • situationstringobligatoire
      • enum: "has", "in_progress", "none"
    • bankCodestring | nullobligatoire
    • bankNamestring | nullobligatoire
    • scopestring | nullobligatoire
      • enum: "national", "international", "both"
    • filedAtstring | nullobligatoire
    • contactNamestring | nullobligatoire
    • accompanimentstring | nullobligatoire
      • enum: "yes", "later", "no"
    • callbackRequestedbooleanobligatoire

      The merchant asked Konnect to call back

    • statusstringobligatoire
      • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
    • statusChangedAtstring (date-time)obligatoire
    • rejectionReasonstring | nullobligatoire
    • missingDocumentsstring[]obligatoire

      Documents the merchant still has to upload (the generated form excluded)

    • merchantAffiliationIdstring (uuid) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
  • 400unknown_provider, unknown_bank, accompaniment_needs_none or filed_at_in_future

  • 403permission_denied or api_key_not_allowed

  • 409affiliation_request_exists

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/affiliation-requests" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "providerCode": "clictopay",
  "situation": "has",
  "bankCode": "24",
  "scope": "national",
  "filedAt": "2026-09-15",
  "contactName": "contactName",
  "accompaniment": "yes",
  "callback": true
}'

Exemple : corps de la requête

{
  "providerCode": "clictopay",
  "situation": "has",
  "bankCode": "24",
  "scope": "national",
  "filedAt": "2026-09-15",
  "contactName": "contactName",
  "accompaniment": "yes",
  "callback": true
}

Exemple : 201

{
  "id": "id",
  "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
  "providerCode": "clictopay",
  "providerName": "ClicToPay",
  "situation": "has",
  "bankCode": "bankCode",
  "bankName": "bankName",
  "scope": "national",
  "filedAt": "2026-09-15",
  "contactName": "contactName",
  "accompaniment": "yes",
  "callbackRequested": true,
  "status": "new",
  "statusChangedAt": "2026-10-01T09:30:00.000Z",
  "rejectionReason": "rejectionReason",
  "missingDocuments": [
    "rne_extract"
  ],
  "merchantAffiliationId": "merchantAffiliationId",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-01T09:30:00.000Z"
}

Change the answers of a request until its file leaves for the bank

PATCH/organisations/{id}/affiliation-requests/{requestId}Clé API

Any field of the creation but providerCode; null clears an optional answer. Leaving situation "none" clears accompaniment.

Paramètres

  • idstringpathobligatoire
  • requestIdstringpathobligatoire

Corps de la requête application/json

  • situationstring
    • enum: "has", "in_progress", "none"
  • bankCodestring | null
  • scopestring | null
    • enum: "national", "international", "both"
  • filedAtstring | null
  • contactNamestring | null
  • accompanimentstring | null
    • enum: "yes", "later", "no"
  • callbackboolean

    Asks Konnect to call back (see the creation)

Réponses

  • 200

    • idstring (uuid)obligatoire
    • organisationIdstring (uuid)obligatoire
    • providerCodestringobligatoire
    • providerNamestringobligatoire
    • situationstringobligatoire
      • enum: "has", "in_progress", "none"
    • bankCodestring | nullobligatoire
    • bankNamestring | nullobligatoire
    • scopestring | nullobligatoire
      • enum: "national", "international", "both"
    • filedAtstring | nullobligatoire
    • contactNamestring | nullobligatoire
    • accompanimentstring | nullobligatoire
      • enum: "yes", "later", "no"
    • callbackRequestedbooleanobligatoire

      The merchant asked Konnect to call back

    • statusstringobligatoire
      • enum: "new", "documents_missing", "documents_complete", "sent_to_bank", "bank_review", "approved", "credentials_received", "rejected", "abandoned"
    • statusChangedAtstring (date-time)obligatoire
    • rejectionReasonstring | nullobligatoire
    • missingDocumentsstring[]obligatoire

      Documents the merchant still has to upload (the generated form excluded)

    • merchantAffiliationIdstring (uuid) | nullobligatoire
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
  • 400unknown_bank, accompaniment_needs_none or filed_at_in_future

  • 404affiliation_request_not_found

  • 409affiliation_request_locked

Exemples de code

curl -X PATCH "$KONNECT_API_URL/organisations/id/affiliation-requests/requestId" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "situation": "has",
  "bankCode": "24",
  "scope": "national",
  "filedAt": "2026-09-15",
  "contactName": "contactName",
  "accompaniment": "yes",
  "callback": true
}'

Exemple : corps de la requête

{
  "situation": "has",
  "bankCode": "24",
  "scope": "national",
  "filedAt": "2026-09-15",
  "contactName": "contactName",
  "accompaniment": "yes",
  "callback": true
}

Exemple : 200

{
  "id": "id",
  "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
  "providerCode": "clictopay",
  "providerName": "ClicToPay",
  "situation": "has",
  "bankCode": "bankCode",
  "bankName": "bankName",
  "scope": "national",
  "filedAt": "2026-09-15",
  "contactName": "contactName",
  "accompaniment": "yes",
  "callbackRequested": true,
  "status": "new",
  "statusChangedAt": "2026-10-01T09:30:00.000Z",
  "rejectionReason": "rejectionReason",
  "missingDocuments": [
    "rne_extract"
  ],
  "merchantAffiliationId": "merchantAffiliationId",
  "createdAt": "2026-10-01T09:30:00.000Z",
  "updatedAt": "2026-10-01T09:30:00.000Z"
}