Commissionrules oluştur
curl --request POST \
--url https://vpos.payven.com.tr/api/v1/commission-rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector_configuration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is3_d_secure": true,
"installment_count_min": 123,
"installment_count_max": 123,
"currency": "<string>",
"is_foreign_card": true,
"amount_min": 123,
"amount_max": 123,
"rate_pct": 123,
"fixed_fee_kurus": 123,
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"priority": 123
}
'import requests
url = "https://vpos.payven.com.tr/api/v1/commission-rules"
payload = {
"name": "<string>",
"description": "<string>",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector_configuration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is3_d_secure": True,
"installment_count_min": 123,
"installment_count_max": 123,
"currency": "<string>",
"is_foreign_card": True,
"amount_min": 123,
"amount_max": 123,
"rate_pct": 123,
"fixed_fee_kurus": 123,
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"priority": 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({
name: '<string>',
description: '<string>',
merchant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
connector_configuration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
bank_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
merchant_group_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
is3_d_secure: true,
installment_count_min: 123,
installment_count_max: 123,
currency: '<string>',
is_foreign_card: true,
amount_min: 123,
amount_max: 123,
rate_pct: 123,
fixed_fee_kurus: 123,
valid_from: '2023-11-07T05:31:56Z',
valid_to: '2023-11-07T05:31:56Z',
priority: 123
})
};
fetch('https://vpos.payven.com.tr/api/v1/commission-rules', 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/commission-rules",
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([
'name' => '<string>',
'description' => '<string>',
'merchant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'connector_configuration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'bank_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'merchant_group_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'is3_d_secure' => true,
'installment_count_min' => 123,
'installment_count_max' => 123,
'currency' => '<string>',
'is_foreign_card' => true,
'amount_min' => 123,
'amount_max' => 123,
'rate_pct' => 123,
'fixed_fee_kurus' => 123,
'valid_from' => '2023-11-07T05:31:56Z',
'valid_to' => '2023-11-07T05:31:56Z',
'priority' => 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/commission-rules"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"connector_configuration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"merchant_group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"is3_d_secure\": true,\n \"installment_count_min\": 123,\n \"installment_count_max\": 123,\n \"currency\": \"<string>\",\n \"is_foreign_card\": true,\n \"amount_min\": 123,\n \"amount_max\": 123,\n \"rate_pct\": 123,\n \"fixed_fee_kurus\": 123,\n \"valid_from\": \"2023-11-07T05:31:56Z\",\n \"valid_to\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123\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/commission-rules")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"connector_configuration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"merchant_group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"is3_d_secure\": true,\n \"installment_count_min\": 123,\n \"installment_count_max\": 123,\n \"currency\": \"<string>\",\n \"is_foreign_card\": true,\n \"amount_min\": 123,\n \"amount_max\": 123,\n \"rate_pct\": 123,\n \"fixed_fee_kurus\": 123,\n \"valid_from\": \"2023-11-07T05:31:56Z\",\n \"valid_to\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vpos.payven.com.tr/api/v1/commission-rules")
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 \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"connector_configuration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"merchant_group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"is3_d_secure\": true,\n \"installment_count_min\": 123,\n \"installment_count_max\": 123,\n \"currency\": \"<string>\",\n \"is_foreign_card\": true,\n \"amount_min\": 123,\n \"amount_max\": 123,\n \"rate_pct\": 123,\n \"fixed_fee_kurus\": 123,\n \"valid_from\": \"2023-11-07T05:31:56Z\",\n \"valid_to\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": "Platform",
"name": "<string>",
"description": "<string>",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector_configuration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_brand": "Bonus",
"card_type": "Credit",
"is3_d_secure": true,
"operation_type": "Sale",
"installment_count_min": 123,
"installment_count_max": 123,
"currency": "<string>",
"is_foreign_card": true,
"amount_min": 123,
"amount_max": 123,
"payment_method_category": "Card",
"rate_pct": 123,
"fixed_fee_kurus": 123,
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"priority": 123,
"parent_rule_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"is_active": true,
"created": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"last_modified": "2023-11-07T05:31:56Z",
"last_modified_by": "<string>",
"specificity_score": 123
}{
"type": "https://docs.payven.com.tr/errors/bad_request",
"title": "Geçersiz istek",
"status": 400,
"code": "bad_request",
"detail": "amount.amount alanı zorunlu.",
"correlation_id": "9f1c8e76-2a3b-4f12-9c8d-12cb24a8a8a8"
}{
"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": "https://docs.payven.com.tr/errors/forbidden",
"title": "Yetki yok",
"status": 403,
"code": "forbidden",
"detail": "Bu rol bu kaynağı göremez."
}{
"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": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"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"
}CommissionRules
Commissionrules oluştur
POST
/
api
/
v1
/
commission-rules
Commissionrules oluştur
curl --request POST \
--url https://vpos.payven.com.tr/api/v1/commission-rules \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector_configuration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is3_d_secure": true,
"installment_count_min": 123,
"installment_count_max": 123,
"currency": "<string>",
"is_foreign_card": true,
"amount_min": 123,
"amount_max": 123,
"rate_pct": 123,
"fixed_fee_kurus": 123,
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"priority": 123
}
'import requests
url = "https://vpos.payven.com.tr/api/v1/commission-rules"
payload = {
"name": "<string>",
"description": "<string>",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector_configuration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is3_d_secure": True,
"installment_count_min": 123,
"installment_count_max": 123,
"currency": "<string>",
"is_foreign_card": True,
"amount_min": 123,
"amount_max": 123,
"rate_pct": 123,
"fixed_fee_kurus": 123,
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"priority": 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({
name: '<string>',
description: '<string>',
merchant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
connector_configuration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
bank_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
merchant_group_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
is3_d_secure: true,
installment_count_min: 123,
installment_count_max: 123,
currency: '<string>',
is_foreign_card: true,
amount_min: 123,
amount_max: 123,
rate_pct: 123,
fixed_fee_kurus: 123,
valid_from: '2023-11-07T05:31:56Z',
valid_to: '2023-11-07T05:31:56Z',
priority: 123
})
};
fetch('https://vpos.payven.com.tr/api/v1/commission-rules', 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/commission-rules",
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([
'name' => '<string>',
'description' => '<string>',
'merchant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'connector_configuration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'bank_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'merchant_group_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'is3_d_secure' => true,
'installment_count_min' => 123,
'installment_count_max' => 123,
'currency' => '<string>',
'is_foreign_card' => true,
'amount_min' => 123,
'amount_max' => 123,
'rate_pct' => 123,
'fixed_fee_kurus' => 123,
'valid_from' => '2023-11-07T05:31:56Z',
'valid_to' => '2023-11-07T05:31:56Z',
'priority' => 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/commission-rules"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"connector_configuration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"merchant_group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"is3_d_secure\": true,\n \"installment_count_min\": 123,\n \"installment_count_max\": 123,\n \"currency\": \"<string>\",\n \"is_foreign_card\": true,\n \"amount_min\": 123,\n \"amount_max\": 123,\n \"rate_pct\": 123,\n \"fixed_fee_kurus\": 123,\n \"valid_from\": \"2023-11-07T05:31:56Z\",\n \"valid_to\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123\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/commission-rules")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"connector_configuration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"merchant_group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"is3_d_secure\": true,\n \"installment_count_min\": 123,\n \"installment_count_max\": 123,\n \"currency\": \"<string>\",\n \"is_foreign_card\": true,\n \"amount_min\": 123,\n \"amount_max\": 123,\n \"rate_pct\": 123,\n \"fixed_fee_kurus\": 123,\n \"valid_from\": \"2023-11-07T05:31:56Z\",\n \"valid_to\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vpos.payven.com.tr/api/v1/commission-rules")
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 \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"merchant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"connector_configuration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bank_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"merchant_group_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"is3_d_secure\": true,\n \"installment_count_min\": 123,\n \"installment_count_max\": 123,\n \"currency\": \"<string>\",\n \"is_foreign_card\": true,\n \"amount_min\": 123,\n \"amount_max\": 123,\n \"rate_pct\": 123,\n \"fixed_fee_kurus\": 123,\n \"valid_from\": \"2023-11-07T05:31:56Z\",\n \"valid_to\": \"2023-11-07T05:31:56Z\",\n \"priority\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope": "Platform",
"name": "<string>",
"description": "<string>",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connector_configuration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_brand": "Bonus",
"card_type": "Credit",
"is3_d_secure": true,
"operation_type": "Sale",
"installment_count_min": 123,
"installment_count_max": 123,
"currency": "<string>",
"is_foreign_card": true,
"amount_min": 123,
"amount_max": 123,
"payment_method_category": "Card",
"rate_pct": 123,
"fixed_fee_kurus": 123,
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"priority": 123,
"parent_rule_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"is_active": true,
"created": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"last_modified": "2023-11-07T05:31:56Z",
"last_modified_by": "<string>",
"specificity_score": 123
}{
"type": "https://docs.payven.com.tr/errors/bad_request",
"title": "Geçersiz istek",
"status": 400,
"code": "bad_request",
"detail": "amount.amount alanı zorunlu.",
"correlation_id": "9f1c8e76-2a3b-4f12-9c8d-12cb24a8a8a8"
}{
"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": "https://docs.payven.com.tr/errors/forbidden",
"title": "Yetki yok",
"status": 403,
"code": "forbidden",
"detail": "Bu rol bu kaynağı göremez."
}{
"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": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"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
Response
Created