Regulatory Documents
Regulatory documents are customs and compliance forms required for international shipments (FDA Prior Notice, Fish & Wildlife, Textile declarations, etc.). The API supports two flows:
Base URL: https://api.terminal.africa/v1/regulatory-documents
Shipment flow: analyze from an existing Terminal shipment (
source: shipment).Invoice flow: analyze from an uploaded commercial invoice URL (
source: invoice).
Typical workflow
Analyze:
POST /analyzewithshipment_idorfile_url. Returns a draftrequest_id, matchedavailable_documents, and line items.Edit draft: update items, addresses, shipping (invoice only), and per-form regulatory profiles.
Purchase:
POST /purchasewithrequest_idanddocument_types. Charges the user's wallet and starts document generation.Poll:
GET /request/:request_iduntilstatusiscompletedorfailed. Retry failed automated docs if needed.
Authentication
All endpoints require authentication except Generate Regulatory Document PDF.
Authorization*
String
Set value to Bearer SECRET_KEY
Content-Type*
String
Set value to application/json (for POST/PUT bodies)
Document request statuses
draft
Analyzed, not yet purchased. Editable.
purchasing
Purchase in progress (transient).
processing
Purchased; generation in progress.
completed
All purchased documents generated.
failed
Analyze or generation failed.
Supported document types (slug)
AMS, CUSTOMS, FDA, DROP-BALL, FISH-WILDLIFE, FOOTWEAR, FUMIGATION, LITHIUM-BATTERY, MSDS, MUSEUM, OTHER, QUARANTINE, STEEL, TEXTILE, WATCH
Pricing
Amounts are converted into the user's wallet currency at analyze time.
Purchase charges the amounts already stored on the draft (
available_documents).
Last updated
Was this helpful?