Aller au contenu

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

Sommaire de la documentation

commissions

Version 0.1.040 opérations

Suppliers, charities and partners of the organisation, with their totals

GET/organisations/{id}/beneficiariesClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire
  • kindstringquery
    • enum: "supplier", "charity", "partner"
  • statusstringquery
    • enum: "active", "paused", "archived"
  • qstringquery

Réponses

  • 200

    • idstring (uuid)obligatoire
    • kindstringobligatoire
      • enum: "supplier", "charity", "partner"
    • refstring | nullobligatoire
    • namestringobligatoire
    • legalNamestring | nullobligatoire
    • taxIdstring | nullobligatoire
    • emailstring | nullobligatoire
    • phonestring | nullobligatoire
    • payoutDetailsanyobligatoire

      Account numbers masked unless you can manage beneficiaries

    • visibilitystringobligatoire
      • enum: "net_only", "with_commission", "full"
    • showBuyerbooleanobligatoire
    • statementPeriodstringobligatoire
      • enum: "daily", "weekly", "monthly", "on_demand"
    • groupKeystring | nullobligatoire
    • notesstring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused", "archived"
    • membersCountnumberobligatoire
    • totalsBeneficiaryTotalsDtoobligatoire
      • salesThisPeriodnumberobligatoire

        Minor units (millimes)

      • dueOpennumberobligatoire

        Minor units (millimes)

      • dueIssuednumberobligatoire

        Minor units (millimes)

      • paidnumberobligatoire

        Minor units (millimes)

    • createdAtstringobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/beneficiaries" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "kind": "supplier",
    "ref": "ref",
    "name": "name",
    "legalName": "legalName",
    "taxId": "taxId",
    "email": "buyer@example.com",
    "phone": "phone",
    "payoutDetails": {
      "bankName": "bankName",
      "accountHolder": "accountHolder",
      "rib": "rib",
      "iban": "iban",
      "bic": "bic",
      "notes": "notes"
    },
    "visibility": "net_only",
    "showBuyer": true,
    "statementPeriod": "daily",
    "groupKey": "groupKey",
    "notes": "notes",
    "status": "active",
    "membersCount": 1,
    "totals": {
      "salesThisPeriod": 1,
      "dueOpen": 1,
      "dueIssued": 1,
      "paid": 1
    },
    "createdAt": "createdAt"
  }
]

Add a beneficiary

POST/organisations/{id}/beneficiariesClé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • kindstring
    • enum: "supplier", "charity", "partner"
    • default: "supplier"
  • refstring

    Your own reference, unique in the organisation

  • namestringobligatoire
  • legalNamestring
  • taxIdstring
  • emailstring
  • phonestring
  • payoutDetailsPayoutDetailsDto
    • bankNamestring
    • accountHolderstring
    • ribstring

      Tunisian RIB, 20 digits

    • ibanstring
    • bicstring
    • notesstring
  • visibilitystring
    • enum: "net_only", "with_commission", "full"
    • default: "net_only"
  • showBuyerboolean
    • default: false
  • statementPeriodstring
    • enum: "daily", "weekly", "monthly", "on_demand"
    • default: "monthly"
  • groupKeyobject | null

    Payment metadata key to group sales by (for example event)

  • notesstring

Réponses

  • 201

    • idstring (uuid)obligatoire
    • kindstringobligatoire
      • enum: "supplier", "charity", "partner"
    • refstring | nullobligatoire
    • namestringobligatoire
    • legalNamestring | nullobligatoire
    • taxIdstring | nullobligatoire
    • emailstring | nullobligatoire
    • phonestring | nullobligatoire
    • payoutDetailsanyobligatoire

      Account numbers masked unless you can manage beneficiaries

    • visibilitystringobligatoire
      • enum: "net_only", "with_commission", "full"
    • showBuyerbooleanobligatoire
    • statementPeriodstringobligatoire
      • enum: "daily", "weekly", "monthly", "on_demand"
    • groupKeystring | nullobligatoire
    • notesstring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused", "archived"
    • membersCountnumberobligatoire
    • totalsBeneficiaryTotalsDtoobligatoire
      • salesThisPeriodnumberobligatoire

        Minor units (millimes)

      • dueOpennumberobligatoire

        Minor units (millimes)

      • dueIssuednumberobligatoire

        Minor units (millimes)

      • paidnumberobligatoire

        Minor units (millimes)

    • createdAtstringobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/beneficiaries" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "supplier",
  "ref": "ref",
  "name": "name",
  "legalName": "legalName",
  "taxId": "taxId",
  "email": "buyer@example.com",
  "phone": "phone",
  "payoutDetails": {
    "bankName": "bankName",
    "accountHolder": "accountHolder",
    "rib": "rib",
    "iban": "iban",
    "bic": "bic",
    "notes": "notes"
  },
  "visibility": "net_only",
  "showBuyer": false,
  "statementPeriod": "monthly",
  "groupKey": {},
  "notes": "notes"
}'

Exemple : corps de la requête

{
  "kind": "supplier",
  "ref": "ref",
  "name": "name",
  "legalName": "legalName",
  "taxId": "taxId",
  "email": "buyer@example.com",
  "phone": "phone",
  "payoutDetails": {
    "bankName": "bankName",
    "accountHolder": "accountHolder",
    "rib": "rib",
    "iban": "iban",
    "bic": "bic",
    "notes": "notes"
  },
  "visibility": "net_only",
  "showBuyer": false,
  "statementPeriod": "monthly",
  "groupKey": {},
  "notes": "notes"
}

Exemple : 201

{
  "id": "id",
  "kind": "supplier",
  "ref": "ref",
  "name": "name",
  "legalName": "legalName",
  "taxId": "taxId",
  "email": "buyer@example.com",
  "phone": "phone",
  "payoutDetails": {
    "bankName": "bankName",
    "accountHolder": "accountHolder",
    "rib": "rib",
    "iban": "iban",
    "bic": "bic",
    "notes": "notes"
  },
  "visibility": "net_only",
  "showBuyer": true,
  "statementPeriod": "daily",
  "groupKey": "groupKey",
  "notes": "notes",
  "status": "active",
  "membersCount": 1,
  "totals": {
    "salesThisPeriod": 1,
    "dueOpen": 1,
    "dueIssued": 1,
    "paid": 1
  },
  "createdAt": "createdAt"
}

One beneficiary

GET/organisations/{id}/beneficiaries/{beneficiaryId}Clé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire
  • beneficiaryIdstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • kindstringobligatoire
      • enum: "supplier", "charity", "partner"
    • refstring | nullobligatoire
    • namestringobligatoire
    • legalNamestring | nullobligatoire
    • taxIdstring | nullobligatoire
    • emailstring | nullobligatoire
    • phonestring | nullobligatoire
    • payoutDetailsanyobligatoire

      Account numbers masked unless you can manage beneficiaries

    • visibilitystringobligatoire
      • enum: "net_only", "with_commission", "full"
    • showBuyerbooleanobligatoire
    • statementPeriodstringobligatoire
      • enum: "daily", "weekly", "monthly", "on_demand"
    • groupKeystring | nullobligatoire
    • notesstring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused", "archived"
    • membersCountnumberobligatoire
    • totalsBeneficiaryTotalsDtoobligatoire
      • salesThisPeriodnumberobligatoire

        Minor units (millimes)

      • dueOpennumberobligatoire

        Minor units (millimes)

      • dueIssuednumberobligatoire

        Minor units (millimes)

      • paidnumberobligatoire

        Minor units (millimes)

    • createdAtstringobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/beneficiaries/beneficiaryId" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

{
  "id": "id",
  "kind": "supplier",
  "ref": "ref",
  "name": "name",
  "legalName": "legalName",
  "taxId": "taxId",
  "email": "buyer@example.com",
  "phone": "phone",
  "payoutDetails": {
    "bankName": "bankName",
    "accountHolder": "accountHolder",
    "rib": "rib",
    "iban": "iban",
    "bic": "bic",
    "notes": "notes"
  },
  "visibility": "net_only",
  "showBuyer": true,
  "statementPeriod": "daily",
  "groupKey": "groupKey",
  "notes": "notes",
  "status": "active",
  "membersCount": 1,
  "totals": {
    "salesThisPeriod": 1,
    "dueOpen": 1,
    "dueIssued": 1,
    "paid": 1
  },
  "createdAt": "createdAt"
}

Change a beneficiary (archive with status archived)

PATCH/organisations/{id}/beneficiaries/{beneficiaryId}Clé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire
  • beneficiaryIdstringpathobligatoire

Corps de la requête application/json

  • kindstring
    • enum: "supplier", "charity", "partner"
    • default: "supplier"
  • refstring

    Your own reference, unique in the organisation

  • namestring
  • legalNamestring
  • taxIdstring
  • emailstring
  • phonestring
  • payoutDetailsPayoutDetailsDto
    • bankNamestring
    • accountHolderstring
    • ribstring

      Tunisian RIB, 20 digits

    • ibanstring
    • bicstring
    • notesstring
  • visibilitystring
    • enum: "net_only", "with_commission", "full"
    • default: "net_only"
  • showBuyerboolean
    • default: false
  • statementPeriodstring
    • enum: "daily", "weekly", "monthly", "on_demand"
    • default: "monthly"
  • groupKeyobject | null

    Payment metadata key to group sales by (for example event)

  • notesstring
  • statusstring
    • enum: "active", "paused", "archived"

