Home » Use Cases

Confirm Transactions That Seem Suspicious

Viber use case - prevent card fraud and confirm transactions overview

Identify potentially fraudulent activities and ask customers to confirm those transactions. Trigger messaging via Infobip API Management Service from the core banking or CRM system, as they happen.

This use case shows how to create a scenario where end users receive a Viber message alert to authorize their financial transactions. Such alerts help spot any suspicious purchasing activity to which the end user might not even be aware of.

Process Workflow

Authorize payment process workflow

NOTE

Before you start communicating with your customers over Viber, you must obtain and store their opt-ins.

IMPLEMENTATION STEPS

Steps over API

  1. Log in to the 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 create a request, use Postman or a similar API development tool, 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.

  5. Using the JSON request example provided below, specify the destination phoneNumber you wish to send the notification to.

  6. Enter the Viber text, imageURL, buttonText and buttonURL values.

  7. Enter the SMS text value and provide the authorization link.

  8. Send your message. If successful, the response header HTTP status code will be 200.

{ 
	"scenarioKey":"ABD3424C690F0D706",  
  "destinations":[ 
  	{ 
    	"to":{
        "phoneNumber": "79123456789"
      }
    }
  ],
  "viber": {
  	"text": " Hello Jane, a transaction was attempted using your card in the amount of 100 EUR. To authorize the transaction please click authorize button below.",
    "imageURL": "infobip.com/image/example.png",
    "buttonText": "Get your order",
    "buttonURL": "http://www.infobip.com/",
"validityPeriod": "1",
"isPromotional": true
  },
  "sms": {
  	"text": " Hello Jane, a transaction was attempted using your card in the amount of 100 EUR. To authorize the transaction please click link Example.com"
  }
}	

The validity period is set to 1 minute. This means that if the Viber message is not delivered within one minute, an SMS message wil be sent.


Related Products

Use Viber Business Messages to connect with your customers.

SMS

Reach more customers with faster, more reliable messaging.