Doğrulama gerekli

Kimlik Doğrulama

Gateway istekleri ApiKey ve ApiSecret ile doğrulanır. Kimlik bilgileri body, query string veya HTTP header üzerinden iletilebilir.

Parametreler

AlanTipZorunluAçıklama
ApiKey / apiKey / x-api-keystringEvetPanelden verilen merchant API anahtarı
ApiSecret / apiSecret / x-api-secretstringEvetEşleşen gizli anahtar

Örnek istek

POST /deposit
Content-Type: application/json
x-api-key: YOUR_API_KEY
x-api-secret: YOUR_API_SECRET

{
  "transactionId": "DEP-20260711-001",
  "amount": 500,
  "name": "Ali",
  "surname": "Veli",
  "username": "ali_veli",
  "callback": "https://merchant.example/callback/deposit"
}

Notlar

  • •Header: x-api-key ve x-api-secret (önerilen)
  • •Alternatif: Basic Authorization (ApiKey:ApiSecret base64)
  • •Merchant API isteklerinde opsiyonel hash: SHA256(apiKey + transactionId + apiSecret + round(amount))
  • •H2H API isteklerinde zorunlu hash: SHA256(apikey + transaction_id + apiSecret + round(amount))
  • •Altyapı API isteklerinde SecurityKey: SHA256(ApiKey + ApiSecret + OperationGuid)
  • •API anahtarınızı üçüncü taraflarla paylaşmayın; production ortamında IP whitelist kullanın

API Console

Canlı gateway testi

POST
https://api.trink.online/test-auth

ApiKey ve ApiSecret doğrulamasını test eder.