Taslağın Modeli Getirilir

Model dosyasını indirir.

GET/ebill/Draft/{UUID}/model
Path parameters
UUID*string (uuid)
Response

Model dosyasını indirir.

Body
BillInfoBillInfoDto (object)
CompanyInfoPartyInfoDto (object)
CustomerInfoPartyInfoDto (object)
SellerInfoEBillSellerInfoDto (object)
BillLinesnullable array of EBillLineDto (object)
Notesnullable array of string
Request
const response = await fetch('/ebill/Draft/{UUID}/model', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "BillInfo": {
    "UUID": "123e4567-e89b-12d3-a456-426614174000",
    "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
    "TemplateBase64String": "text",
    "BillSerieOrNumber": "text",
    "IssueDate": "2024-05-19T17:10:12.426Z",
    "CurrencyCode": "text",
    "ExchangeRate": 0,
    "RelatedDocument": {
      "Type": "EFATURA",
      "Code": "text"
    },
    "ValidityPeriod": {
      "StartDate": "2024-05-19T17:10:12.426Z",
      "EndDate": "2024-05-19T17:10:12.426Z"
    }
  },
  "CompanyInfo": {
    "TaxNumber": "text",
    "Name": "text",
    "TaxOffice": "text",
    "PartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "AgentPartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "Address": "text",
    "District": "text",
    "City": "text",
    "Country": "text",
    "PostalCode": "text",
    "Phone": "text",
    "Fax": "text",
    "Mail": "text",
    "WebSite": "text"
  },
  "CustomerInfo": {
    "TaxNumber": "text",
    "Name": "text",
    "TaxOffice": "text",
    "PartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "AgentPartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "Address": "text",
    "District": "text",
    "City": "text",
    "Country": "text",
    "PostalCode": "text",
    "Phone": "text",
    "Fax": "text",
    "Mail": "text",
    "WebSite": "text"
  },
  "SellerInfo": {
    "User": "text",
    "TableNo": "text",
    "Address": "text",
    "District": "text",
    "City": "text",
    "Country": "text",
    "PostalCode": "text",
    "Phone": "text",
    "Fax": "text",
    "Mail": "text",
    "WebSite": "text"
  },
  "BillLines": [
    {
      "Name": "text",
      "Quantity": 0,
      "UnitType": "text",
      "Price": 0,
      "KDVPercent": 0,
      "KDVTotal": 0
    }
  ],
  "Notes": [
    "text"
  ]
}

var options = new RestClientOptions("https://apitest.nilvera.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/ebill/Draft/1357ba09-29e1-4e65-b600-6247ddd57f93/model", Method.Get);
request.AddHeader("Authorization", "Bearer <API KEY>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);