NAV
bash javascript

Info

Welcome to the generated API reference. Get Postman Collection

1 - Authentication

Login

Kisalink.com'a giriş yaparak token almanızı sağlar - noAuth

Example request:

curl -X POST "https://kisalink-api.pstv.co/login" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"email":"username@Kisalink.com","password":"123456"}'
const url = new URL("https://kisalink-api.pstv.co/login");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "email": "username@Kisalink.com",
    "password": "123456"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST login

Body Parameters

Parameter Type Status Description
email string required Mail adresiniz
password string required Giriş şifreniz

2 - Company

Register Company - noAuth

Kisalink.com'a bağladığınız Müşteri detayı yoksa oluşturur varsa update etmenizi sağlar. No-Auth

Example request:

curl -X POST "https://kisalink-api.pstv.co/register-company" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"name":"facilis","email":"doloremque","phone_number":19,"invoice_name":"id","invoice_address":"eos","tax_office":"atque","tax_number":9,"sms_code":"dolorem","email_code":"et"}'
const url = new URL("https://kisalink-api.pstv.co/register-company");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "facilis",
    "email": "doloremque",
    "phone_number": 19,
    "invoice_name": "id",
    "invoice_address": "eos",
    "tax_office": "atque",
    "tax_number": 9,
    "sms_code": "dolorem",
    "email_code": "et"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST register-company

Body Parameters

Parameter Type Status Description
name string required Firma adınız.
email string required Firmaya ait email.
phone_number integer required Firmaya ait telefonu numarası.
invoice_name string required Firmaya ait Ticari fatura adı.
invoice_address string required Firmaya ait Fatura adresi.
tax_office string required Firmaya ait vergi dairesi kurumsal firmalar için.
tax_number integer required Firmaya ait vergi numarası kurumsal firmalar için.
sms_code string optional optional Telefona giden onay kodu.
email_code string optional optional E-Posta adresine giden onay kodu.

Get Company

Kisalink.com'a bağladığınız firma detayınızı getirir

Example request:

curl -X POST "https://kisalink-api.pstv.co/get-company" \
    -H "Access-token: {token}"
const url = new URL("https://kisalink-api.pstv.co/get-company");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST get-company

Update Company

Kisalink.com'a Müşteri detayını update etmenizi sağlar

Example request:

curl -X POST "https://kisalink-api.pstv.co/update-company" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"name":"cumque","email":"voluptatem","phone_number":7,"invoice_name":"officia","invoice_address":"quaerat","tax_office":"doloribus","tax_number":7,"iban":"corporis","analytics_code":"est","sub_url":"at","contract_text":"quidem","logo_url":"voluptatibus"}'
const url = new URL("https://kisalink-api.pstv.co/update-company");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": "cumque",
    "email": "voluptatem",
    "phone_number": 7,
    "invoice_name": "officia",
    "invoice_address": "quaerat",
    "tax_office": "doloribus",
    "tax_number": 7,
    "iban": "corporis",
    "analytics_code": "est",
    "sub_url": "at",
    "contract_text": "quidem",
    "logo_url": "voluptatibus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST update-company

Body Parameters

Parameter Type Status Description
name string optional Firma adınız.
email string optional Firmaya ait email.
phone_number integer optional Firmaya ait telefonu numarası.
invoice_name string optional Firmaya ait Ticari fatura adı.
invoice_address string optional Firmaya ait Fatura adresi.
tax_office string optional Firmaya ait vergi dairesi kurumsal firmalar için.
tax_number integer optional Firmaya ait vergi numarası kurumsal firmalar için.
iban string optional Firmaya ait iban numarası.
analytics_code base64 optional ...
sub_url base64 optional ...
contract_text string optional Sözleşme metnine eklenir
logo_url string optional Base64 olarak gönderilmelidir firma logosu olarak kullanılır.

Express Company Cards

Bakiye yüklemesi yaparken kayıt ettiğiniz kartları listelemek, ototomatik ödeme tanımlamak yada silmek için bu method kullanılır.

Example request:

curl -X POST "https://kisalink-api.pstv.co/express-company-cards" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"card_id":1,"process_type":19}'
const url = new URL("https://kisalink-api.pstv.co/express-company-cards");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "card_id": 1,
    "process_type": 19
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST express-company-cards

Body Parameters

Parameter Type Status Description
card_id integer optional process_type ile belirttiğiniz işlemin uygulanacağı kart ID'si
process_type integer optional (list / delete / autopay) degerleninden biri olmalı. Default:list

3 - Account

List Accounts

Kisalink.com'a bağladığınız Account listesini getirir

Example request:

curl -X POST "https://kisalink-api.pstv.co/list-accounts" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"minus","page":1,"per_page":10}'
const url = new URL("https://kisalink-api.pstv.co/list-accounts");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "minus",
    "page": 1,
    "per_page": 10
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST list-accounts

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
page integer optional Sayfa numarası
per_page integer optional Sayfa başına item sayısı

Get Account

Kisalink.com'a bağladığınız Account detayını getirir

Example request:

curl -X POST "https://kisalink-api.pstv.co/get-account" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"account_code":"deserunt"}'
const url = new URL("https://kisalink-api.pstv.co/get-account");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "account_code": "deserunt"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST get-account

Body Parameters

Parameter Type Status Description
account_code string required Account kodu

Create Or Update Account

Kisalink.com'a bağladığınız Account detayı yoksa oluşturur varsa update etmenizi sağlar

Example request:

curl -X POST "https://kisalink-api.pstv.co/create-or-update-account" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"account_code":"quibusdam","email":"est","name":"incidunt","surname":"hic","is_owner":"et","is_api":"reprehenderit","password":"reiciendis","create_or_update":"quia"}'
const url = new URL("https://kisalink-api.pstv.co/create-or-update-account");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "account_code": "quibusdam",
    "email": "est",
    "name": "incidunt",
    "surname": "hic",
    "is_owner": "et",
    "is_api": "reprehenderit",
    "password": "reiciendis",
    "create_or_update": "quia"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST create-or-update-account

Body Parameters

Parameter Type Status Description
account_code string optional Account kodu
email string optional Personel Email adresi
name string optional Personel İsimi
surname string optional Personel Soyisim
is_owner string optional optional Yetki
is_api string optional optional Api yetkisi
password string optional Kullanıcı şifresi varsa günceller. Kullanıcı eklerken şifre yoksa, sistem rasgele bir şifre oluşturulur.
create_or_update string optional İşlemin güvenliği için işlemi "create yada update" olarak ayırmanızı sağlar.

Delete Account

Kisalink.com'a Kullanıcıyı siler

Example request:

curl -X POST "https://kisalink-api.pstv.co/delete-account" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"account_code":"nisi"}'
const url = new URL("https://kisalink-api.pstv.co/delete-account");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "account_code": "nisi"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST delete-account

Body Parameters

Parameter Type Status Description
account_code string required Account kodu

Get Me

Kisalink.com da otrum açmış kullanıcının datasını getirir

Example request:

curl -X POST "https://kisalink-api.pstv.co/get-me" \
    -H "Access-token: {token}"
const url = new URL("https://kisalink-api.pstv.co/get-me");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST get-me

4 - Payment

Load Balance Pay3d

Firmanın kredi yüklemesi işleminde 3d başlatmak için gerekli olan ödeme methoddur.

Example request:

curl -X POST "https://kisalink-api.pstv.co/load-balance-pay3d" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"package_id":20,"card_name":"inventore","card_number":1,"card_expires":11,"card_cvv":7,"callback_url":"ex","save_card":3,"company_card_id":12}'
const url = new URL("https://kisalink-api.pstv.co/load-balance-pay3d");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "package_id": 20,
    "card_name": "inventore",
    "card_number": 1,
    "card_expires": 11,
    "card_cvv": 7,
    "callback_url": "ex",
    "save_card": 3,
    "company_card_id": 12
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST load-balance-pay3d

Body Parameters

Parameter Type Status Description
package_id integer required Satın alınmak istenen paket.
card_name string required Kart adı
card_number integer required Kart numarası
card_expires integer required Son kullanma tarihi EX:AAYY
card_cvv integer required Güvenlik kodu
callback_url string optional Ödeme isteğinin sonucunun döneceği web adresi.
save_card integer optional Ödeme yapılan kart kayıt edilmek istenirse 1 değieri gönderilir.
company_card_id integer optional Kayıtlı kartın id değeri. Deger varsa kart bilgileri girilmez.

List Packages

Firma için satın alabileceği link paketlerini listeler

Example request:

curl -X POST "https://kisalink-api.pstv.co/list-packages" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"dolorum","page":1,"per_page":10}'
const url = new URL("https://kisalink-api.pstv.co/list-packages");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "dolorum",
    "page": 1,
    "per_page": 10
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST list-packages

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
page integer optional Sayfa numarası
per_page integer optional Sayfa başına item sayısı

List Payments

Firma ödemelerini listeler

Example request:

curl -X POST "https://kisalink-api.pstv.co/list-payments" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"delectus","status":11,"sort_by":"sed","page":1,"per_page":10}'
const url = new URL("https://kisalink-api.pstv.co/list-payments");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "delectus",
    "status": 11,
    "sort_by": "sed",
    "page": 1,
    "per_page": 10
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST list-payments

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
status integer optional 0:Hatalı 1:Başarılı 2:İadeler 3:Sıradakiler
sort_by string optional Sıralama field adı direktif değeri Default:created_at desc
page integer optional Sayfa numarası
per_page integer optional Sayfa başına item sayısı

Refund Payment

Yapılan ödemenin tamamını iade eder.

Example request:

curl -X POST "https://kisalink-api.pstv.co/refund-payment" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"payment_id":10,"refund_reason":"deserunt"}'
const url = new URL("https://kisalink-api.pstv.co/refund-payment");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "payment_id": 10,
    "refund_reason": "deserunt"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST refund-payment

Body Parameters

Parameter Type Status Description
payment_id integer required Ödemeinin ID değeri
refund_reason string required Genel iade nedeni yada açıklaması.

Refund Payment

Yapılan ödemeyi aktif eder.

Example request:

curl -X POST "https://kisalink-api.pstv.co/activate-package" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"payment_id":13}'
const url = new URL("https://kisalink-api.pstv.co/activate-package");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "payment_id": 13
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST activate-package

Body Parameters

Parameter Type Status Description
payment_id integer required Ödemeinin ID değeri

5 - Shortener

Decode Shortener - noAuth

Kisalink tarafından üretilen kodu dekode edip kaynak linki görmenizi sağlayan methoddur. Her çalıştırıldığında kısaltıcı click değerini 1 arttıracaktır. No-Auth

Example request:

curl -X POST "https://kisalink-api.pstv.co/decode-shortener" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"code":"consectetur"}'
const url = new URL("https://kisalink-api.pstv.co/decode-shortener");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "code": "consectetur"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST decode-shortener

Body Parameters

Parameter Type Status Description
code string optional Decode edilmek istenen kısaltma kodu.

Express Shortener

Shortener yoksa oluşturur varsa update etmenizi sağlar.

Example request:

curl -X POST "https://kisalink-api.pstv.co/express-shortener" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"code":"praesentium","title":"fuga","source_url":"qui","tags_json":"et","expired_at":"sed","status":14,"client_name":"blanditiis","client_email":"autem","client_phone":"consectetur","notify_mail":19,"create_or_update":"culpa"}'
const url = new URL("https://kisalink-api.pstv.co/express-shortener");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "code": "praesentium",
    "title": "fuga",
    "source_url": "qui",
    "tags_json": "et",
    "expired_at": "sed",
    "status": 14,
    "client_name": "blanditiis",
    "client_email": "autem",
    "client_phone": "consectetur",
    "notify_mail": 19,
    "create_or_update": "culpa"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST express-shortener

Body Parameters

