TaxStreem Logo
DOCS/prism/analyze-items

Invoice Analysis

Authentication Required

Include your API key in the x-api-key header of every request.

The Invoice Analysis API uses Prism to validate, extract, and classify invoice data for tax compliance. Submit a structured invoice and receive a compliance assessment — including VAT treatment, recommended WHT deductions, and any detected anomalies — in a single synchronous response.

Integration Flow

  1. 1Submit Invoice: Send the invoice metadata and line items to Prism.
  2. 2Receive Analysis: Prism returns a tax compliance assessment with line-level VAT/WHT recommendations.
  3. 3Act on Results: Route compliant invoices to payment, flag anomalies for review, or trigger Flux filing automatically.

HTTP Request

POSThttps://api.taxstreem.com/v1/prism/invoice-analyze/single

Request Body

ParameterTypeRequiredDescription
businessIdstringRequiredUnique identifier of your business/client entity.
businessNamestringOptionalLegal or trade name of the business entity.
businessTaxIDstringOptionalBusiness Tax Identification Number (TIN).
invoiceNumberstringOptionalInvoice reference code (if known).
vendorNamestringOptionalName of issuing vendor/supplier (if known).
vendorTaxIdstringOptionalVendor's Tax Identification Number (if known).
invoiceDatestringOptionalISO issue date (if known, e.g. 2024-03-20).
currencystringOptionalISO 4217 currency code (e.g. NGN).
invoiceUrlstringOptionalPublic or pre-signed URL of invoice document (PDF, PNG, JPG) for OCR, error detection & tax treatment.

Response

Returns 202 Accepted with job tracking details. Results are delivered via webhooks or polled via status URL.

FieldTypeDescription
data.jobIdstringUnique tracking job ID.
data.statusstringJob status (pending).
Example Request
curl -X POST https://api.taxstreem.com/v1/prism/invoice-analyze/single \
  -H "x-api-key: txsm_test_SK489c..." \
  -H "Content-Type: application/json" \
  -d '{
   "businessId": "349584893-35444",
   "businessName": "Kev's Bakery Ltd",
   "businessTaxID": "12345678-0001",
   "invoiceNumber": "INV-2024-00342",
   "vendorName": "Acme Consulting Ltd",
   "vendorTaxId": "1234567890123123",
   "invoiceDate": "2024-03-20",
   "currency": "NGN",
   "invoiceUrl": "https://storage.taxstreem.com/invoices/inv-001.pdf"
}'
Example Response
202 Accepted
{
  "success": true,
  "data": {
    "jobId": "job_987654321xyz",
    "taskId": "task_12345",
    "status": "pending",
    "totalItems": 1,
    "creditsUsed": 1,
    "creditsRemaining": 499,
    "message": "Single invoice treatment queued successfully",
    "statusUrl": "/v1/prism/invoice-analyze/batch/job_987654321xyz/status"
  }
}