Netmera Developer Guide
Netmera Docs
  • Netmera Developer Guide
  • Platforms
    • iOS
      • New iOS (Swift)
        • SDK Integration
        • Push Notifications
          • Delegate Methods
          • Widget and In-App Messages
          • Media Push
          • Carousel, Slider and Thumbnail Push
        • Deep Linking
          • Custom Deep Links
        • Sound & Vibration
        • Push Inbox
        • Events
        • Geofence & Location
        • User Attributes & Preferences
        • Advertising ID
        • Changelog
      • Former iOS (Objective-C)
        • SDK Integration
        • Push Notifications
          • Delegate Methods
          • Push Payload Receivers
          • Widget and In-App Messages
          • Customizing In-App Messages
          • Media Push
          • Carousel, Slider and Thumbnail Push
          • Custom Web View Presentation
          • Push Icon
        • Live Activities
        • Deep Linking
          • Custom Deep Links
        • Sound & Vibration
        • Push Inbox
        • Events
        • Geofence & Location
        • User Attributes & Preferences
        • Data Transfer
        • Advertising ID
        • SSL Pinning
        • Changelog
    • Android
      • SDK Integration
        • Huawei Integration
        • Huawei Message Receipt
        • Custom FCM and HMS Implementations
        • Android Integration FAQs
      • Push Notifications
        • Widget and In-App Messages
        • Push Callbacks
        • Custom Web View Presentation
        • Push Icon
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
        • Background Location Permission
      • User & Attributes
      • Data Transfer
      • Advertising ID
      • App Tracking
      • SSL Pinning
      • Changelog
    • Web
      • SDK Setup
        • Self-Hosted SDK Setup
      • Mobile Web Push for iOS
      • Deep Linking
        • Custom Deep Links
      • Events
      • User & Attributes
    • React Native
      • SDK Integration
      • Push Notifications
        • Widget and In-App Messages
        • Push Callbacks
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
      • User & Attributes
      • Changelog
    • Flutter
      • SDK Integration
        • Custom FCM and HMS Implementations
      • Push Notifications
        • Push Notification Permissions
        • Widget and In-App Messages
        • Flutter iOS Media Push
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
      • User & Attributes
      • SSL Pinning
      • Changelog
    • Cordova
      • SDK Integration
      • Push Notifications
      • Sound & Vibration
      • Push Inbox
      • Events
      • User & Attributes
    • Unity
      • SDK Integration
      • Sound & Vibration
      • Events
      • User & Attributes
      • Changelog
  • Integrated Modules
    • Optimove
    • Adjust
    • Mixpanel
    • IYS Integration
    • VIA Integration
      • Short URL Consent Requests
      • OTP Consent Requests
        • OTP Confirmation Completion
      • VIA Email Rejection Link Generation
      • ETK Rejection via SMS
  • API Documentation
    • REST API
      • Setup
      • Notifications
      • Events
      • User & Device Management
      • Inbox Feature
      • GDPR
      • Error Responses
  • FAQs
    • Push Notifications FAQs
Powered by GitBook
On this page
  • VIA Integration on Netmera
  • VIA Services Netmera Panel Configuration
  • SMS & Email Permission Management with VIA Integration
  • Short URL Consent Flow
  • OTP Consent Flow
  • VIA Consent API Parameters
  • User Update or Create with ReferenceID

Was this helpful?

  1. Integrated Modules

VIA Integration

PreviousIYS IntegrationNextShort URL Consent Requests

Last updated 3 months ago

Was this helpful?

VIA is a communication management system designed for SMS and email permission management. It allows users to configure and oversee these services by integrating Netmera's platform with external messaging APIs. For more details about VIA, visit their website .

VIA Integration on Netmera

VIA Services Netmera Panel Configuration

  1. Navigate to Netmera Panel > Connectors > Installed > IYS.

  2. Set the correct IYS configuration:

    • Fill in the Brand and IYS Codes fields with the values obtained from IYS.

  3. Enable the VIA feature by selecting the Via Enabled checkbox.

