For the complete documentation index, see llms.txt. This page is also available as Markdown.

Model ile Önizler

Gönderilecek belgeyi ön izler.

post

Model olarak gönderilecek belgeyi ön izlemek için bu ucu kullanabilirsiniz.

Authorizations
HTTPRequired

API anahtari giriniz

Body
Responses
200

Gönderilecek belgeyi ön izler.

stringOptional
post/Send/Model/Preview
POST /expense/Send/Model/Preview HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 2023

{
  "Expense": {
    "ExpenseInfo": {
      "UUID": "123e4567-e89b-12d3-a456-426614174000",
      "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
      "TemplateBase64String": "text",
      "DocumentType": "SATIS",
      "ExpenseSerieOrNumber": "text",
      "IssueDate": "2026-01-01T00:00:00.000Z",
      "CurrencyCode": "text",
      "ExchangeRate": 1,
      "IsCargoDelivery": true,
      "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",
        "AuthCertificateNumber": "text"
      },
      "IsReturnerSameAsReceiver": true,
      "ReturnerInfo": {
        "Name": "text",
        "Surname": "text",
        "Identifier": "text",
        "Address": "text",
        "District": "text",
        "City": "text"
      },
      "ServiceProviderInfo": {
        "Name": "text",
        "TaxNumber": "text"
      },
      "VerificationInfo": {
        "Type": "SMS",
        "Phone": "text",
        "Code": "text"
      },
      "ReturnDocumentInfo": {
        "DocumentType": "EARSIV_FATURA",
        "DocumentNumber": "text",
        "IssueDate": "2026-01-01T00:00:00.000Z"
      },
      "AdditionalDocumentReferences": [
        {
          "ID": "text",
          "IssueDate": "2026-01-01T00:00:00.000Z",
          "DocumentType": "text",
          "DocumentTypeCode": "text",
          "DocumentDescription": "text",
          "Attachment": {
            "Base64Data": "text",
            "MimeCode": "text",
            "FileName": "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"
    },
    "ExpenseLines": [
      {
        "Name": "text",
        "Quantity": 1,
        "UnitType": "text",
        "Price": 1,
        "KDVPercent": 1,
        "KDVTotal": 1,
        "GVWithholdingPercent": 1,
        "GVWithholdingAmount": 1
      }
    ],
    "Notes": [
      "text"
    ]
  }
}
text
var options = new RestClientOptions("https://apitest.nilvera.com")
{
    MaxTimeout = -1,
};

var client = new RestClient(options);
var request = new RestRequest("/expense/Send/Model/Preview", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer APIKEY");

var body = @"{
  ""Expense"": {
    ""ExpenseInfo"": {
      ""UUID"": ""3fa85f64-5717-4562-b3fc-2c963f66afa6"",
      ""TemplateUUID"": ""3fa85f64-5717-4562-b3fc-2c963f66afa6"",
      ""TemplateBase64String"": ""string"",
      ""DocumentType"": ""SATIS"",
      ""ExpenseSerieOrNumber"": ""string"",
      ""IssueDate"": ""2026-01-01T00:00:00"",
      ""CurrencyCode"": ""string"",
      ""ExchangeRate"": 0,
      ""IsCargoDelivery"": true,
      ""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"",
        ""AuthCertificateNumber"": ""string""
      },
      ""IsReturnerSameAsReceiver"": true,
      ""ReturnerInfo"": {
        ""Name"": ""string"",
        ""Surname"": ""string"",
        ""Identifier"": ""string"",
        ""Address"": ""string"",
        ""District"": ""string"",
        ""City"": ""string""
      },
      ""ServiceProviderInfo"": {
        ""Name"": ""string"",
        ""TaxNumber"": ""string""
      },
      ""VerificationInfo"": {
        ""Type"": {},
        ""Phone"": ""string"",
        ""Code"": ""string""
      },
      ""ReturnDocumentInfo"": {
        ""DocumentType"": {},
        ""DocumentNumber"": ""string"",
        ""IssueDate"": ""2026-01-01T00:00:00""
      },
      ""AdditionalDocumentReferences"": [
        {}
      ]
    },
    ""CompanyInfo"": {
      ""TaxNumber"": ""string"",
      ""Name"": ""string"",
      ""TaxOffice"": ""string"",
      ""PartyIdentifications"": [
        {}
      ],
      ""AgentPartyIdentifications"": [
        {}
      ],
      ""Address"": ""string"",
      ""District"": ""string"",
      ""City"": ""string"",
      ""Country"": ""string"",
      ""PostalCode"": ""string"",
      ""Phone"": ""string"",
      ""Fax"": ""string"",
      ""Mail"": ""string"",
      ""WebSite"": ""string""
    },
    ""CustomerInfo"": {
      ""TaxNumber"": ""string"",
      ""Name"": ""string"",
      ""TaxOffice"": ""string"",
      ""PartyIdentifications"": [
        {}
      ],
      ""AgentPartyIdentifications"": [
        {}
      ],
      ""Address"": ""string"",
      ""District"": ""string"",
      ""City"": ""string"",
      ""Country"": ""string"",
      ""PostalCode"": ""string"",
      ""Phone"": ""string"",
      ""Fax"": ""string"",
      ""Mail"": ""string"",
      ""WebSite"": ""string""
    },
    ""ExpenseLines"": [
      {
        ""Name"": ""string"",
        ""Quantity"": 0,
        ""UnitType"": ""string"",
        ""Price"": 0,
        ""KDVPercent"": 0,
        ""KDVTotal"": 0,
        ""GVWithholdingPercent"": 0,
        ""GVWithholdingAmount"": 0
      }
    ],
    ""Notes"": [
      ""string""
    ]
  }
}";

request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated