Stok Ekler

Stok ekler.

POST/general/Stocks
Body
Namenullable string
UnitCodenullable string
UnitNamenullable string
Pricenumber (double)
SellerCodenullable string
BuyerCodenullable string
ManufacturerCodenullable string
IsActiveboolean
GTIPCodenullable string
Brandnullable string
Modelnullable string
Descriptionnullable string
Notenullable string
DeliveryCodenullable string
ShippingCodenullable string
TaxPercentnumber (double)
Response

Stok ekler.

Body
string
Request
const response = await fetch('/general/Stocks', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify([
      {}
    ]),
});
const data = await response.json();
Response
"text"
var client = new RestClient("https://apitest.nilvera.com/general/Stocks");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"["Name": "string",
"UnitCode": "string",
"UnitName": "string",
"Price": 0,
"SellerCode": "string",
"BuyerCode": "string",
"ManufacturerCode": "string",
"IsActive": true,
"GTIPCode": "string",
"Brand": "string",
"Model": "string",
"Description": "string",
"Note": "string",
"DeliveryCode": "string",
"ShippingCode": "string",
"TaxPercent": 0]";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);