Navigate to Admin Settings (Gear Icon) > API Info
Click on the "Show" button to access the Webhooks Dashboard.
Click the "+ Add Endpoint" button to build the webhook.
In the Message Filtering options, select ticket.created
, ticket.updated
, and ticket.voided
.
Build the Endpoint URL following this layout:
You can find your API Key and GraphQL server (the first part of the GraphQL Endpoint URL) on the API Info Page.
It should look something like this when you are finished:
Hit the Create button to create the new webhook.
Check the "Certified" checkbox on any order that you want tickets to flow to HaulHub.
Some DOTs require a Agency Code. This value will be provided by Haul Hub if applicable.
https://integrations.fast-weigh.dev/api/HaulHubDOT?fw_api_key=<insert_fast-weigh_api_key_here>&hh_api_key=<insert_haulhub_api_key_here>&fw_graphql_server=<insert_graphql_server_prefix_here>&dot_code=<insert_agency_code_here>
It should looks something like this when you are finished:
https://integrations.fast-weigh.dev/api/HaulHubDOT?fw_api_key=11111-11111-1111-11111&hh_api_key=2222222-22222-22222-22222&fw_graphql_server=fwt&dot_code=0123436C3A3FABCD
The Fast-Weigh Ticket Integrator uses 32-bit ODBC connections to query compatible databases and post tickets to the Fast-Weigh API. It syncs tickets every 3 minutes.
The API will create/update/void any of the tickets posted.
Create config.json
file in the same directory as the .exe and set the api_key
and dsn
vars
Create tickets.sql
file in the same directory as the .exe
Set FastWeighTicketIntegrator.exe to run at startup. (Run shell:startup
via Windows Run. Copy a shortcut to the .exe into the startup directory.)
Done!
Your directory should look like:
Once the exe runs you'll also have some logs / debug files:
You can write your own ODBC connection string in the "dsn" option, or use a 32-bit system DSN by name (preferred).
If you're using the endpoint url https://api.fast-weigh.com/v3/tickets or https://api.fast-weigh.com/v2/tickets, set the api_auth_method
to "api-key".
If you're using the endpoint url https://fwticketapi.azurewebsites.net/ticket, set the api_auth_method
to "bearer".
The tickets.sql
file should conform to the FW API ticket payload body.
It is a simple text file with only the sql statement in it.
Field names should be renamed to match the keys in the ticket payload.
Sub-fields like the Region fields, Customer fields, etc... should be formated with underscores. Doing so will allow the program to parse the fields and nest them to match the format expected by the API endpoint.
A shortened example from the Libra dataset:
The above results in the following payload object:
Note: In some cases, the nesting will go 2 or 3 levels deep. Truck_Hauler_HaulerID
for example.
Here's a starter script for a Libra Access DB:
32-bit Python. Many of these old databases are only compatible with 32-bit applications/drivers.
pyodbc requires Microsoft C++ Build Tools. The easiest way to get this is via the Visual Studio Installer.
Create virtual env: py -m venv venv
(make sure you activate the env as well)
Install requirements: pip install -r requirements.txt
Dev command: py main.py
Build command: py build.py