Aller au contenu

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

Sommaire de la documentation

beneficiary-portal

Version 0.1.04 opérations

The beneficiary spaces this user can open

GET/me/beneficiary-portalClé API

Paramètres

Aucun paramètre.

Réponses

  • 200

    • beneficiaryIdstring (uuid)obligatoire
    • beneficiaryNamestringobligatoire
    • organisationIdstring (uuid)obligatoire
    • merchantNamestringobligatoire
    • visibilitystringobligatoire
      • enum: "net_only", "with_commission", "full"

Exemples de code

curl -X GET "$KONNECT_API_URL/me/beneficiary-portal" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "beneficiaryId": "beneficiaryId",
    "beneficiaryName": "beneficiaryName",
    "organisationId": "org_01J9Z3K4EXAMPLE0000000000",
    "merchantName": "merchantName",
    "visibility": "net_only"
  }
]

Sales and what is owed to this beneficiary, as the merchant allows

GET/me/beneficiary-portal/{beneficiaryId}/salesClé API

Paramètres

  • beneficiaryIdstringpathobligatoire
  • periodKeystringqueryobligatoire

Réponses

  • 200

    • occurredAtstringobligatoire
    • referencestring | nullobligatoire
    • descriptionstring | nullobligatoire
    • groupstring | nullobligatoire
    • buyerstring | nullobligatoire
    • saleAmountnumber | nullobligatoire

      Shown with_commission and full

    • commissionnumber | nullobligatoire

      Shown with_commission and full

    • konnectFeeBornenumber | nullobligatoire

      Shown full

    • providerFeeBornenumber | nullobligatoire

      Shown full

    • duenumberobligatoire
    • kindstringobligatoire
    • reasonstring | nullobligatoire
    • periodKeystringobligatoire

Exemples de code

curl -X GET "$KONNECT_API_URL/me/beneficiary-portal/beneficiaryId/sales?periodKey=periodKey" \
  -H "Authorization: Bearer $KONNECT_API_KEY"

Exemple : 200

[
  {
    "occurredAt": "occurredAt",
    "reference": "reference",
    "description": "description",
    "group": "group",
    "buyer": "buyer",
    "saleAmount": 1,
    "commission": 1,
    "konnectFeeBorne": 1,
    "providerFeeBorne": 1,
    "due": 1,
    "kind": "kind",
    "reason": "reason",
    "periodKey": "periodKey"
  }
]

Statements of this beneficiary

GET/me/beneficiary-portal/{beneficiaryId}/statementsClé API

Paramètres

  • beneficiaryIdstringpathobligatoire

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/me/beneficiary-portal/beneficiaryId/statements" \
  -H "Authorization: Bearer $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
      }
    ]
  }
]

Contest a statement with a reason

POST/me/beneficiary-portal/{beneficiaryId}/statements/{statementId}/contestClé API

Paramètres

  • beneficiaryIdstringpathobligatoire
  • statementIdstringpathobligatoire

Corps de la requête application/json

  • reasonstringobligatoire

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/me/beneficiary-portal/beneficiaryId/statements/statementId/contest" \
  -H "Authorization: Bearer $KONNECT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "reason"
}'

Exemple : corps de la requête

{
  "reason": "reason"
}

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
    }
  ]
}