İrsaliyeyi Model Olarak Gönderir
İrsaliyeyi model olarak gönderir.
İrsaliyeyi model olarak göndermek için bu uç kullanılır.
POST/edespatch/Send/Model
Body
EDespatchEDespatchDto (object)
CustomerAliasnullable string
Response
İrsaliyeyi model olarak gönderir.
Body
UUIDnullable string
DespatchNumbernullable string
Request
const response = await fetch('/edespatch/Send/Model', {
method: 'POST',
headers: {
"Content-Type": "application/json-patch+json"
},
body: JSON.stringify({
"EDespatch": {
"DespatchInfo": {
"UUID": "556cc026-335e-41f9-96f5-eb484fa67cf6",
"IssueDate": "2024-09-08T03:11:27.3011944+03:00",
"TemplateBase64String": null,
"TemplateUUID": "1821a8ed-e612-44d8-b487-f41974530aba",
"ActualDespatchDateTime": "2024-09-08T03:11:27.3011949+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
}),
});
const data = await response.json();
Response
{
"UUID": "text",
"DespatchNumber": "text"
}
var client = new RestClient("https://apitest.nilvera.com/edespatch/Send/Model");
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);
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apitest.nilvera.com/edespatch/Send/Model',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"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
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer <API KEY>',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var data = JSON.stringify({
"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
});
var config = {
method: 'post',
url: 'https://apitest.nilvera.com/edespatch/Send/Model',
headers: {
'Authorization': 'Bearer <API KEY>',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});