Réponses

  • 200

    • idstring (uuid)obligatoire
    • kindstringobligatoire
      • enum: "supplier", "charity", "partner"
    • refstring | nullobligatoire
    • namestringobligatoire
    • legalNamestring | nullobligatoire
    • taxIdstring | nullobligatoire
    • emailstring | nullobligatoire
    • phonestring | nullobligatoire
    • payoutDetailsanyobligatoire

      Account numbers masked unless you can manage beneficiaries

    • visibilitystringobligatoire
      • enum: "net_only", "with_commission", "full"
    • showBuyerbooleanobligatoire
    • statementPeriodstringobligatoire
      • enum: "daily", "weekly", "monthly", "on_demand"
    • groupKeystring | nullobligatoire
    • notesstring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused", "archived"
    • membersCountnumberobligatoire
    • totalsBeneficiaryTotalsDtoobligatoire
      • salesThisPeriodnumberobligatoire

        Minor units (millimes)

      • dueOpennumberobligatoire

        Minor units (millimes)

      • dueIssuednumberobligatoire

        Minor units (millimes)

      • paidnumberobligatoire

        Minor units (millimes)

    • createdAtstringobligatoire

Exemples de code

curl -X PATCH "$KONNECT_API_URL/organisations/id/beneficiaries/beneficiaryId" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "supplier",
  "ref": "ref",
  "name": "name",
  "legalName": "legalName",
  "taxId": "taxId",
  "email": "buyer@example.com",
  "phone": "phone",
  "payoutDetails": {
    "bankName": "bankName",
    "accountHolder": "accountHolder",
    "rib": "rib",
    "iban": "iban",
    "bic": "bic",
    "notes": "notes"
  },
  "visibility": "net_only",
  "showBuyer": false,
  "statementPeriod": "monthly",
  "groupKey": {},
  "notes": "notes",
  "status": "active"
}'

Exemple : corps de la requête

{
  "kind": "supplier",
  "ref": "ref",
  "name": "name",
  "legalName": "legalName",
  "taxId": "taxId",
  "email": "buyer@example.com",
  "phone": "phone",
  "payoutDetails": {
    "bankName": "bankName",
    "accountHolder": "accountHolder",
    "rib": "rib",
    "iban": "iban",
    "bic": "bic",
    "notes": "notes"
  },
  "visibility": "net_only",
  "showBuyer": false,
  "statementPeriod": "monthly",
  "groupKey": {},
  "notes": "notes",
  "status": "active"
}

Exemple : 200

{
  "id": "id",
  "kind": "supplier",
  "ref": "ref",
  "name": "name",
  "legalName": "legalName",
  "taxId": "taxId",
  "email": "buyer@example.com",
  "phone": "phone",
  "payoutDetails": {
    "bankName": "bankName",
    "accountHolder": "accountHolder",
    "rib": "rib",
    "iban": "iban",
    "bic": "bic",
    "notes": "notes"
  },
  "visibility": "net_only",
  "showBuyer": true,
  "statementPeriod": "daily",
  "groupKey": "groupKey",
  "notes": "notes",
  "status": "active",
  "membersCount": 1,
  "totals": {
    "salesThisPeriod": 1,
    "dueOpen": 1,
    "dueIssued": 1,
    "paid": 1
  },
  "createdAt": "createdAt"
}

Who can open this beneficiary portal

GET/organisations/{id}/beneficiaries/{beneficiaryId}/membersClé API

Paramètres

  • idstringpathobligatoire
  • beneficiaryIdstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • emailstringobligatoire
    • namestring | nullobligatoire
    • invitedAtstringobligatoire
    • lastSeenAtstring | nullobligatoire
    • revokedAtstring | nullobligatoire

Exemples de code

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

Exemple : 200

[
  {
    "id": "id",
    "email": "buyer@example.com",
    "name": "name",
    "invitedAt": "invitedAt",
    "lastSeenAt": "lastSeenAt",
    "revokedAt": "revokedAt"
  }
]

Give portal access to an e-mail address (the person signs in with it, verified)

POST/organisations/{id}/beneficiaries/{beneficiaryId}/membersClé API

Paramètres

  • idstringpathobligatoire
  • beneficiaryIdstringpathobligatoire

Corps de la requête application/json

  • emailstringobligatoire
  • namestring

Réponses

  • 201

    • idstring (uuid)obligatoire
    • emailstringobligatoire
    • namestring | nullobligatoire
    • invitedAtstringobligatoire
    • lastSeenAtstring | nullobligatoire
    • revokedAtstring | nullobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/beneficiaries/beneficiaryId/members" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "buyer@example.com",
  "name": "name"
}'

Exemple : corps de la requête

{
  "email": "buyer@example.com",
  "name": "name"
}

Exemple : 201

{
  "id": "id",
  "email": "buyer@example.com",
  "name": "name",
  "invitedAt": "invitedAt",
  "lastSeenAt": "lastSeenAt",
  "revokedAt": "revokedAt"
}

Revoke a portal access

DELETE/organisations/{id}/beneficiaries/{beneficiaryId}/members/{memberId}Clé API

Paramètres

  • idstringpathobligatoire
  • beneficiaryIdstringpathobligatoire
  • memberIdstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • emailstringobligatoire
    • namestring | nullobligatoire
    • invitedAtstringobligatoire
    • lastSeenAtstring | nullobligatoire
    • revokedAtstring | nullobligatoire

Exemples de code

curl -X DELETE "$KONNECT_API_URL/organisations/id/beneficiaries/beneficiaryId/members/memberId" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

{
  "id": "id",
  "email": "buyer@example.com",
  "name": "name",
  "invitedAt": "invitedAt",
  "lastSeenAt": "lastSeenAt",
  "revokedAt": "revokedAt"
}

Commission rules (the merchant keeps a commission on each beneficiary sale)

GET/organisations/{id}/commission-rulesClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire
  • beneficiaryIdstringqueryobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • paymentAccountIdstring (uuid) | nullobligatoire
    • providerCodestring | nullobligatoire
    • regionstringobligatoire
      • enum: "any", "national", "international"
    • namestring | nullobligatoire
    • rateMillinumberobligatoire

      Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • fixednumberobligatoire

      Minor units (millimes)

    • minnumber | nullobligatoire
    • maxnumber | nullobligatoire
    • basestringobligatoire
      • enum: "gross", "net_of_konnect_fee", "net_of_all_fees"
    • konnectFeeBorneBystringobligatoire
      • enum: "merchant", "beneficiary", "prorata"
    • providerFeeBorneBystringobligatoire
      • enum: "merchant", "beneficiary", "prorata"
    • tiersCommissionTierDto[]obligatoire
      • fromVolumenumberobligatoire

        Minor units (millimes): monthly volume of the beneficiary from which the tier applies

      • rateMillinumberobligatoire

        Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

      • fixednumber

        Minor units (millimes)

        • default: 0
    • validFromstring | nullobligatoire
    • validTostring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused"
    • createdAtstringobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/commission-rules?beneficiaryId=beneficiaryId" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "paymentAccountId": "paymentAccountId",
    "providerCode": "providerCode",
    "region": "any",
    "name": "name",
    "rateMilli": 1,
    "fixed": 1,
    "min": 1,
    "max": 1,
    "base": "gross",
    "konnectFeeBorneBy": "merchant",
    "providerFeeBorneBy": "merchant",
    "tiers": [
      {
        "fromVolume": 1,
        "rateMilli": 1,
        "fixed": 0
      }
    ],
    "validFrom": "validFrom",
    "validTo": "validTo",
    "status": "active",
    "createdAt": "createdAt"
  }
]

Add a commission rule

POST/organisations/{id}/commission-rulesClé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • beneficiaryIdobject (uuid) | null

    null: the default for every beneficiary

  • paymentAccountIdobject (uuid) | null
  • providerCodeobject | null
  • regionstring
    • enum: "any", "national", "international"
    • default: "any"
  • namestring
  • rateMillinumber

    Kept by the merchant. Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • default: 0
  • fixednumber

    Kept by the merchant per sale. Minor units (millimes)

    • default: 0
  • minobject | null

    Minor units (millimes)

  • maxobject | null

    Minor units (millimes)

  • basestring
    • enum: "gross", "net_of_konnect_fee", "net_of_all_fees"
    • default: "gross"
  • konnectFeeBorneBystring
    • enum: "merchant", "beneficiary", "prorata"
    • default: "merchant"
  • providerFeeBorneBystring
    • enum: "merchant", "beneficiary", "prorata"
    • default: "merchant"
  • tiersCommissionTierDto[]
    • fromVolumenumberobligatoire

      Minor units (millimes): monthly volume of the beneficiary from which the tier applies

    • rateMillinumberobligatoire

      Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • fixednumber

      Minor units (millimes)

      • default: 0
  • validFromobject | null
  • validToobject | null
  • statusstring
    • enum: "active", "paused"

