Stok Getirir

Stok Getirir.

GET/general/Stocks/{ID}
Path parameters
ID*integer (int32)
Response

Stok Getirir.

Body
IDinteger (int32)
Namenullable string
UnitCodenullable string
UnitNamenullable string
Pricenumber (double)
SellerCodenullable string
BuyerCodenullable string
ManufacturerCodenullable string
IsActiveboolean
CreatedDatestring (date-time)
GTIPCodenullable string
Brandnullable string
Modelnullable string
Descriptionnullable string
Notenullable string
DeliveryCodenullable string
ShippingCodenullable string
TaxPercentnumber (double)
Request
const response = await fetch('/general/Stocks/{ID}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "Name": "text",
  "UnitCode": "text",
  "UnitName": "text",
  "Price": 0,
  "SellerCode": "text",
  "BuyerCode": "text",
  "ManufacturerCode": "text",
  "IsActive": false,
  "CreatedDate": "2024-07-23T14:27:10.969Z",
  "GTIPCode": "text",
  "Brand": "text",
  "Model": "text",
  "Description": "text",
  "Note": "text",
  "DeliveryCode": "text",
  "ShippingCode": "text",
  "TaxPercent": 0
}
var options = new RestClientOptions("https://apitest.nilvera.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/general/Stocks/1", Method.Get);
request.AddHeader("Authorization", "Bearer <API KEY>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);