Parameter Type Status Description
code string optional Update edilmek istenen kısaltma kodu.
title string optional Kısaltılma işlemine tanımlayıcı bir isim verir.
source_url string optional Kısaltılmak istenen url..
tags_json json optional Kısaltılmak etiketleri..
expired_at date optional Kısaltma kodunun geçerlilik süresi.
status integer optional Kısaltma durumunu (0:pasif, 1:aktif 2:iptal) Default:1
client_name string optional Bilgilendirme yapılacak kişinin Adı Soyadı.
client_email string optional Bilgilendirme yapılacak mail adresi.
client_phone string optional Bilgilendirme yapılacak telefon numarası
notify_mail integer optional 0-1
create_or_update string required Yapılacak işlemi "create" yada "update" olarak ayırmanızı sağlar.

List Shortener

Kisalink ile oluşturduğunuz Shortener listesini getirir

Example request:

curl -X POST "https://kisalink-api.pstv.co/list-shorteners" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"odio","tag":"omnis","sort_by":0,"page":1,"per_page":10}'
const url = new URL("https://kisalink-api.pstv.co/list-shorteners");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "odio",
    "tag": "omnis",
    "sort_by": 0,
    "page": 1,
    "per_page": 10
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST list-shorteners

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
tag string optional Etiket parametresi
sort_by integer optional Sayfa numarası
page integer optional Sayfa numarası
per_page integer optional Sayfa başına item sayısı

Detail Shortener

Kisalink tarafından üretilen kodun detayını getirir Her çalıştırıldığında kısaltıcı click değerini 1 arttıracaktır. No-Auth

Example request:

curl -X POST "https://kisalink-api.pstv.co/get-shortener" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"code":"quod"}'
const url = new URL("https://kisalink-api.pstv.co/get-shortener");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "code": "quod"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST get-shortener

Body Parameters

Parameter Type Status Description
code string optional Decode edilmek istenen kısaltma kodu.

List Tags

Kisalink ile Shortener etiketlerini listeler

Example request:

curl -X POST "https://kisalink-api.pstv.co/list-tags" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"enim","sort_by":0,"page":1,"per_page":10}'
const url = new URL("https://kisalink-api.pstv.co/list-tags");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "enim",
    "sort_by": 0,
    "page": 1,
    "per_page": 10
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST list-tags

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
sort_by integer optional Sayfa numarası
page integer optional Sayfa numarası
per_page integer optional Sayfa başına item sayısı

6 - Report

Get Express Reports

Kisalink.com hesabınıza bağlı genel raporları verir.

Example request:

curl -X POST "https://kisalink-api.pstv.co/get-express-reports" \
    -H "Access-token: {token}"
const url = new URL("https://kisalink-api.pstv.co/get-express-reports");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST get-express-reports

Get Char Reports

Kisalink.com hesabınıza bağlı grafik raporlarını verir.

Example request:

curl -X POST "https://kisalink-api.pstv.co/get-char-reports" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"start_date":"labore","end_date":"est"}'
const url = new URL("https://kisalink-api.pstv.co/get-char-reports");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "start_date": "labore",
    "end_date": "est"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST get-char-reports

Body Parameters

Parameter Type Status Description
start_date date optional nullable Başlangıç tarihi. (Y-m-d H:i:s)
end_date date optional nullable Bitiş tarihi. (Y-m-d H:i:s)

Get Clicks

Kisalink.com tıklanma raporlarını verir.

Example request:

curl -X POST "https://kisalink-api.pstv.co/get-clicks" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"start_date":"quia","end_date":"porro","sort_by":"consequatur","code":"molestiae"}'
const url = new URL("https://kisalink-api.pstv.co/get-clicks");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "start_date": "quia",
    "end_date": "porro",
    "sort_by": "consequatur",
    "code": "molestiae"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST get-clicks

Body Parameters

Parameter Type Status Description
start_date date optional nullable Başlangıç tarihi. (Y-m-d H:i:s)
end_date date optional nullable Bitiş tarihi. (Y-m-d H:i:s)
sort_by date optional nullable Bitiş tarihi. (Y-m-d H:i:s)
code date optional nullable Bitiş tarihi. (Y-m-d H:i:s)