Bayi banka profili oluştur
curl --request POST \
--url https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_merchant_id": "<string>",
"connector_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sub_merchant_id": "<string>",
"sub_merchant_name": "<string>",
"sub_merchant_mcc": "<string>",
"sub_merchant_postal_code": "<string>",
"sub_merchant_city": "<string>",
"sub_merchant_country_code": "<string>",
"extra_properties": {},
"require_cvv": true,
"allow_non3_d": true,
"min_installment_amount_kurus": 123
}
]
'import requests
url = "https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk"
payload = [
{
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_merchant_id": "<string>",
"connector_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sub_merchant_id": "<string>",
"sub_merchant_name": "<string>",
"sub_merchant_mcc": "<string>",
"sub_merchant_postal_code": "<string>",
"sub_merchant_city": "<string>",
"sub_merchant_country_code": "<string>",
"extra_properties": {},
"require_cvv": True,
"allow_non3_d": True,
"min_installment_amount_kurus": 123
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
merchant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
external_merchant_id: '<string>',
connector_config_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sub_merchant_id: '<string>',
sub_merchant_name: '<string>',
sub_merchant_mcc: '<string>',
sub_merchant_postal_code: '<string>',
sub_merchant_city: '<string>',
sub_merchant_country_code: '<string>',
extra_properties: {},
require_cvv: true,
allow_non3_d: true,
min_installment_amount_kurus: 123
}
])
};
fetch('https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'merchant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'external_merchant_id' => '<string>',
'connector_config_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sub_merchant_id' => '<string>',
'sub_merchant_name' => '<string>',
'sub_merchant_mcc' => '<string>',
'sub_merchant_postal_code' => '<string>',
'sub_merchant_city' => '<string>',
'sub_merchant_country_code' => '<string>',
'extra_properties' => [
],
'require_cvv' => true,
'allow_non3_d' => true,
'min_installment_amount_kurus' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk"
payload := strings.NewReader("[\n {\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_merchant_id\": \"<string>\",\n \"connector_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sub_merchant_id\": \"<string>\",\n \"sub_merchant_name\": \"<string>\",\n \"sub_merchant_mcc\": \"<string>\",\n \"sub_merchant_postal_code\": \"<string>\",\n \"sub_merchant_city\": \"<string>\",\n \"sub_merchant_country_code\": \"<string>\",\n \"extra_properties\": {},\n \"require_cvv\": true,\n \"allow_non3_d\": true,\n \"min_installment_amount_kurus\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_merchant_id\": \"<string>\",\n \"connector_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sub_merchant_id\": \"<string>\",\n \"sub_merchant_name\": \"<string>\",\n \"sub_merchant_mcc\": \"<string>\",\n \"sub_merchant_postal_code\": \"<string>\",\n \"sub_merchant_city\": \"<string>\",\n \"sub_merchant_country_code\": \"<string>\",\n \"extra_properties\": {},\n \"require_cvv\": true,\n \"allow_non3_d\": true,\n \"min_installment_amount_kurus\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_merchant_id\": \"<string>\",\n \"connector_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sub_merchant_id\": \"<string>\",\n \"sub_merchant_name\": \"<string>\",\n \"sub_merchant_mcc\": \"<string>\",\n \"sub_merchant_postal_code\": \"<string>\",\n \"sub_merchant_city\": \"<string>\",\n \"sub_merchant_country_code\": \"<string>\",\n \"extra_properties\": {},\n \"require_cvv\": true,\n \"allow_non3_d\": true,\n \"min_installment_amount_kurus\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"total": 123,
"succeeded": 123,
"failed": 123,
"results": [
{
"index": 123,
"is_success": true,
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "https://docs.payven.com.tr/errors/invalid_token",
"title": "Geçersiz token",
"status": 401,
"code": "invalid_token",
"detail": "Access token geçersiz veya süresi dolmuş — refresh edin."
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "https://docs.payven.com.tr/errors/idempotency_key_in_use",
"title": "Idempotency-Key çakışması",
"status": 409,
"code": "idempotency_key_in_use",
"detail": "Bu Idempotency-Key daha önce farklı bir istek gövdesi ile kullanıldı."
}{
"type": "https://docs.payven.com.tr/errors/bank_declined",
"title": "Banka işlemi reddetti",
"status": 422,
"code": "bank_declined",
"detail": "Yetersiz bakiye (banka kodu: 51)",
"provider_error_code": "51"
}{
"type": "https://docs.payven.com.tr/errors/rate_limit_exceeded",
"title": "İstek limiti aşıldı",
"status": 429,
"code": "rate_limit_exceeded"
}{
"type": "https://docs.payven.com.tr/errors/internal_server_error",
"title": "Sunucu hatası",
"status": 500,
"code": "internal_server_error"
}{
"type": "https://docs.payven.com.tr/errors/connector_unavailable",
"title": "Konnektör erişilemez",
"status": 503,
"code": "connector_unavailable"
}Bayi Banka Profilleri
Bayi banka profili oluştur
POST
/
api
/
v1
/
merchant-bank-profiles
/
bulk
Bayi banka profili oluştur
curl --request POST \
--url https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_merchant_id": "<string>",
"connector_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sub_merchant_id": "<string>",
"sub_merchant_name": "<string>",
"sub_merchant_mcc": "<string>",
"sub_merchant_postal_code": "<string>",
"sub_merchant_city": "<string>",
"sub_merchant_country_code": "<string>",
"extra_properties": {},
"require_cvv": true,
"allow_non3_d": true,
"min_installment_amount_kurus": 123
}
]
'import requests
url = "https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk"
payload = [
{
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_merchant_id": "<string>",
"connector_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sub_merchant_id": "<string>",
"sub_merchant_name": "<string>",
"sub_merchant_mcc": "<string>",
"sub_merchant_postal_code": "<string>",
"sub_merchant_city": "<string>",
"sub_merchant_country_code": "<string>",
"extra_properties": {},
"require_cvv": True,
"allow_non3_d": True,
"min_installment_amount_kurus": 123
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
merchant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
external_merchant_id: '<string>',
connector_config_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sub_merchant_id: '<string>',
sub_merchant_name: '<string>',
sub_merchant_mcc: '<string>',
sub_merchant_postal_code: '<string>',
sub_merchant_city: '<string>',
sub_merchant_country_code: '<string>',
extra_properties: {},
require_cvv: true,
allow_non3_d: true,
min_installment_amount_kurus: 123
}
])
};
fetch('https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'merchant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'external_merchant_id' => '<string>',
'connector_config_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sub_merchant_id' => '<string>',
'sub_merchant_name' => '<string>',
'sub_merchant_mcc' => '<string>',
'sub_merchant_postal_code' => '<string>',
'sub_merchant_city' => '<string>',
'sub_merchant_country_code' => '<string>',
'extra_properties' => [
],
'require_cvv' => true,
'allow_non3_d' => true,
'min_installment_amount_kurus' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk"
payload := strings.NewReader("[\n {\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_merchant_id\": \"<string>\",\n \"connector_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sub_merchant_id\": \"<string>\",\n \"sub_merchant_name\": \"<string>\",\n \"sub_merchant_mcc\": \"<string>\",\n \"sub_merchant_postal_code\": \"<string>\",\n \"sub_merchant_city\": \"<string>\",\n \"sub_merchant_country_code\": \"<string>\",\n \"extra_properties\": {},\n \"require_cvv\": true,\n \"allow_non3_d\": true,\n \"min_installment_amount_kurus\": 123\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_merchant_id\": \"<string>\",\n \"connector_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sub_merchant_id\": \"<string>\",\n \"sub_merchant_name\": \"<string>\",\n \"sub_merchant_mcc\": \"<string>\",\n \"sub_merchant_postal_code\": \"<string>\",\n \"sub_merchant_city\": \"<string>\",\n \"sub_merchant_country_code\": \"<string>\",\n \"extra_properties\": {},\n \"require_cvv\": true,\n \"allow_non3_d\": true,\n \"min_installment_amount_kurus\": 123\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://vpos.payven.com.tr/api/v1/merchant-bank-profiles/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"external_merchant_id\": \"<string>\",\n \"connector_config_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sub_merchant_id\": \"<string>\",\n \"sub_merchant_name\": \"<string>\",\n \"sub_merchant_mcc\": \"<string>\",\n \"sub_merchant_postal_code\": \"<string>\",\n \"sub_merchant_city\": \"<string>\",\n \"sub_merchant_country_code\": \"<string>\",\n \"extra_properties\": {},\n \"require_cvv\": true,\n \"allow_non3_d\": true,\n \"min_installment_amount_kurus\": 123\n }\n]"
response = http.request(request)
puts response.read_body{
"total": 123,
"succeeded": 123,
"failed": 123,
"results": [
{
"index": 123,
"is_success": true,
"profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "https://docs.payven.com.tr/errors/invalid_token",
"title": "Geçersiz token",
"status": 401,
"code": "invalid_token",
"detail": "Access token geçersiz veya süresi dolmuş — refresh edin."
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "https://docs.payven.com.tr/errors/idempotency_key_in_use",
"title": "Idempotency-Key çakışması",
"status": 409,
"code": "idempotency_key_in_use",
"detail": "Bu Idempotency-Key daha önce farklı bir istek gövdesi ile kullanıldı."
}{
"type": "https://docs.payven.com.tr/errors/bank_declined",
"title": "Banka işlemi reddetti",
"status": 422,
"code": "bank_declined",
"detail": "Yetersiz bakiye (banka kodu: 51)",
"provider_error_code": "51"
}{
"type": "https://docs.payven.com.tr/errors/rate_limit_exceeded",
"title": "İstek limiti aşıldı",
"status": 429,
"code": "rate_limit_exceeded"
}{
"type": "https://docs.payven.com.tr/errors/internal_server_error",
"title": "Sunucu hatası",
"status": 500,
"code": "internal_server_error"
}{
"type": "https://docs.payven.com.tr/errors/connector_unavailable",
"title": "Konnektör erişilemez",
"status": 503,
"code": "connector_unavailable"
}Authorizations
bearerAuthoauth2
Body
application/json