Banka hareketi detayını getir
curl --request GET \
--url https://api.tahsil.dev/banks/transactions/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'}
};
fetch('https://api.tahsil.dev/banks/transactions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tahsil.dev/banks/transactions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-api-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": true,
"result": {
"id": "<string>",
"companies": "<string>",
"status": true,
"version": "<string>",
"providerStamp": "<string>",
"idNo": "<string>",
"findAI": true,
"incoming": true,
"amount": 123,
"balance": 123,
"bankCode": "akbank",
"accountId": "<string>",
"subAccountKey": "<string>",
"stamp": "2023-11-07T05:31:56Z",
"transactionDate": "2023-11-07T05:31:56Z",
"fetchedAt": "2023-11-07T05:31:56Z",
"code": "<string>",
"nameSurname": "<string>",
"iban": "<string>",
"description": "<string>",
"currency": "TRY",
"assignmentSummary": {
"referenceKeys": [
"<string>"
],
"tags": [
"<string>"
],
"count": 1,
"updatedAt": "2023-11-07T05:31:56Z"
},
"automation": {
"attempts": 1,
"nextAttemptAt": "2023-11-07T05:31:56Z",
"lastAttemptAt": "2023-11-07T05:31:56Z",
"lastEvaluatedAt": "2023-11-07T05:31:56Z",
"lastError": "<string>",
"lockOwner": "<string>",
"lockUntil": "2023-11-07T05:31:56Z"
},
"assignments": [
{
"id": "<string>",
"companies": "<string>",
"transactionId": "<string>",
"originId": "<string>",
"reference": {
"source": "<string>",
"entityType": "<string>",
"externalId": "<string>",
"label": "<string>"
},
"tags": [
"<string>"
],
"ruleId": "<string>",
"ruleVersion": 123,
"referenceKey": "<string>",
"matchedAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"revokedReason": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"ruleSnapshotHash": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"status": false,
"code": "TRANSACTION_AMOUNT_RANGE_INVALID",
"message": "minAmount, maxAmount değerinden büyük olamaz."
}Banka hareketi detayını getir
Firma header’ı verilmezse API credential’ın bağlı olduğu tek firma kapsamı kullanılır.
GET
/
banks
/
transactions
/
{id}
Banka hareketi detayını getir
curl --request GET \
--url https://api.tahsil.dev/banks/transactions/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'}
};
fetch('https://api.tahsil.dev/banks/transactions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tahsil.dev/banks/transactions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-api-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": true,
"result": {
"id": "<string>",
"companies": "<string>",
"status": true,
"version": "<string>",
"providerStamp": "<string>",
"idNo": "<string>",
"findAI": true,
"incoming": true,
"amount": 123,
"balance": 123,
"bankCode": "akbank",
"accountId": "<string>",
"subAccountKey": "<string>",
"stamp": "2023-11-07T05:31:56Z",
"transactionDate": "2023-11-07T05:31:56Z",
"fetchedAt": "2023-11-07T05:31:56Z",
"code": "<string>",
"nameSurname": "<string>",
"iban": "<string>",
"description": "<string>",
"currency": "TRY",
"assignmentSummary": {
"referenceKeys": [
"<string>"
],
"tags": [
"<string>"
],
"count": 1,
"updatedAt": "2023-11-07T05:31:56Z"
},
"automation": {
"attempts": 1,
"nextAttemptAt": "2023-11-07T05:31:56Z",
"lastAttemptAt": "2023-11-07T05:31:56Z",
"lastEvaluatedAt": "2023-11-07T05:31:56Z",
"lastError": "<string>",
"lockOwner": "<string>",
"lockUntil": "2023-11-07T05:31:56Z"
},
"assignments": [
{
"id": "<string>",
"companies": "<string>",
"transactionId": "<string>",
"originId": "<string>",
"reference": {
"source": "<string>",
"entityType": "<string>",
"externalId": "<string>",
"label": "<string>"
},
"tags": [
"<string>"
],
"ruleId": "<string>",
"ruleVersion": 123,
"referenceKey": "<string>",
"matchedAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"revokedReason": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"ruleSnapshotHash": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"status": false,
"code": "TRANSACTION_AMOUNT_RANGE_INVALID",
"message": "minAmount, maxAmount değerinden büyük olamaz."
}Yetkilendirmeler
Tenant admin tarafından oluşturulan API anahtarının kimliği.
Yalnız oluşturma anında gösterilen API anahtarı secret değeri. x-api-key ile aynı istekte gönderilir.
Başlıklar
Hedef firma kimliği. Müşteri banka endpointlerindeki yazma işlemleri için zorunludur.
API credential tek firma kapsamlıdır; gönderilirse credential firmasıyla eşleşen tek kimlik içermelidir.
Yol Parametreleri
Bu sayfa yararlı mıydı?
⌘I