Gönderilecek İrsaliyeyi Önizler
Model olarak gönderilecek irsaliyeyi ön izlemek için bu ucu kullanabilirsiniz.
Authorizations
Body
CustomerAliasstring | nullableOptional
Responses
200
Gönderilecek irsaliyeyi ön izler.
Responsestring
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
POST /edespatch/Send/Model/Preview 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:46:05.225Z",
"TemplateBase64String": "text",
"TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
"ActualDespatchDateTime": "2025-06-25T13:46:05.225Z",
"PayableAmount": 1,
"CurrencyCode": "text",
"DespatchType": "MATBUDAN",
"DespatchProfile": "TEMELIRSALIYE",
"DespatchSerieOrNumber": "text",
"MatbuIssueDate": "2025-06-25T13:46:05.225Z",
"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:46:05.225Z",
"DocumentType": "text",
"DocumentTypeCode": "text",
"DocumentDescription": "text",
"Attachment": {
"Base64Data": "text",
"MimeCode": "text",
"FileName": "text"
}
}
],
"OrderReference": {
"ID": "text",
"IssueDate": "2025-06-25T13:46:05.225Z",
"DocumentReference": {
"ID": "text",
"IssueDate": "2025-06-25T13:46:05.225Z",
"DocumentType": "text",
"DocumentTypeCode": "text",
"DocumentDescription": "text",
"Attachment": {
"Base64Data": "text",
"MimeCode": "text",
"FileName": "text"
}
}
}
},
"CustomerAlias": "text"
}
text
var client = new RestClient("https://apitest.nilvera.com/edespatch/Send/Model/Preview");
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": "9dc0807f-4847-415b-a960-4a52ce585496",
"IssueDate": "2023-01-09T15:13:36.9376458+03:00",
"TemplateBase64String": null,
"TemplateUUID": "a2d5d0dd-a5b5-4a8a-a1e1-0a245caf5fd6",
"ActualDespatchDateTime": "2023-01-09T15:13:36.9376467+03:00",
"PayableAmount": 0,
"CurrencyCode": "TRY",
"DespatchType": "SEVK",
"DespatchProfile": "TEMELIRSALIYE",
"DespatchSerieOrNumber": "IRS",
"MatbuIssueDate": null,
"MatbuNumber": null},
"DespatchSupplierInfo": null,
"DeliveryCustomerInfo"": {
"PartyIdentifications": null,
"Address": "Papatya Caddesi Yasemin Sokak No21",
"District": "Melikgazi",
"City": "Kayseri",
"PostalCode": "38038",
"Country": "Türkiye",
"TaxOffice": null,
"TaxNumber": "1288331521",
"Name": "AAA Anonim Şirketi",
"Phone": null,
"Email": null,
"Fax": null,
"WebSite": null},
"BuyerCustomerInfo": null,
"SellerSupplierInfo": null,
"OriginatorCustomerInfo": null,
"Notes": null,
"DespatchLines": [{
"DeliveredUnitType": "C62",
"DeliveredUnitName": "Adet",
"Name": "Laptop",
"SellerCode": null,
"BuyerCode": null,
"Description": null,
"DeliveredQuantity": 1,
"QuantityPrice": 0,
"LineTotal": 0,
"AdditionalItemIdentification": null,
"OutstandingQuantity": 0,
"OutstandingUnitType": null,
"OutstandingUnitName": null,
"OutstandingReason": null,
"ManufacturerCode": null,
"BrandName": null,
"ModelName": null"ShipmentDetail":
{"ShipmentInfo": {"DriverPerson"": null,
"LicensePlateID": "00 AAA 000"},
"Delivery": {"AddressInfo": {"Address": "Teslimat Adresi",
"District": "Melikgazi",
"City": "Kayseri",
"Country": "Türkiye",
"PostalCode": "38038",
"Phone": null,
"Fax": null,
"Mail": null,
"WebSite": null,
"CarrierInfo": {"Address": "carrier address",
"District": "Melikgazi",
"City": "Kayseri",
"PostalCode": "38038",
"Country": "Türkiye",
"TaxNumber": ""1288331521",
"Phone": null,
"TaxOffice": null,
"Name": "AAA Anonim Şirket",
"Email": null,
"WebSite": null,
"Fax": null,
"TransportEquipment": null",
AdditionalDocumentReference": null,
"OrderReference": null,
,,CustomerAlias": null}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Last updated