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);