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

Toplu Taslak Adisyon Oluşturur

Toplu Taslak adisyon oluşturur.

post
Authorizations
HTTPRequired

API anahtar� giriniz

Body
Responses
200

Toplu Taslak adisyon oluşturur.

application/json
string[]Optional
post/Draft/CreateBulk
POST /ebill/Draft/CreateBulk HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 1469

{
  "Bills": [
    {
      "Bill": {
        "BillInfo": {
          "UUID": "123e4567-e89b-12d3-a456-426614174000",
          "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
          "TemplateBase64String": "text",
          "BillSerieOrNumber": "text",
          "IssueDate": "2026-01-01T00:00:00.000Z",
          "CurrencyCode": "text",
          "ExchangeRate": 1,
          "RelatedDocument": {
            "Type": "EFATURA",
            "Code": "text"
          },
          "ValidityPeriod": {
            "StartDate": "2026-01-01T00:00:00.000Z",
            "EndDate": "2026-01-01T00:00:00.000Z"
          }
        },
        "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": 1,
            "UnitType": "text",
            "Price": 1,
            "KDVPercent": 1,
            "KDVTotal": 1
          }
        ],
        "Notes": [
          "text"
        ]
      },
      "Tags": [
        "123e4567-e89b-12d3-a456-426614174000"
      ],
      "SpecialCode": "text"
    }
  ]
}
[
  "text"
]
var options = new RestClientOptions("/ebill/Draft/CreateBulk")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("", Method.Post);
request.AddHeader("Authorization", "APIKEY");
var body = @"";
request.AddParameter("text/plain", body,  ParameterType.RequestBody);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => '/ebill/Draft/CreateBulk',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => array(
    'Authorization: APIKEY'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Last updated