ExportFlowDevelopers
Sign inGet API keys

ExportFlow API

Read and verify trade documents from your own software

The ExportFlow API takes the documents that travel with a shipment, reads them, and checks them against each other and against a published rule set. You call it from your ERP, accounting or procurement product with an API key.

What the API does#

Five things, in this order. Each is a separate call or a separate state, so your software can stop at any of them.

  1. UploadA PDF or an image of one document is scanned for viruses, stored and queued. Documents are grouped into a shipment.
  2. ClassificationThe document’s type is detected: bill of lading, commercial invoice, packing list, certificate. A file holding several documents is split into them.
  3. Field extractionEach field is read and returned with its value, or with the reason there is no value. A field is never silently left out.
  4. Confirmed recordA person checks what was read against the documents and confirms it. Verification will not start without this.
  5. VerificationThe confirmed record is checked across documents and against the rule set. The result is a list of findings and a statement of what was not checked.
What a verification is, and is not

ExportFlow reports evidence of inconsistency. It never certifies compliance. A verification with no critical findings means the rules that ran found nothing; it does not mean the shipment will be accepted. Every result says which documents had rules applied to them and which checks could not run, and those are not passes. See Verification.

A first request#

Every request is authenticated with an API key sent as a bearer token. This one asks the API who the key belongs to, which proves the key works before you upload anything.

from exportflow import ExportFlow

client = ExportFlow(api_key="exfk_test_...")   # or set EXPORTFLOW_API_KEY

identity = client.me()
print(identity.organisation_name, identity.environment)   # ... sandbox

The quickstart carries on from here to an uploaded document, its extracted fields and a verification.

From nothing to a running integration#

Eleven steps. None of them needs anybody at MeerTech: registration, keys, the sandbox and the console are all self-service.

  1. Register your organisationCreate an ExportFlow account for your company. Whoever registers it is its owner.Create an account
  2. Open a developer accountAn organisation registered here is a developer account from the start. One that already uses the ExportFlow application is registered by an owner from the console.Open the console
  3. Create an applicationOne application for each product that will call the API. Usage, keys and webhooks are kept per application.Applications
  4. Issue API keysA key belongs to one application and one environment. Its secret is shown once.Authentication
  5. Choose an environmentStart in the sandbox with an exfk_test_ key: the same pipeline, separate data, never charged. Move to an exfk_live_ key for production.Environments
  6. Install an SDKPython or TypeScript. Or call the HTTP API directly from anything that can send a request.SDKs
  7. AuthenticateSend the key as a bearer token and confirm who it is with one request.Quickstart
  8. Upload documentsA PDF or an image per document, grouped into a shipment. Each is scanned, stored and queued.Documents
  9. Process and verifyDocuments are classified and read automatically. Confirm what they say, then verify the shipment.Verification
  10. Retrieve resultsPoll the resource, or register a webhook endpoint and be told when the work finishes.Webhooks
  11. Monitor consumptionUsage, the request log and estimated charges are in the console, and usage is in the API.Billing

How the API behaves#