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
idstringpathobligatoirekindstringquery- enum: "supplier", "charity", "partner"
statusstringquery- enum: "active", "paused", "archived"
qstringquery
Réponses
200
idstring (uuid)obligatoirekindstringobligatoire- enum: "supplier", "charity", "partner"
refstring | nullobligatoirenamestringobligatoirelegalNamestring | nullobligatoiretaxIdstring | nullobligatoireemailstring | nullobligatoirephonestring | nullobligatoirepayoutDetailsanyobligatoireAccount numbers masked unless you can manage beneficiaries
visibilitystringobligatoire- enum: "net_only", "with_commission", "full"
showBuyerbooleanobligatoirestatementPeriodstringobligatoire- enum: "daily", "weekly", "monthly", "on_demand"
groupKeystring | nullobligatoirenotesstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
membersCountnumberobligatoiretotalsBeneficiaryTotalsDtoobligatoiresalesThisPeriodnumberobligatoireMinor units (millimes)
dueOpennumberobligatoireMinor units (millimes)
dueIssuednumberobligatoireMinor units (millimes)
paidnumberobligatoireMinor 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"
refstringYour own reference, unique in the organisation
namestringobligatoirelegalNamestringtaxIdstringemailstringphonestringpayoutDetailsPayoutDetailsDtobankNamestringaccountHolderstringribstringTunisian RIB, 20 digits
ibanstringbicstringnotesstring
visibilitystring- enum: "net_only", "with_commission", "full"
- default: "net_only"
showBuyerboolean- default: false
statementPeriodstring- enum: "daily", "weekly", "monthly", "on_demand"
- default: "monthly"
groupKeyobject | nullPayment metadata key to group sales by (for example event)
notesstring
Réponses
201
idstring (uuid)obligatoirekindstringobligatoire- enum: "supplier", "charity", "partner"
refstring | nullobligatoirenamestringobligatoirelegalNamestring | nullobligatoiretaxIdstring | nullobligatoireemailstring | nullobligatoirephonestring | nullobligatoirepayoutDetailsanyobligatoireAccount numbers masked unless you can manage beneficiaries
visibilitystringobligatoire- enum: "net_only", "with_commission", "full"
showBuyerbooleanobligatoirestatementPeriodstringobligatoire- enum: "daily", "weekly", "monthly", "on_demand"
groupKeystring | nullobligatoirenotesstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
membersCountnumberobligatoiretotalsBeneficiaryTotalsDtoobligatoiresalesThisPeriodnumberobligatoireMinor units (millimes)
dueOpennumberobligatoireMinor units (millimes)
dueIssuednumberobligatoireMinor units (millimes)
paidnumberobligatoireMinor 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
idstringpathobligatoirebeneficiaryIdstringpathobligatoire
Réponses
200
idstring (uuid)obligatoirekindstringobligatoire- enum: "supplier", "charity", "partner"
refstring | nullobligatoirenamestringobligatoirelegalNamestring | nullobligatoiretaxIdstring | nullobligatoireemailstring | nullobligatoirephonestring | nullobligatoirepayoutDetailsanyobligatoireAccount numbers masked unless you can manage beneficiaries
visibilitystringobligatoire- enum: "net_only", "with_commission", "full"
showBuyerbooleanobligatoirestatementPeriodstringobligatoire- enum: "daily", "weekly", "monthly", "on_demand"
groupKeystring | nullobligatoirenotesstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
membersCountnumberobligatoiretotalsBeneficiaryTotalsDtoobligatoiresalesThisPeriodnumberobligatoireMinor units (millimes)
dueOpennumberobligatoireMinor units (millimes)
dueIssuednumberobligatoireMinor units (millimes)
paidnumberobligatoireMinor 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
idstringpathobligatoirebeneficiaryIdstringpathobligatoire
Corps de la requête application/json
kindstring- enum: "supplier", "charity", "partner"
- default: "supplier"
refstringYour own reference, unique in the organisation
namestringlegalNamestringtaxIdstringemailstringphonestringpayoutDetailsPayoutDetailsDtobankNamestringaccountHolderstringribstringTunisian RIB, 20 digits
ibanstringbicstringnotesstring
visibilitystring- enum: "net_only", "with_commission", "full"
- default: "net_only"
showBuyerboolean- default: false
statementPeriodstring- enum: "daily", "weekly", "monthly", "on_demand"
- default: "monthly"
groupKeyobject | nullPayment metadata key to group sales by (for example event)
notesstringstatusstring- enum: "active", "paused", "archived"
Réponses
200
idstring (uuid)obligatoirekindstringobligatoire- enum: "supplier", "charity", "partner"
refstring | nullobligatoirenamestringobligatoirelegalNamestring | nullobligatoiretaxIdstring | nullobligatoireemailstring | nullobligatoirephonestring | nullobligatoirepayoutDetailsanyobligatoireAccount numbers masked unless you can manage beneficiaries
visibilitystringobligatoire- enum: "net_only", "with_commission", "full"
showBuyerbooleanobligatoirestatementPeriodstringobligatoire- enum: "daily", "weekly", "monthly", "on_demand"
groupKeystring | nullobligatoirenotesstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
membersCountnumberobligatoiretotalsBeneficiaryTotalsDtoobligatoiresalesThisPeriodnumberobligatoireMinor units (millimes)
dueOpennumberobligatoireMinor units (millimes)
dueIssuednumberobligatoireMinor units (millimes)
paidnumberobligatoireMinor 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
idstringpathobligatoirebeneficiaryIdstringpathobligatoire
Réponses
200
idstring (uuid)obligatoireemailstringobligatoirenamestring | nullobligatoireinvitedAtstringobligatoirelastSeenAtstring | nullobligatoirerevokedAtstring | 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
idstringpathobligatoirebeneficiaryIdstringpathobligatoire
Corps de la requête application/json
emailstringobligatoirenamestring
Réponses
201
idstring (uuid)obligatoireemailstringobligatoirenamestring | nullobligatoireinvitedAtstringobligatoirelastSeenAtstring | nullobligatoirerevokedAtstring | 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
idstringpathobligatoirebeneficiaryIdstringpathobligatoirememberIdstringpathobligatoire
Réponses
200
idstring (uuid)obligatoireemailstringobligatoirenamestring | nullobligatoireinvitedAtstringobligatoirelastSeenAtstring | nullobligatoirerevokedAtstring | 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
idstringpathobligatoirebeneficiaryIdstringqueryobligatoire
Réponses
200
idstring (uuid)obligatoirebeneficiaryIdstring (uuid) | nullobligatoirebeneficiaryNamestring | nullobligatoirepaymentAccountIdstring (uuid) | nullobligatoireproviderCodestring | nullobligatoireregionstringobligatoire- enum: "any", "national", "international"
namestring | nullobligatoirerateMillinumberobligatoireThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
fixednumberobligatoireMinor units (millimes)
minnumber | nullobligatoiremaxnumber | nullobligatoirebasestringobligatoire- enum: "gross", "net_of_konnect_fee", "net_of_all_fees"
konnectFeeBorneBystringobligatoire- enum: "merchant", "beneficiary", "prorata"
providerFeeBorneBystringobligatoire- enum: "merchant", "beneficiary", "prorata"
tiersCommissionTierDto[]obligatoirefromVolumenumberobligatoireMinor units (millimes): monthly volume of the beneficiary from which the tier applies
rateMillinumberobligatoireThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
fixednumberMinor units (millimes)
- default: 0
validFromstring | nullobligatoirevalidTostring | nullobligatoirestatusstringobligatoire- 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) | nullnull: the default for every beneficiary
paymentAccountIdobject (uuid) | nullproviderCodeobject | nullregionstring- enum: "any", "national", "international"
- default: "any"
namestringrateMillinumberKept by the merchant. Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
- default: 0
fixednumberKept by the merchant per sale. Minor units (millimes)
- default: 0
minobject | nullMinor units (millimes)
maxobject | nullMinor 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[]fromVolumenumberobligatoireMinor units (millimes): monthly volume of the beneficiary from which the tier applies
rateMillinumberobligatoireThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
fixednumberMinor units (millimes)
- default: 0
validFromobject | nullvalidToobject | nullstatusstring- enum: "active", "paused"
Réponses
201
idstring (uuid)obligatoirebeneficiaryIdstring (uuid) | nullobligatoirebeneficiaryNamestring | nullobligatoirepaymentAccountIdstring (uuid) | nullobligatoireproviderCodestring | nullobligatoireregionstringobligatoire- enum: "any", "national", "international"
namestring | nullobligatoirerateMillinumberobligatoireThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
fixednumberobligatoireMinor units (millimes)
minnumber | nullobligatoiremaxnumber | nullobligatoirebasestringobligatoire- enum: "gross", "net_of_konnect_fee", "net_of_all_fees"
konnectFeeBorneBystringobligatoire- enum: "merchant", "beneficiary", "prorata"
providerFeeBorneBystringobligatoire- enum: "merchant", "beneficiary", "prorata"
tiersCommissionTierDto[]obligatoirefromVolumenumberobligatoireMinor units (millimes): monthly volume of the beneficiary from which the tier applies
rateMillinumberobligatoireThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
fixednumberMinor units (millimes)
- default: 0
validFromstring | nullobligatoirevalidTostring | nullobligatoirestatusstringobligatoire- 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
idstringpathobligatoireruleIdstringpathobligatoire
Corps de la requête application/json
beneficiaryIdobject (uuid) | nullnull: the default for every beneficiary
paymentAccountIdobject (uuid) | nullproviderCodeobject | nullregionstring- enum: "any", "national", "international"
- default: "any"
namestringrateMillinumberKept by the merchant. Thousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
- default: 0
fixednumberKept by the merchant per sale. Minor units (millimes)
- default: 0
minobject | nullMinor units (millimes)
maxobject | nullMinor 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[]fromVolumenumberobligatoireMinor units (millimes): monthly volume of the beneficiary from which the tier applies
rateMillinumberobligatoireThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
fixednumberMinor units (millimes)
- default: 0
validFromobject | nullvalidToobject | nullstatusstring- enum: "active", "paused"
Réponses
200
idstring (uuid)obligatoirebeneficiaryIdstring (uuid) | nullobligatoirebeneficiaryNamestring | nullobligatoirepaymentAccountIdstring (uuid) | nullobligatoireproviderCodestring | nullobligatoireregionstringobligatoire- enum: "any", "national", "international"
namestring | nullobligatoirerateMillinumberobligatoireThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
fixednumberobligatoireMinor units (millimes)
minnumber | nullobligatoiremaxnumber | nullobligatoirebasestringobligatoire- enum: "gross", "net_of_konnect_fee", "net_of_all_fees"
konnectFeeBorneBystringobligatoire- enum: "merchant", "beneficiary", "prorata"
providerFeeBorneBystringobligatoire- enum: "merchant", "beneficiary", "prorata"
tiersCommissionTierDto[]obligatoirefromVolumenumberobligatoireMinor units (millimes): monthly volume of the beneficiary from which the tier applies
rateMillinumberobligatoireThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
fixednumberMinor units (millimes)
- default: 0
validFromstring | nullobligatoirevalidTostring | nullobligatoirestatusstringobligatoire- 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
idstringpathobligatoireruleIdstringpathobligatoire
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)obligatoirebeneficiaryIdstring (uuid)obligatoirebeneficiaryNamestringobligatoirepaymentAccountIdstring (uuid) | nullobligatoirenamestring | nullobligatoirerateMillinumberobligatoirefixednumberobligatoireminnumber | nullobligatoiremaxnumber | nullobligatoirebasestringobligatoire- enum: "gross", "net_of_konnect_fee"
validFromstring | nullobligatoirevalidTostring | nullobligatoirestatusstringobligatoire- 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)obligatoirepaymentAccountIdobject (uuid) | nullnamestringrateMillinumberThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
- default: 0
fixednumberMinor units (millimes)
- default: 0
minobject | nullmaxobject | nullbasestring- enum: "gross", "net_of_konnect_fee"
- default: "gross"
validFromobject | nullvalidToobject | nullstatusstring- enum: "active", "paused"
Réponses
201
idstring (uuid)obligatoirebeneficiaryIdstring (uuid)obligatoirebeneficiaryNamestringobligatoirepaymentAccountIdstring (uuid) | nullobligatoirenamestring | nullobligatoirerateMillinumberobligatoirefixednumberobligatoireminnumber | nullobligatoiremaxnumber | nullobligatoirebasestringobligatoire- enum: "gross", "net_of_konnect_fee"
validFromstring | nullobligatoirevalidTostring | nullobligatoirestatusstringobligatoire- 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
idstringpathobligatoireruleIdstringpathobligatoire
Corps de la requête application/json
beneficiaryIdstring (uuid)paymentAccountIdobject (uuid) | nullnamestringrateMillinumberThousandths of a percent: 2158 is 2.158 %, 100000 is 100 %
- default: 0
fixednumberMinor units (millimes)
- default: 0
minobject | nullmaxobject | nullbasestring- enum: "gross", "net_of_konnect_fee"
- default: "gross"
validFromobject | nullvalidToobject | nullstatusstring- enum: "active", "paused"
Réponses
200
idstring (uuid)obligatoirebeneficiaryIdstring (uuid)obligatoirebeneficiaryNamestringobligatoirepaymentAccountIdstring (uuid) | nullobligatoirenamestring | nullobligatoirerateMillinumberobligatoirefixednumberobligatoireminnumber | nullobligatoiremaxnumber | nullobligatoirebasestringobligatoire- enum: "gross", "net_of_konnect_fee"
validFromstring | nullobligatoirevalidTostring | nullobligatoirestatusstringobligatoire- 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)obligatoirebeneficiaryIdstring (uuid) | nullobligatoirefeeModestring | nullobligatoire- enum: "included", "added"
collectedBystringobligatoirebeneficiary: 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
idstringpathobligatoireaccountIdstringpathobligatoire
Corps de la requête application/json
beneficiaryIdobject (uuid) | nullfeeModestring | null- enum: "included", "added"
collectedBystring- enum: "merchant", "beneficiary"
Réponses
200
idstring (uuid)obligatoirebeneficiaryIdstring (uuid) | nullobligatoirefeeModestring | nullobligatoire- enum: "included", "added"
collectedBystringobligatoirebeneficiary: 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)obligatoirebeneficiaryIdstring (uuid) | nullobligatoirefeeModestring | nullobligatoire- enum: "included", "added"
collectedBystringobligatoirebeneficiary: 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
idstringpathobligatoirelinkIdstringpathobligatoire
Corps de la requête application/json
beneficiaryIdobject (uuid) | nullfeeModestring | null- enum: "included", "added"
Réponses
200
idstring (uuid)obligatoirebeneficiaryIdstring (uuid) | nullobligatoirefeeModestring | 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
custombooleanobligatoiretrue when the organisation has its own lines; false: platform defaults
linesFeeScheduleLineDto[]obligatoireproviderCodestring | nullobligatoireregionstringobligatoire- enum: "any", "national", "international"
rateMillinumberobligatoirefixednumberobligatoireminnumber | nullobligatoiremaxnumber | 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
idstringpathobligatoirepaymentIdstringpathobligatoire
Réponses
200
beneficiaryIdstring (uuid)obligatoirebeneficiaryNamestringobligatoireamountnumberobligatoirelabelstring | 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
idstringpathobligatoirepaymentIdstringpathobligatoire
Corps de la requête application/json
allocationsAllocationInputDto[]obligatoirebeneficiaryIdstring (uuid)beneficiaryRefstringYour reference of the beneficiary, instead of its id
amountnumberobligatoireMinor units (millimes)
labelstring
Réponses
200
beneficiaryIdstring (uuid)obligatoirebeneficiaryNamestringobligatoireamountnumberobligatoirelabelstring | 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
idstringpathobligatoirepaymentIdstringpathobligatoire
Réponses
200
idstring (uuid)obligatoirekindstringobligatoire- enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
beneficiaryIdstring (uuid) | nullobligatoirenull: Konnect
beneficiaryNamestring | nullobligatoireamountnumberobligatoireMinor units (millimes)
saleAmountnumber | nullobligatoirepaymentIdstring (uuid) | nullobligatoirepaymentReferencestring | nullobligatoireruleIdstring (uuid) | nullobligatoireperiodKeystringobligatoirestatementIdstring (uuid) | nullobligatoirereasonstring | nullobligatoiregroupstring | nullobligatoiredetailobjectobligatoireoccurredAtstringobligatoire
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
idstringpathobligatoirepaymentIdstringpathobligatoire
Corps de la requête application/json
reasonstringobligatoireamountnumberPartial refund amount; default the whole payment. Minor units (millimes)
Réponses
201
idstring (uuid)obligatoirekindstringobligatoire- enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
beneficiaryIdstring (uuid) | nullobligatoirenull: Konnect
beneficiaryNamestring | nullobligatoireamountnumberobligatoireMinor units (millimes)
saleAmountnumber | nullobligatoirepaymentIdstring (uuid) | nullobligatoirepaymentReferencestring | nullobligatoireruleIdstring (uuid) | nullobligatoireperiodKeystringobligatoirestatementIdstring (uuid) | nullobligatoirereasonstring | nullobligatoiregroupstring | nullobligatoiredetailobjectobligatoireoccurredAtstringobligatoire
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
idstringpathobligatoirebeneficiaryIdstring (uuid)queryscopestringquerykonnect: only the Konnect fee lines
periodKeystringquerystatementIdstring (uuid)querylimitnumberquery- default: 100
beforenumberquery
Réponses
200
idstring (uuid)obligatoirekindstringobligatoire- enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
beneficiaryIdstring (uuid) | nullobligatoirenull: Konnect
beneficiaryNamestring | nullobligatoireamountnumberobligatoireMinor units (millimes)
saleAmountnumber | nullobligatoirepaymentIdstring (uuid) | nullobligatoirepaymentReferencestring | nullobligatoireruleIdstring (uuid) | nullobligatoireperiodKeystringobligatoirestatementIdstring (uuid) | nullobligatoirereasonstring | nullobligatoiregroupstring | nullobligatoiredetailobjectobligatoireoccurredAtstringobligatoire
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)obligatoireamountnumberobligatoireSigned: positive adds to what the merchant owes. Minor units (millimes)
reasonstringobligatoirepaymentIdstring (uuid)A payment the adjustment relates to (refund, dispute)
Réponses
201
idstring (uuid)obligatoirekindstringobligatoire- enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
beneficiaryIdstring (uuid) | nullobligatoirenull: Konnect
beneficiaryNamestring | nullobligatoireamountnumberobligatoireMinor units (millimes)
saleAmountnumber | nullobligatoirepaymentIdstring (uuid) | nullobligatoirepaymentReferencestring | nullobligatoireruleIdstring (uuid) | nullobligatoireperiodKeystringobligatoirestatementIdstring (uuid) | nullobligatoirereasonstring | nullobligatoiregroupstring | nullobligatoiredetailobjectobligatoireoccurredAtstringobligatoire
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
amountnumberobligatoirePrice of the sale. Minor units (millimes)
providerCodeobject | nullregionstring- enum: "national", "international"
feeModestring- enum: "included", "added"
paymentAccountIdstring (uuid)providerFeeobject | nullMinor units (millimes)
allocationsAllocationInputDto[]Default: the whole price to the beneficiary given
beneficiaryIdstring (uuid)beneficiaryRefstringYour reference of the beneficiary, instead of its id
amountnumberobligatoireMinor units (millimes)
labelstring
termsanyOverride: simulate these terms instead of the stored rules
volumeBeforenumberMinor units (millimes)
- default: 0
Réponses
200
chargednumberobligatoirepricenumberobligatoirekonnectFeenumberobligatoiremerchantKeepsnumberobligatoirefeeModestringobligatoire- 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
idstringpathobligatoirebeneficiaryIdstring (uuid)querykindstringquery- enum: "beneficiary", "konnect"
statusstringquery- enum: "open", "issued", "paid", "contested"
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/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) | 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/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
idstringpathobligatoirestatementIdstringpathobligatoire
Réponses
200
statementStatementDtoobligatoireidstring (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
linesLedgerLineDto[]obligatoireidstring (uuid)obligatoirekindstringobligatoire- enum: "beneficiary_due", "merchant_commission", "konnect_fee_borne", "provider_fee_borne", "contribution", "konnect_fee", "adjustment", "collected_by_beneficiary"
beneficiaryIdstring (uuid) | nullobligatoirenull: Konnect
beneficiaryNamestring | nullobligatoireamountnumberobligatoireMinor units (millimes)
saleAmountnumber | nullobligatoirepaymentIdstring (uuid) | nullobligatoirepaymentReferencestring | nullobligatoireruleIdstring (uuid) | nullobligatoireperiodKeystringobligatoirestatementIdstring (uuid) | nullobligatoirereasonstring | nullobligatoiregroupstring | nullobligatoiredetailobjectobligatoireoccurredAtstringobligatoire
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
idstringpathobligatoirestatementIdstringpathobligatoire
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
idstringpathobligatoirestatementIdstringpathobligatoire
Corps de la requête application/json
methodstringobligatoirereferencestringpaidAtstring
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/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
methodstringobligatoirereferencestringpaidAtstringstatementIdsstring[]obligatoire
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/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
idstringpathobligatoirestatementIdstringpathobligatoire
Corps de la requête application/json
answerstringobligatoirestatusstringobligatoire- enum: "issued", "paid"
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/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
namestringobligatoireformatstring- enum: "csv", "fixed_width"
separatorstring- default: ";"
encodingstring- enum: "utf-8", "latin1"
columnsPayoutColumnDto[]obligatoireheaderstringobligatoirevaluestringobligatoireText 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}
widthnumberFixed width only
alignstring- enum: "left", "right"
padstringPadding 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)obligatoirecreatedAtstringobligatoire
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
namestringobligatoireformatstring- enum: "csv", "fixed_width"
separatorstring- default: ";"
encodingstring- enum: "utf-8", "latin1"
columnsPayoutColumnDto[]obligatoireheaderstringobligatoirevaluestringobligatoireText 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}
widthnumberFixed width only
alignstring- enum: "left", "right"
padstringPadding 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
namestringobligatoireformatstring- enum: "csv", "fixed_width"
separatorstring- default: ";"
encodingstring- enum: "utf-8", "latin1"
columnsPayoutColumnDto[]obligatoireheaderstringobligatoirevaluestringobligatoireText 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}
widthnumberFixed width only
alignstring- enum: "left", "right"
padstringPadding 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)obligatoirecreatedAtstringobligatoire
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
idstringpathobligatoiretemplateIdstringpathobligatoire
Corps de la requête application/json
namestringobligatoireformatstring- enum: "csv", "fixed_width"
separatorstring- default: ";"
encodingstring- enum: "utf-8", "latin1"
columnsPayoutColumnDto[]obligatoireheaderstringobligatoirevaluestringobligatoireText 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}
widthnumberFixed width only
alignstring- enum: "left", "right"
padstringPadding 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
namestringobligatoireformatstring- enum: "csv", "fixed_width"
separatorstring- default: ";"
encodingstring- enum: "utf-8", "latin1"
columnsPayoutColumnDto[]obligatoireheaderstringobligatoirevaluestringobligatoireText 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}
widthnumberFixed width only
alignstring- enum: "left", "right"
padstringPadding 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)obligatoirecreatedAtstringobligatoire
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
idstringpathobligatoiretemplateIdstringpathobligatoire
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[]obligatoiredatestringExecution 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"
}