Lists Stocks
Stokları getirir.
GET/general/Stocks
Query parameters
Response
Stokları getirir.
Body
Pageinteger (int32)
PageSizeinteger (int32)
TotalCountnullable integer (int32)
TotalPagesnullable integer (int32)
Contentnullable array of StockResponse (object)
Request
const response = await fetch('/general/Stocks', {
method: 'GET',
headers: {},
});
const data = await response.json();
Response
{
"Page": 0,
"PageSize": 0,
"TotalCount": 0,
"TotalPages": 0,
"Content": [
{
"ID": 0,
"Name": "text",
"UnitCode": "text",
"UnitName": "text",
"Price": 0,
"SellerCode": "text",
"BuyerCode": "text",
"ManufacturerCode": "text",
"IsActive": false,
"CreatedDate": "2025-01-22T03:16:43.291Z",
"GTIPCode": "text",
"Brand": "text",
"Model": "text",
"Description": "text",
"Note": "text",
"DeliveryCode": "text",
"ShippingCode": "text",
"TaxPercent": 0
}
]
}
var client = new RestClient("https://apitest.nilvera.com/general/Stocks");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <API KEY>");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apitest.nilvera.com/general/Stocks',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer <API KEY>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var config = {
method: 'get',
url: 'https://apitest.nilvera.com/general/Stocks',
headers: {
'Authorization': 'Bearer <API KEY>'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});