Creates Bulk Drafts

Toplu Taslak adisyon oluşturur.

post
Authorizations
Body
Responses
200
Toplu Taslak adisyon oluşturur.
application/json
Responsestring[]
post
POST /einvoice/Draft/CreateBulk HTTP/1.1
Host: 
Authorization: Bearer JWT
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": "2025-07-01T02:45:44.536Z",
          "CurrencyCode": "text",
          "ExchangeRate": 1,
          "RelatedDocument": {
            "Type": "EFATURA",
            "Code": "text"
          },
          "ValidityPeriod": {
            "StartDate": "2025-07-01T02:45:44.536Z",
            "EndDate": "2025-07-01T02:45:44.536Z"
          }
        },
        "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("Content-Type", "application/json");
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer {{bearerToken}}");
var body = @"{" + "\n" +
@"  ""Bills"": [" + "\n" +
@"    {" + "\n" +
@"      ""Bill"": {" + "\n" +
@"        ""BillInfo"": {" + "\n" +
@"          ""UUID"": ""<uuid>""," + "\n" +
@"          ""TemplateUUID"": ""<uuid>""," + "\n" +
@"          ""TemplateBase64String"": ""<string>""," + "\n" +
@"          ""BillSerieOrNumber"": ""<string>""," + "\n" +
@"          ""IssueDate"": ""<dateTime>""," + "\n" +
@"          ""CurrencyCode"": ""<string>""," + "\n" +
@"          ""ExchangeRate"": ""<double>""," + "\n" +
@"          ""RelatedDocument"": {" + "\n" +
@"            ""Type"": ""EFATURA""," + "\n" +
@"            ""Code"": ""<string>""" + "\n" +
@"          }," + "\n" +
@"          ""ValidityPeriod"": {" + "\n" +
@"            ""StartDate"": ""<dateTime>""," + "\n" +
@"            ""EndDate"": ""<dateTime>""" + "\n" +
@"          }" + "\n" +
@"        }," + "\n" +
@"        ""CompanyInfo"": {" + "\n" +
@"          ""TaxNumber"": ""<string>""," + "\n" +
@"          ""Name"": ""<string>""," + "\n" +
@"          ""TaxOffice"": ""<string>""," + "\n" +
@"          ""PartyIdentifications"": [" + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }," + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }" + "\n" +
@"          ]," + "\n" +
@"          ""AgentPartyIdentifications"": [" + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }," + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }" + "\n" +
@"          ]," + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""CustomerInfo"": {" + "\n" +
@"          ""TaxNumber"": ""<string>""," + "\n" +
@"          ""Name"": ""<string>""," + "\n" +
@"          ""TaxOffice"": ""<string>""," + "\n" +
@"          ""PartyIdentifications"": [" + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }," + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }" + "\n" +
@"          ]," + "\n" +
@"          ""AgentPartyIdentifications"": [" + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }," + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }" + "\n" +
@"          ]," + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""SellerInfo"": {" + "\n" +
@"          ""User"": ""<string>""," + "\n" +
@"          ""TableNo"": ""<string>""," + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""BillLines"": [" + "\n" +
@"          {" + "\n" +
@"            ""Name"": ""<string>""," + "\n" +
@"            ""Quantity"": ""<double>""," + "\n" +
@"            ""UnitType"": ""<string>""," + "\n" +
@"            ""Price"": ""<double>""," + "\n" +
@"            ""KDVPercent"": ""<double>""," + "\n" +
@"            ""KDVTotal"": ""<double>""" + "\n" +
@"          }," + "\n" +
@"          {" + "\n" +
@"            ""Name"": ""<string>""," + "\n" +
@"            ""Quantity"": ""<double>""," + "\n" +
@"            ""UnitType"": ""<string>""," + "\n" +
@"            ""Price"": ""<double>""," + "\n" +
@"            ""KDVPercent"": ""<double>""," + "\n" +
@"            ""KDVTotal"": ""<double>""" + "\n" +
@"          }" + "\n" +
@"        ]," + "\n" +
@"        ""Notes"": [" + "\n" +
@"          ""<string>""," + "\n" +
@"          ""<string>""" + "\n" +
@"        ]" + "\n" +
@"      }," + "\n" +
@"      ""Tags"": [" + "\n" +
@"        ""<uuid>""," + "\n" +
@"        ""<uuid>""" + "\n" +
@"      ]," + "\n" +
@"      ""SpecialCode"": ""<string>""" + "\n" +
@"    }," + "\n" +
@"    {" + "\n" +
@"      ""Bill"": {" + "\n" +
@"        ""BillInfo"": {" + "\n" +
@"          ""UUID"": ""<uuid>""," + "\n" +
@"          ""TemplateUUID"": ""<uuid>""," + "\n" +
@"          ""TemplateBase64String"": ""<string>""," + "\n" +
@"          ""BillSerieOrNumber"": ""<string>""," + "\n" +
@"          ""IssueDate"": ""<dateTime>""," + "\n" +
@"          ""CurrencyCode"": ""<string>""," + "\n" +
@"          ""ExchangeRate"": ""<double>""," + "\n" +
@"          ""RelatedDocument"": {" + "\n" +
@"            ""Type"": ""EFATURA""," + "\n" +
@"            ""Code"": ""<string>""" + "\n" +
@"          }," + "\n" +
@"          ""ValidityPeriod"": {" + "\n" +
@"            ""StartDate"": ""<dateTime>""," + "\n" +
@"            ""EndDate"": ""<dateTime>""" + "\n" +
@"          }" + "\n" +
@"        }," + "\n" +
@"        ""CompanyInfo"": {" + "\n" +
@"          ""TaxNumber"": ""<string>""," + "\n" +
@"          ""Name"": ""<string>""," + "\n" +
@"          ""TaxOffice"": ""<string>""," + "\n" +
@"          ""PartyIdentifications"": [" + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }," + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }" + "\n" +
@"          ]," + "\n" +
@"          ""AgentPartyIdentifications"": [" + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }," + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }" + "\n" +
@"          ]," + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""CustomerInfo"": {" + "\n" +
@"          ""TaxNumber"": ""<string>""," + "\n" +
@"          ""Name"": ""<string>""," + "\n" +
@"          ""TaxOffice"": ""<string>""," + "\n" +
@"          ""PartyIdentifications"": [" + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }," + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }" + "\n" +
@"          ]," + "\n" +
@"          ""AgentPartyIdentifications"": [" + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }," + "\n" +
@"            {" + "\n" +
@"              ""SchemeID"": ""<string>""," + "\n" +
@"              ""Value"": ""<string>""" + "\n" +
@"            }" + "\n" +
@"          ]," + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""SellerInfo"": {" + "\n" +
@"          ""User"": ""<string>""," + "\n" +
@"          ""TableNo"": ""<string>""," + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""BillLines"": [" + "\n" +
@"          {" + "\n" +
@"            ""Name"": ""<string>""," + "\n" +
@"            ""Quantity"": ""<double>""," + "\n" +
@"            ""UnitType"": ""<string>""," + "\n" +
@"            ""Price"": ""<double>""," + "\n" +
@"            ""KDVPercent"": ""<double>""," + "\n" +
@"            ""KDVTotal"": ""<double>""" + "\n" +
@"          }," + "\n" +
@"          {" + "\n" +
@"            ""Name"": ""<string>""," + "\n" +
@"            ""Quantity"": ""<double>""," + "\n" +
@"            ""UnitType"": ""<string>""," + "\n" +
@"            ""Price"": ""<double>""," + "\n" +
@"            ""KDVPercent"": ""<double>""," + "\n" +
@"            ""KDVTotal"": ""<double>""" + "\n" +
@"          }" + "\n" +
@"        ]," + "\n" +
@"        ""Notes"": [" + "\n" +
@"          ""<string>""," + "\n" +
@"          ""<string>""" + "\n" +
@"        ]" + "\n" +
@"      }," + "\n" +
@"      ""Tags"": [" + "\n" +
@"        ""<uuid>""," + "\n" +
@"        ""<uuid>""" + "\n" +
@"      ]," + "\n" +
@"      ""SpecialCode"": ""<string>""" + "\n" +
@"    }" + "\n" +
@"  ]" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated