Checkoutthemes güncelle
curl --request PUT \
--url https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"legal_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "<string>",
"support_phone": "<string>",
"terms_url": "<string>",
"privacy_url": "<string>",
"kvkk_text": "<string>",
"footer_text": "<string>",
"locale": "<string>",
"is_active": true,
"custom_fields": [
{
"key": "<string>",
"label": "<string>",
"required": true,
"placeholder": "<string>",
"help_text": "<string>",
"max_length": 123,
"options": [
{
"value": "<string>",
"label": "<string>"
}
],
"display_order": 123
}
]
}
'import requests
url = "https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id}"
payload = {
"display_name": "<string>",
"legal_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "<string>",
"support_phone": "<string>",
"terms_url": "<string>",
"privacy_url": "<string>",
"kvkk_text": "<string>",
"footer_text": "<string>",
"locale": "<string>",
"is_active": True,
"custom_fields": [
{
"key": "<string>",
"label": "<string>",
"required": True,
"placeholder": "<string>",
"help_text": "<string>",
"max_length": 123,
"options": [
{
"value": "<string>",
"label": "<string>"
}
],
"display_order": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: '<string>',
legal_name: '<string>',
primary_color: '<string>',
accent_color: '<string>',
support_email: '<string>',
support_phone: '<string>',
terms_url: '<string>',
privacy_url: '<string>',
kvkk_text: '<string>',
footer_text: '<string>',
locale: '<string>',
is_active: true,
custom_fields: [
{
key: '<string>',
label: '<string>',
required: true,
placeholder: '<string>',
help_text: '<string>',
max_length: 123,
options: [{value: '<string>', label: '<string>'}],
display_order: 123
}
]
})
};
fetch('https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id}', 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/checkout/themes/{theme_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'display_name' => '<string>',
'legal_name' => '<string>',
'primary_color' => '<string>',
'accent_color' => '<string>',
'support_email' => '<string>',
'support_phone' => '<string>',
'terms_url' => '<string>',
'privacy_url' => '<string>',
'kvkk_text' => '<string>',
'footer_text' => '<string>',
'locale' => '<string>',
'is_active' => true,
'custom_fields' => [
[
'key' => '<string>',
'label' => '<string>',
'required' => true,
'placeholder' => '<string>',
'help_text' => '<string>',
'max_length' => 123,
'options' => [
[
'value' => '<string>',
'label' => '<string>'
]
],
'display_order' => 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/checkout/themes/{theme_id}"
payload := strings.NewReader("{\n \"display_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"support_email\": \"<string>\",\n \"support_phone\": \"<string>\",\n \"terms_url\": \"<string>\",\n \"privacy_url\": \"<string>\",\n \"kvkk_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"locale\": \"<string>\",\n \"is_active\": true,\n \"custom_fields\": [\n {\n \"key\": \"<string>\",\n \"label\": \"<string>\",\n \"required\": true,\n \"placeholder\": \"<string>\",\n \"help_text\": \"<string>\",\n \"max_length\": 123,\n \"options\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"display_order\": 123\n }\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"display_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"support_email\": \"<string>\",\n \"support_phone\": \"<string>\",\n \"terms_url\": \"<string>\",\n \"privacy_url\": \"<string>\",\n \"kvkk_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"locale\": \"<string>\",\n \"is_active\": true,\n \"custom_fields\": [\n {\n \"key\": \"<string>\",\n \"label\": \"<string>\",\n \"required\": true,\n \"placeholder\": \"<string>\",\n \"help_text\": \"<string>\",\n \"max_length\": 123,\n \"options\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"display_order\": 123\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"display_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"support_email\": \"<string>\",\n \"support_phone\": \"<string>\",\n \"terms_url\": \"<string>\",\n \"privacy_url\": \"<string>\",\n \"kvkk_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"locale\": \"<string>\",\n \"is_active\": true,\n \"custom_fields\": [\n {\n \"key\": \"<string>\",\n \"label\": \"<string>\",\n \"required\": true,\n \"placeholder\": \"<string>\",\n \"help_text\": \"<string>\",\n \"max_length\": 123,\n \"options\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"display_order\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_tenant_default": true,
"display_name": "<string>",
"legal_name": "<string>",
"logo_url": "<string>",
"logo_etag": "<string>",
"favicon_url": "<string>",
"favicon_etag": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"layout": "TwoColumn",
"font_family": "System",
"button_style": "Sharp",
"support_email": "<string>",
"support_phone": "<string>",
"terms_url": "<string>",
"privacy_url": "<string>",
"kvkk_text": "<string>",
"footer_text": "<string>",
"locale": "<string>",
"custom_fields": [
{
"key": "<string>",
"label": "<string>",
"type": "Text",
"required": true,
"placeholder": "<string>",
"help_text": "<string>",
"max_length": 123,
"options": [
{
"value": "<string>",
"label": "<string>"
}
],
"display_order": 123
}
],
"is_active": true,
"created": "2023-11-07T05:31:56Z",
"last_modified": "2023-11-07T05:31:56Z"
}{
"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": "<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"
}CheckoutThemes
Checkoutthemes güncelle
PUT
/
api
/
v1
/
checkout
/
themes
/
{theme_id}
Checkoutthemes güncelle
curl --request PUT \
--url https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"legal_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "<string>",
"support_phone": "<string>",
"terms_url": "<string>",
"privacy_url": "<string>",
"kvkk_text": "<string>",
"footer_text": "<string>",
"locale": "<string>",
"is_active": true,
"custom_fields": [
{
"key": "<string>",
"label": "<string>",
"required": true,
"placeholder": "<string>",
"help_text": "<string>",
"max_length": 123,
"options": [
{
"value": "<string>",
"label": "<string>"
}
],
"display_order": 123
}
]
}
'import requests
url = "https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id}"
payload = {
"display_name": "<string>",
"legal_name": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"support_email": "<string>",
"support_phone": "<string>",
"terms_url": "<string>",
"privacy_url": "<string>",
"kvkk_text": "<string>",
"footer_text": "<string>",
"locale": "<string>",
"is_active": True,
"custom_fields": [
{
"key": "<string>",
"label": "<string>",
"required": True,
"placeholder": "<string>",
"help_text": "<string>",
"max_length": 123,
"options": [
{
"value": "<string>",
"label": "<string>"
}
],
"display_order": 123
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: '<string>',
legal_name: '<string>',
primary_color: '<string>',
accent_color: '<string>',
support_email: '<string>',
support_phone: '<string>',
terms_url: '<string>',
privacy_url: '<string>',
kvkk_text: '<string>',
footer_text: '<string>',
locale: '<string>',
is_active: true,
custom_fields: [
{
key: '<string>',
label: '<string>',
required: true,
placeholder: '<string>',
help_text: '<string>',
max_length: 123,
options: [{value: '<string>', label: '<string>'}],
display_order: 123
}
]
})
};
fetch('https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id}', 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/checkout/themes/{theme_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'display_name' => '<string>',
'legal_name' => '<string>',
'primary_color' => '<string>',
'accent_color' => '<string>',
'support_email' => '<string>',
'support_phone' => '<string>',
'terms_url' => '<string>',
'privacy_url' => '<string>',
'kvkk_text' => '<string>',
'footer_text' => '<string>',
'locale' => '<string>',
'is_active' => true,
'custom_fields' => [
[
'key' => '<string>',
'label' => '<string>',
'required' => true,
'placeholder' => '<string>',
'help_text' => '<string>',
'max_length' => 123,
'options' => [
[
'value' => '<string>',
'label' => '<string>'
]
],
'display_order' => 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/checkout/themes/{theme_id}"
payload := strings.NewReader("{\n \"display_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"support_email\": \"<string>\",\n \"support_phone\": \"<string>\",\n \"terms_url\": \"<string>\",\n \"privacy_url\": \"<string>\",\n \"kvkk_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"locale\": \"<string>\",\n \"is_active\": true,\n \"custom_fields\": [\n {\n \"key\": \"<string>\",\n \"label\": \"<string>\",\n \"required\": true,\n \"placeholder\": \"<string>\",\n \"help_text\": \"<string>\",\n \"max_length\": 123,\n \"options\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"display_order\": 123\n }\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"display_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"support_email\": \"<string>\",\n \"support_phone\": \"<string>\",\n \"terms_url\": \"<string>\",\n \"privacy_url\": \"<string>\",\n \"kvkk_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"locale\": \"<string>\",\n \"is_active\": true,\n \"custom_fields\": [\n {\n \"key\": \"<string>\",\n \"label\": \"<string>\",\n \"required\": true,\n \"placeholder\": \"<string>\",\n \"help_text\": \"<string>\",\n \"max_length\": 123,\n \"options\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"display_order\": 123\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vpos.payven.com.tr/api/v1/checkout/themes/{theme_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"display_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"primary_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"support_email\": \"<string>\",\n \"support_phone\": \"<string>\",\n \"terms_url\": \"<string>\",\n \"privacy_url\": \"<string>\",\n \"kvkk_text\": \"<string>\",\n \"footer_text\": \"<string>\",\n \"locale\": \"<string>\",\n \"is_active\": true,\n \"custom_fields\": [\n {\n \"key\": \"<string>\",\n \"label\": \"<string>\",\n \"required\": true,\n \"placeholder\": \"<string>\",\n \"help_text\": \"<string>\",\n \"max_length\": 123,\n \"options\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"display_order\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_tenant_default": true,
"display_name": "<string>",
"legal_name": "<string>",
"logo_url": "<string>",
"logo_etag": "<string>",
"favicon_url": "<string>",
"favicon_etag": "<string>",
"primary_color": "<string>",
"accent_color": "<string>",
"layout": "TwoColumn",
"font_family": "System",
"button_style": "Sharp",
"support_email": "<string>",
"support_phone": "<string>",
"terms_url": "<string>",
"privacy_url": "<string>",
"kvkk_text": "<string>",
"footer_text": "<string>",
"locale": "<string>",
"custom_fields": [
{
"key": "<string>",
"label": "<string>",
"type": "Text",
"required": true,
"placeholder": "<string>",
"help_text": "<string>",
"max_length": 123,
"options": [
{
"value": "<string>",
"label": "<string>"
}
],
"display_order": 123
}
],
"is_active": true,
"created": "2023-11-07T05:31:56Z",
"last_modified": "2023-11-07T05:31:56Z"
}{
"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": "<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
Response
OK