diff --git a/payloads/README.md b/payloads/README.md index ae11249..5f0b178 100644 --- a/payloads/README.md +++ b/payloads/README.md @@ -44,7 +44,7 @@ génère une payload par défaut basée sur la spécification OpenAPI associée. * Brevets déposés (`/v3/inpi/unites_legales/{siren}/brevets`) * Marques déposées (`/v3/inpi/unites_legales/{siren}/marques`) * Modèles déposés (`/v3/inpi/unites_legales/{siren}/modeles`) -* Actes et bilans (`/v3/inpi/rne/unites_legales/open_data/{siren}/actes_bilans`) +* [Actes et bilans](api_entreprise_v3_inpi_rne_actes_bilans) (`/v3/inpi/rne/unites_legales/open_data/{siren}/actes_bilans`) * [Bénéficiaires effectifs](api_entreprise_v3_inpi_rne_beneficiaires_effectifs) (`/v3/inpi/rne/unites_legales/{siren}/beneficiaires_effectifs`) * [Adresse établissement](api_entreprise_v3_insee_adresses_etablissements) (`/v3/insee/sirene/etablissements/{siret}/adresse`) * [Adresse établissement en open data](api_entreprise_v3_insee_adresses_etablissements_diffusables) (`/v3/insee/sirene/etablissements/diffusibles/{siret}/adresse`) diff --git a/payloads/api_entreprise_v3_inpi_rne_actes_bilans/200.yaml b/payloads/api_entreprise_v3_inpi_rne_actes_bilans/200.yaml new file mode 100644 index 0000000..fe5643a --- /dev/null +++ b/payloads/api_entreprise_v3_inpi_rne_actes_bilans/200.yaml @@ -0,0 +1,40 @@ +--- +params: + siren: 130025265 +description: 'Unité légale trouvée' +status: 200 +payload: |- + { + "data": { + "actes": [ + { + "updated_at": "2023-11-01", + "date_depot": "2023-08-08", + "nom_document": "X9wvz5eKvKQv_C0022A1001L257081D20230902H180411TPIJTES003PDBOR", + "id": "65419234a1f7d1f2ba09bd8c", + "link": "https://test.entreprise.api.gouv.fr/inpi_proxy/download/%2FV+svyVVJGVCJroamyqjOrECaXHorkxJ39vZH1IMHz4N+6gvit9zgoQ=--rJ1ss+Brc7oVhloH--huyvWA83YgMFqOnjyKDmXQ==", + "types": [ + { + "acte": "Acte", + "decision": "Augmentation du capital social" + } + ] + } + ], + "bilans": [ + { + "updated_at": "2023-11-01", + "date_depot": "2023-08-08", + "nom_document": "X9wvz5eKvKQv_C0022A1001L257081D20230902H180411TPIJTES003PDBOR", + "id": "65419234a1f7d1f2ba09bd8c", + "link": "https://entreprise.api.gouv.fr/inpi_proxy/download/%2FV+svyVVJGVCJroamyqjOrECaXHorkxJ39vZH1IMHz4N+6gvit9zgoQ=--rJ1ss+Brc7oVhloH--huyvWA83YgMFqOnjyKDmXQ==", + "date_cloture": "2023-08-08", + "type": "K" + } + ] + }, + "links": { + }, + "meta": { + } + } diff --git a/payloads/api_entreprise_v3_inpi_rne_actes_bilans/404.yaml b/payloads/api_entreprise_v3_inpi_rne_actes_bilans/404.yaml new file mode 100644 index 0000000..8caa113 --- /dev/null +++ b/payloads/api_entreprise_v3_inpi_rne_actes_bilans/404.yaml @@ -0,0 +1,18 @@ +--- +params: + siren: 754508695 +status: 404 +description: 'Unité légale non trouvée' +payload: |- + { + "errors": [ + { + "code": "34003", + "title": "Entité non trouvée", + "detail": "L'identifiant indiqué n'existe pas, n'est pas connu ou ne comporte aucune information pour cet appel. Veuillez vérifier que l'identifiant correspond au périmètre couvert par l'API.", + "meta": { + "provider": "INPI - RNE" + } + } + ] + } diff --git a/payloads/api_entreprise_v3_inpi_rne_actes_bilans/README.md b/payloads/api_entreprise_v3_inpi_rne_actes_bilans/README.md new file mode 100644 index 0000000..7b3078b --- /dev/null +++ b/payloads/api_entreprise_v3_inpi_rne_actes_bilans/README.md @@ -0,0 +1,123 @@ +# Actes et bilans +* [200.yaml](200.yaml) + + Status `200` + + Unité légale trouvée + +
Paramètres +

+ + ```json + { + "siren": 130025265 + } + ``` + +

+
+ +
Réponse API +

