Sync exposure
Trigger an on-demand recompute of registration threshold exposure for a corporation. The exposure engine evaluates the corporation’s transactions against jurisdiction-level exposure rules and updates the cached breached set used by GET /nexus?v2=true.
As part of every successful run, the engine emits an INDIRECT_TAX.EXPOSURE.COMPUTED webhook containing the corporation’s full current set of exposed jurisdictions (see Topics and Events). Use this endpoint when you need fresh exposure data without waiting for the daily background recompute — for example, immediately after ingesting a backfill of historical transactions, or after a registration is created or archived.
Overview
Trigger an on-demand recompute of registration threshold exposure for a corporation. The exposure engine evaluates the corporation’s transactions against jurisdiction-level exposure rules and updates the cached breached set returned by GET /nexus?v2=true. Every successful run emits anINDIRECT_TAX.EXPOSURE.COMPUTED webhook with the corporation’s full current set of exposed jurisdictions. The webhook is only dispatched when at least one subscriber is registered for the topic.
When to use this endpoint
By default, exposure is recomputed automatically — both lazily on read and via a daily background job. Call this endpoint only when you need fresh exposure data immediately, for example:- After ingesting a large backfill of historical transactions and you want exposure (and any downstream consumers listening on the webhook) to reflect the new totals right away.
- After creating or archiving a registration, when you want exposure recomputed without waiting for the next scheduled run.
- When wiring up a new webhook subscriber and you want to deliver an initial snapshot of the corporation’s current exposure.
Behavior
- The full exposure engine runs synchronously. Large corporations may see latency proportional to their transaction volume.
- The response returns once the engine has finished and the webhook has been dispatched (or skipped, if no subscribers exist for the topic).
- The webhook payload contains the corporation’s full current breached set — treat each delivery as a snapshot, not a delta. See Topics and Events for the payload shape.
- The caller must be authorized to access the corporation; otherwise a
401is returned.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The unique identifier for the corporation to recompute exposure for.
Response
Exposure recomputed successfully. The INDIRECT_TAX.EXPOSURE.COMPUTED webhook has been dispatched to any subscribers.
"Exposure engine ran; IndirectTaxExposureComputed webhook dispatched."