VIA Integration
Last updated
Was this helpful?
Last updated
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 here.
Navigate to Netmera Panel > Connectors > Installed > IYS.
Set the correct IYS configuration:
Fill in the Brand and IYS Codes fields with the values obtained from IYS.
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
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
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.
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.
For a full version, please see the board here.
For a full version, please see the board here.
Request Body Field Parameters
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
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.
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”.
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.