> ## Documentation Index
> Fetch the complete documentation index at: https://developers.perform.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delivery Notifications

> Delivery notifications send email, SMS, webhook or Klaviyo messages when a shipment reaches a trigger, using your templates, filters and recipients.

**Available to all Post-Purchase customers.**

## Summary

Delivery notifications send an email, an SMS, a webhook or a Klaviyo event when a shipment reaches a notification trigger, from order confirmation through out for delivery, delivered, failed attempts, delays and collection reminders. You choose the trigger, the channel, the template and which shipments qualify, and the portal reports how each notification performs.

## Who it’s for

Customer service and e-commerce teams that want shoppers told about their delivery before they ask, marketing teams that send customer communication from Klaviyo, and integration teams that need their own systems updated on every shipment event through webhooks.

## Key benefits

* **Shoppers hear about the moments that matter.** Standard notification triggers cover the journey from order and fulfilment updates to pick-up, in transit, out for delivery, delivered, failed attempts, delays, customs, collection points and return to sender.
* **One trigger, several channels.** Each notification configuration sends on one channel: email, SMS, webhook or Klaviyo. Create one configuration per channel for the same trigger.
* **No duplicate messages.** When several triggers match the same tracking event, only the highest-priority trigger sends. A webhook is sent once per update with every matching trigger listed.
* **Templates carry shipment data.** HTML email templates use field placeholders that are filled from the shipment at send time, including the tracking link, expected delivery date, latest event and delivery progress indicator.
* **You see what was sent.** The notifications overview reports sent, open and click rates per configuration, and each shipment keeps a history of the notifications sent for it.

## How it works

### Notification configurations

A notification configuration combines a channel, a trigger, a template (email), an endpoint (webhook) or a Klaviyo account (Klaviyo), optional shipment filters and the recipients. The overview table lists every configuration with its name, channel, trigger, last update, who updated it, tracking experience, sent, open and click rates, and status.

You can search configurations by name and filter on channel, status, sent-from email, sent-from name, whether the parcel recipient is notified, whether other recipients are notified, carrier, tracking experience, tag, trigger and template.

| Status | Meaning |
| - | - |
| Draft | Nothing is sent. Every field can be edited. The trigger can only be changed in this status. |
| Active | Notifications are sent for the trigger. Deactivate the configuration before you edit it. A configuration cannot return to Draft once activated. |
| Deactivated | Nothing is sent. Every field except the trigger can be edited. You can activate and deactivate a configuration as often as you need. |
| Archived | Hidden from the overview. You can archive a configuration at any time. |

Deactivating a trigger deactivates every notification configuration that uses it. Reactivating the trigger does not reactivate them.

### Notification triggers

Triggers define when a notification is sent and apply to every channel. Most are event-based: they fire when the shipment receives a tracking event from the carrier. Some fire once only, others every time a matching event arrives.

| Group | Triggers |
| - | - |
| Order and fulfilment | Order confirmation, order updates, packing confirmation, fulfilment updates |
| Carrier handover | Shipment confirmation (carrier pre-alert), shipment pre-alert updates, shipment confirmation (first shipping event), shipment pick-up, in transit |
| Delivery | Out for delivery (all events, or the first out-for-delivery event only), successfully delivered (all events, doorstep, to neighbour, left at the door) |
| Collection points | Dropped off for collection (all events, parcel locker, parcel shop, post office), reminders for parcel collection, successful collection (all events, parcel locker, parcel shop, post office) |
| Exceptions | Failed delivery attempt (all events, not at home, wrong address, addressee unknown, address issues, or all events sent at most once a day), shipment delayed (all events, carrier pick-up, transport, delivery, processing error), customs (all events, issues, payment issues), shipment cancelled, shipment damaged |
| No updates | No updates detected for 24, 36, 48, 60 or 72 hours |
| Return to sender | Return to sender shipment, returned to sender successfully |
| Feedback | Delivery feedback 2, 12 or 24 hours after delivery or collection |
| All events | Every event in the journey, most often used for webhooks |

