Toplu Taslak Belge Oluşturur

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-25T04:17:14.960Z",
          "CurrencyCode": "text",
          "ExchangeRate": 1,
          "InvoicePeriod": {
            "StartDate": "2025-06-25T04:17:14.960Z",
            "StartTime": "text",
            "EndDate": "2025-06-25T04:17:14.960Z",
            "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/Create")
{
  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" +
@"  ""Insurance"": {" + "\n" +
@"    ""CustomerInfo"": {" + "\n" +
@"      ""Address"": ""<string>""," + "\n" +
@"      ""City"": ""<string>""," + "\n" +
@"      ""Country"": ""<string>""," + "\n" +
@"      ""District"": ""<string>""," + "\n" +
@"      ""Name"": ""<string>""," + "\n" +
@"      ""TaxNumber"": ""99999999999""," + "\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"": ""E38_PCds""," + "\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"": ""46844684468""," + "\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" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated