Creates Draft

Taslak irsaliye oluşturur.

POST/edespatch/Draft/Create
Body
EDespatchEDespatchDto (object)
CustomerAliasnullable string
Response

Taslak irsaliye oluşturur.

Body
UUIDnullable string
DespatchNumbernullable string
Request
const response = await fetch('/edespatch/Draft/Create', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "UUID": "text",
  "DespatchNumber": "text"
}
var client = new RestClient("https://apitest.nilvera.com/edespatch/Draft/Create");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{"EDespatch": {
    "DespatchInfo": {
      "UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "IssueDate": "2023-01-10T07:22:15.779Z",
      "TemplateBase64String": "string",
      "TemplateUUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "ActualDespatchDateTime": "2023-01-10T07:22:15.779Z",
      "PayableAmount": 0,
      "CurrencyCode": "string",
      "DespatchType": "MATBUDAN",
      "DespatchProfile": "TEMELIRSALIYE",
      "DespatchSerieOrNumber": "string",
      "MatbuIssueDate": "2023-01-10T07:22:15.779Z",
      "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": "2023-01-10T07:22:15.779Z",
        "DocumentType": "string",
        "DocumentTypeCode": "string",
        "DocumentDescription": "string",
        "Attachment": {
          "Base64Data": "string",
          "MimeCode": "string",
          "FileName": "string"
        }
      }
    ],
    "OrderReference": {
      "ID": "string",
      "IssueDate": "2023-01-10T07:22:15.779Z",
      "DocumentReference": {
        "ID": "string",
        "IssueDate": "2023-01-10T07:22:15.779Z",
        "DocumentType": "string",
        "DocumentTypeCode": "string",
        "DocumentDescription": "string",
        "Attachment": {
          "Base64Data": "string",
          "MimeCode": "string",
          "FileName": "string"
        }
      }
    }
  },
  "CustomerAlias": "string"
}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Last updated