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
{
  "Content": [
    {
      "Name": "text",
      "UnitCode": "text",
      "UnitName": "text",
      "Price": 0,
      "SellerCode": "text",
      "BuyerCode": "text",
      "ManufacturerCode": "text",
      "IsActive": false,
      "CreatedDate": "2024-11-21T08:47:01.927Z",
      "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);