Taslağı Düzenleyip Gönderir

Taslak E-SKGB düzenleyerek gönderir.

post

Taslak olarak oluşturduğunuz belgeyi düzenleyerek göndermek için bu ucu kullanabilirsiniz.

Authorizations
Body
Responses
200
Taslak belgeyi düzenleyerek gönderir.
application/json
post
POST /einvoice/Draft/EditAndSend HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 1235

{
  "Insurance": {
    "InsuranceInfo": {
      "UUID": "123e4567-e89b-12d3-a456-426614174000",
      "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
      "TemplateBase64String": "text",
      "InsuranceSerieOrNumber": "text",
      "IssueDate": "2025-05-08T23:53:53.988Z",
      "CurrencyCode": "text",
      "ExchangeRate": 1,
      "InvoicePeriod": {
        "StartDate": "2025-05-08T23:53:53.988Z",
        "StartTime": "text",
        "EndDate": "2025-05-08T23:53:53.988Z",
        "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"
    ]
  }
}
{
  "UUID": "123e4567-e89b-12d3-a456-426614174000",
  "InsuranceNumber": "text"
}
var options = new RestClientOptions("//einsurance/Draft/EditAndSend")
{
  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