Réponses

  • 201

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • paymentAccountIdstring (uuid) | nullobligatoire
    • providerCodestring | nullobligatoire
    • regionstringobligatoire
      • enum: "any", "national", "international"
    • namestring | nullobligatoire
    • rateMillinumberobligatoire

      Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • fixednumberobligatoire

      Minor units (millimes)

    • minnumber | nullobligatoire
    • maxnumber | nullobligatoire
    • basestringobligatoire
      • enum: "gross", "net_of_konnect_fee", "net_of_all_fees"
    • konnectFeeBorneBystringobligatoire
      • enum: "merchant", "beneficiary", "prorata"
    • providerFeeBorneBystringobligatoire
      • enum: "merchant", "beneficiary", "prorata"
    • tiersCommissionTierDto[]obligatoire
      • fromVolumenumberobligatoire

        Minor units (millimes): monthly volume of the beneficiary from which the tier applies

      • rateMillinumberobligatoire

        Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

      • fixednumber

        Minor units (millimes)

        • default: 0
    • validFromstring | nullobligatoire
    • validTostring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused"
    • createdAtstringobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/commission-rules" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beneficiaryId": {},
  "paymentAccountId": {},
  "providerCode": {},
  "region": "any",
  "name": "name",
  "rateMilli": 0,
  "fixed": 0,
  "min": {},
  "max": {},
  "base": "gross",
  "konnectFeeBorneBy": "merchant",
  "providerFeeBorneBy": "merchant",
  "tiers": [
    {
      "fromVolume": 1,
      "rateMilli": 1,
      "fixed": 0
    }
  ],
  "validFrom": {},
  "validTo": {},
  "status": "active"
}'

Exemple : corps de la requête

{
  "beneficiaryId": {},
  "paymentAccountId": {},
  "providerCode": {},
  "region": "any",
  "name": "name",
  "rateMilli": 0,
  "fixed": 0,
  "min": {},
  "max": {},
  "base": "gross",
  "konnectFeeBorneBy": "merchant",
  "providerFeeBorneBy": "merchant",
  "tiers": [
    {
      "fromVolume": 1,
      "rateMilli": 1,
      "fixed": 0
    }
  ],
  "validFrom": {},
  "validTo": {},
  "status": "active"
}

Exemple : 201

{
  "id": "id",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "paymentAccountId": "paymentAccountId",
  "providerCode": "providerCode",
  "region": "any",
  "name": "name",
  "rateMilli": 1,
  "fixed": 1,
  "min": 1,
  "max": 1,
  "base": "gross",
  "konnectFeeBorneBy": "merchant",
  "providerFeeBorneBy": "merchant",
  "tiers": [
    {
      "fromVolume": 1,
      "rateMilli": 1,
      "fixed": 0
    }
  ],
  "validFrom": "validFrom",
  "validTo": "validTo",
  "status": "active",
  "createdAt": "createdAt"
}

Change a commission rule (past lines keep the rule they were computed with)

PATCH/organisations/{id}/commission-rules/{ruleId}Clé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire
  • ruleIdstringpathobligatoire

Corps de la requête application/json

  • beneficiaryIdobject (uuid) | null

    null: the default for every beneficiary

  • paymentAccountIdobject (uuid) | null
  • providerCodeobject | null
  • regionstring
    • enum: "any", "national", "international"
    • default: "any"
  • namestring
  • rateMillinumber

    Kept by the merchant. Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • default: 0
  • fixednumber

    Kept by the merchant per sale. Minor units (millimes)

    • default: 0
  • minobject | null

    Minor units (millimes)

  • maxobject | null

    Minor units (millimes)

  • basestring
    • enum: "gross", "net_of_konnect_fee", "net_of_all_fees"
    • default: "gross"
  • konnectFeeBorneBystring
    • enum: "merchant", "beneficiary", "prorata"
    • default: "merchant"
  • providerFeeBorneBystring
    • enum: "merchant", "beneficiary", "prorata"
    • default: "merchant"
  • tiersCommissionTierDto[]
    • fromVolumenumberobligatoire

      Minor units (millimes): monthly volume of the beneficiary from which the tier applies

    • rateMillinumberobligatoire

      Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • fixednumber

      Minor units (millimes)

      • default: 0
  • validFromobject | null
  • validToobject | null
  • statusstring
    • enum: "active", "paused"

Réponses

  • 200

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • paymentAccountIdstring (uuid) | nullobligatoire
    • providerCodestring | nullobligatoire
    • regionstringobligatoire
      • enum: "any", "national", "international"
    • namestring | nullobligatoire
    • rateMillinumberobligatoire

      Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • fixednumberobligatoire

      Minor units (millimes)

    • minnumber | nullobligatoire
    • maxnumber | nullobligatoire
    • basestringobligatoire
      • enum: "gross", "net_of_konnect_fee", "net_of_all_fees"
    • konnectFeeBorneBystringobligatoire
      • enum: "merchant", "beneficiary", "prorata"
    • providerFeeBorneBystringobligatoire
      • enum: "merchant", "beneficiary", "prorata"
    • tiersCommissionTierDto[]obligatoire
      • fromVolumenumberobligatoire

        Minor units (millimes): monthly volume of the beneficiary from which the tier applies

      • rateMillinumberobligatoire

        Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

      • fixednumber

        Minor units (millimes)

        • default: 0
    • validFromstring | nullobligatoire
    • validTostring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused"
    • createdAtstringobligatoire

Exemples de code

curl -X PATCH "$KONNECT_API_URL/organisations/id/commission-rules/ruleId" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beneficiaryId": {},
  "paymentAccountId": {},
  "providerCode": {},
  "region": "any",
  "name": "name",
  "rateMilli": 0,
  "fixed": 0,
  "min": {},
  "max": {},
  "base": "gross",
  "konnectFeeBorneBy": "merchant",
  "providerFeeBorneBy": "merchant",
  "tiers": [
    {
      "fromVolume": 1,
      "rateMilli": 1,
      "fixed": 0
    }
  ],
  "validFrom": {},
  "validTo": {},
  "status": "active"
}'

Exemple : corps de la requête

{
  "beneficiaryId": {},
  "paymentAccountId": {},
  "providerCode": {},
  "region": "any",
  "name": "name",
  "rateMilli": 0,
  "fixed": 0,
  "min": {},
  "max": {},
  "base": "gross",
  "konnectFeeBorneBy": "merchant",
  "providerFeeBorneBy": "merchant",
  "tiers": [
    {
      "fromVolume": 1,
      "rateMilli": 1,
      "fixed": 0
    }
  ],
  "validFrom": {},
  "validTo": {},
  "status": "active"
}

Exemple : 200

{
  "id": "id",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "paymentAccountId": "paymentAccountId",
  "providerCode": "providerCode",
  "region": "any",
  "name": "name",
  "rateMilli": 1,
  "fixed": 1,
  "min": 1,
  "max": 1,
  "base": "gross",
  "konnectFeeBorneBy": "merchant",
  "providerFeeBorneBy": "merchant",
  "tiers": [
    {
      "fromVolume": 1,
      "rateMilli": 1,
      "fixed": 0
    }
  ],
  "validFrom": "validFrom",
  "validTo": "validTo",
  "status": "active",
  "createdAt": "createdAt"
}

Delete a rule that never produced a line (otherwise pause it)

DELETE/organisations/{id}/commission-rules/{ruleId}Clé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire
  • ruleIdstringpathobligatoire

Réponses

  • 204

Exemples de code

curl -X DELETE "$KONNECT_API_URL/organisations/id/commission-rules/ruleId" \
  -H "x-api-key: $KONNECT_API_KEY"

Contribution rules (a share of every sale owed to a charity or partner)

GET/organisations/{id}/contribution-rulesClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid)obligatoire
    • beneficiaryNamestringobligatoire
    • paymentAccountIdstring (uuid) | nullobligatoire
    • namestring | nullobligatoire
    • rateMillinumberobligatoire
    • fixednumberobligatoire
    • minnumber | nullobligatoire
    • maxnumber | nullobligatoire
    • basestringobligatoire
      • enum: "gross", "net_of_konnect_fee"
    • validFromstring | nullobligatoire
    • validTostring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused"
    • createdAtstringobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/contribution-rules" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "paymentAccountId": "paymentAccountId",
    "name": "name",
    "rateMilli": 1,
    "fixed": 1,
    "min": 1,
    "max": 1,
    "base": "gross",
    "validFrom": "validFrom",
    "validTo": "validTo",
    "status": "active",
    "createdAt": "createdAt"
  }
]

Add a contribution rule

POST/organisations/{id}/contribution-rulesClé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • beneficiaryIdstring (uuid)obligatoire
  • paymentAccountIdobject (uuid) | null
  • namestring
  • rateMillinumber

    Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • default: 0
  • fixednumber

    Minor units (millimes)

    • default: 0
  • minobject | null
  • maxobject | null
  • basestring
    • enum: "gross", "net_of_konnect_fee"
    • default: "gross"
  • validFromobject | null
  • validToobject | null
  • statusstring
    • enum: "active", "paused"

