Your first test, step by step.
Start with one synthetic invoice. Use the API when you need automation.
Create a synthetic validation run
POST /v1/organizations/{organization_id}/runs
{
"project_id": "{project_id}",
"fixture": {
"id": "fr.synthetic.ubl.country-positive",
"version": "1"
}
}Three steps to a result.
- 01
Create a workspace
- 02
Run a sample
- 03
Read the result
Run the pinned synthetic France sample end to end
Sign in, create an organization/project and issue a machine credential from Developer API. Load the one-time token through your secret manager before running these terminal commands. The API does not use your browser session.
# 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"Each POST can create a distinct run. After an uncertain response, reconcile run history instead of retrying. Share-safe evidence export is available from the hosted run detail. No real invoice or provider key is needed.
Choose how to run a test.
Browser
Inspect results visually.
API
Automate with organization-scoped machine credentials.
CLI / CI
Check changes without a provider sandbox by default.
Keep machine tokens in a secret manager. After an uncertain create request, reconcile history before retrying.