The VIA Form Confirmation Completion API is used to finalize the confirmation process initiated by the Consent Initiation (consent) method. This API allows the recipient to submit the verification code received via SMS or email. If the submitted code is valid, the confirmation is recorded.
Important Notes:
Validity Period: The verification code (otpCode) for SMS_OTP and EPOSTA_OTP is valid for 3 minutes. If the code is not submitted within this timeframe, the request will be considered invalid.
Retry Limit: A maximum of 3 attempts can be made within the 3-minute window for a given requestId. Even if the 4th attempt contains a valid code, the confirmation will not be recorded.
Confirmation Body Parameters
Parameter
Type
Required
Description
consentTypes
Array of objects
Yes
An array containing consent type(s) and their corresponding OTP code(s).
title
String
Yes
The type of consent being obtained. Valid values: ETK (ETK consent) or KVK (KVK consent).
otpCode
String
Yes
The one-time password (OTP) code sent to the recipient via SMS or email.
requestId
String
Yes
The unique identifier (requestId) returned by the consent API during the initiation phase.
verificationType
String
Yes
The method used for verification. Valid values: SMS_OTP (OTP via SMS) or EPOSTA_OTP (OTP via email).
Response Fields
Success Response (HTTP Code: 200)
The response will include the following fields upon successful completion:
{
"message": [
{
"transactionId": "The transaction ID for the VIA operation.",
"creationDate": "The date and time when the confirmation was created.",
"type": "The type of form used for confirmation.",
"brandCode": "The unique İYS number assigned to the service provider's brand."
}
],
"code": "Indicates whether the operation was successful."
}
Error Response (HTTP Code: 400)
The response will include the following fields in case of an error:
{
"message": "The error message describing the issue.",
"code": "The error code corresponding to the issue in the İYS system.",
"value": "The value that caused the error (if applicable)."
}
Server Error Response (HTTP Code: 500)
The response will include the following field in case of a server error: