Gateway istekleri ApiKey ve ApiSecret ile doğrulanır. Kimlik bilgileri body, query string veya HTTP header üzerinden iletilebilir.
Parametreler
| Alan | Tip | Zorunlu | Açıklama |
|---|---|---|---|
| ApiKey / apiKey / x-api-key | string | Evet | Panelden verilen merchant API anahtarı |
| ApiSecret / apiSecret / x-api-secret | string | Evet | Eş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