TaxStreem Logo
DOCS/numens/transaction-classification

Transaction Classification

Authentication Required

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

The Transaction Classification API uses Numens to determine the tax nature of a single financial transaction. It analyzes the counterparty, description, and amount to classify the transaction for VAT, WHT, and income tax treatment โ€” eliminating manual categorisation in your accounting workflows.

Integration Flow

  1. 1Submit Transaction: Send the transaction metadata including counterparty, amount, currency, and a description.
  2. 2Receive Classification: Numens returns a synchronous tax classification with recommended treatment.
  3. 3Apply Result: Use the classification to drive downstream VAT/WHT filing or accounting entries.

HTTP Request

POSThttps://api.taxstreem.com/v1/numens/classify

Request Body

ParameterTypeRequiredDescription
transactionIdstringRequiredYour internal unique identifier for this transaction. Used as an idempotency key.
counterpartystringRequiredFull legal name of the vendor, customer, or other party involved in the transaction.
amountnumberRequiredTransaction amount in the smallest currency unit (e.g. kobo for NGN).
currencystringRequiredISO 4217 currency code (e.g. NGN, USD).
descriptionstringRequiredNarration or memo from your payment or accounting system. Richer descriptions improve classification accuracy.
transactionDatestringRequiredISO 8601 date the transaction occurred (e.g. 2024-03-20).

Response

Returns 200 OK with a synchronous classification result.

FieldTypeDescription
transactionIdstringEcho of the submitted transaction ID.
classificationstringTax nature of the transaction (e.g. VATABLE, WHT_CONSULTING, EXEMPT).
confidencenumberConfidence score between 0 and 1. Scores below 0.7 should trigger manual review.
recommendationstringPlain-language action recommendation for your finance team.
Example Request
curl -X POST https://api.taxstreem.com/v1/numens/classify \
  -H "x-api-key: txsm_test_SK489c..." \
  -H "Content-Type: application/json" \
  -d '{
   "transactionId": "TXN-20240320-001",
   "counterparty": "Acme Consulting Ltd",
   "amount": 250000,
   "currency": "NGN",
   "description": "Professional consultancy services",
   "transactionDate": "2024-03-20"
}'
Example Response
200 OK
{
ย ย "transactionId": "TXN-20240320-001",
ย ย "classification": "WHT_CONSULTING",
ย ย "confidence": 0.94,
ย ย "recommendation": "Deduct 5% WHT and remit via Flux WHT Filing API"
}