Skip to content

İşlem Durumu

Açıklama: İşlem durumu sorgulaması için endpoint ve http method bilgisi aşağıda verilmiştir.

URL: /api/checkstatus

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

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

Method: POST

REQUEST BODY SCHEMA

json
{
  "type": "object",
  "properties": {
    "merchant_key" : {
        "type": "string",
        "description": "Vepara tarafından sağlanan üye işyerinin benzersiz anahtarıdır."
    },
    "invoice_id": {
      "type": "string",
      "description": "Ödeme yapılacak sepetin sipariş numarası, benzersiz göndermeye dikkat edin"
    },
    
  },
  "required": ["merchant_key"],
  "required": ["invoice_id"],
}
200 Başarılı Sonuç
json
{
    "status_code": 100,
    "status_description": "An order has been taken place for this invoice id: AdEb8tJyKQWFzS1",
    "transaction_status": "Completed",
    "order_id": "1695198774145767",
    "transaction_id": "M7BpJ-9sb-TC10-98950-200923",
    "message": "An order has been taken place for this invoice id: AdEb8tJyKQWFzS1",
    "reason": "",
    "bank_status_code": "",
    "bank_status_description": "",
    "invoice_id": "AdEb8tJyKQWFzS1",
    "total_refunded_amount": 0,
    "product_price": "10",
    "transaction_amount": 10,
    "ref_number": "",
    "transaction_type": "Auth",
    "original_bank_error_code": "",
    "original_bank_error_description": "",
    "payment_reason_code": "",
    "payment_reason_code_detail": "",
    "merchant_commission": "0.15",
    "user_commission": "0.00",
    "settlement_date": "2023-12-06"
}

Kod Örnekleri

PHP Örneği
php
  <?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://test.vepara.com.tr/ccpayment/api/checkstatus',
  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 => array('invoice_id' => 'AdEb8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_Ycv-U7Rx3UPSbuLwlo',
    'Cookie: veparaccpayment_session=LUMEiQr4mYLa0TNtzXSTZ20zVc40P9QY02QgM0jC'
  ),
));

$response = curl_exec($curl);

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

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

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6IjQ5NjM2MzFlNzc4ZmRlZDE3MGFhMTNkNThhYzU1ZTc0MDczOThmZmYyNmU0YjJlZTg1N2RjNzNiZmU1MzE2NDgwYmQ4NDMwOTg5ZmUxNzkxIiwiaWF0IjoxNjk1MTk4NDQxLjU0MDQsIm5iZiI6MTY5NTE5ODQ0MS41NDA0LCJleHAiOjE2OTUyMDU2NDEuNTMzMSwic3ViIjoiNiIsInNjb3BlcyI6W119.YIJkDS-borx6ar4ZYPVKxE1-nPwIBP4MoIsxnvJaVgBOQQ2xqpQXiw3fVZad7wT_A-Ng8-1Mc8P6je2geNfgj8NlNnh-8pUPPdxt9EtYzxzPZz-h522rDvNZzRDvKTaxq-MXH6KN8fjtBmOtokTGRGBfhU2kPN43DefRlsM_cC73ZI7GLuWzyzSh2pAHrmPTXbMzRZWqZW6Wlu3vlcGhjdHRGXuSXL4So5M1Wd23vawEcnSdZRAfk8e70gewNdgnaS9AwSVzgbKDQ65oRUL_4otFxlyXg2LNRFcu5nbjMkIIciUinEZPb8IvVZGCW0DpSor02UVTOMvP5kBXxJ438XIMkvyst01DU-GYMKYomZVBAdZn2Gx1ysserg1drXOL8kWjQpyhj0roCPT8Lzoku-gT2UefL_mv0GzsM9xsznm3VT5oHTLpMNyO0UNwYm7MKxXs-7Mblg1muL6vHK6O17SomjW82gpmp3xVh3fC60ReA_3DdbRcAO8c_zwtWQK1QHsC3AqM_6XX1nF5HqXCet8j2g0l8tN41DdmOScXaiqhAOjEdizKzpyuQFsf127sDIdTcZ4gx_XyGs2YI-_FjxfIsfNkDULXofz-TyZXVWKCFA7-_UpZptDHyK0DxOdS1PQ-dz06RaW_t3v99aaPwoMH_Ycv-U7Rx3UPSbuLwlo"
request["Cookie"] = "veparaccpayment_session=LUMEiQr4mYLa0TNtzXSTZ20zVc40P9QY02QgM0jC"
form_data = [['invoice_id', 'AdEb8tJyKQWFzS1'],['merchant_key', '$2y$10$w/ODdbTmfubcbUCUq/ia3OoJFMUmkM1UVNBiIQIuLfUlPmaLUT1he']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
Python Örneği
python
import http.client
import mimetypes
from codecs import encode

conn = http.client.HTTPSConnection("test.vepara.com.tr")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=invoice_id;'))

dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))

