Taslağın Modeli Getirilir

Model dosyasını indirir.

get
Authorizations
Path parameters
UUIDstring · uuidRequired
Responses
200
Model dosyasını indirir.
application/json
get
GET /einvoice/Draft/{UUID}/model HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "InsuranceInfo": {
    "UUID": "123e4567-e89b-12d3-a456-426614174000",
    "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
    "TemplateBase64String": "text",
    "InsuranceSerieOrNumber": "text",
    "IssueDate": "2025-06-25T12:33:36.562Z",
    "CurrencyCode": "text",
    "ExchangeRate": 1,
    "InvoicePeriod": {
      "StartDate": "2025-06-25T12:33:36.562Z",
      "StartTime": "text",
      "EndDate": "2025-06-25T12:33:36.562Z",
      "EndTime": "text",
      "DurationMeasureValue": 1,
      "Description": "text"
    }
  },
  "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"
  },
  "InsuranceLines": [
    {
      "Name": "text",
      "CancelledCommissionAmount": 1,
      "IssuedCommissionAmount": 1
    }
  ],
  "Notes": [
    "text"
  ]
}
var options = new RestClientOptions("//einsurance/Draft/<uuid>/model")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("", Method.Get);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer {{bearerToken}}");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated