With the Attentive and AfterShip integration, you can automatically send delivery updates to your customers via SMS. Once customers opt in to transactional messages, they receive notifications for key shipping milestones, such as when a package is in transit, out for delivery, or delivered.
Prerequisites
Before setting up this integration, note the following:
- Carrier Compatibility: Works with any delivery system (e.g., FedEx, UPS) supported by AfterShip.
- Data Matching: A phone number must be present in AfterShip to match the customer record in Attentive.
- Opt-in Requirement: Transactional messages, unlike promotional messages, have less stringent opt-in requirements than promotional messages. However, transactional messages have strict requirements for what they can and can't include. Read this article for more information.
Step 1. Copy the Webhook Destination URL from Attentive
To begin, you need to generate a unique URL in Attentive that will receive data from AfterShip.
- In Attentive, navigate to the App Marketplace.
- Find AfterShip Tracking and click Install
-
In the Webhook Destination URL field, click Copy.
- Note: You will also need to enter your Tracking Page URL and a Webhook Secret on this page later.
Step 2. Configure Webhooks in AfterShip
Next, tell AfterShip where to send the tracking updates.
- Log in to your AfterShip account.
- In the left-side menu, go to Tracking
- A new left side menu will appear. Click Notifications and select Webhooks.
- Click Add webhook URL.
- In the Webhook version dropdown, select 2025-07.
- In the Webhook URL field, paste the URL you copied from Attentive in Step 1.
- Leave other options (like OAuth or Client Certificate) blank unless required by your specific security setup.
- Click Save.
- Copy the Webhook secret displayed on this page.
Step 3. Complete the Setup in Attentive
Return to the AfterShip settings page in Attentive to finalize the connection.
-
Enter the following details:
- Tracking Page: Your AfterShip tracking portal link.
- Webhook Secret: The secret code you copied from AfterShip in Step 2.
- (Optional) If you are not using Shopify to collect opt-ins, enable Create Transactional Subscriptions to allow AfterShip data to create subscriber records in Attentive.
- Click Save changes.
Step 4. Create a Transactional Journey
Once connected, you can build a "journey" (an triggered message flow) using AfterShip triggers.
Available shipment events include:
- In Transit
- Out for Delivery
- Delivered
- Available for Pickup
- Delivery Attempt Failure
- Exception (e.g., delays or returns)
Ensure these messages remain strictly transactional and do not include marketing or promotional content.