We are using cookies in our website in order to offer better service to you. You allow us to use cookies by continuing to use our internet website. You can reach the detailed information on cookies from our Privacy Policy and Cookies Policy.
X
Home > Api Products > Notifications

Notifications

Description

​This API covers 4 API : Email, SMS, Push Messages and Notifications.

Email

Email API is used for sending Email to customers.​

Parameters

This part needs to be in body of the request.
{
    "item_id": "6a429ecc-cef4-4c4e-af05-9a155e08d92a",
    "recipients": [
        {
            "to": "dummy.dummy@softtech.com.tr"
        }
    ],
    "data": {
        "SozlesmeMetni": "<p><!--   [if !mso]><style>v:* {behavior:url(#default#VML);}o:* {behavior:url(#default#VML);}w:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><![endif]--><!--[if gte mso 9]><xml> <o:OfficeDocumentSettings>  <o:AllowPNG></o:AllowPNG> </o:OfficeDocumentSettings></xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument>  <w:View>Normal</w:View>  <w:Zoom>0</w:Zoom> "
    }

}


Sample Request (Müşteriye Email yollar)​

POST {API_HOST}/api/isbank/notifications/v2/emails/
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET}
Authorization: Bearer {access_token} 
Content-Type: application/json

SMS

​SMS API is used for sending SMS to customers.​

Parameters

This part needs to be in body of the request.
{

  "item_id": "db94a50c-32e4-405e-b65e-36f9a6d56b69",
  "recipients": [
    {
            "country_calling_code": "90",
            "number": "5320000002"
    }
  ]
}

​​

Sample Request (Müşteriye SMS yollar)​

POST {API_HOST}/api/isbank/notifications/v2/sms/
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET}
Authorization: Bearer {access_token} 
Content-Type: application/json

Push Messages

Push Messages API is used for sending Push Notifications to customers.​​

Parameters

This part needs to be in body of the request.
{
    "data": {
        "fiyat": 70.85,
        "senet_kodu": "DUMMY",
        "kosul": "büyük eşittir"
    },
    "deepLink": "Inbox",
    "item_id": "6b31e8e5-769a-4d4d-ba1f-030b526deb0b",
    "customer_number": 161607690,
    "external_reference": "ex ref123",
    "action_date": "2020-07-20T08:00:38+03:00",
    "id": "",
    "actionLink": ""
}

Sample Request (Müşteriye Push Bildirim yollar)​

POST {API_HOST}/api/isbank/notifications/v2/push-messages/
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET}
Authorization: Bearer {access_token} 
Content-Type: application/json

Notifications

​Sends notifications to customers through their preffered channels.​

Parameters

This part needs to be in body of the request.
{
    "data": {
        "fiyat": 70.85,
        "senet_kodu": "DUMMY",
        "kosul": "büyük eşittir"
    },
    "deepLink": "Inbox",
    "item_id": "6b31e8e5-769a-4d4d-ba1f-030b526deb0b",
    "customer_number": 161607690,
    "external_reference": "ex ref123",
    "action_date": "2020-07-20T08:00:38+03:00",
    "id": "",
    "actionLink": ""
}

Sample Request​ (Müşteriye Push Bildirim yollar)

POST {API_HOST}/api/isbank/v1/notifications
Headers:
X-IBM-client-id: {YOUR_CLEINT_ID} 
X-IBM-client-secret: {YOUR_CLEINT_SECRET}
Authorization: Bearer {access_token} 
Content-Type: application/json



Sample Response

Müşteriye Email yollar

{
    "data": [
        {
            "recipient": {
                "to": "dummy.dummy@softtech.com.tr"
            },
            "item_id": "6a429ecc-cef4-4c4e-af05-9a155e08d92a",
            "data": {
                "SozlesmeMetni": "<p><!--[if !mso]><style>v:* {behavior:url(#default#VML);}o:* {behavior:url(#default#VML);}w:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><![endif]--><!--[if gte mso 9]><xml> <o:OfficeDocumentSettings>  <o:AllowPNG></o:AllowPNG> </o:OfficeDocumentSettings></xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument>  <w:View>Normal</w:View>  <w:Zoom>0</w:Zoom> "
            },
            "id": "f0bedfb2-81a3-4383-beac-9e81b2cb95e4",
            "action_date": "2020-10-09T13:53:36.389+03:00",
            "attachments": []
        }
    ]
}


Sample Response (Müşteriye SMS yollar)

{
    "data": [
        {
            "id": "f6518458-07c7-4a9f-8fbd-28c6cfbb41b4",
            "item_id": "db94a50c-32e4-405e-b65e-36f9a6d56b69",
            "action_date": "2020-10-09T14:02:02.848+03:00",
            "recipient": {
                "country_calling_code": "90",
                "number": "5320000002"
            }
        }
    ]
}


Sample Response (Müşteriye Push Bildirim yollar)

{
    "data": [
        {
            "id": "cc5af51f-27a1-47a9-a1da-6a29daea1981",
            "item_id": "6b31e8e5-769a-4d4d-ba1f-030b526deb0b",
            "external_reference": "ex ref123",
            "action_date": "2020-07-20T08:00:38.000+03:00",
            "customer_number": 161607690,
            "data": {
                "fiyat": 70.85,
                "senet_kodu": "DUMMY",
                "kosul": "büyük eşittir"
            }
        }
    ]
}

Sample Response (Müşteriye Push Bildirim yollar)

{
    "data": [
        {
            "id": "ac33b03c-1b05-4166-a9c5-a1b116777e3c",
            "item_id": "6b31e8e5-769a-4d4d-ba1f-030b526deb0b",
            "external_reference": "ex ref123",
            "action_date": "2020-07-20T08:00:38.000+03:00",
            "customer_number": 161607690,
            "data": {
                "fiyat": 70.85,
                "senet_kodu": "DUMMY",
                "kosul": "büyük eşittir"
            }
        }
    ]
}