curl --request GET \
--url https://api.noyax.com/api/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'X-CompanyID: <x-companyid>' \
--header 'X-UserID: <x-userid>'using RestSharp;
var options = new RestClientOptions("https://api.noyax.com/api/v1/products");
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>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {
method: 'GET',
headers: {
'X-UserID': '<x-userid>',
'X-CompanyID': '<x-companyid>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.noyax.com/api/v1/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.noyax.com/api/v1/products"
headers = {
"X-UserID": "<x-userid>",
"X-CompanyID": "<x-companyid>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"Success": true,
"ResultCode": "0000",
"Data": {
"Page": 1,
"PageSize": 50,
"TotalCount": 128,
"Items": [
{
"Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"UnitName": "ADET",
"VatRate": 20,
"Code": "URN-0001",
"Name": "VİDA 5X40 GALVANİZ",
"UnitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"Barcode": "8690000000017",
"ProductType": 4,
"StockType": 2,
"VatRateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"AdditionalTaxCode1": "<string>",
"AdditionalTaxRate1": 123,
"AdditionalTaxCode2": "<string>",
"AdditionalTaxRate2": 123,
"AdditionalTaxCode3": "<string>",
"AdditionalTaxRate3": 123,
"IsOutOfUse": false,
"ManufacturerCode": "<string>",
"SupplierCode": "<string>",
"GroupDetailId1": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"GroupDetailId2": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"GroupDetailId3": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"GroupDetailId4": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"GroupDetailId5": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ShelfNumber": "A-12",
"Description": "<string>",
"SerialNumberIndex": 123,
"ECommerceProductCode": "<string>",
"IsFavourite": false,
"Gtip": "7318159000",
"DeliveryTerm": "EXW",
"PackagingType": "BX",
"TransportMode": 3,
"Brand": "<string>",
"Model": "<string>",
"OriginCountryCode": "TR"
}
]
},
"Message": "<string>"
}{
"Success": false,
"ResultCode": "0201",
"Message": "X-UserID header is required.",
"Errors": [
{
"Code": "0201",
"Message": "X-UserID header 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."
}
]
}Ürün listesi
Ürünleri sayfalayarak listeler.
curl --request GET \
--url https://api.noyax.com/api/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'X-CompanyID: <x-companyid>' \
--header 'X-UserID: <x-userid>'using RestSharp;
var options = new RestClientOptions("https://api.noyax.com/api/v1/products");
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>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {
method: 'GET',
headers: {
'X-UserID': '<x-userid>',
'X-CompanyID': '<x-companyid>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.noyax.com/api/v1/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.noyax.com/api/v1/products"
headers = {
"X-UserID": "<x-userid>",
"X-CompanyID": "<x-companyid>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"Success": true,
"ResultCode": "0000",
"Data": {
"Page": 1,
"PageSize": 50,
"TotalCount": 128,
"Items": [
{
"Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"UnitName": "ADET",
"VatRate": 20,
"Code": "URN-0001",
"Name": "VİDA 5X40 GALVANİZ",
"UnitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"Barcode": "8690000000017",
"ProductType": 4,
"StockType": 2,
"VatRateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"AdditionalTaxCode1": "<string>",
"AdditionalTaxRate1": 123,
"AdditionalTaxCode2": "<string>",
"AdditionalTaxRate2": 123,
"AdditionalTaxCode3": "<string>",
"AdditionalTaxRate3": 123,
"IsOutOfUse": false,
"ManufacturerCode": "<string>",
"SupplierCode": "<string>",
"GroupDetailId1": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"GroupDetailId2": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"GroupDetailId3": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"GroupDetailId4": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"GroupDetailId5": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ShelfNumber": "A-12",
"Description": "<string>",
"SerialNumberIndex": 123,
"ECommerceProductCode": "<string>",
"IsFavourite": false,
"Gtip": "7318159000",
"DeliveryTerm": "EXW",
"PackagingType": "BX",
"TransportMode": 3,
"Brand": "<string>",
"Model": "<string>",
"OriginCountryCode": "TR"
}
]
},
"Message": "<string>"
}{
"Success": false,
"ResultCode": "0201",
"Message": "X-UserID header is required.",
"Errors": [
{
"Code": "0201",
"Message": "X-UserID header 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."
}
]
}search parametresi ürün kodu, ürün tanımı ve ana birim barkodunda arar.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 >= 1Sorgu Parametreleri
Sayfa numarası, 1'den başlar.
Sayfa başına kayıt sayısı (en fazla 50).
Code, Name ve Barcode alanlarında arar.
Yanıt
OK
İş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.