Adisyon Bildirim Kuralı Oluşturur

EAdisyon bildirim kuralı oluşturur.

post

EAdisyon bildirim kuralı oluşturmak için bu ucu kullanabilirsiniz.

Authorizations
HTTPRequired

API anahtar� giriniz

Body
Responses
200

EAdisyon bildirim kuralı oluşturur.

application/json
Responseboolean
post
/Notification
var options = new RestClientOptions("//ebill/Notification")
{
  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" +
@"  ""NotificationDto"": {" + "\n" +
@"    ""ID"": ""<integer>""," + "\n" +
@"    ""RuleName"": ""<string>""," + "\n" +
@"    ""Rules"": [" + "\n" +
@"      {" + "\n" +
@"        ""Property"": ""PayableAmount""," + "\n" +
@"        ""Operator"": ""Between""," + "\n" +
@"        ""ValueFirst"": ""<string>""," + "\n" +
@"        ""ValueSecond"": ""<string>""" + "\n" +
@"      }," + "\n" +
@"      {" + "\n" +
@"        ""Property"": ""PayableAmount""," + "\n" +
@"        ""Operator"": ""SmallOrEqual""," + "\n" +
@"        ""ValueFirst"": ""<string>""," + "\n" +
@"        ""ValueSecond"": ""<string>""" + "\n" +
@"      }" + "\n" +
@"    ]," + "\n" +
@"    ""Contact"": [" + "\n" +
@"      {" + "\n" +
@"        ""NotificationValue"": ""<string>""," + "\n" +
@"        ""NotificationValueType"": ""Mail""" + "\n" +
@"      }," + "\n" +
@"      {" + "\n" +
@"        ""NotificationValue"": ""<string>""," + "\n" +
@"        ""NotificationValueType"": ""Sms""" + "\n" +
@"      }" + "\n" +
@"    ]," + "\n" +
@"    ""IsActive"": ""<boolean>""" + "\n" +
@"  }" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated