Ön İzlenen İrsaliyeyi PDF Olarak İndirir
var options = new RestClientOptions("https://apitest.nilvera.com")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/edespatch/Send/Model/Download/Pdf", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "APIKEY");
var body = new
{
EDespatch = new
{
DespatchInfo = new
{
UUID = "3fa85f64-5717-4562-b3fc-2c963f66afa6",
IssueDate = "2024-07-03T11:55:41.579Z",
TemplateBase64String = "string",
TemplateUUID = "3fa85f64-5717-4562-b3fc-2c963f66afa6",
ActualDespatchDateTime = "2024-07-03T11:55:41.579Z",
PayableAmount = 0,
CurrencyCode = "string",
DespatchType = "MATBUDAN",
DespatchProfile = "TEMELIRSALIYE",
DespatchSerieOrNumber = "string",
MatbuIssueDate = "2024-07-03T11:55:41.579Z",
MatbuNumber = "string"
},
DespatchSupplierInfo = new
{
PartyIdentifications = new[]
{
new
{
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 = new
{
PartyIdentifications = new[]
{
new
{
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 = new
{
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 = new
{
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 = new
{
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 = new[] { "string" },
DespatchLines = new[]
{
new
{
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 = new
{
ShipmentInfo = new
{
DriverPerson = new[]
{
new
{
FirstName = "string",
LastName = "string",
TaxNumber = "string"
}
},
LicensePlateID = "string"
},
Delivery = new
{
AddressInfo = new
{
Address = "string",
District = "string",
City = "string",
Country = "string",
PostalCode = "string",
Phone = "string",
Fax = "string",
Mail = "string",
WebSite = "string"
},
CarrierInfo = new
{
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 = new[] { "string" }
},
AdditionalDocumentReference = new[]
{
new
{
ID = "string",
IssueDate = "2024-07-03T11:55:41.579Z",
DocumentType = "string",
DocumentTypeCode = "string",
DocumentDescription = "string",
Attachment = new
{
Base64Data = "string",
MimeCode = "string",
FileName = "string"
}
}
},
OrderReference = new
{
ID = "string",
IssueDate = "2024-07-03T11:55:41.579Z",
DocumentReference = new
{
ID = "string",
IssueDate = "2024-07-03T11:55:41.579Z",
DocumentType = "string",
DocumentTypeCode = "string",
DocumentDescription = "string",
Attachment = new
{
Base64Data = "string",
MimeCode = "string",
FileName = "string"
}
}
}
},
CustomerAlias = "string"
};
request.AddJsonBody(body);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apitest.nilvera.com/edespatch/Send/Model/Download/Pdf',
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": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"IssueDate": "2024-07-03T11:55:41.579Z",
"TemplateBase64String": "string",
"TemplateUUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ActualDespatchDateTime": "2024-07-03T11:55:41.579Z",
"PayableAmount": 0,
"CurrencyCode": "string",
"DespatchType": "MATBUDAN",
"DespatchProfile": "TEMELIRSALIYE",
"DespatchSerieOrNumber": "string",
"MatbuIssueDate": "2024-07-03T11:55:41.579Z",
"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": "2024-07-03T11:55:41.579Z",
"DocumentType": "string",
"DocumentTypeCode": "string",
"DocumentDescription": "string",
"Attachment": {
"Base64Data": "string",
"MimeCode": "string",
"FileName": "string"
}
}
],
"OrderReference": {
"ID": "string",
"IssueDate": "2024-07-03T11:55:41.579Z",
"DocumentReference": {
"ID": "string",
"IssueDate": "2024-07-03T11:55:41.579Z",
"DocumentType": "string",
"DocumentTypeCode": "string",
"DocumentDescription": "string",
"Attachment": {
"Base64Data": "string",
"MimeCode": "string",
"FileName": "string"
}
}
}
},
"CustomerAlias": "string"
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: APIKEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
const axios = require('axios');
let data = JSON.stringify({
"EDespatch": {
"DespatchInfo": {
"UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"IssueDate": "2024-07-03T11:55:41.579Z",
"TemplateBase64String": "string",
"TemplateUUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ActualDespatchDateTime": "2024-07-03T11:55:41.579Z",
"PayableAmount": 0,
"CurrencyCode": "string",
"DespatchType": "MATBUDAN",
"DespatchProfile": "TEMELIRSALIYE",
"DespatchSerieOrNumber": "string",
"MatbuIssueDate": "2024-07-03T11:55:41.579Z",
"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": "2024-07-03T11:55:41.579Z",
"DocumentType": "string",
"DocumentTypeCode": "string",
"DocumentDescription": "string",
"Attachment": {
"Base64Data": "string",
"MimeCode": "string",
"FileName": "string"
}
}
],
"OrderReference": {
"ID": "string",
"IssueDate": "2024-07-03T11:55:41.579Z",
"DocumentReference": {
"ID": "string",
"IssueDate": "2024-07-03T11:55:41.579Z",
"DocumentType": "string",
"DocumentTypeCode": "string",
"DocumentDescription": "string",
"Attachment": {
"Base64Data": "string",
"MimeCode": "string",
"FileName": "string"
}
}
}
},
"CustomerAlias": "string"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://apitest.nilvera.com/edespatch/Send/Model/Download/Pdf',
headers: {
'Content-Type': 'application/json',
'Authorization': 'APIKEY'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Last updated