Historique financier de plusieurs sociétés en un appel, par SIREN
POST /v1/rpc/tools/get_financials_batch
curl -X POST "https://api.insourcia.io/v1/rpc/tools/get_financials_batch" \ -H "Authorization: Bearer isk_VOTRE_CLE" \ -H "Content-Type: application/json" \ -d '{ "sirens": [ "string" ]}'import requests
r = requests.post( "https://api.insourcia.io/v1/rpc/tools/get_financials_batch", headers={"Authorization": "Bearer isk_VOTRE_CLE"}, json={ "sirens": [ "string" ] },)print(r.json())const r = await fetch("https://api.insourcia.io/v1/rpc/tools/get_financials_batch", { method: "POST", headers: { Authorization: "Bearer isk_VOTRE_CLE", "Content-Type": "application/json", }, body: JSON.stringify({ "sirens": [ "string" ] }),});console.log(await r.json());Historique financier de plusieurs sociétés en un appel, par SIREN. 10 sociétés en mode compact, 3 seulement en detail=full.
Autorisations
Section intitulée « Autorisations »Corps de la requête required
Section intitulée « Corps de la requête required »object
SIREN a 9 chiffres. 10 maximum en compact, 3 en detail=full
Nombre d’exercices par société (défaut 3, max 10)
K (consolidé), C (complet/social), S (simplifié)
Compact (défaut du lot, ~40 champs par exercice) ou full (~140 champs, 3 sociétés maximum ; 2 crédits par société, ou abonnements seuls au quota)
Abonnements. true ajoute estimation_financiere (CA et EBE ESTIMÉS) et estimation_financiere_exercices (autres exercices), 5 crédits par société ; sans abonnement, omise (sections_skipped), ou 403 au quota ; sinon estimation_disponible seul.
Champs financiers additionnels à ajouter à chaque exercice, mêmes noms que sur get_financials
Réponses
Section intitulée « Réponses »Successful tool invocation
object
Tool-specific response payload.
Invalid input (Zod validation failure)
object
Validation issues (only present on 400 from Zod schema parse).
object
Missing or invalid API key
Balance below the call’s maximum cost (insufficient_credits) or the organisation’s spend cap reached (spend_cap_reached). Nothing is debited.
Refused for this account. Nothing is debited.
Unknown tool name or resource not found
Internal error