For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

İrsaliyeye Yanıt Oluşturur

İrsaliyeye yanıt verir.

post
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
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
}
text
var 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