Taslağın Modeli Getirilir
Model olarak indirir.
GET/edespatch/Draft/{UUID}/model
Path parameters
UUID*string (uuid)
Response
Model olarak indirir.
Body
DespatchInfoDespatchInfoDto (object)
DespatchSupplierInfoDespatchSupplierInfoDto (object)
DeliveryCustomerInfoDeliveryCustomerInfoDto (object)
BuyerCustomerInfoBuyerCustomerInfoDto (object)
SellerSupplierInfoSellerSupplierInfoDto (object)
OriginatorCustomerInfoOriginatorCustomerInfoDto (object)
Notesnullable array of string
DespatchLinesnullable array of DespatchLineDto (object)
ShipmentDetailShipmentDetailDto (object)
AdditionalDocumentReferencenullable array of AdditionalDocumentReferenceDto (object)
OrderReferenceOrderReferenceDto (object)
Request
const response = await fetch('/edespatch/Draft/{UUID}/model', {
method: 'GET',
headers: {},
});
const data = await response.json();
Response
{
"DespatchInfo": {
"UUID": "123e4567-e89b-12d3-a456-426614174000",
"IssueDate": "2024-11-21T10:23:52.911Z",
"TemplateBase64String": "text",
"TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
"ActualDespatchDateTime": "2024-11-21T10:23:52.911Z",
"PayableAmount": 0,
"CurrencyCode": "text",
"DespatchType": "MATBUDAN",
"DespatchProfile": "TEMELIRSALIYE",
"DespatchSerieOrNumber": "text",
"MatbuIssueDate": "2024-11-21T10:23:52.911Z",
"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": 0,
"QuantityPrice": 0,
"LineTotal": 0,
"AdditionalItemIdentification": "text",
"OutstandingQuantity": 0,
"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": "2024-11-21T10:23:52.911Z",
"DocumentType": "text",
"DocumentTypeCode": "text",
"DocumentDescription": "text",
"Attachment": {
"Base64Data": "text",
"MimeCode": "text",
"FileName": "text"
}
}
],
"OrderReference": {
"ID": "text",
"IssueDate": "2024-11-21T10:23:52.911Z",
"DocumentReference": {
"ID": "text",
"IssueDate": "2024-11-21T10:23:52.911Z",
"DocumentType": "text",
"DocumentTypeCode": "text",
"DocumentDescription": "text",
"Attachment": {
"Base64Data": "text",
"MimeCode": "text",
"FileName": "text"
}
}
}
}
var client = new RestClient("https://apitest.nilvera.com/edespatch/Draft/95a63e90-691a-41e8-9577-2fc0a98c676e/model");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <API KEY>");
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/Draft/95a63e90-691a-41e8-9577-2fc0a98c676e/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 => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer <API KEY>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var config = {
method: 'get',
url: 'https://apitest.nilvera.com/edespatch/Draft/95a63e90-691a-41e8-9577-2fc0a98c676e/model',
headers: {
'Authorization': 'Bearer <API KEY>'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});