project44 webhooks in production: duplicates, ordering, retries and timeouts

Published · Updated

This guide covers the problems project44 webhooks cause in production and how to handle each one. What project44 sends and how a push configuration is created is on the project44 webhooks overview, the Granular Webhook types are on project44 webhook events, and the header check is on Verify project44 webhooks.

At a glance

ProblemWhat to doWith Event Gateway
TimeoutsRespond within a few seconds; process in a background jobAnswers project44 on arrival, then queues the message for your service
DuplicatesRecord each eventId; make handlers idempotentCan drop repeats before they reach your handler
OrderingCompare timestamps; reconcile after a gapLogs every message, so you can see what arrived when
RetriesReturn 503 or 429 for anything you want retried, never 500Accepts messages while your service is down and replays them
Choosing eventsSet a type and filters in the configurationFilters and routes messages by type
TestingBuild fixtures from project44's samples; send them with your own headerForwards to localhost and replays past messages
Other limitsTreat the key as the only credential; support concurrent requestsChecks the API key header and keeps project44's URL stable

project44 webhook timeouts and slow handlers

Respond within a few seconds, then do the work in a background job. project44 recommends this and waits up to 20 seconds before it counts the request as timed out.

Why it happens: A timed-out message is retried a few minutes later, and it keeps being retried until it's delivered or expires after 48 hours. project44 delivers in order, so later messages can wait behind it. One slow write to a transportation management system can delay every shipment update behind it.

Fix it in your handler:

  1. Check the API key header, store the message and return a 2xx. project44 treats any 2xx as delivered.
  2. Process the message in a background job. See why to process webhooks asynchronously.
  3. Return a 2xx for messages you ignore as well.

With Event Gateway: Hookdeck answers project44 as soon as each message arrives and stores it, then delivers it to your service with your own delivery rate and timeout, so slow processing doesn't back up project44's queue.

Duplicate project44 webhooks

project44 recommends an idempotent webhook, because the same message can arrive more than once. Record each Granular eventId you process and skip repeats.

Why it happens: project44 says it won't normally send a message twice after a successful response. If it never receives your response, for example after a network failure, it sends the message again. The OpenAPI spec calls eventId a unique identifier for the event. No page says outright that a resend keeps the same eventId, so keep the handler itself safe to re-run.

Fix it in your handler:

  1. Store each eventId before processing, in a table with a unique constraint.
  2. For standard pushes, which have no eventId, compare shipment.lastModifiedDateTime with the value you stored.
  3. Make every handler idempotent: the same result however many times it runs.

With Event Gateway: Hookdeck can deduplicate Granular messages on eventId before they reach your handler.

Out-of-order project44 webhooks

project44 delivers messages in the order they were meant to be sent, but that doesn't mean you receive all of them or that every message waits its turn. Compare timestamps before overwriting data, and reconcile after a gap.

Why it happens: Three things limit the guarantee. A message that isn't retried or that expires is skipped, and the next one follows it, so a later update can arrive with no earlier one before it. project44 may also send messages that don't need ordering at the same time, such as position updates for two unrelated shipments. And its docs describe order per webhook, without saying whether it holds across separate configurations, which matters if each Granular type has its own.

Fix it in your handler:

  1. Store the createdDateTime of the last Granular message you applied to each shipment, and skip anything older.
  2. Key your processing on shipmentId, so concurrent messages for different shipments don't interfere.
  3. After a gap or a rejected message, re-read the shipment from project44's GET APIs.

With Event Gateway: Every message is stored in Hookdeck with its body and arrival time, so you can see what arrived when, and replay messages after fixing your handler.

project44 webhook retries

project44 retries 408, 429, 502, 503, 504, connection failures and connection timeouts, every few minutes for up to 48 hours. Any other failure loses the message, so choose your status codes on purpose.