Pre-shipment triggers (order confirmation, order updates, packing confirmation, fulfilment updates and carrier pre-alert) let you tell shoppers about their order before the carrier has it.

#### Time-based triggers

Time-based triggers fire a set time after an event, or after a period without one:

* **Reminders for parcel collection** are sent 12, 24, 48 or 72 hours after the parcel arrives at a collection point. They are not sent if the shipment has an issue, has already been collected, or is being returned to the sender.
* **No updates detected** is sent when a shipment has had no tracking event for 24, 36, 48, 60 or 72 hours. A new event stops the clock. It is not sent once the shipment has been delivered or collected, or for a shipment being returned to the sender.
* **Delivery feedback** is sent 2, 12 or 24 hours after the shipment is delivered or collected.

Time-based triggers depend on your account configuration. Contact your Customer Success Manager to use them.

#### Trigger rules

* **Trigger priority.** When more than one trigger matches the same tracking event, only the highest-priority trigger sends. Lower-priority triggers are suppressed for that event, so the recipient does not get duplicate messages.
* **Webhooks.** One webhook is sent per update cycle, even when the new events satisfy several active triggers. Its `trigger` array lists every trigger that was satisfied, as described in the [Webhooks guide](https://developers.perform.ai/guides/webhooks.md).
* **Return to sender.** Shipment pick-up, out for delivery (all events), collection reminder, no update, once-a-day failed delivery attempt and delivery feedback triggers do not send for a shipment that is being returned to the sender.
* **Carrier and manual events.** Notifications are sent on tracking events received from the carrier and on manual events you add with the [Create events API](https://developers.perform.ai/guides/create-events.md).

#### Returns triggers

Return triggers cover the return journey: request submitted, approved or rejected, drop-off reminders, carrier booking, quality check, refund, return cancelled and return shipment events. Some are meant for your own team, such as the reminder to review a return request after 12 hours and the alerts when a return shipment has had no update. See [Returns Notifications & Refund Triggers](https://developers.perform.ai/products/returns/returns-notifications-and-refund-triggers.md).

### Channels

| Channel | How it works |
| - | - |
| Email | Sent to the notification email addresses on the shipment, or to other addresses you add. Uses an HTML template. You set the sent-from email, sent-from name and reply-to address. |
| SMS | Sent to the notification phone number on the shipment, in international format such as `+6591234567`, or to other numbers you add. Uses a default SMS body. SMS notifications can only be activated once the connection between Perform.AI and the SMS provider is set up for your account. |
| Webhook | Sent as an HTTPS POST with a JSON body to an endpoint you configure, authenticated with HMAC. Your account has one endpoint by default; your Customer Success Manager can enable more. |
| Klaviyo | Sends an event to a connected Klaviyo account, where your own flows decide what the shopper receives. You can connect several Klaviyo accounts. See [Klaviyo](https://developers.perform.ai/products/integrations/klaviyo.md). |

If the shipment has no phone number, no SMS is sent to the parcel recipient. Email and phone numbers in the shipment’s address objects are not used for notifications.

#### Webhook delivery

The endpoint must return a `200` status. If it does not, Perform.AI resends the webhook up to 3 times, 5 minutes apart. After the third retry the webhook is not resent automatically. If the failure was caused by your endpoint and the data is still available, failed webhooks can be resent once the incident is resolved; contact your Customer Success Manager.

Each request carries an `HTTP-X-Hmac-SHA256` header: the body signed with HMAC-SHA256 using the authentication key from your webhook endpoint settings. Compute the same signature on your side and compare it to the header to confirm the request came from Perform.AI. If you need another authentication method, ask your Customer Success Manager.

### Templates and field placeholders

Email templates are HTML. Start from the sample template, use the email template supplied with your Tracking Page, or add your own HTML. Preview a template for a tracking number on desktop and mobile before you save it.

A template has two kinds of content:

| | Fixed elements | Variable blocks |
| - | - | - |
| What they hold | Branding, company information, headers and footers | Message content for the context, such as “your order is on the way” or “sorry, your order is delayed” |
| Where you change them | On the template | On each notification configuration |
| Effect of a change | Applies to every email that uses the template | Applies only to that notification |
| How to spot them in the HTML | Outside `{% block %}` and `{% endblock %}` tags | Inside `{% block %}` and `{% endblock %}` tags |

Keeping your brand in fixed elements means one template serves every trigger, and each notification changes only its message. Linking a shipment to an active tracking experience also lets its notifications adopt design and information settings from that Tracking Page, and tracking links in the notification open that Tracking Page.

For SMS, the default body is used because of the character limits of text messages. To change it, talk to your Customer Success Manager.

#### Field placeholders

Field placeholders (also called merge tags) insert shipment data into a template. They are replaced with the shipment’s data each time the notification is generated. In the HTML editor, search for the data point in the placeholder search box, select the placeholder to copy it, and paste it into the template. **Learn More** opens the full placeholder list.

| Group | Example placeholders |
| - | - |
| Shipment | `{{shipment.tracking_number}}`, `{{shipment.shipment_reference}}`, `{{shipment.status}}`, `{{shipment.current_phase.name}}`, `{{shipment.tags.string}}`, `{{shipment.item_count}}` |
| Carrier | `{{shipment.carrier.name}}`, `{{shipment.carrier.logo}}`, `{{shipment.carrier.site_link}}`, `{{shipment.destination_carrier.name}}` |
| Order | `{{order.order_id}}`, `{{order.order_reference}}`, `{{order.created_date}}` |
| Addresses | `{{shipment.recipient_address.first_name}}`, `{{shipment.to_address.city}}`, `{{shipment.recipient_address.full.string}}` |
| Expected delivery | `{{shipment.expected_delivery.from.date}}`, `{{shipment.expected_delivery.to.date}}`, `{{shipment.expected_delivery.from.days_left}}` |
| Events | `{{shipment.latest_event.event}}`, `{{shipment.latest_event.date}}`, `{{shipment.latest_event.location}}`, `{{shipment.events.#.event}}` |
| Tracking Page | `{{tracking_page.url}}`, `{{tracking_page.progress_indicator}}` |
| Value and costs | `{{shipment.shipment_value.amount}}`, `{{shipment.cod_value.amount}}`, `{{shipment.total_shipping_cost.amount}}` |
| Custom fields | `{{shipment.additional_info.[header]}}` |
| Other | `{{shipment.unsubscribe_link}}`, `{{notification_campaign}}`, `{{rating_5stars}}` |

For placeholders with `#`, replace `#` with the position of the value in the list. `{{tracking_page.progress_indicator}}` shows the delivery progress indicator as it appears on the shipment’s Tracking Page. `{{notification_campaign}}` renders the campaigns active for the shipment from [Campaign Manager](https://developers.perform.ai/products/post-purchase/campaign-manager.md), in a fixed size and layout. `{{rating_5stars}}` adds the rating widget for [Delivery Experience Ratings](https://developers.perform.ai/products/post-purchase/delivery-experience-ratings.md). Returns placeholders are available to Returns customers.

**Dates and times.** Date placeholders use the format `DD MMM YYYY` (for example, 01 Apr 2021) and time placeholders use `hh:mm AM/PM` (for example, 06:30 AM). Days-left placeholders give the number of days between the current date and the expected delivery date. Date and time values in placeholders are in UTC.

**Empty fields.** A placeholder shows only data that exists on the shipment. If the field is missing, the placeholder stays empty.

### Shipment filters and recipients

Each configuration can be limited to shipments from a carrier, a tracking experience or shipments carrying a tag. Tags are assigned to shipments when they are uploaded. To send different messages to different groups of shipments, create a configuration for each carrier, tracking experience or tag, each with its own template and message. With no tracking experience filter, the notification is sent for all tracking experiences.

By default the parcel recipient on the shipment is notified. **Notify other** sends an email or SMS to additional email addresses or phone numbers, instead of or as well as the recipient. Use it to copy your own team, or to test a configuration.

### Reporting

The notifications overview shows cumulative sent, open and click figures per configuration since it was created. The figures at the top cover the last 14 days. The dashboard refreshes once a day at 00:05 UTC. It is static: you cannot change the time frame, compare periods or filter it by channel or trigger.

| Metric | Definition |
| - | - |
| Unique opened rate (email) | Emails opened divided by emails sent |
| Unique clicked rate (email and SMS) | Messages with a click divided by messages sent |
| Unsubscribed rate (email) | Recipients who opted out divided by emails sent |
| Bounced rate (email and SMS) | Messages not delivered divided by messages sent |

To check what was sent, add the **Notifications Sent** column in **Shipments Overview** (**Edit Columns**) and filter on it to list shipments that did or did not receive a notification, with the latest notification for each. This covers email and SMS, not webhooks. Open a shipment and select the bell icon to see its notification history with the name, channel and status of each notification.

## How to set it up

### Create an email or SMS notification

1. Go to **Post-Purchase** > **Notifications** and select **Add Notification**.
2. Choose the channel: **Email** or **SMS**.
3. Name the notification (up to 32 characters) and select the trigger.
4. For email, select a template: the sample template, your own HTML template, or the template supplied with your Tracking Page. Set the sent-from email, sent-from name and reply-to address.
5. Optionally, under **Filter for parcel**, select **Filter by** and choose a carrier, tracking experience or tag.
6. Choose who is notified: the parcel recipient (default) or other addresses or numbers under **Notify other**.
7. Select **Next**. For SMS, review the SMS body text.
8. Select **Save**, then **Activate**.

### Create a webhook notification

1. Go to **Settings** > **Integrations**, find **Webhooks** and select **Configure**.
2. Enter the webhook endpoint name, the endpoint URL and the HMAC authentication key. A sample payload is sent to the URL to validate it before saving. Select **Save**, then **Activate**.
3. Go to **Post-Purchase** > **Notifications**, select **Add Notification** and choose **Webhook**.
4. Name the notification, select the trigger and, optionally, add filters.
5. Select the endpoint, then **Save** and **Activate**.

### Create a Klaviyo notification

1. Go to **Settings** > **Integrations** and find the **Klaviyo** tile. If the Klaviyo tile shows **Contact Us**, select it to ask us to enable Klaviyo first. Select **Add Account**, enter a Klaviyo account name and your Klaviyo public API key, then select **Activate**.
2. Go to **Post-Purchase** > **Notifications**, select **Add Notification** and choose **Klaviyo**.
3. Name the notification, select the trigger and, optionally, add filters.
4. Under **Klaviyo Account Name**, choose the account. Select **Save**, then **Activate**.

The flow that sends the message is built in Klaviyo. See [Klaviyo](https://developers.perform.ai/products/integrations/klaviyo.md).

### Manage templates

1. Go to **Post-Purchase** > **Notification template**.
2. Open the sample template, select an existing template to update, or select **Add template**.
3. Edit the HTML and add field placeholders.
4. Enter a tracking number under **View Preview For** and check the desktop and mobile views.
5. Select **Save**.

## Use via API and MCP

* Webhook payload formats: [Shipment update v5.0](https://developers.perform.ai/api-reference/webhooks/shipment-update-v5-0.md), [v5.2](https://developers.perform.ai/api-reference/webhooks/shipment-update-v5-2.md) and [v5.3](https://developers.perform.ai/api-reference/webhooks/shipment-update-v5-3.md). The payload carries the shipment, its latest event, the new events from the update cycle and all events. Set-up is in the [Webhooks guide](https://developers.perform.ai/guides/webhooks.md).
* Recipient details come from the shipment: set `notification_email` and `notification_phone` when you [create a shipment](https://developers.perform.ai/guides/create-shipment.md). See the [Notifications guide](https://developers.perform.ai/guides/notifications.md).
* MCP tools: `list_notification_configs` and `get_notification_config` return your configurations, and `list_notification_triggers` lists the triggers available to your account. See [MCP tools](https://developers.perform.ai/mcp/tools.md).

## FAQ

### Which notification triggers can I use?

The standard triggers cover order and fulfilment, carrier pick-up, in transit, out for delivery, delivered, collection points, failed attempts, delays, customs, no updates, return to sender and delivery feedback. Time-based triggers depend on your account configuration.

### Why did a shopper get two messages for one event?

Two channels are active for the same trigger, or two configurations on the same channel use triggers that both match. Within one channel, only the highest-priority matching trigger sends for an event.

### Why was no SMS sent?

The shipment has no phone number, or the number is not in international format. SMS notifications also need the SMS provider connection to be set up for your account.

### Can I send notifications for events I add through the API?

Carrier tracking events trigger notifications. Whether events you add manually or through the [events API](https://developers.perform.ai/guides/create-events.md) also trigger them is being confirmed.

### Can I resend a notification?

A webhook that your endpoint did not accept is retried up to 3 times, 5 minutes apart. After that, failed webhooks can be resent once the issue on your side is fixed, through your Customer Success Manager.

### Which shipment fields can I put in an email template?

Shipment, carrier, order, address, expected delivery, event, Tracking Page, value and cost fields, plus your own custom fields. Search for the field in the template editor’s placeholder search box.

### Why does a placeholder show up empty?

The shipment does not carry that field. Placeholders only show data that exists on the shipment.

### How do I test a notification without emailing a shopper?

Use **Notify other** with your own email address or phone number, activate the configuration, and deactivate it after the test.

### Can I change the trigger on an active notification?

No. The trigger can only be changed while the configuration is in Draft. Create a new configuration for the new trigger.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Nothing is sent | The configuration is in Draft or Deactivated, or its trigger was deactivated | Activate the configuration. If the trigger was deactivated and reactivated, activate each configuration again. |
| An SMS configuration cannot be activated | The SMS provider connection is not set up for your account | Ask your Customer Success Manager to complete the SMS provider set-up. |
| Webhook endpoint cannot be saved | The endpoint URL did not accept the sample payload | Make the URL reachable and return a `200` status for the sample payload, then save again. |
| Webhooks stop arriving after an outage | The endpoint did not return `200` within 3 retries | Fix the endpoint, then ask your Customer Success Manager to resend the failed webhooks. |
| Email dates are off by a few hours | Placeholder dates and times are in UTC | Tell shoppers the time zone, or link to the Tracking Page for local times. |
| Open and click rates look stale | The dashboard refreshes once a day at 00:05 UTC | Check again after the next refresh. |
| Notification links open the wrong Tracking Page | The shipment is linked to another tracking experience | Set `tracking_page_reference` on the shipment. |

## Related

* [Tracking Page](https://developers.perform.ai/products/post-purchase/tracking-page.md)
* [Campaign Manager](https://developers.perform.ai/products/post-purchase/campaign-manager.md)
* [Delivery Experience Ratings](https://developers.perform.ai/products/post-purchase/delivery-experience-ratings.md)
* [Returns Notifications & Refund Triggers](https://developers.perform.ai/products/returns/returns-notifications-and-refund-triggers.md)
* [Webhooks](https://developers.perform.ai/products/integrations/webhooks.md)
* [Klaviyo](https://developers.perform.ai/products/integrations/klaviyo.md)
* [Post-Purchase overview](https://developers.perform.ai/products/post-purchase/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.