members
Version 0.1.06 opérations
Members with role and scope, and pending invitations
GET/organisations/{id}/membersClé API
Paramètres
idstringpathobligatoire
Réponses
200
membersMemberDto[]obligatoireuserIdstring (uuid)obligatoireemailstringobligatoirefirstNamestringobligatoirelastNamestringobligatoireroleIdstring (uuid)obligatoirerolestring | nullobligatoireroleNamestringobligatoireisOwnerbooleanobligatoirepermissionsstring[]obligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoirelastLoginAtstring (date-time) | nullobligatoirejoinedAtstring (date-time)obligatoireinternalAccessbooleanobligatoireLot 1.10b: internal Konnect access granted for tests (shown with a badge, not a merchant member, ignored in production)
invitationsInvitationDto[]obligatoirePending invitations
idstring (uuid)obligatoireemailstringobligatoireroleIdstring (uuid)obligatoireroleNamestringobligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoireexpiresAtstring (date-time)obligatoirecreatedAtstring (date-time)obligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/organisations/id/members" \
-H "Authorization: Bearer $KONNECT_API_KEY"Exemple : 200
{
"members": [
{
"userId": "userId",
"email": "buyer@example.com",
"firstName": "Salma",
"lastName": "Example",
"roleId": "roleId",
"role": "role",
"roleName": "roleName",
"isOwner": true,
"permissions": [
"payments.view"
],
"scope": "all",
"accountIds": [
"string"
],
"lastLoginAt": "2026-10-01T09:30:00.000Z",
"joinedAt": "2026-10-01T09:30:00.000Z",
"internalAccess": true
}
],
"invitations": [
{
"id": "id",
"email": "buyer@example.com",
"roleId": "roleId",
"roleName": "roleName",
"scope": "all",
"accountIds": [
"string"
],
"expiresAt": "2026-10-01T09:30:00.000Z",
"createdAt": "2026-10-01T09:30:00.000Z"
}
]
}Invite by email with a role and a scope (link returned outside production)
POST/organisations/{id}/membersClé API
Paramètres
idstringpathobligatoire
Corps de la requête application/json
scopestring- enum: "all", "accounts"
- default: "all"
accountIdsstring[]Payment account ids when scope is "accounts"
emailstringobligatoireroleIdstring (uuid)obligatoire
Réponses
201
idstring (uuid)obligatoireemailstringobligatoireroleIdstring (uuid)obligatoireroleNamestringobligatoirescopestringobligatoire- enum: "all", "accounts"
accountIdsstring[]obligatoireexpiresAtstring (date-time)obligatoirecreatedAtstring (date-time)obligatoireinviteLinkstring | nullInvitation link, returned outside production only until email transport exists
Exemples de code
curl -X POST "$KONNECT_API_URL/organisations/id/members" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"scope": "all",
"accountIds": [
"string"
],
"email": "new.member@example.test",
"roleId": "roleId"
}'Exemple : corps de la requête
{
"scope": "all",
"accountIds": [
"string"
],
"email": "new.member@example.test",
"roleId": "roleId"
}Exemple : 201
{
"id": "id",
"email": "buyer@example.com",
"roleId": "roleId",
"roleName": "roleName",
"scope": "all",
"accountIds": [
"string"
],
"expiresAt": "2026-10-01T09:30:00.000Z",
"createdAt": "2026-10-01T09:30:00.000Z",
"inviteLink": "inviteLink"
}Change the role or the scope of a member (not the owner)
PATCH/organisations/{id}/members/{userId}Clé API
Paramètres
idstringpathobligatoireuserIdstringpathobligatoire
Corps de la requête application/json
scopestring- enum: "all", "accounts"
- default: "all"
accountIdsstring[]Payment account ids when scope is "accounts"
roleIdstring (uuid)
Réponses
204
Exemples de code
curl -X PATCH "$KONNECT_API_URL/organisations/id/members/userId" \
-H "Authorization: Bearer $KONNECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"scope": "all",
"accountIds": [
"string"
],
"roleId": "roleId"
}'Exemple : corps de la requête
{
"scope": "all",
"accountIds": [
"string"
],
"roleId": "roleId"
}Remove a member (not the owner)
DELETE/organisations/{id}/members/{userId}Clé API
Paramètres
idstringpathobligatoireuserIdstringpathobligatoire
Réponses
204
Exemples de code
curl -X DELETE "$KONNECT_API_URL/organisations/id/members/userId" \
-H "Authorization: Bearer $KONNECT_API_KEY"Cancel a pending invitation
DELETE/organisations/{id}/invitations/{invitationId}Clé API
Paramètres
idstringpathobligatoireinvitationIdstringpathobligatoire
Réponses
204
Exemples de code
curl -X DELETE "$KONNECT_API_URL/organisations/id/invitations/invitationId" \
-H "Authorization: Bearer $KONNECT_API_KEY"Accept an invitation: creates the account for a new email, or needs the session of the invited email
POST/invitations/accept
Paramètres
Aucun paramètre.
Corps de la requête application/json
tokenstringobligatoirefirstNamestringRequired when the email has no account yet
lastNamestringRequired when the email has no account yet
passwordstring (password)Required when the email has no account yet
Réponses
200
organisationIdstring (uuid)obligatoireuserIdstring (uuid)obligatoireaccountCreatedbooleanobligatoireTrue when the account was created by this acceptance
Exemples de code
curl -X POST "$KONNECT_API_URL/invitations/accept" \
-H "Content-Type: application/json" \
-d '{
"token": "token",
"firstName": "Salma",
"lastName": "Example",
"password": "password"
}'Exemple : corps de la requête
{
"token": "token",
"firstName": "Salma",
"lastName": "Example",
"password": "password"
}Exemple : 200
{
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"userId": "userId",
"accountCreated": true
}