Tutorials
Send Delivery or Confirmation Notifications to Customers
Send Delivery or Confirmation Notifications to Customers

Send Delivery or Confirmation Notifications to Customers

Combining communication channels and API, allows you to send different notification messages to your end users. For example, to send delivery information, booking or purchase confirmation, and other.

This tutorial explains how to use WhatsApp to send notifications to your clients and inform them when and where they can pick up their new credit cards.

WhatsApp use case - Share Real-time Updates on Financial Transactions - high-level overview

Process Workflow

WhatsApp use case - Send Boarding Pass and Check-in Notifications - process workflow 1

Implementation Steps

The card_delivery notification needs to be approved by WhatsApp as shown in the table below. This specific template can be reused for different customers adapting placeholders with other values.

Template nameContentLanguageApproved
card_delivery

Hi {{1}}, your new credit card is waiting for you at our branch office at {{2}} You can pick-up your card from {{3}} to {{4}} on working days and from {{5}} to {{6}} on Saturdays.

Please take your ID card with you.

Your G2Bank

en

Steps over API

  1. Log in to Infobip API Resource hub (opens in a new tab) 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.

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

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

  4. Add the Authorization header. For example, Basic: Base64 encoded username and password. Learn more about Authentication (opens in a new tab) on our Infobip API Resource hub.

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

  • Specify the destination phoneNumber you wish to send the notification to
  • Replace templateName, templateData, and languagefields with registered ones (refer to table above). Field templateData contains real data for placeholders in the registered template.
json
 
    {
       "scenarioKey":"CC9F01A5DC7BEE2C2B829D203482A654",
       "destinations":[
          {
             "to":{
                "phoneNumber":"41793026727"
             }
          }
       ],
       "whatsApp":{
          "templateName":"card_delivery",
          "templateData":[ "Marco", "Sesame street 7", "9AM",  "6PM", "9AM", "1PM"
          ],
          "language":"en"
       }
    }
 

Template data should contain the same number of elements as placeholders in the registered template. In case the template doesn’t contain any placeholders, templateData field should be an empty array “[ ]”.

PRO TIP

You can add an optional question to your notification asking clients if they would like to know the exact location of the bank. In case they reply with a Yes to your message, you can share the location of the branch office where they should pick up their new card. Check our use case for sending rich media messages.

Need assistance

Explore Infobip tutorials

Encountering issues

Contact our support

What's new? Check out

Release notes

Unsure about a term? See

Glossary

Research panel

Help shape the future of our products
Service Terms & ConditionsPrivacy policyTerms of use