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

Send the Invoice as a Model

Faturayı model olarak gönderir.

post

Faturayı model olarak göndermek için bu uç kullanılır.

Authorizations
HTTPRequired

API Key Giriniz

Body
CustomerAliasstring · nullableOptional
Responses
200

Faturayı model olarak gönderir

UUIDstring · uuidOptional
InvoiceNumberstring · nullableOptional
post/Send/Model
POST /einvoice/Send/Model HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 5009

{
  "EInvoice": {
    "InvoiceInfo": {
      "UUID": "123e4567-e89b-12d3-a456-426614174000",
      "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
      "TemplateBase64String": "text",
      "InvoiceType": "SATIS",
      "InvoiceSerieOrNumber": "text",
      "IssueDate": "2026-01-01T00:00:00.000Z",
      "CurrencyCode": "text",
      "ExchangeRate": 1,
      "InvoiceProfile": "TEMELFATURA",
      "DespatchDocumentReference": [
        {
          "IssueDate": "2026-01-01T00:00:00.000Z",
          "Value": "text"
        }
      ],
      "OrderReference": {
        "IssueDate": "2026-01-01T00:00:00.000Z",
        "Value": "text"
      },
      "OrderReferenceDocument": {
        "ID": "text",
        "IssueDate": "2026-01-01T00:00:00.000Z",
        "DocumentType": "text",
        "DocumentTypeCode": "text",
        "DocumentDescription": "text",
        "Attachment": {
          "Base64Data": "text",
          "MimeCode": "text",
          "FileName": "text"
        }
      },
      "AdditionalDocumentReferences": [
        {
          "ID": "text",
          "IssueDate": "2026-01-01T00:00:00.000Z",
          "DocumentType": "text",
          "DocumentTypeCode": "text",
          "DocumentDescription": "text",
          "Attachment": {
            "Base64Data": "text",
            "MimeCode": "text",
            "FileName": "text"
          }
        }
      ],
      "TaxExemptionReasonInfo": {
        "KDVExemptionReasonCode": "text",
        "OTVExemptionReasonCode": "text",
        "AccommodationTaxExemptionReasonCode": "text"
      },
      "PaymentTermsInfo": {
        "Percent": 1,
        "Amount": 1,
        "Note": "text"
      },
      "PaymentMeansInfo": {
        "Code": "text",
        "ChannelCode": "text",
        "DueDate": "2026-01-01T00:00:00.000Z",
        "PayeeFinancialAccountID": "text",
        "Note": "text"
      },
      "OKCInfo": {
        "ID": "text",
        "IssueDate": "2026-01-01T00:00:00.000Z",
        "Time": "text",
        "ZNo": "text",
        "EndPointID": "text",
        "DocumentDescription": "text"
      },
      "ESUReportInfo": {
        "ID": "text",
        "IssueDate": "2026-01-01T00:00:00.000Z"
      },
      "ReturnInvoiceInfo": [
        {
          "InvoiceNumber": "text",
          "IssueDate": "2026-01-01T00:00:00.000Z"
        }
      ],
      "AccountingCost": "text",
      "InvoicePeriod": {
        "StartDate": "2026-01-01T00:00:00.000Z",
        "StartTime": "text",
        "EndDate": "2026-01-01T00:00:00.000Z",
        "EndTime": "text",
        "DurationMeasureValue": 1,
        "Description": "text"
      },
      "SGKInfo": {
        "RegisterName": "text",
        "DocumentNumber": "text",
        "RegisterCode": "text"
      },
      "Expenses": [
        {
          "ExpenseType": "HKSKOMISYON",
          "Percent": 1,
          "Amount": 1
        }
      ],
      "InvestmentIncentive": {
        "DocumentNumber": "text",
        "DocumentDate": "2026-01-01T00:00:00.000Z"
      },
      "ShipmentNumber": "text",
      "LineExtensionAmount": 1,
      "GeneralKDV1Total": 1,
      "GeneralKDV8Total": 1,
      "GeneralKDV18Total": 1,
      "GeneralKDV10Total": 1,
      "GeneralKDV20Total": 1,
      "GeneralAllowanceTotal": 1,
      "PayableAmount": 1,
      "KdvTotal": 1,
      "InsuranceValueAmount": 1,
      "DeclaredForCarriageValueAmount": 1
    },
    "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"
    },
    "BuyerCustomerInfo": {
      "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"
    },
    "ExportCustomerInfo": {
      "TaxNumber": "text",
      "LegalRegistrationName": "text",
      "PersonName": "text",
      "PersonSurName": "text",
      "Address": "text",
      "District": "text",
      "City": "text",
      "Country": "text",
      "PostalCode": "text",
      "Phone": "text",
      "Fax": "text",
      "Mail": "text",
      "WebSite": "text"
    },
    "InvoiceLines": [
      {
        "Index": "text",
        "SellerCode": "text",
        "BuyerCode": "text",
        "Name": "text",
        "Description": "text",
        "Quantity": 1,
        "UnitType": "text",
        "Price": 1,
        "AllowanceTotal": 1,
        "KDVPercent": 1,
        "KDVTotal": 1,
        "Taxes": [
          {
            "TaxCode": "text",
            "Total": 1,
            "Percent": 1,
            "ReasonCode": "text",
            "ReasonDesc": "text"
          }
        ],
        "DeliveryInfo": {
          "GTIPNo": "text",
          "DeliveryTermCode": "text",
          "TransportModeCode": "text",
          "PackageBrandName": "text",
          "ProductTraceID": "text",
          "PackageID": "text",
          "PackageQuantity": 1,
          "PackageTypeCode": "text",
          "DeliveryAddress": {
            "Address": "text",
            "District": "text",
            "City": "text",
            "Country": "text",
            "PostalCode": "text",
            "Phone": "text",
            "Fax": "text",
            "Mail": "text",
            "WebSite": "text"
          }
        },
        "ManufacturerCode": "text",
        "BrandName": "text",
        "ModelName": "text",
        "Note": "text",
        "AdditionalInfoId": "text",
        "SerialID": "text",
        "ProductTraceID": "text",
        "InvestmentIncentiveExpenseType": "MachineAndSoftware",
        "LabelNumber": "text",
        "BuyerDIBLineCode": "text",
        "SellerDIBLineCode": "text",
        "GTIPNo": "text",
        "OzelMatrahReason": "text",
        "OzelMatrahTotal": 1,
        "VatAmountWithoutTevkifat": 1,
        "MedicineAndMedicalDevice": {
          "Medicine": [
            {
              "GTIN": "text",
              "BatchNumber": "text",
              "SerialNumber": "text",
              "ExpirationDate": "2026-01-01T00:00:00.000Z"
            }
          ],
          "MedicalDevice": [
            {
              "ProductNumber": "text",
              "LotNumber": "text",
              "SerialNumber": "text",
              "ProductionDate": "2026-01-01T00:00:00.000Z"
            }
          ],
          "ProductType": "MEDICINE"
        },
        "AdditionalItemIdentification": {
          "TagNumber": "text",
          "OwnerName": "text",
          "OwnerTaxNumber": "text"
        }
      }
    ],
    "Notes": [
      "text"
    ]
  },
  "CustomerAlias": "text"
}
{
  "UUID": "123e4567-e89b-12d3-a456-426614174000",
  "InvoiceNumber": "text"
}
var client = new RestClient("/einvoice/Send/Model");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Accept", "text/plain");
request.AddHeader("Authorization", "Bearer <API KEY>");
var body = @"{
  "EInvoice": {
    "InvoiceInfo": {
      "UUID": "1f797839-fb10-45d3-818c-eaaeed533b76",
      "TemplateUUID": "28c9920d-c85d-4d07-a3a3-1b5a1d819949",
      "TemplateBase64String": null,
      "InvoiceType": "SATIS",
      "InvoiceSerieOrNumber": "EFT",
      "IssueDate": "2022-07-02T01:10:14.1406414+03:00",
      "CurrencyCode": "TRY",
      "ExchangeRate": null,
      "InvoiceProfile": "TICARIFATURA",
      "DespatchDocumentReference": null,
      "OrderReference": null,
      "OrderReferenceDocument": null,
      "AdditionalDocumentReferences": null,
      "TaxExemptionReasonInfo": null,
      "PaymentTermsInfo": null,
      "PaymentMeansInfo": null,
      "OKCInfo": null,
      "ReturnInvoiceInfo": null,
      "AccountingCost": null,
      "InvoicePeriod": null,
      "SGKInfo": null,
      "LineExtensionAmount": 0,
      "GeneralKDV1Total": 0,
      "GeneralKDV8Total": 0,
      "GeneralKDV18Total": 0,
      "GeneralAllowanceTotal": 0,
      "PayableAmount": 0,
      "KdvTotal": 0
    },
    "CompanyInfo": {
      "TaxNumber": "6310540565",
      "Name": "Nilvera Yazılım ve Bilişim Hiz. Tic. Ltd. Şti.",
      "TaxOffice": "Erciyes",
      "PartyIdentifications": null,
      "AgentPartyIdentifications": null,
      "Address": "Adres",
      "District": "Melikgazi",
      "City": "Kayseri",
      "Country": "Türkiye",
      "PostalCode": "38038",
      "Phone": "08502514010",
      "Fax": null,
      "Mail": "info@nilvera.com",
      "WebSite": "htts://nilvera.com"
    },
    "CustomerInfo": {
      "TaxNumber": "1234567801",
      "Name": "AAA Anonim Şirketi",
      "TaxOffice": null,
      "PartyIdentifications": null,
      "AgentPartyIdentifications": null,
      "Address": "Papatya Caddesi Yasemin Sokak No21",
      "District": "Melikgazi",
      "City": "Kayseri",
      "Country": "Türkiye",
      "PostalCode": "38038",
      "Phone": null,
      "Fax": null,
      "Mail": null,
      "WebSite": null
    },
    "BuyerCustomerInfo": null,
    "ExportCustomerInfo": null,
    "TaxFreeInfo": null,
    "InvoiceLines": [
      {
        "Index": null,
        "SellerCode": null,
        "BuyerCode": null,
        "Name": "Laptop",
        "Description": null,
        "Quantity": 1,
        "UnitType": "C62",
        "Price": 100,
        "AllowanceTotal": 0,
        "KDVPercent": 18,
        "KDVTotal": 0,
        "Taxes": null,
        "DeliveryInfo": null,
        "ManufacturerCode": null,
        "BrandName": null,
        "ModelName": null,
        "Note": null,
        "OzelMatrahReason": null,
        "OzelMatrahTotal": null
      }
    ],
    "Notes": [
      "Note 1",
      "Note 2"
    ]
  },
  "CustomerAlias": null
}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content

Last updated