Ürünleri listele
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",
"MainProductId": null,
"MainProductCode": null,
"UnitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"UnitName": "ADET",
"VatRateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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",
"AlternativeUnits": [
{
"UnitCode": "BX",
"UnitName": "KOLİ",
"Quantity": 1,
"MainUnitQuantity": 12
}
],
"Code": "URN-0001",
"Name": "VİDA 5X40 GALVANİZ",
"UnitCode": "C62",
"Barcode": "8690000000017",
"ProductType": 4,
"StockType": 2,
"VatRate": 20,
"AdditionalTaxes": [
{
"Code": "0071",
"Rate": 25
}
],
"IsOutOfUse": false,
"ManufacturerCode": "<string>",
"SupplierCode": "<string>",
"Group1": "<string>",
"Group2": "<string>",
"Group3": "<string>",
"Group4": "<string>",
"Group5": "<string>",
"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ünler
Ürün listesi
Ürünleri sayfalayarak listeler.
GET
/
api
/
v1
/
products
Ürünleri listele
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",
"MainProductId": null,
"MainProductCode": null,
"UnitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"UnitName": "ADET",
"VatRateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"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",
"AlternativeUnits": [
{
"UnitCode": "BX",
"UnitName": "KOLİ",
"Quantity": 1,
"MainUnitQuantity": 12
}
],
"Code": "URN-0001",
"Name": "VİDA 5X40 GALVANİZ",
"UnitCode": "C62",
"Barcode": "8690000000017",
"ProductType": 4,
"StockType": 2,
"VatRate": 20,
"AdditionalTaxes": [
{
"Code": "0071",
"Rate": 25
}
],
"IsOutOfUse": false,
"ManufacturerCode": "<string>",
"SupplierCode": "<string>",
"Group1": "<string>",
"Group2": "<string>",
"Group3": "<string>",
"Group4": "<string>",
"Group5": "<string>",
"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."
}
]
}Sonuçlar ürün koduna göre sıralanır.
search parametresi ürün kodu, ürün tanımı ve ana birim barkodunda arar.
Hata kodları
Bu endpoint’e özel bir hata kodu yoktur. Her endpoint için geçerli olan genel hatalar (kimlik doğrulama, yetki, istek header’ları, istek limitleri) yine geçerlidir.Yetkilendirmeler
Başlıklar
Sorgu Parametreleri
Yanıt
OK