Session Oluşturma
Bu servis mobil oturum anahtarı kullanan servisler için gerekli Session Key’i üretir. Bu servise sadece sabit IP’si Paynet tarafında kayıtlı Müşteri Sunucusu tarafından header’da bayi için özel oluşturulmuş olan secret_key ile istek gönderilebilir.
Mobil oturum anahtarı (session_key) üretir. Sadece Paynet tarafından IP tanımı yapılmış sunucular bu servisi çağırabilir.
Header parameters
AuthorizationstringRequiredExample:
Bayiye özel oluşturulmuş secret_key.
Basic sck_ADSFGYTEESSASADPaynetMobilestringRequiredExample:
Mobil istek belirtir.
2Content-TypestringRequiredExample:
İçerik tipi.
application/jsonBody
agent_idstringRequiredExample:
Bayi Id.
1234user_idstringRequiredExample:
Kullanıcı Id.
usernameResponses
200
Başarılı
application/json
session_keystringOptional
Mobil oturum anahtarı.
expired_datestringOptional
Geçerlilik tarihi.
agent_idstringOptional
Bayi Id.
company_codestringOptional
Ana firma Id.
user_idstringOptional
Kullanıcı Id.
user_unique_idstringOptional
Kullanıcı unique Id.
is_okc_inquirybooleanOptional
ÖKC muafiyet sonucu.
object_namestringOptional
Obje türü.
codeintegerOptional
Sonuç kodu.
messagestringOptional
Sonuç mesajı.
400
Hatalı istek
application/json
post/v1/agent/get_auth_key
POST /v1/agent/get_auth_key HTTP/1.1
Host: api.paynet.com.tr
Authorization: text
PaynetMobile: text
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"agent_id": "1234",
"user_id": "username"
}{
"session_key": "mbl_pcs_xxxxxxxxxxxxx",
"expired_date": "2021-12-30 02:46:50",
"agent_id": "12345",
"company_code": "1234",
"user_id": "12345",
"user_unique_id": "",
"is_okc_inquiry": true,
"object_name": "get_auth_key",
"code": 0,
"message": "Başarılı İşlem"
}Last updated
