Skip to content

Üye İşyeri Komisyon API

Açıklama: Üye işyeri komisyonu API'si, kart programına göre üye işyeri komisyonunu ve son kullanıcı komisyonunu döner. Authorization gereklidir ve yöntem Bearer olmalıdır.

Not: Taksitli bir kart programı için komisyon "x" gelirse, bu taksit için kart programının etkin olmadığı anlamına gelir.

URL: /api/commissions

Test Sunucusu: https://test.vepara.com.tr/ccpayment/api/commissions

Canlı Sunucusu: https://app.vepara.com.tr/ccpayment/api/commissions

Method: POST

REQUEST BODY SCHEMA

json
{
  "type": "object",
  "properties": {
    "currency_code": {
      "type": "string",
      "description": "Varsayılan olarak ''TRY'' ayarlanmıştır. Vepara yalnızca bu kurlara izin verir. ''TRY'' , ''USD'',''EUR'' "
    },
    
  },
  "required": ["currency_code"],
}

RESPONSE BODY

200 Başarılı Sonuç
json
{
    "status_code": 100,
    "status_description": "Successful",
    "data": {
        "1": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 1
            },
            {
                "title": "Single Payment Commission",
                "card_type": "Credit Card",
                "issuer_name": "T. VAKIFLAR BANKASI T.A.O.",
                "merchant_commission_percentage": 1,
                "merchant_commission_fixed": 0,
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "card_program": "",
                "installment": 1
            },
            {
                "title": "Save Card Token Payment Commission",
                "card_program": "",
                "merchant_commission_percentage": 1,
                "merchant_commission_fixed": 0.25,
                "user_commission_percentage": "-",
                "user_commission_fixed": "-",
                "currency_code": "TRY",
                "installment": 1
            },
            {
                "title": "Foreign Card Commission",
                "card_program": "",
                "merchant_commission_percentage": 3,
                "merchant_commission_fixed": 0,
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 1
            }
        ],
        "2": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 2
            }
        ],
        "3": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 3
            }
        ],
        "4": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 4
            }
        ],
        "5": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 5
            }
        ],
        "6": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 6
            }
        ],
        "7": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 7
            }
        ],
        "8": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 8
            }
        ],
        "9": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 9
            }
        ],
        "10": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 10
            }
        ],
        "11": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 11
            }
        ],
        "12": [
            {
                "title": "Regular Commission",
                "card_program": "Combo",
                "merchant_commission_percentage": "1.5000",
                "merchant_commission_fixed": "0.0000",
                "user_commission_percentage": 0,
                "user_commission_fixed": 0,
                "currency_code": "TRY",
                "installment": 12
            }
        ]
    }
}
422 Başarısız Sonuç
json
{
  "message": "The currency code field must be a string. (and 1 more error)",
  "errors": {
    "currency_code": [
      "The currency code field must be a string.",
      "The currency code field is required."
    ]
  }
}

Kod Örnekleri