Why it happens: project44 treats 3xx (it doesn't follow redirects), every other 4xx and every other 5xx, including 500, as a rejection that retrying can't fix. It marks the message as failed and moves on. A retriable response has the opposite effect: project44 decides your webhook is down, queues every other unsent message behind that one, and waits until it succeeds or expires. After 48 hours the message expires and the queue moves to the next one. project44 documents no way to ask for a failed or expired message again.

Fix it in your handler:

  1. Catch unexpected errors and return 503, or 429 when you're overloaded. Check your framework's default, because an uncaught exception usually becomes a 500.
  2. Use a stable URL. A redirect from a moved endpoint counts as a 3xx, so that message is lost.
  3. Alert on your own non-retriable responses, since those messages are gone.
  4. After an outage longer than 48 hours, or after any non-retriable response, re-read the affected shipments from the GET APIs.

With Event Gateway: Hookdeck accepts each message and stores it, so a bug on your side doesn't become a message project44 discards. It then delivers to your service with automatic retries, and you can replay any stored message once the fix is out.

Choosing which project44 events to handle

Choose between standard and Granular Webhooks first, then filter in the configuration so you receive less. project44 suggests considering Granular Webhooks for shipments, for their delta updates, smaller payloads and filtering.

Why it matters: A standard webhook pushes the whole shipment on each change, with no type field, so your handler has to work out what changed. A Granular Webhook names one type in webhookConfiguration.webhookEventType, and project44's examples configure one type at a time, so plan on one configuration per type you need. If one endpoint receives both kinds, a body with no eventType is a standard push. The filters differ by kind:

  • shipments.v1.event.* types take includeEvents and includeTransportationModes.
  • shipments.v1.state.* types take includeTransportationModes.
  • shipments.v1.shipment.created, shipments.v1.shipment.deleted and shipments.v1.exception.addedOrUpdated take no filters.
  • Standard pushes take payloadFilter and changeFilter, each with a fieldMasks list.

Fix it in your configuration:

  1. Configure only the types you act on, such as shipment creation, added tracking events or exceptions.
  2. Allow for mixed routes when you filter by mode. A multi-modal shipment with a truckload segment sends all its updates to a TRUCKLOAD filter, including those for other modes.
  3. Use includeContext to add ROUTE or RELATED_SHIPMENTS to a message instead of fetching them separately.
  4. If you use changeFilter, set payloadFilter with care. A field that payloadFilter excludes can't trigger a notification, even if changeFilter names it.

With Event Gateway: Hookdeck filters and routes messages by eventType or any other property, so one project44 configuration can feed several services and each gets only what it handles.

Testing project44 webhooks

project44 documents no way to send a test message, so build fixtures from its samples and post them to your endpoint with your own header.

Why it matters: A push configuration goes live only after your project44 representative completes the setup, so your handler should be ready before then. Each Granular type has a complete sample, shown on the events page, but they have some traps as fixtures.

Test your handler:

  1. Change the eventId in each fixture. Most of project44's samples use the same value, so a working deduplication step will drop them.
  2. Read the shipment from context.shipment.shipmentId. data is empty on shipments.v1.shipment.created and shipments.v1.shipment.deleted, whose dataType is Empty.
  3. Route on eventType and acknowledge names you don't recognise, so a new type doesn't turn into an error.
  4. Test your error paths. Confirm that an exception in your handler returns 503, and that a bad key is rejected.
  5. Ask your representative how to trigger real messages for a test shipment. The public docs don't describe it.

With Event Gateway: The Hookdeck CLI receives webhooks on your machine without a public server, and you can replay past messages to your handler as you change it.

Other project44 webhook limits

Plan for a static key instead of a signature, concurrent requests and a configurable method.

An API key, not a signature. None of project44's five authentication types signs the body. With API_KEY, anyone who learns the key can send a convincing shipment update, and a captured request can be replayed. Use a long random value, serve the endpoint over HTTPS and keep the key out of logs. If your security team wants more at the connection level, project44 also supports mutual TLS.

Changing a key. project44 doesn't retry a 401, so a key mismatch loses messages. A configuration can hold two API keys, each with its own header, which lets you add the new key, accept either on your endpoint, and then remove the old one with another PUT /api/v4/webhooks.

Concurrent requests. project44 recommends that your webhook support up to 12 concurrent requests for the best throughput and latency. Size your workers and database connections for that.

The method is configurable. method can be GET, POST, PUT or PATCH. project44 doesn't say how a GET carries the message, so use the default POST unless you have a reason not to. Anything in methodParams arrives as query parameters on your URL.

No published IPs. project44 names no source IP addresses, so you can't allowlist them.

Separate products. Granular configuration doesn't apply to Orders and Loads, which have their own setup guide and payloads.

Keep a bad deploy from losing project44 messages.

Event Gateway checks the API key header, accepts each message when it arrives and queues it, so a 500 from your handler can't get it dropped and project44's ordered queue keeps moving.

Not affiliated with project44. Facts are compiled from public sources and linked inline.