Tek giriş noktası üzerinden yatırım, çekim ve durum sorgusu. method parametresi ile işlem tipi belirlenir.
POST
/veya /apiParametreler
| Alan | Tip | Zorunlu | Açıklama |
|---|---|---|---|
| method | string | Evet | deposit | withdrawal | withdraw | checkStatus |
| transactionId | string | Evet | Benzersiz işlem referansı |
| amount | number | Evet | Tutar (TRY) |
| name, surname | string | Evet | Müşteri ad soyad (deposit/withdrawal) |
| iban | string | Hayır | Çekim için zorunlu hedef IBAN |
| callback | string | Hayır | Callback URL |
Örnek istek
{
"method": "deposit",
"transactionId": "DEP-20260711-001",
"amount": 500,
"name": "Ali",
"surname": "Veli",
"username": "ali_veli",
"callback": "https://merchant.example/callback/deposit"
}Başarılı yanıt
{
"status": "success",
"url": "https://pay.trink.online/payment/a1b2c3d4...",
"uuid": "DEP-20260711-001"
}Notlar
- •method=checkStatus ile aynı endpoint üzerinden durum sorgusu yapılabilir
- •Ayrı uçlar (/deposit, /withdrawal) ile aynı iş mantığı — tercihinize göre kullanın