PHP Örneği
php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://test.vepara.com.tr/ccpayment/api/commissions',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "currency_code": "TRY"
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6ImJlNjNlZmJhZjJiNDc5NmRkMzI2ZjhhNTcxM2ZhNjVkYjcyMTU2Yzk3NmUxNzIxZTZmYTVjMmY5YWYyNzNhMmMxYTJkMDJiMTcwZGVmOWFlIiwiaWF0IjoxNjk0NTI3OTk2LjIyNTgsIm5iZiI6MTY5NDUyNzk5Ni4yMjU4LCJleHAiOjE2OTQ1MzUxOTYuMjE3NSwic3ViIjoiNiIsInNjb3BlcyI6W119.jj4eNr04wJBQyCugzlf04k_Bs-b0zcwpw0RYwAse_lEtpF6hXIMlsZVtyZOO4F68MhUTQszlMGKaBhosWnAnmefSK9dEbM4LqRdixS9qjKSYKnkJB840cgzv7QzM2ripJ8X-Qi_0YnfzpKphYylKWFDOX31CbXeT8GvHFIx4ZmqWREmADMEmVdklyvmCnGgDVzzyMg_suYTJ_IqqCmgf-hnkS7GDjlSqZc0o1YU7JjSOCx8V3szgKJg8Ey0S7SH2tJ1kBCihe_5lLlrOiMSrzSFHr55M0r1E5mund2RSJ4N0LE_nJjdiy-9wpZ9Bn2YTyZzrPHXsX-odc3gEW8ixSxEw_atX2I0041V9TtJnQeld3tyJofpI7xTCBto0Igj2afLm_JOc1_3kpuhLz0thvHGsf_knGzhljTtsk2JAnrdNpr9fqRkRLjvpfs8gjD1EvvwASmdMEK2yVecQmfFolca6eXBnMQTJMUn9cfi4ZBK5DnckSn5C-4-FDpHEWpH-twJbCmmR0Atnm-wYM557PQLETaLjB-Jauxm4XfHFoeMWTUbL3DbywysNVqI-8l3QQglIjSpAKRe2m74tlb-SF-06Yybm9Fx_a6vBzY5zdLeiJD4R9GMHw5vOVdKupSfSQ2sg1kvlzO0cV8W_AVUtxuBQNchbGfgrjzEeN5-wIZ4',
    'Content-Type: application/json',
    'Cookie: veparaccpayment_session=uTz90SctiZHb0ysfLzbJLicVcnI1qxQgUs3SgynG'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
Ruby Örneği
ruby
require "uri"
require "json"
require "net/http"

url = URI("https://test.vepara.com.tr/ccpayment/api/commissions")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6ImJlNjNlZmJhZjJiNDc5NmRkMzI2ZjhhNTcxM2ZhNjVkYjcyMTU2Yzk3NmUxNzIxZTZmYTVjMmY5YWYyNzNhMmMxYTJkMDJiMTcwZGVmOWFlIiwiaWF0IjoxNjk0NTI3OTk2LjIyNTgsIm5iZiI6MTY5NDUyNzk5Ni4yMjU4LCJleHAiOjE2OTQ1MzUxOTYuMjE3NSwic3ViIjoiNiIsInNjb3BlcyI6W119.jj4eNr04wJBQyCugzlf04k_Bs-b0zcwpw0RYwAse_lEtpF6hXIMlsZVtyZOO4F68MhUTQszlMGKaBhosWnAnmefSK9dEbM4LqRdixS9qjKSYKnkJB840cgzv7QzM2ripJ8X-Qi_0YnfzpKphYylKWFDOX31CbXeT8GvHFIx4ZmqWREmADMEmVdklyvmCnGgDVzzyMg_suYTJ_IqqCmgf-hnkS7GDjlSqZc0o1YU7JjSOCx8V3szgKJg8Ey0S7SH2tJ1kBCihe_5lLlrOiMSrzSFHr55M0r1E5mund2RSJ4N0LE_nJjdiy-9wpZ9Bn2YTyZzrPHXsX-odc3gEW8ixSxEw_atX2I0041V9TtJnQeld3tyJofpI7xTCBto0Igj2afLm_JOc1_3kpuhLz0thvHGsf_knGzhljTtsk2JAnrdNpr9fqRkRLjvpfs8gjD1EvvwASmdMEK2yVecQmfFolca6eXBnMQTJMUn9cfi4ZBK5DnckSn5C-4-FDpHEWpH-twJbCmmR0Atnm-wYM557PQLETaLjB-Jauxm4XfHFoeMWTUbL3DbywysNVqI-8l3QQglIjSpAKRe2m74tlb-SF-06Yybm9Fx_a6vBzY5zdLeiJD4R9GMHw5vOVdKupSfSQ2sg1kvlzO0cV8W_AVUtxuBQNchbGfgrjzEeN5-wIZ4"
request["Content-Type"] = "application/json"
request["Cookie"] = "veparaccpayment_session=uTz90SctiZHb0ysfLzbJLicVcnI1qxQgUs3SgynG"
request.body = JSON.dump({
  "currency_code": "TRY"
})