Réponses

  • 201

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid)obligatoire
    • beneficiaryNamestringobligatoire
    • paymentAccountIdstring (uuid) | nullobligatoire
    • namestring | nullobligatoire
    • rateMillinumberobligatoire
    • fixednumberobligatoire
    • minnumber | nullobligatoire
    • maxnumber | nullobligatoire
    • basestringobligatoire
      • enum: "gross", "net_of_konnect_fee"
    • validFromstring | nullobligatoire
    • validTostring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused"
    • createdAtstringobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/contribution-rules" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beneficiaryId": "beneficiaryId",
  "paymentAccountId": {},
  "name": "name",
  "rateMilli": 0,
  "fixed": 0,
  "min": {},
  "max": {},
  "base": "gross",
  "validFrom": {},
  "validTo": {},
  "status": "active"
}'

Exemple : corps de la requête

{
  "beneficiaryId": "beneficiaryId",
  "paymentAccountId": {},
  "name": "name",
  "rateMilli": 0,
  "fixed": 0,
  "min": {},
  "max": {},
  "base": "gross",
  "validFrom": {},
  "validTo": {},
  "status": "active"
}

Exemple : 201

{
  "id": "id",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "paymentAccountId": "paymentAccountId",
  "name": "name",
  "rateMilli": 1,
  "fixed": 1,
  "min": 1,
  "max": 1,
  "base": "gross",
  "validFrom": "validFrom",
  "validTo": "validTo",
  "status": "active",
  "createdAt": "createdAt"
}

Change a contribution rule

PATCH/organisations/{id}/contribution-rules/{ruleId}Clé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire
  • ruleIdstringpathobligatoire

Corps de la requête application/json

  • beneficiaryIdstring (uuid)
  • paymentAccountIdobject (uuid) | null
  • namestring
  • rateMillinumber

    Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %

    • default: 0
  • fixednumber

    Minor units (millimes)

    • default: 0
  • minobject | null
  • maxobject | null
  • basestring
    • enum: "gross", "net_of_konnect_fee"
    • default: "gross"
  • validFromobject | null
  • validToobject | null
  • statusstring
    • enum: "active", "paused"

Réponses

  • 200

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid)obligatoire
    • beneficiaryNamestringobligatoire
    • paymentAccountIdstring (uuid) | nullobligatoire
    • namestring | nullobligatoire
    • rateMillinumberobligatoire
    • fixednumberobligatoire
    • minnumber | nullobligatoire
    • maxnumber | nullobligatoire
    • basestringobligatoire
      • enum: "gross", "net_of_konnect_fee"
    • validFromstring | nullobligatoire
    • validTostring | nullobligatoire
    • statusstringobligatoire
      • enum: "active", "paused"
    • createdAtstringobligatoire

Exemples de code

curl -X PATCH "$KONNECT_API_URL/organisations/id/contribution-rules/ruleId" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beneficiaryId": "beneficiaryId",
  "paymentAccountId": {},
  "name": "name",
  "rateMilli": 0,
  "fixed": 0,
  "min": {},
  "max": {},
  "base": "gross",
  "validFrom": {},
  "validTo": {},
  "status": "active"
}'

Exemple : corps de la requête

{
  "beneficiaryId": "beneficiaryId",
  "paymentAccountId": {},
  "name": "name",
  "rateMilli": 0,
  "fixed": 0,
  "min": {},
  "max": {},
  "base": "gross",
  "validFrom": {},
  "validTo": {},
  "status": "active"
}

Exemple : 200

{
  "id": "id",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "paymentAccountId": "paymentAccountId",
  "name": "name",
  "rateMilli": 1,
  "fixed": 1,
  "min": 1,
  "max": 1,
  "base": "gross",
  "validFrom": "validFrom",
  "validTo": "validTo",
  "status": "active",
  "createdAt": "createdAt"
}

Fee mode (included or added to the buyer) and default card region

GET/organisations/{id}/commission-settingsClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • feeModestringobligatoire
      • enum: "included", "added"
    • defaultRegionstringobligatoire
      • enum: "national", "international"
    • konnectPeriodstringobligatoire
      • enum: "daily", "weekly", "monthly", "on_demand"

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/commission-settings" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

{
  "feeMode": "included",
  "defaultRegion": "national",
  "konnectPeriod": "daily"
}

Change the fee mode or the default card region

PATCH/organisations/{id}/commission-settingsClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • feeModestring
    • enum: "included", "added"
  • defaultRegionstring
    • enum: "national", "international"

Réponses

  • 200

    • feeModestringobligatoire
      • enum: "included", "added"
    • defaultRegionstringobligatoire
      • enum: "national", "international"
    • konnectPeriodstringobligatoire
      • enum: "daily", "weekly", "monthly", "on_demand"

Exemples de code

curl -X PATCH "$KONNECT_API_URL/organisations/id/commission-settings" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "feeMode": "included",
  "defaultRegion": "national"
}'

Exemple : corps de la requête

{
  "feeMode": "included",
  "defaultRegion": "national"
}

Exemple : 200

{
  "feeMode": "included",
  "defaultRegion": "national",
  "konnectPeriod": "daily"
}

Default beneficiary and fee mode of each payment account

GET/organisations/{id}/commission-settings/accountsClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid) | nullobligatoire
    • feeModestring | nullobligatoire
      • enum: "included", "added"
    • collectedBystringobligatoire

      beneficiary: the partner collects on its own affiliation and owes the merchant its share

      • enum: "merchant", "beneficiary"

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/commission-settings/accounts" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "beneficiaryId": "beneficiaryId",
    "feeMode": "included",
    "collectedBy": "merchant"
  }
]

One payment account per supplier: its sales belong to this beneficiary

PUT/organisations/{id}/commission-settings/accounts/{accountId}Clé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire
  • accountIdstringpathobligatoire

Corps de la requête application/json

  • beneficiaryIdobject (uuid) | null
  • feeModestring | null
    • enum: "included", "added"
  • collectedBystring
    • enum: "merchant", "beneficiary"

Réponses

  • 200

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid) | nullobligatoire
    • feeModestring | nullobligatoire
      • enum: "included", "added"
    • collectedBystringobligatoire

      beneficiary: the partner collects on its own affiliation and owes the merchant its share

      • enum: "merchant", "beneficiary"

Exemples de code

curl -X PUT "$KONNECT_API_URL/organisations/id/commission-settings/accounts/accountId" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beneficiaryId": {},
  "feeMode": "included",
  "collectedBy": "merchant"
}'

Exemple : corps de la requête

{
  "beneficiaryId": {},
  "feeMode": "included",
  "collectedBy": "merchant"
}

Exemple : 200

{
  "id": "id",
  "beneficiaryId": "beneficiaryId",
  "feeMode": "included",
  "collectedBy": "merchant"
}

Beneficiary and fee mode of payment links

GET/organisations/{id}/commission-settings/linksClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid) | nullobligatoire
    • feeModestring | nullobligatoire
      • enum: "included", "added"
    • collectedBystringobligatoire

      beneficiary: the partner collects on its own affiliation and owes the merchant its share

      • enum: "merchant", "beneficiary"

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/commission-settings/links" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "beneficiaryId": "beneficiaryId",
    "feeMode": "included",
    "collectedBy": "merchant"
  }
]

The sales of this payment link belong to this beneficiary

PUT/organisations/{id}/commission-settings/links/{linkId}Clé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire
  • linkIdstringpathobligatoire

Corps de la requête application/json

  • beneficiaryIdobject (uuid) | null
  • feeModestring | null
    • enum: "included", "added"

Réponses

  • 200

    • idstring (uuid)obligatoire
    • beneficiaryIdstring (uuid) | nullobligatoire
    • feeModestring | nullobligatoire
      • enum: "included", "added"

Exemples de code

curl -X PUT "$KONNECT_API_URL/organisations/id/commission-settings/links/linkId" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beneficiaryId": {},
  "feeMode": "included"
}'

Exemple : corps de la requête

{
  "beneficiaryId": {},
  "feeMode": "included"
}

Exemple : 200

{
  "id": "id",
  "beneficiaryId": "beneficiaryId",
  "feeMode": "included"
}

Konnect's fee schedule for this organisation (read only, set by Konnect)

GET/organisations/{id}/fee-scheduleClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • custombooleanobligatoire

      true when the organisation has its own lines; false: platform defaults

    • linesFeeScheduleLineDto[]obligatoire
      • providerCodestring | nullobligatoire
      • regionstringobligatoire
        • enum: "any", "national", "international"
      • rateMillinumberobligatoire
      • fixednumberobligatoire
      • minnumber | nullobligatoire
      • maxnumber | nullobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/fee-schedule" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

{
  "custom": true,
  "lines": [
    {
      "providerCode": "providerCode",
      "region": "any",
      "rateMilli": 1,
      "fixed": 1,
      "min": 1,
      "max": 1
    }
  ]
}

Who this payment belongs to

GET/organisations/{id}/payments/{paymentId}/allocationsClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire
  • paymentIdstringpathobligatoire

Réponses

  • 200

    • beneficiaryIdstring (uuid)obligatoire
    • beneficiaryNamestringobligatoire
    • amountnumberobligatoire
    • labelstring | nullobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/payments/665f1c2e8b3a4d0012ab34cd/allocations" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "amount": 1,
    "label": "label"
  }
]

