Skip to main content
Available to all Post-Purchase customers.

Summary

Outgoing webhooks send a shipment update to an HTTPS endpoint you own each time Perform.AI processes new tracking events for a shipment. Your order management, customer service or warehouse system receives the shipment with its latest event and full event history as soon as they are known, without polling the API.

Who it’s for

Integration and engineering teams who need delivery status inside their own systems: updating an order status, opening a customer service case on a failed delivery, or feeding an internal dashboard. Webhooks replace scheduled API polling with an event notification on every update.

Key benefits

  • One message per update cycle. A single webhook is sent when a shipment receives new events, even if those events satisfy several activated triggers. The trigger field lists the triggers that were satisfied.
  • The whole shipment in each webhook payload. The JSON body carries the shipment, its order and addresses, the latest event, the new events of this cycle and all events, so your system does not have to call back for context.
  • Signed messages. Every request carries an HMAC-SHA256 signature of the body, computed with the Authentication Key from your webhook configuration, so you can verify that the message came from Perform.AI.
  • Retries when your endpoint is down. If your endpoint does not confirm receipt, Perform.AI resends the webhook.
  • Triggers and filters you choose. Send on every event or only on the milestones you select, and limit a notification to given carriers, Tracking Pages or shipment tags.

How it works

Webhook endpoint

By default an account has one outgoing webhook endpoint URL. Your account team can enable additional endpoints.

Delivery

Missed webhooks are not replayed after the last retry. To fill gaps, use the List Shipments API filtered by updated_date.

Webhook authentication

Each request includes an HTTP-X-Hmac-SHA256 header. Its value is the HMAC-SHA256 of the request body, keyed with the Authentication Key from your webhook configuration. To verify a message, compute the same HMAC over the raw body you received and compare it with the header. A match means the message was sent by Perform.AI. Code samples are in the Developers guide: Receive webhooks. HMAC is the default method. If you need another method, such as OAuth or JWT, ask your account team. If you filter inbound traffic to your endpoint, allowlist by hostname rather than by IP address.

Triggers and filters

A webhook is an event notification created in the Notification Center, with Webhook as the channel and your endpoint as the destination. The Notification Center also sends Email and SMS notifications; see Delivery Notifications. One webhook is sent per update cycle. Its trigger array lists the activated triggers the cycle satisfied, so your system receives one message per update even when several triggers match. Events you add through the Create Events API also start an update cycle, so each call delivers a webhook. Beyond event-based triggers, your account may support time-based triggers, such as collection reminders, no-update alerts and post-delivery feedback requests, depending on its configuration. Ask your account team to enable them.

Webhook payload formats

Your account is configured for one payload format version. Ask your account team which version your account is on. Every payload carries notification_type, trigger, version and data. Timestamps are ISO 8601; precision varies by carrier, see Timestamps. Dimensions are returned in centimetres, weight in grams, and money as an amount with an ISO 4217 currency code. The event_key, phase and phase_key of an event can be null when the carrier sent an event that has not yet been mapped to a Perform.AI standard event. The expected_delivery object is left out of formats 5.0 and 5.2 when neither you nor the carrier provided an expected delivery.

How to set it up

Configure the webhook endpoint first, then create a notification that sends to it.
  1. Go to Settings > Integrations > Webhooks and select Configure.
  2. Enter the Webhook endpoint name, the Endpoint URL and the HMAC Authentication key, then select Save. Perform.AI sends a sample payload to the URL to validate it, so the endpoint must be live and able to process it.
  3. Select Activate on the endpoint.
  4. Go to Post-Purchase > Notification and select Add Notification.
  5. Select Webhook as the communication channel.
  6. Enter a notification name (up to 32 characters) and choose the trigger category.
  7. Optionally, add carrier, Tracking Page or tag filters.
  8. Select the endpoint.
  9. Select Save, then Activate.

Test your webhook endpoint

The sample payload sent when you save the endpoint confirms that your URL is reachable and accepts the message. Before going live, check your HMAC verification against the header of a received webhook, and check your handling of retries by returning an error status for a short time. The Developers guide covers an end-to-end test in Receive webhooks.

Use via API and MCP

FAQ

How do I set up a webhook URL?

Add the endpoint under Settings > Integrations > Webhooks, then create a notification with Webhook as the channel in the Notification Center. Both must be activated before webhooks are sent.

How do I know which webhook payload version I receive?

The format is set on your account, not per endpoint. Ask your account team which version applies, and build your parser to ignore fields it does not know.

Will I get one webhook per trigger?

No. When a shipment receives new events, one webhook is sent for that update cycle. The trigger field lists the triggers that were satisfied.

What happens if my endpoint is down?

Perform.AI resends the webhook up to three times, five minutes apart. Missed webhooks are not replayed after that, so query List shipments filtered by updated_date for the window to recover the state.

Can I use another webhook authentication method instead of HMAC?

HMAC is the default. Other methods, such as OAuth or JWT, can be requested through your account team.

Can I receive webhooks only for certain shipments?

Filter the webhook notification by carrier, Tracking Page or shipment tags. To limit it to a set of shipments, give those shipments a tag and filter the notification by that tag.

Can I connect webhooks to a marketing or messaging tool?

For Klaviyo, see Klaviyo.

Troubleshooting