curl --request POST \
--url https://dev.noyax.com/services/noyax_api/api/v1/finance/bank-openings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CompanyID: <x-companyid>' \
--header 'X-UserID: <x-userid>' \
--data '
{
"VoucherNumber": "Next",
"Date": "2026-09-24T14:06:00",
"Description": "<string>",
"SharingCode": "<string>",
"Lines": [
{
"BankAccountCode": "TEST POS",
"Debit": 0,
"Credit": 500,
"ExchangeRate": 1,
"Description": "<string>"
}
]
}
'using RestSharp;
var options = new RestClientOptions("https://dev.noyax.com/services/noyax_api/api/v1/finance/bank-openings");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-UserID", "<x-userid>");
request.AddHeader("X-CompanyID", "<x-companyid>");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"VoucherNumber\": \"Next\",\n \"Date\": \"2026-09-24T14:06:00\",\n \"Description\": \"<string>\",\n \"SharingCode\": \"<string>\",\n \"Lines\": [\n {\n \"BankAccountCode\": \"TEST POS\",\n \"Debit\": 0,\n \"Credit\": 500,\n \"ExchangeRate\": 1,\n \"Description\": \"<string>\"\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {
method: 'POST',
headers: {
'X-UserID': '<x-userid>',
'X-CompanyID': '<x-companyid>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
VoucherNumber: 'Next',
Date: '2026-09-24T14:06:00',
Description: '<string>',
SharingCode: '<string>',
Lines: [
{
BankAccountCode: 'TEST POS',
Debit: 0,
Credit: 500,
ExchangeRate: 1,
Description: '<string>'
}
]
})
};
fetch('https://dev.noyax.com/services/noyax_api/api/v1/finance/bank-openings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://dev.noyax.com/services/noyax_api/api/v1/finance/bank-openings"
payload = {
"VoucherNumber": "Next",
"Date": "2026-09-24T14:06:00",
"Description": "<string>",
"SharingCode": "<string>",
"Lines": [
{
"BankAccountCode": "TEST POS",
"Debit": 0,
"Credit": 500,
"ExchangeRate": 1,
"Description": "<string>"
}
]
}
headers = {
"X-UserID": "<x-userid>",
"X-CompanyID": "<x-companyid>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"Success": true,
"ResultCode": "0000",
"Data": {
"Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"VoucherNumber": "<string>",
"Date": "2023-11-07T05:31:56Z",
"Description": "<string>",
"SharingCode": "<string>",
"SharingCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TotalDebit": 123,
"TotalCredit": 123,
"ExchangeRate": 123,
"IsPosted": true,
"CreateDate": "2023-11-07T05:31:56Z",
"ModifyDate": "2023-11-07T05:31:56Z",
"Lines": [
{
"CurrencyCode": "<string>",
"BankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"CurrencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"BankAccountCode": "TEST POS",
"Debit": 0,
"Credit": 500,
"ExchangeRate": 1,
"Description": "<string>"
}
]
},
"Message": "<string>"
}{
"Success": false,
"ResultCode": "8305",
"Message": "At least one line is required.",
"Errors": [
{
"Code": "8305",
"Message": "At least one line is required."
}
]
}{
"Success": false,
"ResultCode": "0102",
"Message": "Token has expired. Obtain a new token using the refresh token.",
"Errors": [
{
"Code": "0102",
"Message": "Token has expired. Obtain a new token using the refresh token."
}
]
}{
"Success": false,
"ResultCode": "0110",
"Message": "You do not have permission for this operation.",
"Errors": [
{
"Code": "0110",
"Message": "You do not have permission for this operation."
}
]
}{
"Success": false,
"ResultCode": "0120",
"Message": "Daily request limit (10000) exceeded.",
"Errors": [
{
"Code": "0120",
"Message": "Daily request limit (10000) exceeded."
}
]
}Banka açılış fişi oluştur
Yeni banka açılış fişini satırlarıyla birlikte tek işlemde ekler.
curl --request POST \
--url https://dev.noyax.com/services/noyax_api/api/v1/finance/bank-openings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CompanyID: <x-companyid>' \
--header 'X-UserID: <x-userid>' \
--data '
{
"VoucherNumber": "Next",
"Date": "2026-09-24T14:06:00",
"Description": "<string>",
"SharingCode": "<string>",
"Lines": [
{
"BankAccountCode": "TEST POS",
"Debit": 0,
"Credit": 500,
"ExchangeRate": 1,
"Description": "<string>"
}
]
}
'using RestSharp;
var options = new RestClientOptions("https://dev.noyax.com/services/noyax_api/api/v1/finance/bank-openings");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-UserID", "<x-userid>");
request.AddHeader("X-CompanyID", "<x-companyid>");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"VoucherNumber\": \"Next\",\n \"Date\": \"2026-09-24T14:06:00\",\n \"Description\": \"<string>\",\n \"SharingCode\": \"<string>\",\n \"Lines\": [\n {\n \"BankAccountCode\": \"TEST POS\",\n \"Debit\": 0,\n \"Credit\": 500,\n \"ExchangeRate\": 1,\n \"Description\": \"<string>\"\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {
method: 'POST',
headers: {
'X-UserID': '<x-userid>',
'X-CompanyID': '<x-companyid>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
VoucherNumber: 'Next',
Date: '2026-09-24T14:06:00',
Description: '<string>',
SharingCode: '<string>',
Lines: [
{
BankAccountCode: 'TEST POS',
Debit: 0,
Credit: 500,
ExchangeRate: 1,
Description: '<string>'
}
]
})
};
fetch('https://dev.noyax.com/services/noyax_api/api/v1/finance/bank-openings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://dev.noyax.com/services/noyax_api/api/v1/finance/bank-openings"
payload = {
"VoucherNumber": "Next",
"Date": "2026-09-24T14:06:00",
"Description": "<string>",
"SharingCode": "<string>",
"Lines": [
{
"BankAccountCode": "TEST POS",
"Debit": 0,
"Credit": 500,
"ExchangeRate": 1,
"Description": "<string>"
}
]
}
headers = {
"X-UserID": "<x-userid>",
"X-CompanyID": "<x-companyid>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"Success": true,
"ResultCode": "0000",
"Data": {
"Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"VoucherNumber": "<string>",
"Date": "2023-11-07T05:31:56Z",
"Description": "<string>",
"SharingCode": "<string>",
"SharingCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TotalDebit": 123,
"TotalCredit": 123,
"ExchangeRate": 123,
"IsPosted": true,
"CreateDate": "2023-11-07T05:31:56Z",
"ModifyDate": "2023-11-07T05:31:56Z",
"Lines": [
{
"CurrencyCode": "<string>",
"BankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"CurrencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"BankAccountCode": "TEST POS",
"Debit": 0,
"Credit": 500,
"ExchangeRate": 1,
"Description": "<string>"
}
]
},
"Message": "<string>"
}{
"Success": false,
"ResultCode": "8305",
"Message": "At least one line is required.",
"Errors": [
{
"Code": "8305",
"Message": "At least one line is required."
}
]
}{
"Success": false,
"ResultCode": "0102",
"Message": "Token has expired. Obtain a new token using the refresh token.",
"Errors": [
{
"Code": "0102",
"Message": "Token has expired. Obtain a new token using the refresh token."
}
]
}{
"Success": false,
"ResultCode": "0110",
"Message": "You do not have permission for this operation.",
"Errors": [
{
"Code": "0110",
"Message": "You do not have permission for this operation."
}
]
}{
"Success": false,
"ResultCode": "0120",
"Message": "Daily request limit (10000) exceeded.",
"Errors": [
{
"Code": "0120",
"Message": "Daily request limit (10000) exceeded."
}
]
}Debit’i toplam Credit’ine eşit olmak zorunda değildir.
Hata kodları
Bu endpoint’in dönebileceği kodlar. Her endpoint için geçerli olan genel hatalar (kimlik doğrulama, yetki, istek header’ları, günlük limit) burada tekrarlanmaz.| Kod | HTTP | Anlamı |
|---|---|---|
0002 | 400 | İstek gövdesi okunamadı (bozuk JSON, alan tipi uyumsuz) |
0003 | 400 | Alan azami uzunluğu aşıyor (mesajda alan adı ve sınır yazar) |
0580 | 400 | Metinle verilen değer (kod ya da ad) birden fazla kayıtla eşleşiyor; hangisi olduğunu ayırt edecek bilgiyi ekleyin (ör. ilçe için City, il için Country) |
8180 | 400 | Şirket için "BANKAFİŞNO" seri tanımı bulunamadı |
8181 | 400 | Seri tanımının detayı yok |
8182 | 400 | Desteklenmeyen seri numarası bölüm tipi |
8183 | 400 | Üretilen fiş numarası azami uzunluğu aşıyor |
8184 | 400 | Üretilen fiş numarası şirkette zaten kullanılıyor |
8185 | 400 | Fiş numarası üretilemedi |
8301 | 400 | VoucherNumber zorunlu |
8302 | 400 | VoucherNumber şirkette (banka fişi tipleri arasında) kullanılıyor |
8303 | 400 | VoucherNumber güncellemede “Next” olamaz |
8304 | 400 | Date zorunlu |
8305 | 400 | En az bir satır zorunlu |
8307 | 400 | SharingCode kullanıcının paylaşım kodlarından biri değil |
8400 | 400 | Satırda BankAccountCode zorunlu |
8401 | 400 | Satırda BankAccountCode bulunamadı |
8402 | 400 | Satırda ExchangeRate zorunlu ve 0’dan büyük olmalı |
8403 | 400 | Satırda Debit/Credit’ten tam olarak biri 0’dan büyük olmalı |
Yetkilendirmeler
Access token obtained from the Noyax auth service with your API key.
Başlıklar
İsteğin adına yapıldığı Noyax kullanıcısının ID'si. Oluşturulan, güncellenen ve silinen kayıtların denetim alanlarına yazılır.
x >= 1Şirketin ID'si. Kullanıcı bu şirkete tanımlı olmalıdır. Bütün okuma ve yazma işlemleri bu şirketle sınırlıdır.
x >= 1Muhasebe döneminin ID'si. Cari endpoint'lerinde isteğe bağlıdır; gönderilirse oluşturulan kayıtlara yazılır.
x >= 1Gövde
Zorunlu. Fiş numarası, şirkette tüm banka fişleri arasında benzersiz. Oluştururken "Next" gönderirseniz şirketin banka fişi numara serisinden üretilir. En fazla 20 karakter.
"Next"
Zorunlu. Fiş tarihi. Saat de gönderilirse fiş saati olarak yazılır, gönderilmezse o anki saat kullanılır.
"2026-09-24T14:06:00"
Açıklama. En fazla 1000 karakter.
Fişi kimlerin görebileceğini sınırlayan paylaşım kodu. Boşsa herkes görür; doluysa kullanıcının paylaşım kodlarından biri olmalıdır.
Zorunlu, en az bir satır.
Show child attributes
Show child attributes
Yanıt
Created
İşlemin başarılı olup olmadığı.
true
Başarıda "0000". Hatada ilk hatanın kodu; hataların tamamı Errors içinde listelenir.
"0000"
Response data. Null when Success is false.
Show child attributes
Show child attributes
Success false olduğunda hata mesajı. Bütün hataların mesajları tek metinde birleştirilir.