dataList.append(encode("AdEb8tJyKQWFzS1"))
dataList.append(encode('--' + boundary))
dataList.append(encode('Content-Disposition: form-data; name=merchant_key;'))

dataList.append(encode('Content-Type: {}'.format('text/plain')))
dataList.append(encode(''))

dataList.append(encode("$2y$10$w/ODdbTmfubcbUCUq/ia3OoJFMUmkM1UVNBiIQIuLfUlPmaLUT1he"))
dataList.append(encode('--'+boundary+'--'))
dataList.append(encode(''))
body = b'\r\n'.join(dataList)
payload = body
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6IjQ5NjM2MzFlNzc4ZmRlZDE3MGFhMTNkNThhYzU1ZTc0MDczOThmZmYyNmU0YjJlZTg1N2RjNzNiZmU1MzE2NDgwYmQ4NDMwOTg5ZmUxNzkxIiwiaWF0IjoxNjk1MTk4NDQxLjU0MDQsIm5iZiI6MTY5NTE5ODQ0MS41NDA0LCJleHAiOjE2OTUyMDU2NDEuNTMzMSwic3ViIjoiNiIsInNjb3BlcyI6W119.YIJkDS-borx6ar4ZYPVKxE1-nPwIBP4MoIsxnvJaVgBOQQ2xqpQXiw3fVZad7wT_A-Ng8-1Mc8P6je2geNfgj8NlNnh-8pUPPdxt9EtYzxzPZz-h522rDvNZzRDvKTaxq-MXH6KN8fjtBmOtokTGRGBfhU2kPN43DefRlsM_cC73ZI7GLuWzyzSh2pAHrmPTXbMzRZWqZW6Wlu3vlcGhjdHRGXuSXL4So5M1Wd23vawEcnSdZRAfk8e70gewNdgnaS9AwSVzgbKDQ65oRUL_4otFxlyXg2LNRFcu5nbjMkIIciUinEZPb8IvVZGCW0DpSor02UVTOMvP5kBXxJ438XIMkvyst01DU-GYMKYomZVBAdZn2Gx1ysserg1drXOL8kWjQpyhj0roCPT8Lzoku-gT2UefL_mv0GzsM9xsznm3VT5oHTLpMNyO0UNwYm7MKxXs-7Mblg1muL6vHK6O17SomjW82gpmp3xVh3fC60ReA_3DdbRcAO8c_zwtWQK1QHsC3AqM_6XX1nF5HqXCet8j2g0l8tN41DdmOScXaiqhAOjEdizKzpyuQFsf127sDIdTcZ4gx_XyGs2YI-_FjxfIsfNkDULXofz-TyZXVWKCFA7-_UpZptDHyK0DxOdS1PQ-dz06RaW_t3v99aaPwoMH_Ycv-U7Rx3UPSbuLwlo',
  'Cookie': 'veparaccpayment_session=LUMEiQr4mYLa0TNtzXSTZ20zVc40P9QY02QgM0jC',
  'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/ccpayment/api/checkstatus", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Nodejs Örneği
