# Toplu Taslak İrsaliye Oluşturur

## POST /Draft/CreateBulk

> Toplu taslak irsaliye oluşturur.

```json
{"openapi":"3.0.1","info":{"title":"E-Despatch API","version":"v1"},"servers":[{"url":"/edespatch"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"API anahtar� giriniz","scheme":"Bearer","bearerFormat":"JWT"}},"schemas":{"CreateBulkDraftCommand":{"type":"object","properties":{"EDespatches":{"type":"array","items":{"$ref":"#/components/schemas/BulkEDespatchDto"},"nullable":true}},"additionalProperties":false},"BulkEDespatchDto":{"type":"object","properties":{"EDespatch":{"$ref":"#/components/schemas/EDespatchDto"},"CustomerAlias":{"type":"string","nullable":true},"Tags":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"SpecialCode":{"type":"string","nullable":true}},"additionalProperties":false},"EDespatchDto":{"type":"object","properties":{"DespatchInfo":{"$ref":"#/components/schemas/DespatchInfoDto"},"DespatchSupplierInfo":{"$ref":"#/components/schemas/DespatchSupplierInfoDto"},"DeliveryCustomerInfo":{"$ref":"#/components/schemas/DeliveryCustomerInfoDto"},"BuyerCustomerInfo":{"$ref":"#/components/schemas/BuyerCustomerInfoDto"},"SellerSupplierInfo":{"$ref":"#/components/schemas/SellerSupplierInfoDto"},"OriginatorCustomerInfo":{"$ref":"#/components/schemas/OriginatorCustomerInfoDto"},"Notes":{"type":"array","items":{"type":"string"},"nullable":true},"DespatchLines":{"type":"array","items":{"$ref":"#/components/schemas/DespatchLineDto"},"nullable":true},"ShipmentDetail":{"$ref":"#/components/schemas/ShipmentDetailDto"},"AdditionalDocumentReference":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalDocumentReferenceDto"},"nullable":true},"OrderReference":{"$ref":"#/components/schemas/OrderReferenceDto"}},"additionalProperties":false},"DespatchInfoDto":{"type":"object","properties":{"UUID":{"type":"string","format":"uuid"},"IssueDate":{"type":"string","format":"date-time"},"TemplateBase64String":{"type":"string","nullable":true},"TemplateUUID":{"type":"string","format":"uuid"},"ActualDespatchDateTime":{"type":"string","format":"date-time"},"PayableAmount":{"type":"number","format":"double"},"CurrencyCode":{"type":"string","nullable":true},"DespatchType":{"$ref":"#/components/schemas/DespatchType"},"DespatchProfile":{"$ref":"#/components/schemas/DespatchProfile"},"DespatchSerieOrNumber":{"type":"string","nullable":true},"MatbuIssueDate":{"type":"string","format":"date-time","nullable":true},"MatbuNumber":{"type":"string","nullable":true}},"additionalProperties":false},"DespatchType":{"enum":["MATBUDAN","SEVK"],"type":"string"},"DespatchProfile":{"enum":["TEMELIRSALIYE","HKSIRSALIYE"],"type":"string"},"DespatchSupplierInfoDto":{"type":"object","properties":{"PartyIdentifications":{"type":"array","items":{"$ref":"#/components/schemas/IDTypeDto"},"nullable":true},"WebSite":{"type":"string","nullable":true},"Address":{"type":"string","nullable":true},"District":{"type":"string","nullable":true},"City":{"type":"string","nullable":true},"PostalCode":{"type":"string","nullable":true},"Country":{"type":"string","nullable":true},"TaxOffice":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"TaxNumber":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true}},"additionalProperties":false},"IDTypeDto":{"type":"object","properties":{"SchemeID":{"type":"string","nullable":true},"Value":{"type":"string","nullable":true}},"additionalProperties":false},"DeliveryCustomerInfoDto":{"type":"object","properties":{"PartyIdentifications":{"type":"array","items":{"$ref":"#/components/schemas/IDTypeDto"},"nullable":true},"Address":{"type":"string","nullable":true},"District":{"type":"string","nullable":true},"City":{"type":"string","nullable":true},"PostalCode":{"type":"string","nullable":true},"Country":{"type":"string","nullable":true},"TaxOffice":{"type":"string","nullable":true},"TaxNumber":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"WebSite":{"type":"string","nullable":true}},"additionalProperties":false},"BuyerCustomerInfoDto":{"type":"object","properties":{"Address":{"type":"string","nullable":true},"District":{"type":"string","nullable":true},"City":{"type":"string","nullable":true},"PostalCode":{"type":"string","nullable":true},"Country":{"type":"string","nullable":true},"TaxOffice":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"TaxNumber":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"WebSite":{"type":"string","nullable":true}},"additionalProperties":false},"SellerSupplierInfoDto":{"type":"object","properties":{"Address":{"type":"string","nullable":true},"District":{"type":"string","nullable":true},"City":{"type":"string","nullable":true},"PostalCode":{"type":"string","nullable":true},"Country":{"type":"string","nullable":true},"TaxOffice":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"TaxNumber":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"WebSite":{"type":"string","nullable":true}},"additionalProperties":false},"OriginatorCustomerInfoDto":{"type":"object","properties":{"Address":{"type":"string","nullable":true},"District":{"type":"string","nullable":true},"City":{"type":"string","nullable":true},"PostalCode":{"type":"string","nullable":true},"Country":{"type":"string","nullable":true},"TaxOffice":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"TaxNumber":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"WebSite":{"type":"string","nullable":true}},"additionalProperties":false},"DespatchLineDto":{"type":"object","properties":{"DeliveredUnitType":{"type":"string","nullable":true},"DeliveredUnitName":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"SellerCode":{"type":"string","nullable":true},"BuyerCode":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true},"DeliveredQuantity":{"type":"number","format":"double"},"QuantityPrice":{"type":"number","format":"double"},"LineTotal":{"type":"number","format":"double"},"AdditionalItemIdentification":{"type":"string","nullable":true},"OutstandingQuantity":{"type":"number","format":"double"},"OutstandingUnitType":{"type":"string","nullable":true},"OutstandingUnitName":{"type":"string","nullable":true},"OutstandingReason":{"type":"string","nullable":true},"ManufacturerCode":{"type":"string","nullable":true},"BrandName":{"type":"string","nullable":true},"ModelName":{"type":"string","nullable":true}},"additionalProperties":false},"ShipmentDetailDto":{"type":"object","properties":{"ShipmentInfo":{"$ref":"#/components/schemas/ShipmentInfoDto"},"Delivery":{"$ref":"#/components/schemas/DeliveryDto"},"TransportEquipment":{"type":"array","items":{"type":"string"},"nullable":true}},"additionalProperties":false},"ShipmentInfoDto":{"type":"object","properties":{"DriverPerson":{"type":"array","items":{"$ref":"#/components/schemas/DriverPersonDto"},"nullable":true},"LicensePlateID":{"type":"string","nullable":true}},"additionalProperties":false},"DriverPersonDto":{"type":"object","properties":{"FirstName":{"type":"string","nullable":true},"LastName":{"type":"string","nullable":true},"TaxNumber":{"type":"string","nullable":true}},"additionalProperties":false},"DeliveryDto":{"type":"object","properties":{"AddressInfo":{"$ref":"#/components/schemas/AddressInfoDto"},"CarrierInfo":{"$ref":"#/components/schemas/CarrierInfoDto"}},"additionalProperties":false},"AddressInfoDto":{"type":"object","properties":{"Address":{"type":"string","nullable":true},"District":{"type":"string","nullable":true},"City":{"type":"string","nullable":true},"Country":{"type":"string","nullable":true},"PostalCode":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true},"Mail":{"type":"string","nullable":true},"WebSite":{"type":"string","nullable":true}},"additionalProperties":false},"CarrierInfoDto":{"type":"object","properties":{"Address":{"type":"string","nullable":true},"District":{"type":"string","nullable":true},"City":{"type":"string","nullable":true},"PostalCode":{"type":"string","nullable":true},"Country":{"type":"string","nullable":true},"TaxNumber":{"type":"string","nullable":true},"Phone":{"type":"string","nullable":true},"TaxOffice":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Email":{"type":"string","nullable":true},"WebSite":{"type":"string","nullable":true},"Fax":{"type":"string","nullable":true}},"additionalProperties":false},"AdditionalDocumentReferenceDto":{"type":"object","properties":{"ID":{"type":"string","nullable":true},"IssueDate":{"type":"string","format":"date-time","nullable":true},"DocumentType":{"type":"string","nullable":true},"DocumentTypeCode":{"type":"string","nullable":true},"DocumentDescription":{"type":"string","nullable":true},"Attachment":{"$ref":"#/components/schemas/AttachmentDto"}},"additionalProperties":false},"AttachmentDto":{"type":"object","properties":{"Base64Data":{"type":"string","nullable":true},"MimeCode":{"type":"string","nullable":true},"FileName":{"type":"string","nullable":true}},"additionalProperties":false},"OrderReferenceDto":{"type":"object","properties":{"ID":{"type":"string","nullable":true},"IssueDate":{"type":"string","format":"date-time","nullable":true},"DocumentReference":{"$ref":"#/components/schemas/AdditionalDocumentReferenceDto"}},"additionalProperties":false}}},"paths":{"/Draft/CreateBulk":{"post":{"tags":["Draft"],"summary":"Toplu taslak irsaliye oluşturur.","requestBody":{"description":"","content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/CreateBulkDraftCommand"}},"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkDraftCommand"}},"text/json":{"schema":{"$ref":"#/components/schemas/CreateBulkDraftCommand"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/CreateBulkDraftCommand"}}}},"responses":{"200":{"description":"Toplu taslak irsaliye oluşturur","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"Geçersiz İstek | Gönderdiğiniz istekte geçersiz veriler bulunduğu anlamında gelmektedir | Detaylar için <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#badrequest-400\">tıklayınız</a>"},"403":{"description":"Yetkisiz Erişim | Bu uca erişmek için gerekli yetkiye sahip olmadığınız durumda dönülür"},"404":{"description":"Parametrede belirtilen kayıt bulunamadığında dönülür | Detaylar için <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#notfound-404\">tıklayınız</a>"},"409":{"description":"Gönderdiğiniz istek sistemde daha önce bulunduğunda dönülür | Detaylar için <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#conflict-409\">tıklayınız</a>"},"422":{"description":"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 <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#unprocessableentity-422\">tıklayınız</a>"}}}}}}
```

