Taslak Oluşturur

Taslak irsaliye oluşturur.

post
Authorizations
Body
CustomerAliasstring | nullableOptional
Responses
200
Taslak irsaliye oluşturur.
application/json
post
POST /edespatch/Draft/Create HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 3211

{
  "EDespatch": {
    "DespatchInfo": {
      "UUID": "123e4567-e89b-12d3-a456-426614174000",
      "IssueDate": "2025-06-25T13:40:12.190Z",
      "TemplateBase64String": "text",
      "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
      "ActualDespatchDateTime": "2025-06-25T13:40:12.190Z",
      "PayableAmount": 1,
      "CurrencyCode": "text",
      "DespatchType": "MATBUDAN",
      "DespatchProfile": "TEMELIRSALIYE",
      "DespatchSerieOrNumber": "text",
      "MatbuIssueDate": "2025-06-25T13:40:12.190Z",
      "MatbuNumber": "text"
    },
    "DespatchSupplierInfo": {
      "PartyIdentifications": [
        {
          "SchemeID": "text",
          "Value": "text"
        }
      ],
      "WebSite": "text",
      "Address": "text",
      "District": "text",
      "City": "text",
      "PostalCode": "text",
      "Country": "text",
      "TaxOffice": "text",
      "Phone": "text",
      "Email": "text",
      "Fax": "text",
      "TaxNumber": "text",
      "Name": "text"
    },
    "DeliveryCustomerInfo": {
      "PartyIdentifications": [
        {
          "SchemeID": "text",
          "Value": "text"
        }
      ],
      "Address": "text",
      "District": "text",
      "City": "text",
      "PostalCode": "text",
      "Country": "text",
      "TaxOffice": "text",
      "TaxNumber": "text",
      "Name": "text",
      "Phone": "text",
      "Email": "text",
      "Fax": "text",
      "WebSite": "text"
    },
    "BuyerCustomerInfo": {
      "Address": "text",
      "District": "text",
      "City": "text",
      "PostalCode": "text",
      "Country": "text",
      "TaxOffice": "text",
      "Phone": "text",
      "Email": "text",
      "Fax": "text",
      "TaxNumber": "text",
      "Name": "text",
      "WebSite": "text"
    },
    "SellerSupplierInfo": {
      "Address": "text",
      "District": "text",
      "City": "text",
      "PostalCode": "text",
      "Country": "text",
      "TaxOffice": "text",
      "Phone": "text",
      "Email": "text",
      "Fax": "text",
      "TaxNumber": "text",
      "Name": "text",
      "WebSite": "text"
    },
    "OriginatorCustomerInfo": {
      "Address": "text",
      "District": "text",
      "City": "text",
      "PostalCode": "text",
      "Country": "text",
      "TaxOffice": "text",
      "Phone": "text",
      "Email": "text",
      "Fax": "text",
      "TaxNumber": "text",
      "Name": "text",
      "WebSite": "text"
    },
    "Notes": [
      "text"
    ],
    "DespatchLines": [
      {
        "DeliveredUnitType": "text",
        "DeliveredUnitName": "text",
        "Name": "text",
        "SellerCode": "text",
        "BuyerCode": "text",
        "Description": "text",
        "DeliveredQuantity": 1,
        "QuantityPrice": 1,
        "LineTotal": 1,
        "AdditionalItemIdentification": "text",
        "OutstandingQuantity": 1,
        "OutstandingUnitType": "text",
        "OutstandingUnitName": "text",
        "OutstandingReason": "text",
        "ManufacturerCode": "text",
        "BrandName": "text",
        "ModelName": "text"
      }
    ],
    "ShipmentDetail": {
      "ShipmentInfo": {
        "DriverPerson": [
          {
            "FirstName": "text",
            "LastName": "text",
            "TaxNumber": "text"
          }
        ],
        "LicensePlateID": "text"
      },
      "Delivery": {
        "AddressInfo": {
          "Address": "text",
          "District": "text",
          "City": "text",
          "Country": "text",
          "PostalCode": "text",
          "Phone": "text",
          "Fax": "text",
          "Mail": "text",
          "WebSite": "text"
        },
        "CarrierInfo": {
          "Address": "text",
          "District": "text",
          "City": "text",
          "PostalCode": "text",
          "Country": "text",
          "TaxNumber": "text",
          "Phone": "text",
          "TaxOffice": "text",
          "Name": "text",
          "Email": "text",
          "WebSite": "text",
          "Fax": "text"
        }
      },
      "TransportEquipment": [
        "text"
      ]
    },
    "AdditionalDocumentReference": [
      {
        "ID": "text",
        "IssueDate": "2025-06-25T13:40:12.190Z",
        "DocumentType": "text",
        "DocumentTypeCode": "text",
        "DocumentDescription": "text",
        "Attachment": {
          "Base64Data": "text",
          "MimeCode": "text",
          "FileName": "text"
        }
      }
    ],
    "OrderReference": {
      "ID": "text",
      "IssueDate": "2025-06-25T13:40:12.190Z",
      "DocumentReference": {
        "ID": "text",
        "IssueDate": "2025-06-25T13:40:12.190Z",
        "DocumentType": "text",
        "DocumentTypeCode": "text",
        "DocumentDescription": "text",
        "Attachment": {
          "Base64Data": "text",
          "MimeCode": "text",
          "FileName": "text"
        }
      }
    }
  },
  "CustomerAlias": "text"
}
{
  "UUID": "f958026c-86ea-4351-ac86-0d87173af487",
  "DespatchNumber": "IRS2025000000001"
}
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