Split a pending payment between beneficiaries; the rest is yours

PUT/organisations/{id}/payments/{paymentId}/allocationsClé APIPortée marketplace:write

Paramètres

  • idstringpathobligatoire
  • paymentIdstringpathobligatoire

Corps de la requête application/json

  • allocationsAllocationInputDto[]obligatoire
    • beneficiaryIdstring (uuid)
    • beneficiaryRefstring

      Your reference of the beneficiary, instead of its id

    • amountnumberobligatoire

      Minor units (millimes)

    • labelstring

Réponses

  • 200

    • beneficiaryIdstring (uuid)obligatoire
    • beneficiaryNamestringobligatoire
    • amountnumberobligatoire
    • labelstring | nullobligatoire

Exemples de code

curl -X PUT "$KONNECT_API_URL/organisations/id/payments/665f1c2e8b3a4d0012ab34cd/allocations" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "allocations": [
    {
      "beneficiaryId": "beneficiaryId",
      "beneficiaryRef": "beneficiaryRef",
      "amount": 1,
      "label": "label"
    }
  ]
}'

Exemple : corps de la requête

{
  "allocations": [
    {
      "beneficiaryId": "beneficiaryId",
      "beneficiaryRef": "beneficiaryRef",
      "amount": 1,
      "label": "label"
    }
  ]
}

Exemple : 200

[
  {
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "amount": 1,
    "label": "label"
  }
]

Ledger lines of a payment

GET/organisations/{id}/payments/{paymentId}/ledgerClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire
  • paymentIdstringpathobligatoire

Réponses

  • 200

    • idstring (uuid)obligatoire
    • kindstringobligatoire
      • enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
    • beneficiaryIdstring (uuid) | nullobligatoire

      null: Konnect

    • beneficiaryNamestring | nullobligatoire
    • amountnumberobligatoire

      Minor units (millimes)

    • saleAmountnumber | nullobligatoire
    • paymentIdstring (uuid) | nullobligatoire
    • paymentReferencestring | nullobligatoire
    • ruleIdstring (uuid) | nullobligatoire
    • periodKeystringobligatoire
    • statementIdstring (uuid) | nullobligatoire
    • reasonstring | nullobligatoire
    • groupstring | nullobligatoire
    • detailobjectobligatoire
    • occurredAtstringobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/payments/665f1c2e8b3a4d0012ab34cd/ledger" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "kind": "beneficiary_due",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "amount": 1,
    "saleAmount": 1,
    "paymentId": "665f1c2e8b3a4d0012ab34cd",
    "paymentReference": "paymentReference",
    "ruleId": "ruleId",
    "periodKey": "periodKey",
    "statementId": "statementId",
    "reason": "reason",
    "group": "group",
    "detail": {},
    "occurredAt": "occurredAt"
  }
]

Reverse the shares of a refunded payment (whole or partial)

POST/organisations/{id}/payments/{paymentId}/reversalClé API

Paramètres

  • idstringpathobligatoire
  • paymentIdstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire
  • amountnumber

    Partial refund amount; default the whole payment. Minor units (millimes)

Réponses

  • 201

    • idstring (uuid)obligatoire
    • kindstringobligatoire
      • enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
    • beneficiaryIdstring (uuid) | nullobligatoire

      null: Konnect

    • beneficiaryNamestring | nullobligatoire
    • amountnumberobligatoire

      Minor units (millimes)

    • saleAmountnumber | nullobligatoire
    • paymentIdstring (uuid) | nullobligatoire
    • paymentReferencestring | nullobligatoire
    • ruleIdstring (uuid) | nullobligatoire
    • periodKeystringobligatoire
    • statementIdstring (uuid) | nullobligatoire
    • reasonstring | nullobligatoire
    • groupstring | nullobligatoire
    • detailobjectobligatoire
    • occurredAtstringobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/payments/665f1c2e8b3a4d0012ab34cd/reversal" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "reason",
  "amount": 1
}'

Exemple : corps de la requête

{
  "reason": "reason",
  "amount": 1
}

Exemple : 201

[
  {
    "id": "id",
    "kind": "beneficiary_due",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "amount": 1,
    "saleAmount": 1,
    "paymentId": "665f1c2e8b3a4d0012ab34cd",
    "paymentReference": "paymentReference",
    "ruleId": "ruleId",
    "periodKey": "periodKey",
    "statementId": "statementId",
    "reason": "reason",
    "group": "group",
    "detail": {},
    "occurredAt": "occurredAt"
  }
]

Ledger lines, newest first

GET/organisations/{id}/ledgerClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire
  • beneficiaryIdstring (uuid)query
  • scopestringquery

    konnect: only the Konnect fee lines

  • periodKeystringquery
  • statementIdstring (uuid)query
  • limitnumberquery
    • default: 100
  • beforenumberquery

Réponses

  • 200

    • idstring (uuid)obligatoire
    • kindstringobligatoire
      • enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
    • beneficiaryIdstring (uuid) | nullobligatoire

      null: Konnect

    • beneficiaryNamestring | nullobligatoire
    • amountnumberobligatoire

      Minor units (millimes)

    • saleAmountnumber | nullobligatoire
    • paymentIdstring (uuid) | nullobligatoire
    • paymentReferencestring | nullobligatoire
    • ruleIdstring (uuid) | nullobligatoire
    • periodKeystringobligatoire
    • statementIdstring (uuid) | nullobligatoire
    • reasonstring | nullobligatoire
    • groupstring | nullobligatoire
    • detailobjectobligatoire
    • occurredAtstringobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/ledger" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "kind": "beneficiary_due",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "amount": 1,
    "saleAmount": 1,
    "paymentId": "665f1c2e8b3a4d0012ab34cd",
    "paymentReference": "paymentReference",
    "ruleId": "ruleId",
    "periodKey": "periodKey",
    "statementId": "statementId",
    "reason": "reason",
    "group": "group",
    "detail": {},
    "occurredAt": "occurredAt"
  }
]

A manual line owed to (positive) or by (negative) a beneficiary

POST/organisations/{id}/ledger/adjustmentsClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • beneficiaryIdstring (uuid)obligatoire
  • amountnumberobligatoire

    Signed: positive adds to what the merchant owes. Minor units (millimes)

  • reasonstringobligatoire
  • paymentIdstring (uuid)

    A payment the adjustment relates to (refund, dispute)

Réponses

  • 201

    • idstring (uuid)obligatoire
    • kindstringobligatoire
      • enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
    • beneficiaryIdstring (uuid) | nullobligatoire

      null: Konnect

    • beneficiaryNamestring | nullobligatoire
    • amountnumberobligatoire

      Minor units (millimes)

    • saleAmountnumber | nullobligatoire
    • paymentIdstring (uuid) | nullobligatoire
    • paymentReferencestring | nullobligatoire
    • ruleIdstring (uuid) | nullobligatoire
    • periodKeystringobligatoire
    • statementIdstring (uuid) | nullobligatoire
    • reasonstring | nullobligatoire
    • groupstring | nullobligatoire
    • detailobjectobligatoire
    • occurredAtstringobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/ledger/adjustments" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beneficiaryId": "beneficiaryId",
  "amount": 1,
  "reason": "reason",
  "paymentId": "665f1c2e8b3a4d0012ab34cd"
}'

Exemple : corps de la requête

{
  "beneficiaryId": "beneficiaryId",
  "amount": 1,
  "reason": "reason",
  "paymentId": "665f1c2e8b3a4d0012ab34cd"
}

Exemple : 201

{
  "id": "id",
  "kind": "beneficiary_due",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "amount": 1,
  "saleAmount": 1,
  "paymentId": "665f1c2e8b3a4d0012ab34cd",
  "paymentReference": "paymentReference",
  "ruleId": "ruleId",
  "periodKey": "periodKey",
  "statementId": "statementId",
  "reason": "reason",
  "group": "group",
  "detail": {},
  "occurredAt": "occurredAt"
}

What a sale would produce: buyer total, Konnect fee, commission, dues

POST/organisations/{id}/commissions/simulateClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • amountnumberobligatoire

    Price of the sale. Minor units (millimes)

  • providerCodeobject | null
  • regionstring
    • enum: "national", "international"
  • feeModestring
    • enum: "included", "added"
  • paymentAccountIdstring (uuid)
  • providerFeeobject | null

    Minor units (millimes)

  • allocationsAllocationInputDto[]

    Default: the whole price to the beneficiary given

    • beneficiaryIdstring (uuid)
    • beneficiaryRefstring

      Your reference of the beneficiary, instead of its id

    • amountnumberobligatoire

      Minor units (millimes)

    • labelstring
  • termsany

    Override: simulate these terms instead of the stored rules

  • volumeBeforenumber

    Minor units (millimes)

    • default: 0