Incorrect Configuration:

If the configuration is incorrect or the checkbox is not enabled, REST service responses will return with the following errors:

Error Code: 400 - Bad Request

validationError: IYS config is invalid for appKey
validationError: Via service is inactive for appKey

SMS & Email Permission Management with VIA Integration

You can obtain user consent or decline for SMS and email preferences in two ways when using VIA integration:

1. Consent Management via Short URL

  • Use the form created in the IYS panel to send a short URL to users, allowing them to manage their SMS or email preferences.

2. Consent Management via One-Time Password (OTP)

  • Use the form created in the IYS panel to send an OTP to users, enabling them to confirm their SMS or email preferences.

IYS Form Creation

  1. Create Separate Forms

    While you can obtain SMS and email permissions simultaneously through the same OTP or short URL, forms for Short URL and OTP Consent must be created independently. A single combined form that includes both Short URL and OTP is not permitted.

  2. Use the IYS Panel for Form Generation

    Forms must be generated directly through the IYS panel. Netmera does not support form creation, as this process is exclusively managed by IYS.

Short URL Consent Flow

1

Prepare the Short URL Consent Form

Prepare a Short URL consent form using your IYS Panel. Once the form is ready, submit it to IYS for approval.

2

Obtain IYS Approval

After IYS approves the form, it will be available for use in API calls. The form ID provided by IYS will serve as the formId value in your requests.

3

Send the Consent Form to the User

Send the consent form link to your users via email or SMS. Use the API endpoint https://restapi.netmera.com/via/consent to share the link with your users.

4

User Submits Their Consent

When the user receives the link, they can open the form, select their SMS or email permissions, and submit their approval.

5

Confirmation Information Sent to the User

After the user submits their consent, they will receive a confirmation via email or SMS informing them of the permissions they selected and their submission status.

6

Consent Data Saved in Netmera

Netmera saves the user permissions in the Netmera Panel. This synchronization occurs every 10 minutes to ensure the latest user preferences are reflected.

OTP Consent Flow

1

Prepare the OTP Consent Form

Create an OTP consent form using your IYS Panel. Once the form is ready, submit it to IYS for approval.

2

Obtain IYS Approval

After IYS approves the form, it will be ready for use in API calls. The form ID provided by IYS will serve as the formId value in your requests.

3

Send the Consent Form to the User

Send an email or SMS to the user containing the OTP code. Use the API endpoint https://restapi.netmera.com/via/consent to share the code with the user.

4

User Submits Their Consent

The user enters the OTP code they received. Use the API endpoint https://restapi.netmera.com/via/confirm to submit the OTP.

5

Confirmation Information Sent to the User

The user will receive a confirmation via email or SMS, detailing the permissions they selected and the status of their submission.

6

Consent Data Saved in Netmera

Netmera automatically saves the user’s permissions in the Netmera Panel. Synchronization occurs every 10 minutes to ensure the latest user preferences are reflected.

VIA Consent API Parameters

Request Body Field Parameters

Field
Required
Description

title

Yes

Describes the type of consent being requested. For ETK consent, use ETK.

types

Yes

Specifies the communication channels from which consent will be requested:

For ETK: "ARAMA", "MESAJ", ["ARAMA", "MESAJ"], ["MESAJ", "ARAMA"], "EPOSTA"

For KVKK: "AYDINLATMA_METNI", "ACIK_RIZA_METNI", "YURTDISI_AKTARIM"

recipientType

Yes

Specifies the type of user from whom consent is being obtained: BİREYSEL or TACIR.

formId

Yes

The ID of the consent form to be sent to the recipient, it must obtained from the VIA Management interface.

recipient

Yes

The recipient’s phone number (must be with format: +90...) or email address where the consent request is sent.

verificationType

Yes

