TaxStreem Logo
DOCS/prism/overview

Overview

PRISM (INVOICING)

Automating your invoice compliance lifecycle with Prism.

Prism is TaxStreem's invoice intelligence layer. It validates, extracts, and classifies invoice data for tax compliance โ€” returning VAT treatment recommendations, WHT deduction amounts, and anomaly flags in a single synchronous response. Prism also handles vendor onboarding by storing and associating vendor tax profiles for future invoice analysis.

๐Ÿงพ What Does Prism Do?

Prism exposes three core operations, each targeting a distinct stage of the invoice lifecycle:

EndpointDescription
Analyze InvoiceSubmit a single structured invoice and receive a compliance assessment with VAT treatment and WHT recommendations.
Batch AnalyzeSubmit up to 500 invoices in a single request for high-volume compliance processing.
Vendor UploadRegister a vendor's tax profile so Prism can apply the correct WHT rate and VAT status on future invoices automatically.

โš™๏ธ How Invoice Analysis Works

When you submit an invoice, Prism inspects the line items, counterparty tax profile, and transaction context to determine the applicable tax treatment. The response includes:

โœ…VAT Treatment โ€” whether VAT is applicable, exempt, or zero-rated per line item.
โœ…WHT Deduction โ€” the recommended withholding amount to deduct from the vendor payout.
โœ…Anomaly Flags โ€” detected inconsistencies such as missing Tax IDs, duplicate invoice numbers, or mismatched amounts.

๐Ÿ“Œ Compliant invoices can be routed directly to Flux for VAT or WHT filing without any additional transformation.

๐Ÿข Vendor Tax Profiles

Registering a vendor via the Vendor Upload endpoint stores their Tax ID, VAT status, and applicable WHT rate against your account. Once uploaded:

  • Prism automatically applies the correct WHT rate to any future invoice submitted for that vendor.
  • You do not need to pass VAT status or WHT rate per-invoice โ€” Prism resolves them from the stored profile.
  • Updates to a vendor profile take effect on all subsequent invoice submissions.

๐Ÿ› ๏ธ Using Prism via API

Prism expects exact, validated values in every request. Avoid free-text fields where enumerated values are defined.

โœ…Pass vendor Tax IDs exactly as issued โ€” 13 digits, no formatting (e.g. "taxId": "1234567890123").
โœ…Use the invoiceNumber field as your idempotency key โ€” duplicate submissions with the same number are rejected.

๐Ÿ’ก Additional Notes

๐Ÿ“˜ Invoice analysis is synchronous โ€” results are returned immediately in the response body.
๐Ÿ“˜ Batch submissions return a per-invoice result array; individual failures do not abort the entire batch.
๐Ÿ“˜ Rate limiting will enforce 429 status codes if queues overfill.