Réponses

  • 200

    • chargednumberobligatoire
    • pricenumberobligatoire
    • konnectFeenumberobligatoire
    • merchantKeepsnumberobligatoire
    • feeModestringobligatoire
      • enum: "included", "added"
    • linesobject[]obligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/commissions/simulate" \
  -H "x-api-key: $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 1,
  "providerCode": {},
  "region": "national",
  "feeMode": "included",
  "paymentAccountId": "paymentAccountId",
  "providerFee": {},
  "allocations": [
    {
      "beneficiaryId": "beneficiaryId",
      "beneficiaryRef": "beneficiaryRef",
      "amount": 1,
      "label": "label"
    }
  ],
  "terms": {
    "beneficiaryId": {},
    "paymentAccountId": {},
    "providerCode": {},
    "region": "any",
    "name": "name",
    "rateMilli": 0,
    "fixed": 0,
    "min": {},
    "max": {},
    "base": "gross",
    "konnectFeeBorneBy": "merchant",
    "providerFeeBorneBy": "merchant",
    "tiers": [
      {
        "fromVolume": 1,
        "rateMilli": 1,
        "fixed": 0
      }
    ],
    "validFrom": {},
    "validTo": {},
    "status": "active"
  },
  "volumeBefore": 0
}'

Exemple : corps de la requête

{
  "amount": 1,
  "providerCode": {},
  "region": "national",
  "feeMode": "included",
  "paymentAccountId": "paymentAccountId",
  "providerFee": {},
  "allocations": [
    {
      "beneficiaryId": "beneficiaryId",
      "beneficiaryRef": "beneficiaryRef",
      "amount": 1,
      "label": "label"
    }
  ],
  "terms": {
    "beneficiaryId": {},
    "paymentAccountId": {},
    "providerCode": {},
    "region": "any",
    "name": "name",
    "rateMilli": 0,
    "fixed": 0,
    "min": {},
    "max": {},
    "base": "gross",
    "konnectFeeBorneBy": "merchant",
    "providerFeeBorneBy": "merchant",
    "tiers": [
      {
        "fromVolume": 1,
        "rateMilli": 1,
        "fixed": 0
      }
    ],
    "validFrom": {},
    "validTo": {},
    "status": "active"
  },
  "volumeBefore": 0
}

Exemple : 200

{
  "charged": 1,
  "price": 1,
  "konnectFee": 1,
  "merchantKeeps": 1,
  "feeMode": "included",
  "lines": [
    {}
  ]
}

Statements: running periods (open), issued, paid, contested

GET/organisations/{id}/statementsClé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire
  • beneficiaryIdstring (uuid)query
  • kindstringquery
    • enum: "beneficiary", "konnect"
  • statusstringquery
    • enum: "open", "issued", "paid", "contested"

Réponses

  • 200

    • idstring (uuid) | nullobligatoire

      null: running period, not issued

    • kindstringobligatoire
      • enum: "beneficiary", "konnect"
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • periodKeystringobligatoire
    • periodStartstringobligatoire
    • periodEndstringobligatoire
    • statusstringobligatoire
      • enum: "open", "issued", "paid", "contested"
    • totalnumberobligatoire

      Minor units (millimes)

    • salesnumberobligatoire

      Minor units (millimes)

    • commissionnumberobligatoire

      Minor units (millimes)

    • linesCountnumberobligatoire
    • issuedAtstring | nullobligatoire
    • paidAtstring | nullobligatoire
    • paidMethodstring | nullobligatoire
    • paidReferencestring | nullobligatoire
    • contestReasonstring | nullobligatoire
    • contestAnswerstring | nullobligatoire
    • groupsStatementGroupDto[]obligatoire
      • groupstring | nullobligatoire
      • countnumberobligatoire
      • salesnumberobligatoire
      • duenumberobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/statements" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

[
  {
    "id": "id",
    "kind": "beneficiary",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "periodKey": "periodKey",
    "periodStart": "periodStart",
    "periodEnd": "periodEnd",
    "status": "open",
    "total": 1,
    "sales": 1,
    "commission": 1,
    "linesCount": 1,
    "issuedAt": "issuedAt",
    "paidAt": "paidAt",
    "paidMethod": "paidMethod",
    "paidReference": "paidReference",
    "contestReason": "contestReason",
    "contestAnswer": "contestAnswer",
    "groups": [
      {
        "group": "group",
        "count": 1,
        "sales": 1,
        "due": 1
      }
    ]
  }
]

Issue the statement of a beneficiary and period now (freezes its total)

POST/organisations/{id}/statementsClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • beneficiaryIdstring (uuid)

    Omit to issue the Konnect statement

  • periodKeystringobligatoire

Réponses

  • 201

    • idstring (uuid) | nullobligatoire

      null: running period, not issued

    • kindstringobligatoire
      • enum: "beneficiary", "konnect"
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • periodKeystringobligatoire
    • periodStartstringobligatoire
    • periodEndstringobligatoire
    • statusstringobligatoire
      • enum: "open", "issued", "paid", "contested"
    • totalnumberobligatoire

      Minor units (millimes)

    • salesnumberobligatoire

      Minor units (millimes)

    • commissionnumberobligatoire

      Minor units (millimes)

    • linesCountnumberobligatoire
    • issuedAtstring | nullobligatoire
    • paidAtstring | nullobligatoire
    • paidMethodstring | nullobligatoire
    • paidReferencestring | nullobligatoire
    • contestReasonstring | nullobligatoire
    • contestAnswerstring | nullobligatoire
    • groupsStatementGroupDto[]obligatoire
      • groupstring | nullobligatoire
      • countnumberobligatoire
      • salesnumberobligatoire
      • duenumberobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/statements" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "beneficiaryId": "beneficiaryId",
  "periodKey": "periodKey"
}'

Exemple : corps de la requête

{
  "beneficiaryId": "beneficiaryId",
  "periodKey": "periodKey"
}

Exemple : 201

{
  "id": "id",
  "kind": "beneficiary",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "periodKey": "periodKey",
  "periodStart": "periodStart",
  "periodEnd": "periodEnd",
  "status": "open",
  "total": 1,
  "sales": 1,
  "commission": 1,
  "linesCount": 1,
  "issuedAt": "issuedAt",
  "paidAt": "paidAt",
  "paidMethod": "paidMethod",
  "paidReference": "paidReference",
  "contestReason": "contestReason",
  "contestAnswer": "contestAnswer",
  "groups": [
    {
      "group": "group",
      "count": 1,
      "sales": 1,
      "due": 1
    }
  ]
}

One statement with its lines

GET/organisations/{id}/statements/{statementId}Clé APIPortée marketplace:read

Paramètres

  • idstringpathobligatoire
  • statementIdstringpathobligatoire

Réponses

  • 200

    • statementStatementDtoobligatoire
      • idstring (uuid) | nullobligatoire

        null: running period, not issued

      • kindstringobligatoire
        • enum: "beneficiary", "konnect"
      • beneficiaryIdstring (uuid) | nullobligatoire
      • beneficiaryNamestring | nullobligatoire
      • periodKeystringobligatoire
      • periodStartstringobligatoire
      • periodEndstringobligatoire
      • statusstringobligatoire
        • enum: "open", "issued", "paid", "contested"
      • totalnumberobligatoire

        Minor units (millimes)

      • salesnumberobligatoire

        Minor units (millimes)

      • commissionnumberobligatoire

        Minor units (millimes)

      • linesCountnumberobligatoire
      • issuedAtstring | nullobligatoire
      • paidAtstring | nullobligatoire
      • paidMethodstring | nullobligatoire
      • paidReferencestring | nullobligatoire
      • contestReasonstring | nullobligatoire
      • contestAnswerstring | nullobligatoire
      • groupsStatementGroupDto[]obligatoire
        • groupstring | nullobligatoire
        • countnumberobligatoire
        • salesnumberobligatoire
        • duenumberobligatoire
    • linesLedgerLineDto[]obligatoire
      • idstring (uuid)obligatoire
      • kindstringobligatoire
        • enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
      • beneficiaryIdstring (uuid) | nullobligatoire

        null: Konnect

      • beneficiaryNamestring | nullobligatoire
      • amountnumberobligatoire

        Minor units (millimes)

      • saleAmountnumber | nullobligatoire
      • paymentIdstring (uuid) | nullobligatoire
      • paymentReferencestring | nullobligatoire
      • ruleIdstring (uuid) | nullobligatoire
      • periodKeystringobligatoire
      • statementIdstring (uuid) | nullobligatoire
      • reasonstring | nullobligatoire
      • groupstring | nullobligatoire
      • detailobjectobligatoire
      • occurredAtstringobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/statements/statementId" \
  -H "x-api-key: $KONNECT_API_KEY"

Exemple : 200

{
  "statement": {
    "id": "id",
    "kind": "beneficiary",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "periodKey": "periodKey",
    "periodStart": "periodStart",
    "periodEnd": "periodEnd",
    "status": "open",
    "total": 1,
    "sales": 1,
    "commission": 1,
    "linesCount": 1,
    "issuedAt": "issuedAt",
    "paidAt": "paidAt",
    "paidMethod": "paidMethod",
    "paidReference": "paidReference",
    "contestReason": "contestReason",
    "contestAnswer": "contestAnswer",
    "groups": [
      {
        "group": "group",
        "count": 1,
        "sales": 1,
        "due": 1
      }
    ]
  },
  "lines": [
    {
      "id": "id",
      "kind": "beneficiary_due",
      "beneficiaryId": "beneficiaryId",
      "beneficiaryName": "beneficiaryName",
      "amount": 1,
      "saleAmount": 1,
      "paymentId": "665f1c2e8b3a4d0012ab34cd",
      "paymentReference": "paymentReference",
      "ruleId": "ruleId",
      "periodKey": "periodKey",
      "statementId": "statementId",
      "reason": "reason",
      "group": "group",
      "detail": {},
      "occurredAt": "occurredAt"
    }
  ]
}

