Votre premier test, étape par étape.
Commencez par une facture fictive, puis passez à l'API si nécessaire.
Créer un test synthétique
POST /v1/organizations/{organization_id}/runs
{
"project_id": "{project_id}",
"fixture": {
"id": "fr.synthetic.ubl.country-positive",
"version": "1"
}
}Trois étapes vers le résultat.
- 01
Créez votre espace
- 02
Lancez un exemple
- 03
Consultez le résultat
Exécuter un exemple France synthétique de bout en bout
Connectez-vous à votre espace, créez une organisation et un projet, puis créez un identifiant machine via Developer API. Chargez ce secret dans votre gestionnaire de secrets avant d’exécuter ces commandes dans un terminal. L’API n’utilise pas la session navigateur.
# Before starting: create an organization, project and machine credential in your workspace.
# Put the one-time machine token in your secret manager.
export INVOICERIG_API_ORIGIN='https://app.invoicerig.com'
export INVOICERIG_ORGANIZATION_ID='<your-organization-uuid>'
export INVOICERIG_PROJECT_ID='<your-project-uuid>'
# INVOICERIG_TOKEN must be loaded from your secret manager.
# 1. Verify your organization/project access (safe read).
curl --fail-with-body -H "Authorization: Bearer $INVOICERIG_TOKEN" \
"$INVOICERIG_API_ORIGIN/v1/organizations/$INVOICERIG_ORGANIZATION_ID/projects"
# 2. Start exactly one pinned synthetic sample run.
curl --fail-with-body -X POST \
-H "Authorization: Bearer $INVOICERIG_TOKEN" \
-H 'Content-Type: application/json' \
-d "{\"project_id\":\"$INVOICERIG_PROJECT_ID\",\"fixture\":{\"id\":\"fr.synthetic.ubl.country-positive\",\"version\":\"1\"}}" \
"$INVOICERIG_API_ORIGIN/v1/organizations/$INVOICERIG_ORGANIZATION_ID/runs"
# 3. Copy run_id from the response; never blindly repeat the POST.
export INVOICERIG_RUN_ID='<run-id-from-create-response>'
curl --fail-with-body -H "Authorization: Bearer $INVOICERIG_TOKEN" \
"$INVOICERIG_API_ORIGIN/v1/organizations/$INVOICERIG_ORGANIZATION_ID/runs/$INVOICERIG_RUN_ID"
# 4. Inspect append-only diagnostic events (no raw invoice bytes).
curl --fail-with-body -H "Authorization: Bearer $INVOICERIG_TOKEN" \
"$INVOICERIG_API_ORIGIN/v1/organizations/$INVOICERIG_ORGANIZATION_ID/runs/$INVOICERIG_RUN_ID/events?limit=50"Une création POST peut créer un nouveau run à chaque appel : en cas d’incertitude, consultez d’abord l’historique. L’export de preuve partageable est disponible dans les détails du run dans l’espace hébergé. Aucune facture réelle ni clé fournisseur n’est nécessaire.
Choisissez comment lancer un test.
Navigateur
Parcourez les résultats à l'écran.
API
Automatisez avec des identifiants machine limités à votre organisation.
CLI / CI
Testez les modifications sans sandbox fournisseur par défaut.
Conservez les tokens machine dans un gestionnaire de secrets. En cas de réponse incertaine, consultez l'historique avant de réessayer.