Classification

Classify many products

Bulk HTS classification of items (inline) or inputKey (an uploaded JSONL file). Answers 202 with the batch id; the results are delivered to the key environment's webhook URL (or Tarifflo-Webhook-Url) and pollable at GET /classifications/batch/{batchId}.

Requires the API key scope classifications.

post/classifications/batch

Request

  • Base URL
    https://api.tarifflo.com/api/v2
  • URL
    https://api.tarifflo.com/api/v2/classifications/batch
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Headers

Idempotency-Keystring

Repeats of the same request with the same key answer the first result (72 hours) with Idempotent-Replayed: true.

Request body

inputKeystring

A JSONL file of {id?,text} rows, from POST /classifications/batch/upload-url.

dryRunboolean

Price the request at the organization's card and reserve nothing; answers 200 with the estimate.

Response

Queued (or, for dryRun, priced with 200)

OR

Changes

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