Account

Authenticated in-dashboard dry-run preview

Returns EXACTLY what a live execute would send upstream for the supplied runner inputs — would_be_payload + preview_notice — WITHOUT submitting anything. This is the authenticated (session-cookie) analogue of the public sandbox dry-run (POST /api/v1/sandbox/actions/execute?dry_run=true). It is a pure local echo: no upstream government call, no DB write beyond the standard provenance receipt, no state change. Used by the dashboard runner to preview a saved profile.

post/api/v1/account/preview

Request

  • Base URL: https://www.apier.no
  • URL: https://www.apier.no/api/v1/account/preview
  • Auth: API key in cookie sb-access-token

Request body

org_numberstring required

Nine-digit Norwegian org number.

action'mva_melding' | 'a_melding' required

Regulatory action to preview.

payloadobject required

Free-shape test payload. Echoed back verbatim as would_be_payload — the preview never transforms it.

Response

Dry-run preview — would-be submission echoed, nothing submitted.

successtrue required

Example response

{
  "_meta": {
    "rulebook_version": "v1.0.0",
    "source": "apier.no",
    "data_source": "Brønnøysund Enhetsregisteret + Apier Universal Rulebook",
    "schema_version": "1.0.0",
    "legal_basis": "NLOD — public registry reuse",
    "response_timestamp": "2026-04-24T12:00:00.000Z",
    "response_hash": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "source_snapshot_id": "brreg-2026-04-24T02:00:00.000Z",
    "cost_nok": 0.5,
    "wallet_remaining_nok": 9.5,
    "spend_cap_remaining_nok": 12.5
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.