Specifies the method for obtaining consent and it could be set as:"SMS_OTP", "EPOSTA_OTP", "EPOSTA_SHORTURL", "SMS_SHORTURL", "EPOSTA_APPROVALURL".

referenceID

Yes

This identifier is used to create or update user records in the Netmera system.

name

Required for KVKK

Recipient’s first and last name.

recipientIdNumber

Required for KVKK

The recipient’s Turkish Identity Number (TC Kimlik).

address

Required for KVKK

Recipient's address details.

personData

Required for KVKK

Object containing the recipient’s name and recipientIdNumber.

Response Body Fields

HTTP Code
Field
Description

200

requestId

Used to query the status of the request or confirm the OTP scenario.

400

message

Error message detailing the issue.

code

Error code returned by the IYS system.

value

The problematic value, depending on the error type.

500

message

Error while parsing the data.

User Update or Create with ReferenceID

The ReferenceID is a mandatory field provided you, used to uniquely identify and differentiate users within the system. It plays a crucial role in user creation and ensures proper user management within the platform.

If the Reference ID is not provided:

If the ReferenceID is not provided in a request, the system will return a 400 Bad Request with the message: “ReferenceID is empty”.

{
  "message": "referenceId is empty",
  "status": 400
}

User Lookup with Email

  • The system first attempts to locate a user using only the email address (without the ReferenceID). This helps to identify previously existing users within the Netmera platform.

  • If the user is found, their consent status is updated based on the information in the response (e.g., “Onay verildi” or “Onay verilmedi” indicating consent granted or not).

User Lookup with MSISDN

  • If the user is not found using the email, the system then attempts to locate the user using their MSISDN (mobile number).

  • If no user is found by MSISDN, the system will resort to searching by ReferenceID.

ReferenceID Handling

  • If the ReferenceID is found, it indicates that the user has already been created, likely through the Via channel (e.g., as an email user). The system will then update the user’s MSISDN and consent status accordingly.

When a User Does Not Exist with ReferenceID

If no user is found for the given ReferenceID, the system will create a new user using the identifier provided with permission (either email or MSISDN).

  • If only email is provided, the system will create a user with an email and set MSISDN as false.

  • If only MSISDN is provided, the system will create a user with an MSISDN and set email as false.

  • If both are provided, the system will create a user with both identifiers.

  • The system will then store the ReferenceID as a profile attribute.

User Creation Flow: Possible Scenarios and Outcomes

1. Email User Creation If the user has never been an email user in Netmera and grants email permission, a new email user is created.

2. MSISDN User Creation If the user has never been an MSISDN user in Netmera and grants MSISDN permission, a new MSISDN user is created.

3. New Email User Creation When Only MSISDN Permission is Granted If the user was previously an email user in Netmera but only grants MSISDN permission, a new email user is created. (Since there is no reference ID to determine which user corresponds to which, scenario 6 applies if email permission is granted later.)

4. New Email User Creation When Only Email Permission is Granted If the user was previously an MSISDN user in Netmera but only grants email permission, a new email user is created. (Since there is no reference ID to determine which user corresponds to which, scenario 6 applies if MSISDN permission is granted later.)

5. Single User Creation for Both Email and MSISDN Permissions If the user has never been an email or MSISDN user in Netmera and grants both email and MSISDN permissions, a single user is created to store both permissions.

6. Merging Users When Email Exists and MSISDN is Newly Granted If the user was previously an email user but not an MSISDN user, and both email and MSISDN permissions are granted (with the MSISDN request arriving first), the user is merged into a single entity. (There is no duplication of the existing email user.)

7. Updating Permissions for Existing Email Users If the user was previously an email user and only grants email permission, the existing user’s permissions are updated instead of creating a new user.

8. Updating Permissions for Existing MSISDN Users If the user was previously an MSISDN user and only grants MSISDN permission, the existing user’s permissions are updated instead of creating a new user.

For a full version, please see the board .

For a full version, please see the board.

here
here
here
Connectors