Hareket eşleştirme kuralı oluştur
curl --request POST \
--url https://api.tahsil.dev/banks/transaction-rules \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>' \
--header 'x-company-id: <x-company-id>' \
--data '
{
"name": "<string>",
"conditions": {
"children": [
{
"value": "<unknown>"
}
]
},
"actions": [
{
"type": "<unknown>",
"reference": {
"source": "<string>",
"entityType": "<string>",
"externalId": "<string>",
"label": "<string>"
}
}
]
}
'const options = {
method: 'POST',
headers: {
'x-company-id': '<x-company-id>',
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
conditions: {children: [{value: '<unknown>'}]},
actions: [
{
type: '<unknown>',
reference: {
source: '<string>',
entityType: '<string>',
externalId: '<string>',
label: '<string>'
}
}
]
})
};
fetch('https://api.tahsil.dev/banks/transaction-rules', 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/transaction-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'conditions' => [
'children' => [
[
'value' => '<unknown>'
]
]
],
'actions' => [
[
'type' => '<unknown>',
'reference' => [
'source' => '<string>',
'entityType' => '<string>',
'externalId' => '<string>',
'label' => '<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-api-secret: <api-key>",
"x-company-id: <x-company-id>"
],
]);
$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>",
"name": "<string>",
"version": 2,
"conditions": {
"children": [
{
"value": "<unknown>"
}
]
},
"actions": [
{
"type": "<unknown>",
"reference": {
"source": "<string>",
"entityType": "<string>",
"externalId": "<string>",
"label": "<string>"
},
"id": "<string>"
}
],
"referenceKey": "<string>",
"description": "<string>",
"snapshotHash": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"targetSource": "<string>",
"targetEntityType": "<string>",
"targetExternalId": "<string>",
"tags": [
"<string>"
],
"archivedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"updatedBy": "<string>"
}
}{
"status": false,
"code": "TRANSACTION_AMOUNT_RANGE_INVALID",
"message": "minAmount, maxAmount değerinden büyük olamaz."
}Hareket eşleştirme kuralı oluştur
POST
/
banks
/
transaction-rules
Hareket eşleştirme kuralı oluştur
curl --request POST \
--url https://api.tahsil.dev/banks/transaction-rules \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>' \
--header 'x-company-id: <x-company-id>' \
--data '
{
"name": "<string>",
"conditions": {
"children": [
{
"value": "<unknown>"
}
]
},
"actions": [
{
"type": "<unknown>",
"reference": {
"source": "<string>",
"entityType": "<string>",
"externalId": "<string>",
"label": "<string>"
}
}
]
}
'const options = {
method: 'POST',
headers: {
'x-company-id': '<x-company-id>',
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
conditions: {children: [{value: '<unknown>'}]},
actions: [
{
type: '<unknown>',
reference: {
source: '<string>',
entityType: '<string>',
externalId: '<string>',
label: '<string>'
}
}
]
})
};
fetch('https://api.tahsil.dev/banks/transaction-rules', 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/transaction-rules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'conditions' => [
'children' => [
[
'value' => '<unknown>'
]
]
],
'actions' => [
[
'type' => '<unknown>',
'reference' => [
'source' => '<string>',
'entityType' => '<string>',
'externalId' => '<string>',
'label' => '<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-api-secret: <api-key>",
"x-company-id: <x-company-id>"
],
]);
$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>",
"name": "<string>",
"version": 2,
"conditions": {
"children": [
{
"value": "<unknown>"
}
]
},
"actions": [
{
"type": "<unknown>",
"reference": {
"source": "<string>",
"entityType": "<string>",
"externalId": "<string>",
"label": "<string>"
},
"id": "<string>"
}
],
"referenceKey": "<string>",
"description": "<string>",
"snapshotHash": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"targetSource": "<string>",
"targetEntityType": "<string>",
"targetExternalId": "<string>",
"tags": [
"<string>"
],
"archivedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"updatedBy": "<string>"
}
}{
"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
Yazma işleminin hedef firma kimliği.
Gövde
application/json
Maximum string length:
120Show child attributes
Show child attributes
Required array length:
1 - 2 elements- Option 1
- Option 2
Show child attributes
Show child attributes
Maximum string length:
500Mevcut seçenekler:
active, paused Bu sayfa yararlı mıydı?
⌘I