payment-accounts
Version 0.1.07 opérations
Payment accounts within your scope, with routing and providers
GET/organisations/{id}/payment-accountsClé API
Paramètres
idstringpathobligatoireincludeArchivedbooleanqueryInclude archived accounts (default false)
Réponses
200
idstring (uuid)obligatoireorganisationIdstring (uuid)obligatoirenamestringobligatoireslugstringobligatoiredisplayNamestring | nullobligatoireCheckout name; null uses name
logoFileIdstring (uuid) | nullobligatoirethemeColorstring | nullobligatoiresuccessUrlstring | nullobligatoirefailUrlstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
isDefaultbooleanobligatoirearchivedAtstring (date-time) | nullobligatoireroutesRouteDto[]obligatoireproviderstringobligatoire- enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
labelstringobligatoireaffiliationIdstring (uuid)obligatoireaffiliationStatusstringobligatoireStatus of the affiliation; only active ones make the provider accepted
- enum: "draft", "verifying", "active", "suspended", "revoked", "unknown"
acceptedProvidersstring[]obligatoireProviders with an active routed affiliation; empty unless the account is active
createdAtstring (date-time)obligatoireupdatedAtstring (date-time)obligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/organisations/id/payment-accounts" \
-H "x-api-key: $KONNECT_API_KEY"Exemple : 200
[
{
"id": "id",
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"name": "name",
"slug": "online-shop",
"displayName": "displayName",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "successUrl",
"failUrl": "failUrl",
"status": "active",
"isDefault": true,
"archivedAt": "2026-10-01T09:30:00.000Z",
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId",
"affiliationStatus": "draft"
}
],
"acceptedProviders": [
"clictopay"
],
"createdAt": "2026-10-01T09:30:00.000Z",
"updatedAt": "2026-10-01T09:30:00.000Z"
}
]Create a payment account (a collection point of the organisation)
POST/organisations/{id}/payment-accountsSession du tableau de bord
Paramètres
idstringpathobligatoire
Corps de la requête application/json
displayNamestring | nulllogoFileIdstring (uuid) | nullA file of this organisation (upload it first with type logo)
themeColorstring | nullsuccessUrlstring | nullfailUrlstring | nullnamestringobligatoireslugstringDerived from name when omitted
Réponses
201
idstring (uuid)obligatoireorganisationIdstring (uuid)obligatoirenamestringobligatoireslugstringobligatoiredisplayNamestring | nullobligatoireCheckout name; null uses name
logoFileIdstring (uuid) | nullobligatoirethemeColorstring | nullobligatoiresuccessUrlstring | nullobligatoirefailUrlstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
isDefaultbooleanobligatoirearchivedAtstring (date-time) | nullobligatoireroutesRouteDto[]obligatoireproviderstringobligatoire- enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
labelstringobligatoireaffiliationIdstring (uuid)obligatoireaffiliationStatusstringobligatoireStatus of the affiliation; only active ones make the provider accepted
- enum: "draft", "verifying", "active", "suspended", "revoked", "unknown"
acceptedProvidersstring[]obligatoireProviders with an active routed affiliation; empty unless the account is active
createdAtstring (date-time)obligatoireupdatedAtstring (date-time)obligatoire
Exemples de code
curl -X POST "$KONNECT_API_URL/organisations/id/payment-accounts" \
-H "Cookie: konnect_session=$KONNECT_SESSION" \
-H "Content-Type: application/json" \
-d '{
"displayName": "Test shop",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "https://shop.example.test/ok",
"failUrl": "https://shop.example.test/ko",
"name": "Online shop",
"slug": "online-shop"
}'Exemple : corps de la requête
{
"displayName": "Test shop",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "https://shop.example.test/ok",
"failUrl": "https://shop.example.test/ko",
"name": "Online shop",
"slug": "online-shop"
}Exemple : 201
{
"id": "id",
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"name": "name",
"slug": "online-shop",
"displayName": "displayName",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "successUrl",
"failUrl": "failUrl",
"status": "active",
"isDefault": true,
"archivedAt": "2026-10-01T09:30:00.000Z",
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId",
"affiliationStatus": "draft"
}
],
"acceptedProviders": [
"clictopay"
],
"createdAt": "2026-10-01T09:30:00.000Z",
"updatedAt": "2026-10-01T09:30:00.000Z"
}One payment account
GET/organisations/{id}/payment-accounts/{accountId}Clé API
Paramètres
idstringpathobligatoireaccountIdstringpathobligatoire
Réponses
200
idstring (uuid)obligatoireorganisationIdstring (uuid)obligatoirenamestringobligatoireslugstringobligatoiredisplayNamestring | nullobligatoireCheckout name; null uses name
logoFileIdstring (uuid) | nullobligatoirethemeColorstring | nullobligatoiresuccessUrlstring | nullobligatoirefailUrlstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
isDefaultbooleanobligatoirearchivedAtstring (date-time) | nullobligatoireroutesRouteDto[]obligatoireproviderstringobligatoire- enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
labelstringobligatoireaffiliationIdstring (uuid)obligatoireaffiliationStatusstringobligatoireStatus of the affiliation; only active ones make the provider accepted
- enum: "draft", "verifying", "active", "suspended", "revoked", "unknown"
acceptedProvidersstring[]obligatoireProviders with an active routed affiliation; empty unless the account is active
createdAtstring (date-time)obligatoireupdatedAtstring (date-time)obligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/organisations/id/payment-accounts/accountId" \
-H "x-api-key: $KONNECT_API_KEY"Exemple : 200
{
"id": "id",
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"name": "name",
"slug": "online-shop",
"displayName": "displayName",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "successUrl",
"failUrl": "failUrl",
"status": "active",
"isDefault": true,
"archivedAt": "2026-10-01T09:30:00.000Z",
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId",
"affiliationStatus": "draft"
}
],
"acceptedProviders": [
"clictopay"
],
"createdAt": "2026-10-01T09:30:00.000Z",
"updatedAt": "2026-10-01T09:30:00.000Z"
}Edit name, slug, branding, URLs; pause, resume or make default
PATCH/organisations/{id}/payment-accounts/{accountId}Session du tableau de bord
Paramètres
idstringpathobligatoireaccountIdstringpathobligatoire
Corps de la requête application/json
displayNamestring | nulllogoFileIdstring (uuid) | nullA file of this organisation (upload it first with type logo)
themeColorstring | nullsuccessUrlstring | nullfailUrlstring | nullnamestringslugstringstatusstringPause or resume; archiving has its own route
- enum: "active", "paused"
isDefaultnumberMake this account the default one (the previous default stops being it)
- enum: true
Réponses
200
idstring (uuid)obligatoireorganisationIdstring (uuid)obligatoirenamestringobligatoireslugstringobligatoiredisplayNamestring | nullobligatoireCheckout name; null uses name
logoFileIdstring (uuid) | nullobligatoirethemeColorstring | nullobligatoiresuccessUrlstring | nullobligatoirefailUrlstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
isDefaultbooleanobligatoirearchivedAtstring (date-time) | nullobligatoireroutesRouteDto[]obligatoireproviderstringobligatoire- enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
labelstringobligatoireaffiliationIdstring (uuid)obligatoireaffiliationStatusstringobligatoireStatus of the affiliation; only active ones make the provider accepted
- enum: "draft", "verifying", "active", "suspended", "revoked", "unknown"
acceptedProvidersstring[]obligatoireProviders with an active routed affiliation; empty unless the account is active
createdAtstring (date-time)obligatoireupdatedAtstring (date-time)obligatoire
Exemples de code
curl -X PATCH "$KONNECT_API_URL/organisations/id/payment-accounts/accountId" \
-H "Cookie: konnect_session=$KONNECT_SESSION" \
-H "Content-Type: application/json" \
-d '{
"displayName": "Test shop",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "https://shop.example.test/ok",
"failUrl": "https://shop.example.test/ko",
"name": "name",
"slug": "slug",
"status": "active",
"isDefault": true
}'Exemple : corps de la requête
{
"displayName": "Test shop",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "https://shop.example.test/ok",
"failUrl": "https://shop.example.test/ko",
"name": "name",
"slug": "slug",
"status": "active",
"isDefault": true
}Exemple : 200
{
"id": "id",
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"name": "name",
"slug": "online-shop",
"displayName": "displayName",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "successUrl",
"failUrl": "failUrl",
"status": "active",
"isDefault": true,
"archivedAt": "2026-10-01T09:30:00.000Z",
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId",
"affiliationStatus": "draft"
}
],
"acceptedProviders": [
"clictopay"
],
"createdAt": "2026-10-01T09:30:00.000Z",
"updatedAt": "2026-10-01T09:30:00.000Z"
}Archive a payment account (terminal; never the default account)
POST/organisations/{id}/payment-accounts/{accountId}/archiveSession du tableau de bord
Paramètres
idstringpathobligatoireaccountIdstringpathobligatoire
Réponses
200
idstring (uuid)obligatoireorganisationIdstring (uuid)obligatoirenamestringobligatoireslugstringobligatoiredisplayNamestring | nullobligatoireCheckout name; null uses name
logoFileIdstring (uuid) | nullobligatoirethemeColorstring | nullobligatoiresuccessUrlstring | nullobligatoirefailUrlstring | nullobligatoirestatusstringobligatoire- enum: "active", "paused", "archived"
isDefaultbooleanobligatoirearchivedAtstring (date-time) | nullobligatoireroutesRouteDto[]obligatoireproviderstringobligatoire- enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
labelstringobligatoireaffiliationIdstring (uuid)obligatoireaffiliationStatusstringobligatoireStatus of the affiliation; only active ones make the provider accepted
- enum: "draft", "verifying", "active", "suspended", "revoked", "unknown"
acceptedProvidersstring[]obligatoireProviders with an active routed affiliation; empty unless the account is active
createdAtstring (date-time)obligatoireupdatedAtstring (date-time)obligatoire
Exemples de code
curl -X POST "$KONNECT_API_URL/organisations/id/payment-accounts/accountId/archive" \
-H "Cookie: konnect_session=$KONNECT_SESSION"Exemple : 200
{
"id": "id",
"organisationId": "org_01J9Z3K4EXAMPLE0000000000",
"name": "name",
"slug": "online-shop",
"displayName": "displayName",
"logoFileId": "logoFileId",
"themeColor": "#1a2b3c",
"successUrl": "successUrl",
"failUrl": "failUrl",
"status": "active",
"isDefault": true,
"archivedAt": "2026-10-01T09:30:00.000Z",
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId",
"affiliationStatus": "draft"
}
],
"acceptedProviders": [
"clictopay"
],
"createdAt": "2026-10-01T09:30:00.000Z",
"updatedAt": "2026-10-01T09:30:00.000Z"
}Affiliation used per provider, and the accepted providers
GET/organisations/{id}/payment-accounts/{accountId}/routingClé API
Paramètres
idstringpathobligatoireaccountIdstringpathobligatoire
Réponses
200
paymentAccountIdstring (uuid)obligatoireroutesRouteDto[]obligatoireproviderstringobligatoire- enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
labelstringobligatoireaffiliationIdstring (uuid)obligatoireaffiliationStatusstringobligatoireStatus of the affiliation; only active ones make the provider accepted
- enum: "draft", "verifying", "active", "suspended", "revoked", "unknown"
acceptedProvidersstring[]obligatoire
Exemples de code
curl -X GET "$KONNECT_API_URL/organisations/id/payment-accounts/accountId/routing" \
-H "x-api-key: $KONNECT_API_KEY"Exemple : 200
{
"paymentAccountId": "paymentAccountId",
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId",
"affiliationStatus": "draft"
}
],
"acceptedProviders": [
"clictopay"
]
}Route providers to affiliations of this organisation (null removes a route); revoked affiliations and affiliations of another organisation are refused
PUT/organisations/{id}/payment-accounts/{accountId}/routingSession du tableau de bord
Paramètres
idstringpathobligatoireaccountIdstringpathobligatoire
Corps de la requête application/json
routesRouteChangeDto[]obligatoireChanges per provider; providers not listed keep their routing
providerstringobligatoire- enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
labelstringLabel of the route. With an affiliation, it must match the affiliation label (taken from it when omitted). With null, omitting it removes every route of the provider.
affiliationIdstring (uuid) | nullobligatoireAffiliation to use, or null to stop routing this provider
Réponses
200
paymentAccountIdstring (uuid)obligatoireroutesRouteDto[]obligatoireproviderstringobligatoire- enum: "clictopay", "flouci", "izi", "mpgs_poste", "pluxee", "kashy", "enda_tao"
labelstringobligatoireaffiliationIdstring (uuid)obligatoireaffiliationStatusstringobligatoireStatus of the affiliation; only active ones make the provider accepted
- enum: "draft", "verifying", "active", "suspended", "revoked", "unknown"
acceptedProvidersstring[]obligatoire
Exemples de code
curl -X PUT "$KONNECT_API_URL/organisations/id/payment-accounts/accountId/routing" \
-H "Cookie: konnect_session=$KONNECT_SESSION" \
-H "Content-Type: application/json" \
-d '{
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId"
}
]
}'Exemple : corps de la requête
{
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId"
}
]
}Exemple : 200
{
"paymentAccountId": "paymentAccountId",
"routes": [
{
"provider": "clictopay",
"label": "default",
"affiliationId": "affiliationId",
"affiliationStatus": "draft"
}
],
"acceptedProviders": [
"clictopay"
]
}