Creates Bulk Draft

Toplu Taslak E-SKGB oluşturur.

post
Authorizations
Body
Responses
200
Toplu E-SKGB 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: 1321

{
  "Insurances": [
    {
      "Insurance": {
        "InsuranceInfo": {
          "UUID": "123e4567-e89b-12d3-a456-426614174000",
          "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
          "TemplateBase64String": "text",
          "InsuranceSerieOrNumber": "text",
          "IssueDate": "2025-06-30T18:46:53.805Z",
          "CurrencyCode": "text",
          "ExchangeRate": 1,
          "InvoicePeriod": {
            "StartDate": "2025-06-30T18:46:53.805Z",
            "StartTime": "text",
            "EndDate": "2025-06-30T18:46:53.805Z",
            "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"
        ]
      },
      "Tags": [
        "123e4567-e89b-12d3-a456-426614174000"
      ],
      "SpecialCode": "text"
    }
  ]
}
[
  "text"
]
var options = new RestClientOptions("//einsurance/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" +
@"  ""Insurances"": [" + "\n" +
@"    {" + "\n" +
@"      ""Insurance"": {" + "\n" +
@"        ""CustomerInfo"": {" + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""Name"": ""<string>""," + "\n" +
@"          ""TaxNumber"": ""8376101093""," + "\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" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""InsuranceInfo"": {" + "\n" +
@"          ""CurrencyCode"": ""<string>""," + "\n" +
@"          ""InsuranceSerieOrNumber"": ""IJG9958441078492""," + "\n" +
@"          ""IssueDate"": ""<dateTime>""," + "\n" +
@"          ""UUID"": ""<uuid>""," + "\n" +
@"          ""TemplateUUID"": ""<uuid>""," + "\n" +
@"          ""TemplateBase64String"": ""<string>""," + "\n" +
@"          ""ExchangeRate"": ""<double>""," + "\n" +
@"          ""InvoicePeriod"": {" + "\n" +
@"            ""Description"": ""<string>""," + "\n" +
@"            ""EndDate"": ""<dateTime>""," + "\n" +
@"            ""StartDate"": ""<dateTime>""," + "\n" +
@"            ""StartTime"": ""<string>""," + "\n" +
@"            ""EndTime"": ""<string>""," + "\n" +
@"            ""DurationMeasureValue"": ""<double>""" + "\n" +
@"          }" + "\n" +
@"        }," + "\n" +
@"        ""InsuranceLines"": [" + "\n" +
@"          {" + "\n" +
@"            ""Name"": ""<string>""," + "\n" +
@"            ""CancelledCommissionAmount"": ""<double>""," + "\n" +
@"            ""IssuedCommissionAmount"": ""<double>""" + "\n" +
@"          }" + "\n" +
@"        ]," + "\n" +
@"        ""CompanyInfo"": {" + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""Name"": ""<string>""," + "\n" +
@"          ""TaxNumber"": ""18010318010""," + "\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" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""Notes"": [" + "\n" +
@"          ""<string>""," + "\n" +
@"          ""<string>""" + "\n" +
@"        ]" + "\n" +
@"      }," + "\n" +
@"      ""Tags"": [" + "\n" +
@"        ""<uuid>""," + "\n" +
@"        ""<uuid>""" + "\n" +
@"      ]," + "\n" +
@"      ""SpecialCode"": ""<string>""" + "\n" +
@"    }," + "\n" +
@"    {" + "\n" +
@"      ""Insurance"": {" + "\n" +
@"        ""CustomerInfo"": {" + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""Name"": ""<string>""," + "\n" +
@"          ""TaxNumber"": ""16943310115""," + "\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" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\n" +
@"        }," + "\n" +
@"        ""InsuranceInfo"": {" + "\n" +
@"          ""CurrencyCode"": ""<string>""," + "\n" +
@"          ""InsuranceSerieOrNumber"": ""OK1]""," + "\n" +
@"          ""IssueDate"": ""<dateTime>""," + "\n" +
@"          ""UUID"": ""<uuid>""," + "\n" +
@"          ""TemplateUUID"": ""<uuid>""," + "\n" +
@"          ""TemplateBase64String"": ""<string>""," + "\n" +
@"          ""ExchangeRate"": ""<double>""," + "\n" +
@"          ""InvoicePeriod"": {" + "\n" +
@"            ""Description"": ""<string>""," + "\n" +
@"            ""EndDate"": ""<dateTime>""," + "\n" +
@"            ""StartDate"": ""<dateTime>""," + "\n" +
@"            ""StartTime"": ""<string>""," + "\n" +
@"            ""EndTime"": ""<string>""," + "\n" +
@"            ""DurationMeasureValue"": ""<double>""" + "\n" +
@"          }" + "\n" +
@"        }," + "\n" +
@"        ""InsuranceLines"": [" + "\n" +
@"          {" + "\n" +
@"            ""Name"": ""<string>""," + "\n" +
@"            ""CancelledCommissionAmount"": ""<double>""," + "\n" +
@"            ""IssuedCommissionAmount"": ""<double>""" + "\n" +
@"          }" + "\n" +
@"        ]," + "\n" +
@"        ""CompanyInfo"": {" + "\n" +
@"          ""Address"": ""<string>""," + "\n" +
@"          ""City"": ""<string>""," + "\n" +
@"          ""Country"": ""<string>""," + "\n" +
@"          ""District"": ""<string>""," + "\n" +
@"          ""Name"": ""<string>""," + "\n" +
@"          ""TaxNumber"": ""21096462109""," + "\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" +
@"          ""PostalCode"": ""<string>""," + "\n" +
@"          ""Phone"": ""<string>""," + "\n" +
@"          ""Fax"": ""<string>""," + "\n" +
@"          ""Mail"": ""<string>""," + "\n" +
@"          ""WebSite"": ""<string>""" + "\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