+ + ```json + { + "data": { + "actes": [ + { + "updated_at": "2023-11-01", + "date_depot": "2023-08-08", + "nom_document": "X9wvz5eKvKQv_C0022A1001L257081D20230902H180411TPIJTES003PDBOR", + "id": "65419234a1f7d1f2ba09bd8c", + "link": "https://test.entreprise.api.gouv.fr/inpi_proxy/download/%2FV+svyVVJGVCJroamyqjOrECaXHorkxJ39vZH1IMHz4N+6gvit9zgoQ=--rJ1ss+Brc7oVhloH--huyvWA83YgMFqOnjyKDmXQ==", + "types": [ + { + "acte": "Acte", + "decision": "Augmentation du capital social" + } + ] + } + ], + "bilans": [ + { + "updated_at": "2023-11-01", + "date_depot": "2023-08-08", + "nom_document": "X9wvz5eKvKQv_C0022A1001L257081D20230902H180411TPIJTES003PDBOR", + "id": "65419234a1f7d1f2ba09bd8c", + "link": "https://entreprise.api.gouv.fr/inpi_proxy/download/%2FV+svyVVJGVCJroamyqjOrECaXHorkxJ39vZH1IMHz4N+6gvit9zgoQ=--rJ1ss+Brc7oVhloH--huyvWA83YgMFqOnjyKDmXQ==", + "date_cloture": "2023-08-08", + "type": "K" + } + ] + }, + "links": { + }, + "meta": { + } + } + ``` + +

+
+ +
Commande cURL +

+ + ```bash + curl -H "Authorization: Bearer $token" \ + -G -d 'recipient=10000001700010' -d 'context=Contexte+de+la+requ%C3%AAte' -d 'object=Objet+de+la+requ%C3%AAte' \ + --url "https://staging.entreprise.api.gouv.fr/v3/inpi/rne/unites_legales/open_data/130025265/actes_bilans" + ``` + +

+
+* [404.yaml](404.yaml) + + Status `404` + + Unité légale non trouvée + +
Paramètres +

+ + ```json + { + "siren": 754508695 + } + ``` + +

+
+ +
Réponse API +

+ + ```json + { + "errors": [ + { + "code": "34003", + "title": "Entité non trouvée", + "detail": "L'identifiant indiqué n'existe pas, n'est pas connu ou ne comporte aucune information pour cet appel. Veuillez vérifier que l'identifiant correspond au périmètre couvert par l'API.", + "meta": { + "provider": "INPI - RNE" + } + } + ] + } + ``` + +

+
+ +
Commande cURL +

+ + ```bash + curl -H "Authorization: Bearer $token" \ + -G -d 'recipient=10000001700010' -d 'context=Contexte+de+la+requ%C3%AAte' -d 'object=Objet+de+la+requ%C3%AAte' \ + --url "https://staging.entreprise.api.gouv.fr/v3/inpi/rne/unites_legales/open_data/754508695/actes_bilans" + ``` + +

+
diff --git a/payloads/api_entreprise_v3_inpi_rne_actes_bilans/summary.csv b/payloads/api_entreprise_v3_inpi_rne_actes_bilans/summary.csv new file mode 100644 index 0000000..11826f3 --- /dev/null +++ b/payloads/api_entreprise_v3_inpi_rne_actes_bilans/summary.csv @@ -0,0 +1,47 @@ +Titre,Description,Paramètres,Status,Réponse +,Unité légale trouvée,"{""siren"":130025265}",200,"{ + ""data"": { + ""actes"": [ + { + ""updated_at"": ""2023-11-01"", + ""date_depot"": ""2023-08-08"", + ""nom_document"": ""X9wvz5eKvKQv_C0022A1001L257081D20230902H180411TPIJTES003PDBOR"", + ""id"": ""65419234a1f7d1f2ba09bd8c"", + ""link"": ""https://test.entreprise.api.gouv.fr/inpi_proxy/download/%2FV+svyVVJGVCJroamyqjOrECaXHorkxJ39vZH1IMHz4N+6gvit9zgoQ=--rJ1ss+Brc7oVhloH--huyvWA83YgMFqOnjyKDmXQ=="", + ""types"": [ + { + ""acte"": ""Acte"", + ""decision"": ""Augmentation du capital social"" + } + ] + } + ], + ""bilans"": [ + { + ""updated_at"": ""2023-11-01"", + ""date_depot"": ""2023-08-08"", + ""nom_document"": ""X9wvz5eKvKQv_C0022A1001L257081D20230902H180411TPIJTES003PDBOR"", + ""id"": ""65419234a1f7d1f2ba09bd8c"", + ""link"": ""https://entreprise.api.gouv.fr/inpi_proxy/download/%2FV+svyVVJGVCJroamyqjOrECaXHorkxJ39vZH1IMHz4N+6gvit9zgoQ=--rJ1ss+Brc7oVhloH--huyvWA83YgMFqOnjyKDmXQ=="", + ""date_cloture"": ""2023-08-08"", + ""type"": ""K"" + } + ] + }, + ""links"": { + }, + ""meta"": { + } +}" +,Unité légale non trouvée,"{""siren"":754508695}",404,"{ + ""errors"": [ + { + ""code"": ""34003"", + ""title"": ""Entité non trouvée"", + ""detail"": ""L'identifiant indiqué n'existe pas, n'est pas connu ou ne comporte aucune information pour cet appel. Veuillez vérifier que l'identifiant correspond au périmètre couvert par l'API."", + ""meta"": { + ""provider"": ""INPI - RNE"" + } + } + ] +}"