API LEXLOGOS

Prédiction

Prédiction type d'annonce légale - API

JSON XML

Entête HTTP

Content-Type Obligatoire
application/json
application/xml
Accept Obligatoire
application/json
application/xml
POST

ENDPOINT

Exemple de requête avec curl

curl "https://api.al.lexlogos.fr/v1/prediction" \
    -X POST \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Accept-Charset: UTF-8" \
    -d "{\"application_id\":\"Votre application ID\",\"api_key\":\"Votre API Key\",\"annonce\":{\"texte\":\"U2lSbEJ5aUNEa09jSG9tTmdVeDZyWEU2cnAybGVoVWZZZDNMemZ2dWdSNTgwazRoOVdZR0FBY240cVFQSHFQMWJWQmQ5M0pYc21lcGpGV3QyakwxTzVHc3VFbjhGVHZTVjdLQw==\"}}"

curl "https://api.al.lexlogos.fr/v1/prediction" \
    -X POST \
    -H "Accept: application/xml" \
    -H "Content-Type: application/xml" \
    -H "Accept-Charset: UTF-8" \
    -d "Votre application IDVotre API KeycjQ2SEM5Yjl5WmczRko1bWhTb2d0dmpSMEVMQXpORXBra2xRdVRxU2I4ZVhjc1lxN1doTkttUDNkQXJVSGRvR0duN1VCZllaSXpuaWVLdGFpQldReFh3cFR3RDRNVkxmeU9hSg=="

            

Prédiction

application_id string obligatoire
ApplicationID de l'utilisateur
api_key string obligatoire
Clé API de l'utilisateur
annonce Annonce légale obligatoire
Informations sur l'annonce légale

Exemple

                    
{
    "application_id": "Votre application ID",
    "api_key": "Votre API Key",
    "annonce": {
        "texte": "eXdRbVdZak1HNU5wSWVDQVRWQmM2Z0poaEVMYm9HNE8zazMwREp2NnQ0VTJIcXJnRHVzYzh6S1d1S1lVUXlucjlpN2pCdm14a1NNTFhUUmxOYlZ3bmFvUEZQUmRDN3RFYTFkTw=="
    }
}                    
                    

Votre application IDVotre API KeyZ01wVzVMRDVCdXhZSkcxNGNCdVVyekx2ZnBuQ0FpT2FUYkZaRXN5OFk5UkVLakZPVnpBcTBvOHRXNlJQbmw5b1hKdE5EbWxNbWRmeXNoRzJkY2kzSVVqUVEyUDdUVmt2MGd3SQ==
                    
                

Annonce légale

texte string obligatoire
Contenu de l'annonce légale en base64

Exemple

                    
{
    "texte": "cUd3TGxCSVRwWUpFdEVkY3pnWGlOVWpsUEY0bVRyNkp5MzBRRmpIZk45aER6MXdhSTBrT1FTdWZhdE01MktMTTlQOG5YQzdXSzdTSHg0MnIxbnhXREdWQXlSVm9tc1llc1VCcA=="
}                    
                    

aG9PNFUyRnhvalhjOFZSSEc5UnlsVjFsSGkyV3pTY0tCZFlQYkwwdUpwVUQ3OFpwQzVJRnlhTlhZZndqd3RnU05uOU1hc2c0SXFxZUdrTHVBUUVKM1R2V2ZLNmVoTW42aTB2Yg==
                    
                

Réponse API

error boolean obligatoire
Présence d'erreur(s) ou non
error_message string Message d'erreur lorsqu'une erreur est produite
result Détail de la prédiction Détail de la prédiction

Exemple

                    
{
    "error": false,
    "error_message": "Non numquam enim dolor nostrum et.",
    "result": {
        "type": "cloture_liquidation",
        "score": 0.25,
        "confidence": false,
        "credit": 81683
    }
}                    
                    

Quidem alias saepe voluptas.modification_associes0.3190503
                    
                

Détail de la prédiction

type Enum:
constitution_sarlu
constitution_sarl
constitution_sasu
constitution_sas
constitution_sci
constitution_societe_civile
constitution_snc
constitution_sa
modification_denomination
modification_siege_social
modification_forme_juridique
modification_capital_social
modification_reduction_capital_social
modification_dirigeant
modification_nomination_administrateur
modification_changement_cac
modification_associes
modification_objet_social
modification_prorogation_duree
modification_multiples
modification_perte_moitie_capital
dissolution_anticipee
cloture_liquidation
dissolution_anticipee_et_cloture
location_gerance
tup
additif_rectificatif
cession_fonds_commerce
avis_fusion
changement_nom_patronymique
Unknown
obligatoire
Type d'annonce
score float obligatoire
Score de la prédiction
confidence boolean obligatoire
Indice de confiance de la prédiction
credit int Nombre de crédit(s)

Exemple

                    
{
    "type": "cession_fonds_commerce",
    "score": 0.89,
    "confidence": false,
    "credit": 7358
}                    
                    

constitution_sarlu0.3414243