Aller au contenu

Historique financier de plusieurs sociétés en un appel, par SIREN

POST
/v1/rpc/tools/get_financials_batch
Fenêtre de terminal
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"
]
}'

Historique financier de plusieurs sociétés en un appel, par SIREN. 10 sociétés en mode compact, 3 seulement en detail=full.

object
sirens
obligatoire

SIREN a 9 chiffres. 10 maximum en compact, 3 en detail=full

Array<string>
>= 1 items <= 10 items
years

Nombre d’exercices par société (défaut 3, max 10)

number
type_bilan

K (consolidé), C (complet/social), S (simplifié)

string
Valeurs autorisées : K C S
detail

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)

string
Valeurs autorisées : compact full
inclure_estimation

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.

boolean
fields

Champs financiers additionnels à ajouter à chaque exercice, mêmes noms que sur get_financials

Array<string>

Successful tool invocation

object
success
obligatoire
boolean
data
obligatoire

Tool-specific response payload.

Invalid input (Zod validation failure)

object
success
obligatoire
boolean
error
obligatoire
string
details

Validation issues (only present on 400 from Zod schema parse).

Array<object>
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