response = https.request(request)
puts response.read_body
Python Örneği
python
import http.client
import json

conn = http.client.HTTPSConnection("test.vepara.com.tr")
payload = json.dumps({
  "currency_code": "TRY"
})
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6ImJlNjNlZmJhZjJiNDc5NmRkMzI2ZjhhNTcxM2ZhNjVkYjcyMTU2Yzk3NmUxNzIxZTZmYTVjMmY5YWYyNzNhMmMxYTJkMDJiMTcwZGVmOWFlIiwiaWF0IjoxNjk0NTI3OTk2LjIyNTgsIm5iZiI6MTY5NDUyNzk5Ni4yMjU4LCJleHAiOjE2OTQ1MzUxOTYuMjE3NSwic3ViIjoiNiIsInNjb3BlcyI6W119.jj4eNr04wJBQyCugzlf04k_Bs-b0zcwpw0RYwAse_lEtpF6hXIMlsZVtyZOO4F68MhUTQszlMGKaBhosWnAnmefSK9dEbM4LqRdixS9qjKSYKnkJB840cgzv7QzM2ripJ8X-Qi_0YnfzpKphYylKWFDOX31CbXeT8GvHFIx4ZmqWREmADMEmVdklyvmCnGgDVzzyMg_suYTJ_IqqCmgf-hnkS7GDjlSqZc0o1YU7JjSOCx8V3szgKJg8Ey0S7SH2tJ1kBCihe_5lLlrOiMSrzSFHr55M0r1E5mund2RSJ4N0LE_nJjdiy-9wpZ9Bn2YTyZzrPHXsX-odc3gEW8ixSxEw_atX2I0041V9TtJnQeld3tyJofpI7xTCBto0Igj2afLm_JOc1_3kpuhLz0thvHGsf_knGzhljTtsk2JAnrdNpr9fqRkRLjvpfs8gjD1EvvwASmdMEK2yVecQmfFolca6eXBnMQTJMUn9cfi4ZBK5DnckSn5C-4-FDpHEWpH-twJbCmmR0Atnm-wYM557PQLETaLjB-Jauxm4XfHFoeMWTUbL3DbywysNVqI-8l3QQglIjSpAKRe2m74tlb-SF-06Yybm9Fx_a6vBzY5zdLeiJD4R9GMHw5vOVdKupSfSQ2sg1kvlzO0cV8W_AVUtxuBQNchbGfgrjzEeN5-wIZ4',
  'Content-Type': 'application/json',
  'Cookie': 'veparaccpayment_session=uTz90SctiZHb0ysfLzbJLicVcnI1qxQgUs3SgynG'
}
conn.request("POST", "/ccpayment/api/commissions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Nodejs Örneği
javascript
const axios = require('axios');
let data = JSON.stringify({
  "currency_code": "TRY"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://test.vepara.com.tr/ccpayment/api/commissions',
  headers: { 
    'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6ImJlNjNlZmJhZjJiNDc5NmRkMzI2ZjhhNTcxM2ZhNjVkYjcyMTU2Yzk3NmUxNzIxZTZmYTVjMmY5YWYyNzNhMmMxYTJkMDJiMTcwZGVmOWFlIiwiaWF0IjoxNjk0NTI3OTk2LjIyNTgsIm5iZiI6MTY5NDUyNzk5Ni4yMjU4LCJleHAiOjE2OTQ1MzUxOTYuMjE3NSwic3ViIjoiNiIsInNjb3BlcyI6W119.jj4eNr04wJBQyCugzlf04k_Bs-b0zcwpw0RYwAse_lEtpF6hXIMlsZVtyZOO4F68MhUTQszlMGKaBhosWnAnmefSK9dEbM4LqRdixS9qjKSYKnkJB840cgzv7QzM2ripJ8X-Qi_0YnfzpKphYylKWFDOX31CbXeT8GvHFIx4ZmqWREmADMEmVdklyvmCnGgDVzzyMg_suYTJ_IqqCmgf-hnkS7GDjlSqZc0o1YU7JjSOCx8V3szgKJg8Ey0S7SH2tJ1kBCihe_5lLlrOiMSrzSFHr55M0r1E5mund2RSJ4N0LE_nJjdiy-9wpZ9Bn2YTyZzrPHXsX-odc3gEW8ixSxEw_atX2I0041V9TtJnQeld3tyJofpI7xTCBto0Igj2afLm_JOc1_3kpuhLz0thvHGsf_knGzhljTtsk2JAnrdNpr9fqRkRLjvpfs8gjD1EvvwASmdMEK2yVecQmfFolca6eXBnMQTJMUn9cfi4ZBK5DnckSn5C-4-FDpHEWpH-twJbCmmR0Atnm-wYM557PQLETaLjB-Jauxm4XfHFoeMWTUbL3DbywysNVqI-8l3QQglIjSpAKRe2m74tlb-SF-06Yybm9Fx_a6vBzY5zdLeiJD4R9GMHw5vOVdKupSfSQ2sg1kvlzO0cV8W_AVUtxuBQNchbGfgrjzEeN5-wIZ4', 
    'Content-Type': 'application/json', 
    'Cookie': 'veparaccpayment_session=uTz90SctiZHb0ysfLzbJLicVcnI1qxQgUs3SgynG'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
C# Örneği
c#
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://test.vepara.com.tr/ccpayment/api/commissions");
request.Headers.Add("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6ImJlNjNlZmJhZjJiNDc5NmRkMzI2ZjhhNTcxM2ZhNjVkYjcyMTU2Yzk3NmUxNzIxZTZmYTVjMmY5YWYyNzNhMmMxYTJkMDJiMTcwZGVmOWFlIiwiaWF0IjoxNjk0NTI3OTk2LjIyNTgsIm5iZiI6MTY5NDUyNzk5Ni4yMjU4LCJleHAiOjE2OTQ1MzUxOTYuMjE3NSwic3ViIjoiNiIsInNjb3BlcyI6W119.jj4eNr04wJBQyCugzlf04k_Bs-b0zcwpw0RYwAse_lEtpF6hXIMlsZVtyZOO4F68MhUTQszlMGKaBhosWnAnmefSK9dEbM4LqRdixS9qjKSYKnkJB840cgzv7QzM2ripJ8X-Qi_0YnfzpKphYylKWFDOX31CbXeT8GvHFIx4ZmqWREmADMEmVdklyvmCnGgDVzzyMg_suYTJ_IqqCmgf-hnkS7GDjlSqZc0o1YU7JjSOCx8V3szgKJg8Ey0S7SH2tJ1kBCihe_5lLlrOiMSrzSFHr55M0r1E5mund2RSJ4N0LE_nJjdiy-9wpZ9Bn2YTyZzrPHXsX-odc3gEW8ixSxEw_atX2I0041V9TtJnQeld3tyJofpI7xTCBto0Igj2afLm_JOc1_3kpuhLz0thvHGsf_knGzhljTtsk2JAnrdNpr9fqRkRLjvpfs8gjD1EvvwASmdMEK2yVecQmfFolca6eXBnMQTJMUn9cfi4ZBK5DnckSn5C-4-FDpHEWpH-twJbCmmR0Atnm-wYM557PQLETaLjB-Jauxm4XfHFoeMWTUbL3DbywysNVqI-8l3QQglIjSpAKRe2m74tlb-SF-06Yybm9Fx_a6vBzY5zdLeiJD4R9GMHw5vOVdKupSfSQ2sg1kvlzO0cV8W_AVUtxuBQNchbGfgrjzEeN5-wIZ4");
request.Headers.Add("Cookie", "veparaccpayment_session=uTz90SctiZHb0ysfLzbJLicVcnI1qxQgUs3SgynG");
var content = new StringContent("{\r\n    \"currency_code\": \"TRY\"\r\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());

Vepara