TMS integration

Connect to Your Transportation management system

Drivers can start capturing as soon as they install the app. When you’re ready for the data to flow into your TMS, ERP or WMS on its own, WeBuild Databases builds the connection, typically in 3–5 business days, including testing, validation and user acceptance.

we’ll scope it

Built by WeBuild Databases, founded 2006 · iOS, Android and web.

In the app today (self-serve)

  • Email Document sends the extracted report from the results screen.
  • Save to History keeps every document with its data, driver and capture time.
  • Export Data from History as a DataGun Standard CSV, including Validation Passed and Validation Overridden columns.
  • Review fields and manage your team in the web app at app.thedatagun.ai.
  • Copy data or pull up a document from your phone.

Built by WeBuild Databases (3–5 business days)

  • Webhook and API connections that take DataGun data into your system.
  • TMS-ready CSV export in the columns your system imports.
  • Custom connectors into your TMS, ERP, WMS or back office.
  • Custom field mapping and one standardized output format.

How a TMS integration gets built

1

Map the fields

We match DataGun’s fields to the ones your system expects.

2

Build the feed

Webhook, CSV or a custom connector, whichever your system takes.

3

Test and validate

Internal testing with your real documents.

4

User acceptance

Your team signs off, then data flows on its own.

DataGun Standard CSV export

Every export starts with the same 13 columns:

Captured At, Driver Name, Driver Email, Doc Type, BOL Number, Supplier, Overall Confidence (%), Emailed, Emailed To, Batch ID, Document ID, Validation Passed, Validation Overridden

After those come two columns for each field found in the exported documents, A to Z: the value, and its confidence as “Field (%)”. The first BOL Number column is the document number; on an air waybill it holds the AWB number.

For a TMS, Validation Passed is the field to rely on: it reads no for any document that failed a validation check. Validation Overridden shows whether someone saved a photo past the warning; PDF uploads skip that warning, so it stays no for them.

Real header row from a freight BOL export:

Captured At,Driver Name,Driver Email,Doc Type,BOL Number,Supplier,Overall Confidence (%),Emailed,Emailed To,Batch ID,Document ID,Validation Passed,Validation Overridden,BOL Number,BOL Number (%),Carrier,Carrier (%),Carrier Signature,Carrier Signature (%),Carrier Signature Date,Carrier Signature Date (%),Consignee,Consignee (%),Document Type,Document Type (%),Freight Terms,Freight Terms (%),PO Number,PO Number (%),PRO Number,PRO Number (%),Product 1,Product 1 (%),Product 1 Class,Product 1 Class (%),Product 1 Handling Units,Product 1 Handling Units (%),Product 1 Packages,Product 1 Packages (%),Product 1 Weight,Product 1 Weight (%),Product 2,Product 2 (%),Product 2 Class,Product 2 Class (%),Product 2 Handling Units,Product 2 Handling Units (%),Product 2 Packages,Product 2 Packages (%),Product 2 Weight,Product 2 Weight (%),SCAC,SCAC (%),Seal #,Seal # (%),Ship Date,Ship Date (%),Shipper,Shipper (%),Shipper Address,Shipper Address (%),Shipper Signature,Shipper Signature (%),Shipper Signature Date,Shipper Signature Date (%),Special Instructions,Special Instructions (%),Total Handling Units,Total Handling Units (%),Total Packages,Total Packages (%),Total Weight,Total Weight (%),Trailer #,Trailer # (%)

Webhooks

WeBuild Databases sets up webhooks as part of your connection. We register your HTTPS endpoint and give you a signing secret, and DataGun then sends these events:

  • document.validated is sent when a user reviews and saves a document. It goes out for every saved document, including ones marked Needs review; validation.passed tells them apart.
  • document.deleted is sent when a document is deleted.
  • Signed requests: each request carries X-DataGun-Event-Id, X-DataGun-Timestamp and X-DataGun-Signature (v1= an HMAC-SHA256 of “<timestamp>.<raw body>” with your signing secret).
  • Delivery: reply with any 2xx status. DataGun retries failed deliveries for about three days.
  • Prefer to pull? The same events are available from the API at GET /api/v1/events.

Example document.validated event (the fields list is shortened here; a real event lists every extracted field). A document.deleted event uses the same envelope, with only the document id under data.document.

{
  "event_id": "3f2a9c1e-7b4d-4e8a-9c6f-0d1e2f3a4b5c",
  "event_type": "document.validated",
  "occurred_at": "2026-11-17T14:32:07.512Z",
  "api_version": "v1",
  "data": {
    "document": {
      "id": "8f14e45f-ceea-467a-9575-6c3a2b1d0e11",
      "doc_type": "BOL",
      "document_number": "SMP-0045821",
      "bol_number": "SMP-0045821",
      "supplier": "Northbay Molding Co.",
      "overall_confidence": 96,
      "captured_at": "2026-11-17T14:32:05.000Z",
      "batch_id": null,
      "driver": {
        "id": "5d0c2f7e-3b1a-4c55-9f60-2a8e7d4b1c90",
        "name": "Sam Driver"
      },
      "validation": {
        "passed": true,
        "overridden": false,
        "image_quality": true,
        "required_fields": true,
        "missing_fields": [],
        "unclear_fields": [],
        "form": null,
        "signature": true,
        "signatures": {
          "shipper": true,
          "carrier": true,
          "consignee": false
        }
      },
      "fields": [
        {
          "key": "bolNumber",
          "line": null,
          "label": "BOL Number",
          "value": "SMP-0045821",
          "confidence": 98
        },
        {
          "key": "poNumber",
          "line": null,
          "label": "PO Number",
          "value": "PO-77310",
          "confidence": 96
        },
        {
          "key": "shipDate",
          "line": null,
          "label": "Ship Date",
          "value": "11/03/2026",
          "confidence": 97
        }
      ],
      "file_url": "https://app.thedatagun.ai/api/v1/documents/8f14e45f-ceea-467a-9575-6c3a2b1d0e11/file"
    }
  }
}

Is there an API?

Yes, for document events. The events sent by webhook can also be pulled from the DataGun API at GET /api/v1/events, and exports and the API include fields such as the AWB type (awbType). For a full connection into your TMS, ERP or WMS, WeBuild Databases builds it as a service, so each connection fits the system on the other end.

Scope your TMS integration

Tell us what you run, and WeBuild Databases will scope the connection. Email support@thedatagun.ai or call (586) 992-6472.

we’ll scope it