INVOICE PROCESSING

Daily FX Restatement Audit for Cross-Border AP in BigQuery

Runs every morning to recompute base-currency totals for the prior day's invoices using rate-date-correct FX rates.

CategoryInvoice Processing
Enginesim
Difficultyadvanced
Triggerschedule
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule after market close
  • ActionRead prior-day foreign invoicesGoogle BigQueryBigQuery
  • ActionFetch official close rate per rate-dateHTTP webhook
  • LogicRecompute and flag rate drift
  • OutputWrite reconciled restatement tableGoogle BigQueryBigQuery

What it does

This scheduled job audits yesterday's cross-border invoices. For each one it pulls the official FX rate for that invoice's date, recomputes the base-currency amount, and compares it to what was originally booked. Discrepancies above a tolerance get flagged for finance review.

When to use it

Use it when your controllers need a defensible, rate-date-accurate AP figure for reporting and don't want to discover conversion errors at quarter close. It turns FX normalization into a daily reconciled record rather than a one-time guess.

How it works

  1. 1A daily schedule trigger fires after the prior business day closes.
  2. 2A BigQuery read pulls all foreign-currency invoices booked the previous day.
  3. 3An HTTP call retrieves the official close rate for each invoice's rate-date.
  4. 4A logic step recomputes base-currency totals and compares against booked values, marking rows over the drift tolerance.
  5. 5The reconciled restatement, with rate, rate-date, and drift delta, is written to a BigQuery audit table for cross-border AP reporting.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect BigQueryDatasets, queries, schemas.
  2. 2
    Connect HTTP webhookTrigger any URL on agent actions.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.