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)obligatoirebeneficiaryNamestringobligatoireorganisationIdstring (uuid)obligatoiremerchantNamestringobligatoirevisibilitystringobligatoire- 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
beneficiaryIdstringpathobligatoireperiodKeystringqueryobligatoire
Réponses
200
occurredAtstringobligatoirereferencestring | nullobligatoiredescriptionstring | nullobligatoiregroupstring | nullobligatoirebuyerstring | nullobligatoiresaleAmountnumber | nullobligatoireShown with_commission and full
commissionnumber | nullobligatoireShown with_commission and full
konnectFeeBornenumber | nullobligatoireShown full
providerFeeBornenumber | nullobligatoireShown full
duenumberobligatoirekindstringobligatoirereasonstring | nullobligatoireperiodKeystringobligatoire
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) | nullobligatoirenull: running period, not issued
kindstringobligatoire- enum: "beneficiary", "konnect"
beneficiaryIdstring (uuid) | nullobligatoirebeneficiaryNamestring | nullobligatoireperiodKeystringobligatoireperiodStartstringobligatoireperiodEndstringobligatoirestatusstringobligatoire- enum: "open", "issued", "paid", "contested"
totalnumberobligatoireMinor units (millimes)
salesnumberobligatoireMinor units (millimes)
commissionnumberobligatoireMinor units (millimes)
linesCountnumberobligatoireissuedAtstring | nullobligatoirepaidAtstring | nullobligatoirepaidMethodstring | nullobligatoirepaidReferencestring | nullobligatoirecontestReasonstring | nullobligatoirecontestAnswerstring | nullobligatoiregroupsStatementGroupDto[]obligatoiregroupstring | nullobligatoirecountnumberobligatoiresalesnumberobligatoireduenumberobligatoire
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
beneficiaryIdstringpathobligatoirestatementIdstringpathobligatoire
Corps de la requête application/json
reasonstringobligatoire
Réponses
200
idstring (uuid) | nullobligatoirenull: running period, not issued
kindstringobligatoire- enum: "beneficiary", "konnect"
beneficiaryIdstring (uuid) | nullobligatoirebeneficiaryNamestring | nullobligatoireperiodKeystringobligatoireperiodStartstringobligatoireperiodEndstringobligatoirestatusstringobligatoire- enum: "open", "issued", "paid", "contested"
totalnumberobligatoireMinor units (millimes)
salesnumberobligatoireMinor units (millimes)
commissionnumberobligatoireMinor units (millimes)
linesCountnumberobligatoireissuedAtstring | nullobligatoirepaidAtstring | nullobligatoirepaidMethodstring | nullobligatoirepaidReferencestring | nullobligatoirecontestReasonstring | nullobligatoirecontestAnswerstring | nullobligatoiregroupsStatementGroupDto[]obligatoiregroupstring | nullobligatoirecountnumberobligatoiresalesnumberobligatoireduenumberobligatoire
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
}
]
}