Skip to content

Accept receipts

Receipts

Accept receipts

Downstream path: verify a fiscal402.receipt locally, then post or store it. No Fiscal402 engine required.

Platforms can emit Fiscal402. Downstream systems should expect the receipt — not a Fiscal402 dashboard login.

Accept Fiscal402 receipts

  1. Receive fiscal402.receipt/1.0.0.
  2. Fetch JWKS from the issuer.
  3. Verify locally (TypeScript source, Python verifier, or your own implementation of the spec).
  4. If VERIFIED, map to an accounting entry or store the receipt as audit evidence.
  1. receipt + JWKS + optional UBL
  2. verifyReceipt()
  3. readDetermination() / mapToAccountingEntry()

Python

verify_receipt.py

python3 public/verifiers/python/verify_receipt.py \
  --receipt examples/verify/receipt.json \
  --jwks examples/verify/jwks.json \
  --ubl examples/verify/invoice.xml

The Python verifier does not import Fiscal402 TypeScript and does not shell out to Node. It is not on PyPI.