{% tabs %}
{% tab title="C#" %}

```csharp
var options = new RestClientOptions("https://apitest.nilvera.com")
{
    MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/edespatch/Draft/CreateBulk", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "APIKEY");

var body = new
{
    EDespatches = new[]
    {
        new
        {
            EDespatch = new
            {
                DespatchInfo = new
                {
                    UUID = "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    IssueDate = "2024-07-03T12:46:25.099Z",
                    TemplateBase64String = "string",
                    TemplateUUID = "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    ActualDespatchDateTime = "2024-07-03T12:46:25.099Z",
                    PayableAmount = 0,
                    CurrencyCode = "string",
                    DespatchType = "MATBUDAN",
                    DespatchProfile = "TEMELIRSALIYE",
                    DespatchSerieOrNumber = "string",
                    MatbuIssueDate = "2024-07-03T12:46:25.099Z",
                    MatbuNumber = "string"
                },
                DespatchSupplierInfo = new
                {
                    PartyIdentifications = new[]
                    {
                        new
                        {
                            SchemeID = "string",
                            Value = "string"
                        }
                    },
                    WebSite = "string",
                    Address = "string",
                    District = "string",
                    City = "string",
                    PostalCode = "string",
                    Country = "string",
                    TaxOffice = "string",
                    Phone = "string",
                    Email = "string",
                    Fax = "string",
                    TaxNumber = "string",
                    Name = "string"
                },
                DeliveryCustomerInfo = new
                {
                    PartyIdentifications = new[]
                    {
                        new
                        {
                            SchemeID = "string",
                            Value = "string"
                        }
                    },
                    Address = "string",
                    District = "string",
                    City = "string",
                    PostalCode = "string",
                    Country = "string",
                    TaxOffice = "string",
                    TaxNumber = "string",
                    Name = "string",
                    Phone = "string",
                    Email = "string",
                    Fax = "string",
                    WebSite = "string"
                },
                BuyerCustomerInfo = new
                {
                    Address = "string",
                    District = "string",
                    City = "string",
                    PostalCode = "string",
                    Country = "string",
                    TaxOffice = "string",
                    Phone = "string",
                    Email = "string",
                    Fax = "string",
                    TaxNumber = "string",
                    Name = "string",
                    WebSite = "string"
                },
                SellerSupplierInfo = new
                {
                    Address = "string",
                    District = "string",
                    City = "string",
                    PostalCode = "string",
                    Country = "string",
                    TaxOffice = "string",
                    Phone = "string",
                    Email = "string",
                    Fax = "string",
                    TaxNumber = "string",
                    Name = "string",
                    WebSite = "string"
                },
                OriginatorCustomerInfo = new
                {
                    Address = "string",
                    District = "string",
                    City = "string",
                    PostalCode = "string",
                    Country = "string",
                    TaxOffice = "string",
                    Phone = "string",
                    Email = "string",
                    Fax = "string",
                    TaxNumber = "string",
                    Name = "string",
                    WebSite = "string"
                },
                Notes = new[] { "string" },
                DespatchLines = new[]
                {
                    new
                    {
                        DeliveredUnitType = "string",
                        DeliveredUnitName = "string",
                        Name = "string",
                        SellerCode = "string",
                        BuyerCode = "string",
                        Description = "string",
                        DeliveredQuantity = 0,
                        QuantityPrice = 0,
                        LineTotal = 0,
                        AdditionalItemIdentification = "string",
                        OutstandingQuantity = 0,
                        OutstandingUnitType = "string",
                        OutstandingUnitName = "string",
                        OutstandingReason = "string",
                        ManufacturerCode = "string",
                        BrandName = "string",
                        ModelName = "string"
                    }
                },
                ShipmentDetail = new
                {
                    ShipmentInfo = new
                    {
                        DriverPerson = new[]
                        {
                            new
                            {
                                FirstName = "string",
                                LastName = "string",
                                TaxNumber = "string"
                            }
                        },
                        LicensePlateID = "string"
                    },
                    Delivery = new
                    {
                        AddressInfo = new
                        {
                            Address = "string",
                            District = "string",
                            City = "string",
                            Country = "string",
                            PostalCode = "string",
                            Phone = "string",
                            Fax = "string",
                            Mail = "string",
                            WebSite = "string"
                        },
                        CarrierInfo = new
                        {
                            Address = "string",
                            District = "string",
                            City = "string",
                            PostalCode = "string",
                            Country = "string",
                            TaxNumber = "string",
                            Phone = "string",
                            TaxOffice = "string",
                            Name = "string",
                            Email = "string",
                            WebSite = "string",
                            Fax = "string"
                        }
                    },
                    TransportEquipment = new[] { "string" }
                },
                AdditionalDocumentReference = new[]
                {
                    new
                    {
                        ID = "string",
                        IssueDate = "2024-07-03T12:46:25.099Z",
                        DocumentType = "string",
                        DocumentTypeCode = "string",
                        DocumentDescription = "string",
                        Attachment = new
                        {
                            Base64Data = "string",
                            MimeCode = "string",
                            FileName = "string"
                        }
                    }
                },
                OrderReference = new
                {
                    ID = "string",
                    IssueDate = "2024-07-03T12:46:25.099Z",
                    DocumentReference = new
                    {
                        ID = "string",
                        IssueDate = "2024-07-03T12:46:25.099Z",
                        DocumentType = "string",
                        DocumentTypeCode = "string",
                        DocumentDescription = "string",
                        Attachment = new
                        {
                            Base64Data = "string",
                            MimeCode = "string",
                            FileName = "string"
                        }
                    }
                }
            },
            CustomerAlias = "string",
            Tags = new[] { "3fa85f64-5717-4562-b3fc-2c963f66afa6" },
            SpecialCode = "string"
        }
    }
};

request.AddJsonBody(body);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
curl --location 'https://apitest.nilvera.com/edespatch/Draft/CreateBulk' \
--header 'Content-Type: application/json' \
--header 'Authorization: APIKEY' \
--data '{
  "EDespatches": [
    {
      "EDespatch": {
        "DespatchInfo": {
          "UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "IssueDate": "2024-07-03T12:46:25.099Z",
          "TemplateBase64String": "string",
          "TemplateUUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "ActualDespatchDateTime": "2024-07-03T12:46:25.099Z",
          "PayableAmount": 0,
          "CurrencyCode": "string",
          "DespatchType": "MATBUDAN",
          "DespatchProfile": "TEMELIRSALIYE",
          "DespatchSerieOrNumber": "string",
          "MatbuIssueDate": "2024-07-03T12:46:25.099Z",
          "MatbuNumber": "string"
        },
        "DespatchSupplierInfo": {
          "PartyIdentifications": [
            {
              "SchemeID": "string",
              "Value": "string"
            }
          ],
          "WebSite": "string",
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "TaxNumber": "string",
          "Name": "string"
        },
        "DeliveryCustomerInfo": {
          "PartyIdentifications": [
            {
              "SchemeID": "string",
              "Value": "string"
            }
          ],
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "TaxNumber": "string",
          "Name": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "WebSite": "string"
        },
        "BuyerCustomerInfo": {
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "TaxNumber": "string",
          "Name": "string",
          "WebSite": "string"
        },
        "SellerSupplierInfo": {
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "TaxNumber": "string",
          "Name": "string",
          "WebSite": "string"
        },
        "OriginatorCustomerInfo": {
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "TaxNumber": "string",
          "Name": "string",
          "WebSite": "string"
        },
        "Notes": [
          "string"
        ],
        "DespatchLines": [
          {
            "DeliveredUnitType": "string",
            "DeliveredUnitName": "string",
            "Name": "string",
            "SellerCode": "string",
            "BuyerCode": "string",
            "Description": "string",
            "DeliveredQuantity": 0,
            "QuantityPrice": 0,
            "LineTotal": 0,
            "AdditionalItemIdentification": "string",
            "OutstandingQuantity": 0,
            "OutstandingUnitType": "string",
            "OutstandingUnitName": "string",
            "OutstandingReason": "string",
            "ManufacturerCode": "string",
            "BrandName": "string",
            "ModelName": "string"
          }
        ],
        "ShipmentDetail": {
          "ShipmentInfo": {
            "DriverPerson": [
              {
                "FirstName": "string",
                "LastName": "string",
                "TaxNumber": "string"
              }
            ],
            "LicensePlateID": "string"
          },
          "Delivery": {
            "AddressInfo": {
              "Address": "string",
              "District": "string",
              "City": "string",
              "Country": "string",
              "PostalCode": "string",
              "Phone": "string",
              "Fax": "string",
              "Mail": "string",
              "WebSite": "string"
            },
            "CarrierInfo": {
              "Address": "string",
              "District": "string",
              "City": "string",
              "PostalCode": "string",
              "Country": "string",
              "TaxNumber": "string",
              "Phone": "string",
              "TaxOffice": "string",
              "Name": "string",
              "Email": "string",
              "WebSite": "string",
              "Fax": "string"
            }
          },
          "TransportEquipment": [
            "string"
          ]
        },
        "AdditionalDocumentReference": [
          {
            "ID": "string",
            "IssueDate": "2024-07-03T12:46:25.099Z",
            "DocumentType": "string",
            "DocumentTypeCode": "string",
            "DocumentDescription": "string",
            "Attachment": {
              "Base64Data": "string",
              "MimeCode": "string",
              "FileName": "string"
            }
          }
        ],
        "OrderReference": {
          "ID": "string",
          "IssueDate": "2024-07-03T12:46:25.099Z",
          "DocumentReference": {
            "ID": "string",
            "IssueDate": "2024-07-03T12:46:25.099Z",
            "DocumentType": "string",
            "DocumentTypeCode": "string",
            "DocumentDescription": "string",
            "Attachment": {
              "Base64Data": "string",
              "MimeCode": "string",
              "FileName": "string"
            }
          }
        }
      },
      "CustomerAlias": "string",
      "Tags": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "SpecialCode": "string"
    }
  ]
}'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
const axios = require('axios');
let data = JSON.stringify({
  "EDespatches": [
    {
      "EDespatch": {
        "DespatchInfo": {
          "UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "IssueDate": "2024-07-03T12:46:25.099Z",
          "TemplateBase64String": "string",
          "TemplateUUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "ActualDespatchDateTime": "2024-07-03T12:46:25.099Z",
          "PayableAmount": 0,
          "CurrencyCode": "string",
          "DespatchType": "MATBUDAN",
          "DespatchProfile": "TEMELIRSALIYE",
          "DespatchSerieOrNumber": "string",
          "MatbuIssueDate": "2024-07-03T12:46:25.099Z",
          "MatbuNumber": "string"
        },
        "DespatchSupplierInfo": {
          "PartyIdentifications": [
            {
              "SchemeID": "string",
              "Value": "string"
            }
          ],
          "WebSite": "string",
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "TaxNumber": "string",
          "Name": "string"
        },
        "DeliveryCustomerInfo": {
          "PartyIdentifications": [
            {
              "SchemeID": "string",
              "Value": "string"
            }
          ],
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "TaxNumber": "string",
          "Name": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "WebSite": "string"
        },
        "BuyerCustomerInfo": {
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "TaxNumber": "string",
          "Name": "string",
          "WebSite": "string"
        },
        "SellerSupplierInfo": {
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "TaxNumber": "string",
          "Name": "string",
          "WebSite": "string"
        },
        "OriginatorCustomerInfo": {
          "Address": "string",
          "District": "string",
          "City": "string",
          "PostalCode": "string",
          "Country": "string",
          "TaxOffice": "string",
          "Phone": "string",
          "Email": "string",
          "Fax": "string",
          "TaxNumber": "string",
          "Name": "string",
          "WebSite": "string"
        },
        "Notes": [
          "string"
        ],
        "DespatchLines": [
          {
            "DeliveredUnitType": "string",
            "DeliveredUnitName": "string",
            "Name": "string",
            "SellerCode": "string",
            "BuyerCode": "string",
            "Description": "string",
            "DeliveredQuantity": 0,
            "QuantityPrice": 0,
            "LineTotal": 0,
            "AdditionalItemIdentification": "string",
            "OutstandingQuantity": 0,
            "OutstandingUnitType": "string",
            "OutstandingUnitName": "string",
            "OutstandingReason": "string",
            "ManufacturerCode": "string",
            "BrandName": "string",
            "ModelName": "string"
          }
        ],
        "ShipmentDetail": {
          "ShipmentInfo": {
            "DriverPerson": [
              {
                "FirstName": "string",
                "LastName": "string",
                "TaxNumber": "string"
              }
            ],
            "LicensePlateID": "string"
          },
          "Delivery": {
            "AddressInfo": {
              "Address": "string",
              "District": "string",
              "City": "string",
              "Country": "string",
              "PostalCode": "string",
              "Phone": "string",
              "Fax": "string",
              "Mail": "string",
              "WebSite": "string"
            },
            "CarrierInfo": {
              "Address": "string",
              "District": "string",
              "City": "string",
              "PostalCode": "string",
              "Country": "string",
              "TaxNumber": "string",
              "Phone": "string",
              "TaxOffice": "string",
              "Name": "string",
              "Email": "string",
              "WebSite": "string",
              "Fax": "string"
            }
          },
          "TransportEquipment": [
            "string"
          ]
        },
        "AdditionalDocumentReference": [
          {
            "ID": "string",
            "IssueDate": "2024-07-03T12:46:25.099Z",
            "DocumentType": "string",
            "DocumentTypeCode": "string",
            "DocumentDescription": "string",
            "Attachment": {
              "Base64Data": "string",
              "MimeCode": "string",
              "FileName": "string"
            }
          }
        ],
        "OrderReference": {
          "ID": "string",
          "IssueDate": "2024-07-03T12:46:25.099Z",
          "DocumentReference": {
            "ID": "string",
            "IssueDate": "2024-07-03T12:46:25.099Z",
            "DocumentType": "string",
            "DocumentTypeCode": "string",
            "DocumentDescription": "string",
            "Attachment": {
              "Base64Data": "string",
              "MimeCode": "string",
              "FileName": "string"
            }
          }
        }
      },
      "CustomerAlias": "string",
      "Tags": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ],
      "SpecialCode": "string"
    }
  ]
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://apitest.nilvera.com/edespatch/Draft/CreateBulk',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': 'APIKEY'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

{% endtab %}
{% endtabs %}
