İrsaliyeye Yanıt Oluşturur
Authorizations
HTTPRequired
API anahtar� giriniz
Body
DespatchUUIDstring · uuidOptional
Notesstring[] · nullableOptional
Seriestring · nullableOptional
DeliveryDateTimestring · date-timeOptional
TemplateUUIDstring · uuidOptional
AcceptAllbooleanOptional
RejectAllbooleanOptional
Responses
200
İrsaliyeye yanıt verir.
application/json
stringOptional
400
Geçersiz İstek | Gönderdiğiniz istekte geçersiz veriler bulunduğu anlamında gelmektedir | Detaylar için tıklayınız
403
Yetkisiz Erişim | Bu uca erişmek için gerekli yetkiye sahip olmadığınız durumda dönülür
404
Parametrede belirtilen kayıt bulunamadığında dönülür | Detaylar için tıklayınız
409
Gönderdiğiniz istek sistemde daha önce bulunduğunda dönülür | Detaylar için tıklayınız
422
Gönderdiğiniz istek geçerli fakat iş kuralları gereği geçersiz değerler içerdiğinde dönülür | Detaylar için tıklayınız
post/Purchase/SendAnswer
POST /edespatch/Purchase/SendAnswer HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 529
{
"DespatchUUID": "123e4567-e89b-12d3-a456-426614174000",
"DespatchAnswerLines": [
{
"Index": 1,
"Received": {
"UnitCode": "text",
"Value": 1
},
"Short": {
"UnitCode": "text",
"Value": 1
},
"Rejected": {
"UnitCode": "text",
"Value": 1
},
"Oversupply": {
"UnitCode": "text",
"Value": 1
},
"RejectReason": "text",
"SellerCode": "text",
"Name": "text",
"Description": "text",
"QuantityPrice": 1,
"LineTotal": 1
}
],
"Notes": [
"text"
],
"Serie": "text",
"DeliveryDateTime": "2026-01-01T00:00:00.000Z",
"TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
"AcceptAll": true,
"RejectAll": true
}textvar options = new RestClientOptions("https://apitest.nilvera.com")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/edespatch/Purchase/SendAnswer", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "APIKEY");
var body = new
{
DespatchUUID = "3fa85f64-5717-4562-b3fc-2c963f66afa6",
DespatchAnswerLines = new[]
{
new
{
Index = 0,
Received = new
{
UnitCode = "string",
Value = 0
},
Short = new
{
UnitCode = "string",
Value = 0
},
Rejected = new
{
UnitCode = "string",
Value = 0
},
Oversupply = new
{
UnitCode = "string",
Value = 0
},
RejectReason = "string",
SellerCode = "string",
Name = "string",
Description = "string",
QuantityPrice = 0,
LineTotal = 0
}
},
Notes = new[] { "string" },
Serie = "string",
DeliveryDateTime = "2024-01-01T00:00:00",
TemplateUUID = "3fa85f64-5717-4562-b3fc-2c963f66afa6",
AcceptAll = true,
RejectAll = true
};
request.AddJsonBody(body);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);Last updated