Home » Use Cases

Package Tracking Notification

WhatsApp use case - package tracking notification

When customers order an item from your store, they will be eager to know where it is at any given moment after it’s been shipped. As soon as they have made the order, notify them through WhatsApp that they can track their package with a click of a button placed within the message.

Process Workflow

Send track package notifications over API - process diagram

IMPLEMENTATION STEPS

Before you implement this use case and start using WhatsApp message templates, the template needs to be approved by WhatsApp. Once your track_package message template is approved, you can reuse it and personalize it for each customer who is awaiting their delivery.

Use the additional placeholders to personalize your message.

TEMPLATE REGISTRATION

To register your template, you must provide a template name, content, and language info. After that, Infobip sends the template over to WhatsApp for approval.

Template name

Language Template body

Language

Call to Action Template Buttons

Approved

track_package

Hi {{1}},

Thank you for shopping at Go2Shop!

We are preparing your order.

en

1st Button:

Type of action: Visit Website

Button Text: Track package

URL type: Dynamic

Website URL: https://www.go2shop.com/

2nd button:

Type of action: Call Phone Number

Button Text: Contact Us

Country: GB +44

Phone Number: 1234567899

Steps over API

  1. Log in to Infobip API Resource hub and copy your BASE URL. Your personal base URL is: https://{{BASE_URL}}.api.infobip.com/
BASE URL

The personal BASE URL is a simple way to identify who sent out the API request. This means we can identify the request through DNS and then find the optimal route for API requests.

  1. To send an approved message template, use Postman or similar API development tools, then choose the POST method.

  2. Replace the endpoint with https://{{BASE_URL}}.api.infobip.com/omni/1/advanced.

  3. Add the Authorization header. For example, Basic: Base64 encoded username and password. Learn more about Authentication on our Infobip API Resource hub.

  4. Copy the scenarioKey you previously created. Learn more about Creating a scenario.

Request example:

{
  "scenarioKey":"CC9F01A5DC7BEE2C2B829D203482A654",
  "destinations":[
    {
      "to":{
        "phoneNumber": "41793026727"
      }
    }  ],
  "whatsApp": {
    "templateName":"track_package",
    "mediaTemplateData": {
    	"body": {
    		"placeholders": ["Donna"]
    	},
    	"buttons": [{"urlPlaceholder": "delivery/Paris/672489" }]
    },
    "language":"en"
  },
  "sms": {
    "text": " Thank you for shopping at Go2Shop! If you would like to track your package, visit our website http://www.go2shop.com.
  }
}

Here's how the message looks like in WhatsApp:

WhatsApp mockup message for tracking package


Related Products

Communicate with your customers over the world’s most used Chat app