CSV of a statement

GET/organisations/{id}/statements/{statementId}/export.csvClé API

Paramètres

  • idstringpathobligatoire
  • statementIdstringpathobligatoire

Réponses

  • 200

Exemples de code

curl -X GET "$KONNECT_API_URL/organisations/id/statements/statementId/export.csv" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Record that you paid this beneficiary statement

POST/organisations/{id}/statements/{statementId}/paidClé API

Paramètres

  • idstringpathobligatoire
  • statementIdstringpathobligatoire

Corps de la requête application/json

  • methodstringobligatoire
  • referencestring
  • paidAtstring

Réponses

  • 200

    • idstring (uuid) | nullobligatoire

      null: running period, not issued

    • kindstringobligatoire
      • enum: "beneficiary", "konnect"
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • periodKeystringobligatoire
    • periodStartstringobligatoire
    • periodEndstringobligatoire
    • statusstringobligatoire
      • enum: "open", "issued", "paid", "contested"
    • totalnumberobligatoire

      Minor units (millimes)

    • salesnumberobligatoire

      Minor units (millimes)

    • commissionnumberobligatoire

      Minor units (millimes)

    • linesCountnumberobligatoire
    • issuedAtstring | nullobligatoire
    • paidAtstring | nullobligatoire
    • paidMethodstring | nullobligatoire
    • paidReferencestring | nullobligatoire
    • contestReasonstring | nullobligatoire
    • contestAnswerstring | nullobligatoire
    • groupsStatementGroupDto[]obligatoire
      • groupstring | nullobligatoire
      • countnumberobligatoire
      • salesnumberobligatoire
      • duenumberobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/statements/statementId/paid" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "method": "virement",
  "reference": "reference",
  "paidAt": "paidAt"
}'

Exemple : corps de la requête

{
  "method": "virement",
  "reference": "reference",
  "paidAt": "paidAt"
}

Exemple : 200

{
  "id": "id",
  "kind": "beneficiary",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "periodKey": "periodKey",
  "periodStart": "periodStart",
  "periodEnd": "periodEnd",
  "status": "open",
  "total": 1,
  "sales": 1,
  "commission": 1,
  "linesCount": 1,
  "issuedAt": "issuedAt",
  "paidAt": "paidAt",
  "paidMethod": "paidMethod",
  "paidReference": "paidReference",
  "contestReason": "contestReason",
  "contestAnswer": "contestAnswer",
  "groups": [
    {
      "group": "group",
      "count": 1,
      "sales": 1,
      "due": 1
    }
  ]
}

Record several statements as paid at once (after a bulk transfer)

POST/organisations/{id}/statements/paidClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • methodstringobligatoire
  • referencestring
  • paidAtstring
  • statementIdsstring[]obligatoire

Réponses

  • 200

    • idstring (uuid) | nullobligatoire

      null: running period, not issued

    • kindstringobligatoire
      • enum: "beneficiary", "konnect"
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • periodKeystringobligatoire
    • periodStartstringobligatoire
    • periodEndstringobligatoire
    • statusstringobligatoire
      • enum: "open", "issued", "paid", "contested"
    • totalnumberobligatoire

      Minor units (millimes)

    • salesnumberobligatoire

      Minor units (millimes)

    • commissionnumberobligatoire

      Minor units (millimes)

    • linesCountnumberobligatoire
    • issuedAtstring | nullobligatoire
    • paidAtstring | nullobligatoire
    • paidMethodstring | nullobligatoire
    • paidReferencestring | nullobligatoire
    • contestReasonstring | nullobligatoire
    • contestAnswerstring | nullobligatoire
    • groupsStatementGroupDto[]obligatoire
      • groupstring | nullobligatoire
      • countnumberobligatoire
      • salesnumberobligatoire
      • duenumberobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/statements/paid" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "method": "virement",
  "reference": "reference",
  "paidAt": "paidAt",
  "statementIds": [
    "string"
  ]
}'

Exemple : corps de la requête

{
  "method": "virement",
  "reference": "reference",
  "paidAt": "paidAt",
  "statementIds": [
    "string"
  ]
}

Exemple : 200

[
  {
    "id": "id",
    "kind": "beneficiary",
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "periodKey": "periodKey",
    "periodStart": "periodStart",
    "periodEnd": "periodEnd",
    "status": "open",
    "total": 1,
    "sales": 1,
    "commission": 1,
    "linesCount": 1,
    "issuedAt": "issuedAt",
    "paidAt": "paidAt",
    "paidMethod": "paidMethod",
    "paidReference": "paidReference",
    "contestReason": "contestReason",
    "contestAnswer": "contestAnswer",
    "groups": [
      {
        "group": "group",
        "count": 1,
        "sales": 1,
        "due": 1
      }
    ]
  }
]

Answer a beneficiary's contest and settle the statement status

POST/organisations/{id}/statements/{statementId}/answerClé API

Paramètres

  • idstringpathobligatoire
  • statementIdstringpathobligatoire

Corps de la requête application/json

  • answerstringobligatoire
  • statusstringobligatoire
    • enum: "issued", "paid"

Réponses

  • 200

    • idstring (uuid) | nullobligatoire

      null: running period, not issued

    • kindstringobligatoire
      • enum: "beneficiary", "konnect"
    • beneficiaryIdstring (uuid) | nullobligatoire
    • beneficiaryNamestring | nullobligatoire
    • periodKeystringobligatoire
    • periodStartstringobligatoire
    • periodEndstringobligatoire
    • statusstringobligatoire
      • enum: "open", "issued", "paid", "contested"
    • totalnumberobligatoire

      Minor units (millimes)

    • salesnumberobligatoire

      Minor units (millimes)

    • commissionnumberobligatoire

      Minor units (millimes)

    • linesCountnumberobligatoire
    • issuedAtstring | nullobligatoire
    • paidAtstring | nullobligatoire
    • paidMethodstring | nullobligatoire
    • paidReferencestring | nullobligatoire
    • contestReasonstring | nullobligatoire
    • contestAnswerstring | nullobligatoire
    • groupsStatementGroupDto[]obligatoire
      • groupstring | nullobligatoire
      • countnumberobligatoire
      • salesnumberobligatoire
      • duenumberobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/statements/statementId/answer" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "answer": "answer",
  "status": "issued"
}'

Exemple : corps de la requête

{
  "answer": "answer",
  "status": "issued"
}

Exemple : 200

{
  "id": "id",
  "kind": "beneficiary",
  "beneficiaryId": "beneficiaryId",
  "beneficiaryName": "beneficiaryName",
  "periodKey": "periodKey",
  "periodStart": "periodStart",
  "periodEnd": "periodEnd",
  "status": "open",
  "total": 1,
  "sales": 1,
  "commission": 1,
  "linesCount": 1,
  "issuedAt": "issuedAt",
  "paidAt": "paidAt",
  "paidMethod": "paidMethod",
  "paidReference": "paidReference",
  "contestReason": "contestReason",
  "contestAnswer": "contestAnswer",
  "groups": [
    {
      "group": "group",
      "count": 1,
      "sales": 1,
      "due": 1
    }
  ]
}

Bank bulk transfer file templates

GET/organisations/{id}/payout-templatesClé API

Paramètres

  • idstringpathobligatoire

Réponses

  • 200

    • namestringobligatoire
    • formatstring
      • enum: "csv", "fixed_width"
    • separatorstring
      • default: ";"
    • encodingstring
      • enum: "utf-8", "latin1"
    • columnsPayoutColumnDto[]obligatoire
      • headerstringobligatoire
      • valuestringobligatoire

        Text with placeholders: {beneficiary.name} {beneficiary.legalName} {beneficiary.ref} {beneficiary.rib} {beneficiary.iban} {beneficiary.bic} {beneficiary.bankName} {beneficiary.accountHolder} {beneficiary.taxId} {amount} {period} {statement.id} {date} {index}

      • widthnumber

        Fixed width only

      • alignstring
        • enum: "left", "right"
      • padstring

        Padding character, one character

    • headerLinesstring[]
    • footerLinesstring[]
    • includeHeaderRowboolean
      • default: true
    • amountFormatstring
      • enum: "millimes", "dinars_dot", "dinars_comma"
    • dateFormatstring
      • enum: "yyyy-mm-dd", "dd/mm/yyyy", "yyyymmdd"
    • idstring (uuid)obligatoire
    • createdAtstringobligatoire

Exemples de code

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

Exemple : 200