javascript
const axios = require('axios');
const FormData = require('form-data');
let data = new FormData();
data.append('invoice_id', 'AdEb8tJyKQWFzS1');
data.append('merchant_key', '$2y$10$w/ODdbTmfubcbUCUq/ia3OoJFMUmkM1UVNBiIQIuLfUlPmaLUT1he');

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://test.vepara.com.tr/ccpayment/api/checkstatus',
  headers: { 
    'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6IjQ5NjM2MzFlNzc4ZmRlZDE3MGFhMTNkNThhYzU1ZTc0MDczOThmZmYyNmU0YjJlZTg1N2RjNzNiZmU1MzE2NDgwYmQ4NDMwOTg5ZmUxNzkxIiwiaWF0IjoxNjk1MTk4NDQxLjU0MDQsIm5iZiI6MTY5NTE5ODQ0MS41NDA0LCJleHAiOjE2OTUyMDU2NDEuNTMzMSwic3ViIjoiNiIsInNjb3BlcyI6W119.YIJkDS-borx6ar4ZYPVKxE1-nPwIBP4MoIsxnvJaVgBOQQ2xqpQXiw3fVZad7wT_A-Ng8-1Mc8P6je2geNfgj8NlNnh-8pUPPdxt9EtYzxzPZz-h522rDvNZzRDvKTaxq-MXH6KN8fjtBmOtokTGRGBfhU2kPN43DefRlsM_cC73ZI7GLuWzyzSh2pAHrmPTXbMzRZWqZW6Wlu3vlcGhjdHRGXuSXL4So5M1Wd23vawEcnSdZRAfk8e70gewNdgnaS9AwSVzgbKDQ65oRUL_4otFxlyXg2LNRFcu5nbjMkIIciUinEZPb8IvVZGCW0DpSor02UVTOMvP5kBXxJ438XIMkvyst01DU-GYMKYomZVBAdZn2Gx1ysserg1drXOL8kWjQpyhj0roCPT8Lzoku-gT2UefL_mv0GzsM9xsznm3VT5oHTLpMNyO0UNwYm7MKxXs-7Mblg1muL6vHK6O17SomjW82gpmp3xVh3fC60ReA_3DdbRcAO8c_zwtWQK1QHsC3AqM_6XX1nF5HqXCet8j2g0l8tN41DdmOScXaiqhAOjEdizKzpyuQFsf127sDIdTcZ4gx_XyGs2YI-_FjxfIsfNkDULXofz-TyZXVWKCFA7-_UpZptDHyK0DxOdS1PQ-dz06RaW_t3v99aaPwoMH_Ycv-U7Rx3UPSbuLwlo', 
    'Cookie': 'veparaccpayment_session=LUMEiQr4mYLa0TNtzXSTZ20zVc40P9QY02QgM0jC', 
    ...data.getHeaders()
  },
  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/checkstatus");
request.Headers.Add("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxOSIsImp0aSI6IjQ5NjM2MzFlNzc4ZmRlZDE3MGFhMTNkNThhYzU1ZTc0MDczOThmZmYyNmU0YjJlZTg1N2RjNzNiZmU1MzE2NDgwYmQ4NDMwOTg5ZmUxNzkxIiwiaWF0IjoxNjk1MTk4NDQxLjU0MDQsIm5iZiI6MTY5NTE5ODQ0MS41NDA0LCJleHAiOjE2OTUyMDU2NDEuNTMzMSwic3ViIjoiNiIsInNjb3BlcyI6W119.YIJkDS-borx6ar4ZYPVKxE1-nPwIBP4MoIsxnvJaVgBOQQ2xqpQXiw3fVZad7wT_A-Ng8-1Mc8P6je2geNfgj8NlNnh-8pUPPdxt9EtYzxzPZz-h522rDvNZzRDvKTaxq-MXH6KN8fjtBmOtokTGRGBfhU2kPN43DefRlsM_cC73ZI7GLuWzyzSh2pAHrmPTXbMzRZWqZW6Wlu3vlcGhjdHRGXuSXL4So5M1Wd23vawEcnSdZRAfk8e70gewNdgnaS9AwSVzgbKDQ65oRUL_4otFxlyXg2LNRFcu5nbjMkIIciUinEZPb8IvVZGCW0DpSor02UVTOMvP5kBXxJ438XIMkvyst01DU-GYMKYomZVBAdZn2Gx1ysserg1drXOL8kWjQpyhj0roCPT8Lzoku-gT2UefL_mv0GzsM9xsznm3VT5oHTLpMNyO0UNwYm7MKxXs-7Mblg1muL6vHK6O17SomjW82gpmp3xVh3fC60ReA_3DdbRcAO8c_zwtWQK1QHsC3AqM_6XX1nF5HqXCet8j2g0l8tN41DdmOScXaiqhAOjEdizKzpyuQFsf127sDIdTcZ4gx_XyGs2YI-_FjxfIsfNkDULXofz-TyZXVWKCFA7-_UpZptDHyK0DxOdS1PQ-dz06RaW_t3v99aaPwoMH_Ycv-U7Rx3UPSbuLwlo");
request.Headers.Add("Cookie", "veparaccpayment_session=LUMEiQr4mYLa0TNtzXSTZ20zVc40P9QY02QgM0jC");
var content = new MultipartFormDataContent();
content.Add(new StringContent("AdEb8tJyKQWFzS1"), "invoice_id");
content.Add(new StringContent("$2y$10$w/ODdbTmfubcbUCUq/ia3OoJFMUmkM1UVNBiIQIuLfUlPmaLUT1he"), "merchant_key");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());

Vepara