[
  {
    "name": "name",
    "format": "csv",
    "separator": ";",
    "encoding": "utf-8",
    "columns": [
      {
        "header": "header",
        "value": "value",
        "width": 1,
        "align": "left",
        "pad": "pad"
      }
    ],
    "headerLines": [
      "string"
    ],
    "footerLines": [
      "string"
    ],
    "includeHeaderRow": true,
    "amountFormat": "millimes",
    "dateFormat": "yyyy-mm-dd",
    "id": "id",
    "createdAt": "createdAt"
  }
]

Map your bank's bulk transfer template

POST/organisations/{id}/payout-templatesClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • namestringobligatoire
  • formatstring
    • enum: "csv", "fixed_width"
  • separatorstring
    • default: ";"
  • encodingstring
    • enum: "utf-8", "latin1"
  • columnsPayoutColumnDto[]obligatoire
    • headerstringobligatoire
    • valuestringobligatoire

      Text with placeholders: {beneficiary.name} {beneficiary.legalName} {beneficiary.ref} {beneficiary.rib} {beneficiary.iban} {beneficiary.bic} {beneficiary.bankName} {beneficiary.accountHolder} {beneficiary.taxId} {amount} {period} {statement.id} {date} {index}

    • widthnumber

      Fixed width only

    • alignstring
      • enum: "left", "right"
    • padstring

      Padding character, one character

  • headerLinesstring[]
  • footerLinesstring[]
  • includeHeaderRowboolean
    • default: true
  • amountFormatstring
    • enum: "millimes", "dinars_dot", "dinars_comma"
  • dateFormatstring
    • enum: "yyyy-mm-dd", "dd/mm/yyyy", "yyyymmdd"

Réponses

  • 201

    • namestringobligatoire
    • formatstring
      • enum: "csv", "fixed_width"
    • separatorstring
      • default: ";"
    • encodingstring
      • enum: "utf-8", "latin1"
    • columnsPayoutColumnDto[]obligatoire
      • headerstringobligatoire
      • valuestringobligatoire

        Text with placeholders: {beneficiary.name} {beneficiary.legalName} {beneficiary.ref} {beneficiary.rib} {beneficiary.iban} {beneficiary.bic} {beneficiary.bankName} {beneficiary.accountHolder} {beneficiary.taxId} {amount} {period} {statement.id} {date} {index}

      • widthnumber

        Fixed width only

      • alignstring
        • enum: "left", "right"
      • padstring

        Padding character, one character

    • headerLinesstring[]
    • footerLinesstring[]
    • includeHeaderRowboolean
      • default: true
    • amountFormatstring
      • enum: "millimes", "dinars_dot", "dinars_comma"
    • dateFormatstring
      • enum: "yyyy-mm-dd", "dd/mm/yyyy", "yyyymmdd"
    • idstring (uuid)obligatoire
    • createdAtstringobligatoire

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/payout-templates" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "name",
  "format": "csv",
  "separator": ";",
  "encoding": "utf-8",
  "columns": [
    {
      "header": "header",
      "value": "value",
      "width": 1,
      "align": "left",
      "pad": "pad"
    }
  ],
  "headerLines": [
    "string"
  ],
  "footerLines": [
    "string"
  ],
  "includeHeaderRow": true,
  "amountFormat": "millimes",
  "dateFormat": "yyyy-mm-dd"
}'

Exemple : corps de la requête

{
  "name": "name",
  "format": "csv",
  "separator": ";",
  "encoding": "utf-8",
  "columns": [
    {
      "header": "header",
      "value": "value",
      "width": 1,
      "align": "left",
      "pad": "pad"
    }
  ],
  "headerLines": [
    "string"
  ],
  "footerLines": [
    "string"
  ],
  "includeHeaderRow": true,
  "amountFormat": "millimes",
  "dateFormat": "yyyy-mm-dd"
}

Exemple : 201

{
  "name": "name",
  "format": "csv",
  "separator": ";",
  "encoding": "utf-8",
  "columns": [
    {
      "header": "header",
      "value": "value",
      "width": 1,
      "align": "left",
      "pad": "pad"
    }
  ],
  "headerLines": [
    "string"
  ],
  "footerLines": [
    "string"
  ],
  "includeHeaderRow": true,
  "amountFormat": "millimes",
  "dateFormat": "yyyy-mm-dd",
  "id": "id",
  "createdAt": "createdAt"
}

Change a bulk transfer template

PUT/organisations/{id}/payout-templates/{templateId}Clé API

Paramètres

  • idstringpathobligatoire
  • templateIdstringpathobligatoire

Corps de la requête application/json

  • namestringobligatoire
  • formatstring
    • enum: "csv", "fixed_width"
  • separatorstring
    • default: ";"
  • encodingstring
    • enum: "utf-8", "latin1"
  • columnsPayoutColumnDto[]obligatoire
    • headerstringobligatoire
    • valuestringobligatoire

      Text with placeholders: {beneficiary.name} {beneficiary.legalName} {beneficiary.ref} {beneficiary.rib} {beneficiary.iban} {beneficiary.bic} {beneficiary.bankName} {beneficiary.accountHolder} {beneficiary.taxId} {amount} {period} {statement.id} {date} {index}

    • widthnumber

      Fixed width only

    • alignstring
      • enum: "left", "right"
    • padstring

      Padding character, one character

  • headerLinesstring[]
  • footerLinesstring[]
  • includeHeaderRowboolean
    • default: true
  • amountFormatstring
    • enum: "millimes", "dinars_dot", "dinars_comma"
  • dateFormatstring
    • enum: "yyyy-mm-dd", "dd/mm/yyyy", "yyyymmdd"

Réponses

  • 200

    • namestringobligatoire
    • formatstring
      • enum: "csv", "fixed_width"
    • separatorstring
      • default: ";"
    • encodingstring
      • enum: "utf-8", "latin1"
    • columnsPayoutColumnDto[]obligatoire
      • headerstringobligatoire
      • valuestringobligatoire

        Text with placeholders: {beneficiary.name} {beneficiary.legalName} {beneficiary.ref} {beneficiary.rib} {beneficiary.iban} {beneficiary.bic} {beneficiary.bankName} {beneficiary.accountHolder} {beneficiary.taxId} {amount} {period} {statement.id} {date} {index}

      • widthnumber

        Fixed width only

      • alignstring
        • enum: "left", "right"
      • padstring

        Padding character, one character

    • headerLinesstring[]
    • footerLinesstring[]
    • includeHeaderRowboolean
      • default: true
    • amountFormatstring
      • enum: "millimes", "dinars_dot", "dinars_comma"
    • dateFormatstring
      • enum: "yyyy-mm-dd", "dd/mm/yyyy", "yyyymmdd"
    • idstring (uuid)obligatoire
    • createdAtstringobligatoire

Exemples de code

curl -X PUT "$KONNECT_API_URL/organisations/id/payout-templates/templateId" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "name",
  "format": "csv",
  "separator": ";",
  "encoding": "utf-8",
  "columns": [
    {
      "header": "header",
      "value": "value",
      "width": 1,
      "align": "left",
      "pad": "pad"
    }
  ],
  "headerLines": [
    "string"
  ],
  "footerLines": [
    "string"
  ],
  "includeHeaderRow": true,
  "amountFormat": "millimes",
  "dateFormat": "yyyy-mm-dd"
}'

Exemple : corps de la requête

{
  "name": "name",
  "format": "csv",
  "separator": ";",
  "encoding": "utf-8",
  "columns": [
    {
      "header": "header",
      "value": "value",
      "width": 1,
      "align": "left",
      "pad": "pad"
    }
  ],
  "headerLines": [
    "string"
  ],
  "footerLines": [
    "string"
  ],
  "includeHeaderRow": true,
  "amountFormat": "millimes",
  "dateFormat": "yyyy-mm-dd"
}

Exemple : 200

{
  "name": "name",
  "format": "csv",
  "separator": ";",
  "encoding": "utf-8",
  "columns": [
    {
      "header": "header",
      "value": "value",
      "width": 1,
      "align": "left",
      "pad": "pad"
    }
  ],
  "headerLines": [
    "string"
  ],
  "footerLines": [
    "string"
  ],
  "includeHeaderRow": true,
  "amountFormat": "millimes",
  "dateFormat": "yyyy-mm-dd",
  "id": "id",
  "createdAt": "createdAt"
}

Delete a bulk transfer template

DELETE/organisations/{id}/payout-templates/{templateId}Clé API

Paramètres

  • idstringpathobligatoire
  • templateIdstringpathobligatoire

Réponses

  • 204

Exemples de code

curl -X DELETE "$KONNECT_API_URL/organisations/id/payout-templates/templateId" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

One bank file to pay several statements (from a template, or plain CSV)

POST/organisations/{id}/payout-filesClé API

Paramètres

  • idstringpathobligatoire

Corps de la requête application/json

  • templateIdstring (uuid)

    Omit for the plain CSV fallback

  • statementIdsstring[]obligatoire
  • datestring

    Execution date written in the file (default today)

Réponses

  • 200

Exemples de code

curl -X POST "$KONNECT_API_URL/organisations/id/payout-files" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "templateId": "templateId",
  "statementIds": [
    "string"
  ],
  "date": "date"
}'

Exemple : corps de la requête

{
  "templateId": "templateId",
  "statementIds": [
    "string"
  ],
  "date": "date"
}